vengi-voxel / vengi

free and open source voxel art tools - editor, thumbnailer and format converter
http://vengi-voxel.github.io/vengi/
Other
1.05k stars 87 forks source link

VOXCONVERT: OBJ VOXELIZE TO VOX,Does not carry colors #449

Closed Finchmc closed 2 months ago

Finchmc commented 2 months ago

The work you do is very interesting and I can't wait to start trying it out, but I'm having a bit of a problem. Looking forward to your answers! I refer to this statement from https://vengi-voxel.github.io/vengi/voxconvert/Examples/#voxelize-a-obj-gltf-ply-fbx-stl-or-any-supported-mesh-file : Voxelize a obj, gltf, ply, fbx, stl or any supported mesh file : _./vengi-voxconvert -set voxformat_scale 2 -set palette /path/to/palette.png -set voxformat_createpalette false --input mesh.obj --output voxels.vox Here are my local commands (win): vengi-voxconvert.exe -set voxformat_scale 3 -set palette D:/project/3d_color/bbb.png -set voxformat_createpalette false --input D:/project/3d_color/baby_dragon.obj --output D:/project/3d_color/baby_dragon_2.vox_

But I can't get the vox file with the colours as per the help manual's instructions. The first image is the effect I wanted to get baby_dragon , while the second image is the all-black vox file generated by typing the above command. no_color_dragon

By the way, when I want to use a ply file to voxelize a vox file. robot

vengi-voxconvert -set voxformat_scale 200 --input D:/project/3d_color/robot.ply --output D:/project/3d_color/robot1.vox Failed to load model file D:/project/3d_color/robot.ply Scene graph doesn't contain models.

Thank you again for your excellent work and I look forward to answering your queries, much appreciated!

mgerhardy commented 2 months ago

Thank you very much for your report.

I have a few questions:

Finchmc commented 2 months ago

_./vengi-voxconvert -set voxformat_scale 2 -set palette /path/to/palette.png -set voxformatcreatepalette false --input mesh.obj --output voxels.vox

图片1

house_fine.zip Thank you again for your excellent work and I look forward to answering your queries, much appreciated!!!

mgerhardy commented 2 months ago

There is no texture included in the zip file - the mtl file references a file called house_fine_elbado.png

mgerhardy commented 2 months ago

I also had to set the scale from 2 to 25 to make the geometry visible