Textures
I have recently started programming in OpenGL and I have a problem with textures:
I work on mac and I use the fomat tga, but it appears to me that when I use graphics converter for my graphics, the tga header is completely wrong.
I have no other program that I can use with the format tga.
I also don't know how to use any other format for my textures.
I have also tried modifying the image given with the example from lesson 6 but it didn't work either.
:-((
P.S. Is it example or exemple? I'm mixing up my english and my french.
[Edited by - TWizard on June 25, 2004 11:29:39 PM]
Well...Using other formats is really quite simple. Look on this site's (NeHe) main page to find the GLAUX Replacement code and the IPicture code...They are both good for loading images and creating textures. Also, google "DevIL Image Library" or something similar and try using that to load your textures. And, it is example.
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
You can also use DevIL:
http://openil.sourceforge.net/
It is a great library for loading, saving and working with images. The syntax is very similar to OpenGL.
http://openil.sourceforge.net/
It is a great library for loading, saving and working with images. The syntax is very similar to OpenGL.
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement