vengi icon indicating copy to clipboard operation
vengi copied to clipboard

VOXCONVERT: when converting .qb to .obj, the uv coordinates are misaligned

Open hkunz opened this issue 4 months ago • 2 comments

When converting the attached .qb file to .obj (and possibly other formats), the color scheme is incorrect due to misplaced sampling points on the UVMap. The sampled points are placed between 2 colors causing the resulting value to mix. Tested by importing the resulting .obj in Blender:

image

The correct placement should probably be the following in order to set the sampling point to be at the center of each color:

u = index * 1/256 + 1/256/2
v = 0.5

or

u = (index + 0.5) / 256
v = 0.5

Here's a sample .qb file https://drive.google.com/file/d/1WoSwlgCiSybYkdqxdm_Ir5nFOVFtTYyk/view?usp=sharing

test.zip

hkunz avatar Mar 04 '24 08:03 hkunz