Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

mbenic

OGL Texture mapping for dummies?

This topic is 6796 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have downloaded a couple of texture mapping tuts for OpenGL, but they all seem to be really complex. Is there no relatively simple way to load a texture into OGL, and use it (actually it''s the initialisation and loading thing that gets me.. not the use) Thanks --- Matt Benic "Ummm, you mean this aint bubba's-house-of-hillbilly?"

Share this post


Link to post
Share on other sites
Advertisement
What type of files do you want to load to use as texture maps? BMPs? TGA? PNG? JPG? GIF?

OpenGL just wants a memory buffer from you in RGB, RGBA (or perhaps some other format depending upon extentions supported). OpenGL has no knowledge of specific file types, though it is relatively painless to use ''RAW'' bitmap files as OpenGL textures using basic file-reading code.

Knowing what types of files you''d like to load to use as textures would make it much more likely that I could point you in the right direction on how to proceed.

Share this post


Link to post
Share on other sites
I have a simple texture mapping tutorial in the OpenGL Tutor section of my site.

Nate
http://nate.scuzzy.net

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!