|
I wrote a simple .obj loader and I mixed up the normals and the texture coordinates (it's supposed to be a cube)
|
# ¿ Mar 11, 2015 05:38 |
|
|
# ¿ May 3, 2024 17:36 |
|
TZer0 posted:Are you rendering it with correct culling and indice order? Remember that if you render it with back culling on and indices in clockwise order then it will go bad. It is OpenGL, though I should've explained that I got it fixed. It was actually a two part problem, the first being that I mixed up the normal and texture coordinate indices, and the second was that I was loading the texture upside down, so the texture coordinates were sampling from an alpha section. I was just outputting the texture RGBA directly, so that's why it has all those weird gaps. It's a little hard to make sense of it as an image so I made a gif of it: It looks like this with lighting now: Moon Wizard fucked around with this message at 12:45 on Mar 11, 2015 |
# ¿ Mar 11, 2015 12:41 |