Comments (13)
I wonder if you can try and convert to vox the original PLY below:
rainbow 2.ply.zip
from filetovox.
192-168-1-110:FileToVox-v1 jimmygunawan$ dotnet FileToVox.dll -i /Users/jimmygunawan/Downloads/rainbow.ply -scale 70 -o rainbow
[INFO] Specified input path: /Users/jimmygunawan/Downloads/rainbow.ply
[INFO] Specified output path: rainbow
[INFO] Specified increase size: 70
[INFO] Specified output path: /Applications/FileToVox-v1/rainbow
[LOG] Start reading PLY data...
[LOG] Done.
[LOG] Started to voxelize data...
[LOG] Done.
System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
---> System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.
at System.Runtime.InteropServices.FunctionWrapper`1.get_Delegate()
at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)
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, HandleRef scan0, IntPtr& bitmap)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at FileToVox.Extensions.Quantization.CreateBitmapFromColors(List`1 blocks) in E:\Documents\FileToVox\SchematicToVoxCore\Extensions\Quantization.cs:line 50
at FileToVox.Extensions.Quantization.ApplyQuantization(List`1 blocks, Int32 colorLimit) in E:\Documents\FileToVox\SchematicToVoxCore\Extensions\Quantization.cs:line 15
[INFO] Vox Width: 466
[INFO] Vox Length: 478
[INFO] Vox Height: 140
[LOG] Started to compute the first block for each region
[LOG] Done.
from filetovox.
Warning: mono-libgdiplus 6.0.5_1 is already installed and up-to-date.
I have tried installing libgdiplus but somewhat still no luck with color and still getting error:
Unable to load DLL 'libgdiplus': The specified module could not be found
==> Downloading https://homebrew.bintray.com/bottles/mono-libgdiplus-6.0.5_1.big_sur.bottle.tar.gz
Already downloaded: /Users/jimmygunawan/Library/Caches/Homebrew/downloads/f2abbfc0e8e424f9eda3263a7397fbf7761ac9a11c802165efaadee045f0bbfe--mono-libgdiplus-6.0.5_1.big_sur.bottle.tar.gz
==> Pouring mono-libgdiplus-6.0.5_1.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/mono-libgdiplus/6.0.5_1: 13 files, 1MB
from filetovox.
The conversion works well if you have indeed the libgdiplus library installed.
from filetovox.
@Zarbuz Yes, I don't know what I did wrong because I brew that library and it's inside Cellar. Do I need to manually assign path or something?
from filetovox.
The official way to install libgdiplus is to use this command : brew install mono-libgdiplus
for MacOS.
Did you tried to relaunch your command prompt after the installation of libgdiplus ?
from filetovox.
Yes I tried relaunching terminal multiple times.
from filetovox.
I found this:
https://gist.github.com/mtolly/384dbe51f4a78d6d2818
The mention of that nuget "runtime.osx.10.10-x64.CoreCompat.System.Drawing" etc, I also tried that but still no luck. I might be close and have to keep digging...
from filetovox.
I ended up creating new account on my MacOS, and it seems to work now. Same computer, different account. Maybe this one is pointing at the correct library. Weird... Thanks all!
Last login: Mon Feb 1 21:10:36 on console
Restored session: Mon 1 Feb 2021 21:02:56 AEDT
blendersushi@192-168-1-110 FileToVox-v1 % dotnet FileToVox.dll -i /Users/blendersushi/Downloads/piggu.ply -scale 70 -o piggu
[INFO] Specified input path: /Users/blendersushi/Downloads/piggu.ply
[INFO] Specified output path: piggu
[INFO] Specified increase size: 70
[INFO] Specified output path: /Users/blendersushi/Downloads/FileToVox-v1/piggu
[LOG] Start reading PLY data...
[LOG] Done.
[LOG] Started to voxelize data...
[LOG] Done.
[INFO] Vox Width: 593
[INFO] Vox Length: 753
[INFO] Vox Height: 266
[LOG] Started to compute the first block for each region
[LOG] Done.
[INFO] Total blocks: 243297
[LOG] Started to write chunks ...
[########--] 85% \[LOG] Done.
[LOG] Check total blocks after conversion: 243297
[LOG] Done.
blendersushi@192-168-1-110 FileToVox-v1 %
from filetovox.
--- NEED TO REOPEN
I am now using iMac M1 and having the same issue quite annoying. I can't get the mono-libgdiplus running properly on this new account.
How to actually add reference? This is so confusing for non coder like me :(
from filetovox.
Maybe somewhere along this line:
dotnet add package runtime.osx.10.10-x64.CoreCompat.System.Drawing
from filetovox.
from filetovox.
If it's a matter of linking, I also have no idea how to search and link it:
dotnet/runtime#34646
from filetovox.
Related Issues (20)
- textures are gonna be broken after voxelization process in mesh sampler HOT 5
- the generated blocks are very few and voxel is very tiny • SOLVED HOT 5
- scale flag not working HOT 1
- PLY 2 VOXEL | For people having trouble with colors on macOS, this is how to solve the issue HOT 5
- Useless
- Feature request: Multiple pngs as input HOT 4
- Problem converting files with MeshSampler HOT 5
- Support frame animation for MV v0.99.7
- System.UnauthorizedAccessException HOT 3
- GUI version doesn't have FBX compatibility HOT 1
- schematics/config.txt - what should be in it? HOT 2
- Problem displaying material in MeshToVox HOT 2
- converting files with MeshToVox HOT 2
- "no voxels to quantize - skipping this part" When I try to convert a ply model HOT 1
- Empty Model HOT 1
- Problem converting files with MeshToVox HOT 3
- MeshToVox: Support of SkinnedMeshRenderer HOT 3
- When I load the .fbx model this happens. HOT 1
- MeshToVox voxelization error HOT 2
- Consider BPM textures black as an alpha channel to generate transparency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filetovox.