#How is the Box UV format stored in geometry files?

9 messages · Page 1 of 1 (latest)

wary forge
#

I understand what Box UV is, but I don't understand how it corresponds to an offset in uv in the actual image. Theres just two values, u and v. There isn't like 2 coordinates for the box, it's just some random point. I also don't see how the size of the cube also corresponds to this because even though it does change with size, theres no mention of how the individual faces are mapped to that cube in Box UV format. What I want is to read minecraft geometry and then map a texture onto it, but to do this I need four different uv coordinates representing a box.

pallid sageBOT
#

Welcome to the help forum! Once your question has been resolved, please mark the post as closed by typing !close.

wary forge
#

Like I understand this but it never states how the faces are stored

#

I can see that per face uv displays all the faces' uvs, but how come it isnt stored in the file?

#

again it seems to only be the x,y pos and the size of the cube? (doesnt make sense since this total area is bigger than 8 by 8)

sleek flax
#

The 2 values correspond to the displacement from top right corner to the box of the Box UV

#

Since the size of cube is known, from that displacement point, u can calculate the rest of the UV itself

wary forge
#

!close