Giter Club home page Giter Club logo

Comments (5)

Zarbuz avatar Zarbuz commented on May 26, 2024 1

You must specify the grid-size : --gs 256 for example

from filetovox.

fffiloni avatar fffiloni commented on May 26, 2024

I get a voxel model but very tiny. Take a look at the "rainbow 2.ply" output on my machine:

Capture d’écran 2022-01-18 à 15 05 48

I'm missing something, but i don't know what

from filetovox.

fffiloni avatar fffiloni commented on May 26, 2024

Alright it works, but i still get an error with colors, i read that i may need to install libgdiplus ? i did, but seems it's not working :(

[INFO] FileToVox v1.14.0.0
[INFO] Author: @Zarbuz. Contact : https://twitter.com/Zarbuz
[INFO] Specified input path: /Users/sylvainfiloni/Downloads/rainbow 2.ply
[INFO] Specified output path: testvoxwithgs
[INFO] Specified grid size: 256
[INFO] Specified output path: /Users/sylvainfiloni/Downloads/FileToVox-v1.14-osx/testvoxwithgs
[INFO] Start reading PLY data...
[INFO] Done.       
[INFO] Max X: 9,7875805, Y: 7,557913, 6,8279366
[INFO] Min X: 3,1533642, Y: 5,5825043, 0
[INFO] Size X: 6,6342163, Y: 1,9754086, 6,8279366
[INFO] Started to voxelize data...
[INFO] Done.       
[INFO] Started quantization of all colors ...
System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
 ---> System.PlatformNotSupportedException: System.Drawing.Common is not supported on non-Windows platforms. See https://aka.ms/systemdrawingnonwindows for more information.
   at System.Drawing.LibraryResolver.EnsureRegistered()
   at System.Drawing.SafeNativeMethods.Gdip.PlatformInitialize()
   at System.Drawing.SafeNativeMethods.Gdip..cctor()
   --- End of inner exception stack trace ---
   at System.Drawing.SafeNativeMethods.Gdip.GdipCreateBitmapFromScan0(Int32 width, Int32 height, Int32 stride, Int32 format, IntPtr scan0, IntPtr& bitmap)
   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
   at FileToVox.Extensions.Quantization.CreateBitmapFromColors(List`1 blocks)
   at FileToVox.Extensions.Quantization.ApplyQuantization(List`1 blocks, Int32 colorLimit)
[INFO] Vox Width: 249
[INFO] Vox Length: 257
[INFO] Vox Height: 75
[INFO] Total blocks: 85990
[INFO] Started to write chunks ...
[INFO] Done.
[INFO] Check total blocks after conversion: 85990
[INFO] Done.

Capture d’écran 2022-01-18 à 16 49 13

from filetovox.

Zarbuz avatar Zarbuz commented on May 26, 2024

Yes this is a known issue for Mac, someone seems to made a fix here : #46

from filetovox.

fffiloni avatar fffiloni commented on May 26, 2024

Thanks Nicolas, i close this thread, as you solved the initial issue, and will open a new one if i can't handle the color related one ;)

from filetovox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.