vengi
vengi copied to clipboard
VOXCONVERT: when converting .qb to .obj, the uv coordinates are misaligned
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:
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