vengi-voxel / vengi

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

VOXCONVERT: Sometimes wrong color used when running vengi-voxconvert #150

Closed hkunz closed 2 years ago

hkunz commented 2 years ago

I'm not really sure if this is a Blender 3.1 bug or a vengi-voxconvert script bug, maybe you can verify? I was using Windows 7 powershell but i think it is also reproducible on Unix & other Unix-like systems.

Steps To Reproduce:

  1. Open Blender 3.1
  2. Select the Default Cube
  3. Open Shader Editor
  4. Change the Base Color of the Principled BSDF node to any blue tone
  5. Press Z and to switch to Material View and notice the cube is blue
  6. Add a ColorRamp node and change color to a yellow tone
  7. Plug the ColorRamp's color output to the Principled BSDF node's base color input
  8. Notice that the color of the cube is now yellow
  9. Export the cube.obj and cube.mtl files
  10. Then run ./vengi-voxconvert.exe -set voxformat_scale 20 -set palette .\palette-nippon.png --input cube.obj --output out.vox --force
  11. Open the resulting out.vox file in MagicaVoxel or VoxEdit software
  12. Notice that the color is blue instead of yellow
hkunz commented 2 years ago

oops okay i verified it looks like a blender 3.1 bug XD