Zarbuz / FileToVox

Tool for convert files into Magicavoxel file
MIT License
445 stars 46 forks source link

--cm work for obj? #6

Closed superfrantv closed 4 years ago

superfrantv commented 4 years ago

Greetings,

is it possible to generate a colored vox file from a obj and a png/mtl file or something other??

thanks for this great project :)

Zarbuz commented 4 years ago

No you can't have colored obj. But I would suggest you to convert your OBJ file into a PLY with CloudCompare and then convert it to FileToVox. I made a tutorial about this process : https://www.youtube.com/watch?v=sg3z2GaMJzM

superfrantv commented 4 years ago

Ok and if i import a ply File i can use --cm to add a texture map? it's possible to import animated 3d model, so every frame it creates a vox file?

Zarbuz commented 4 years ago

Watch the video ;) PLY is a point cloud data. No texture but each points have a color. And no you can't import animated 3d model.

superfrantv commented 4 years ago

i love it, thats what i needed, thank you so much!!

superfrantv commented 4 years ago

I have some trouble with it, first how can i scale the Chunks in FileToVox? if i set --s 80 it doesnt change anything. Next is in CloudCompare my Colors are sometimes not imported right, whats the best file format to import in cloudcompare and export as ply? is this possible using a batch ?

superfrantv commented 4 years ago

And another Question, filetovox generates some empty chunks in magicavoxel, how can i change this?

Zarbuz commented 4 years ago

I have some trouble with it, first how can i scale the Chunks in FileToVox? if i set --s 80 it doesnt change anything. Next is in CloudCompare my Colors are sometimes not imported right, whats the best file format to import in cloudcompare and export as ply? is this possible using a batch ?

The scale depend on the size of your models. I don't know how big is the volume in voxels when you set a size of 80.

I import always in OBJ or sometimes in FBX, I haven't got any problem with colors and this is not a support of CloudCompare. Ask them in their forums.

And another Question, filetovox generates some empty chunks in magicavoxel, how can i change this?

You have to manually delete it, there is no way to change it.