dilevin / computer-graphics-meshes

Computer Graphics Assignment about Meshes
1 stars 6 forks source link

Texture doesn't get applied properly to the cube #7

Closed alexei-zolotarevschi closed 5 years ago

alexei-zolotarevschi commented 5 years ago

untitled I'm probably not getting my UV and UF right, but I've tried various approaches and they all result in the same thing.

dilevin commented 5 years ago

You are applying the whole texture to each face of your cube. Think about how to choose UV to map each single colour square in the cross pattern to a different face in the cube.

alexei-zolotarevschi commented 5 years ago

Figured it out. One of my approaches was correct, but in some places I was using fractions like 1/2 instead of 0.5, and for some reason it wasn't happy with it.