Thursday, March 24, 2011

Progress2

I am still trying to get a texture in. For some reason it is just not working. If I knew the reason I could make it work.
Anyways. 
At least now I can have fun loading bunnies, dinosaurs, cubes and spheres. 
As for how I am dealing with textures now:
The OBJ loader is supposedly loading the texture. And does the whole generating, binding, "parametering" and glTexImage2D. So it should be straight forward for me, right? Just send it to the first shader. Well, no.
I have Texcoords ready to be used and I am also sending them to the shader so I can get the correct color from the texture. 
Sigh.

I guess I can just jump to plans for the week:
- Keep working on the texture. I refuse to give up.
- Get lights going. 

1 comment:

  1. I sent you some code over email about the texture, see if that makes any sense.

    ReplyDelete