Skip to main content
GameDev.net gamedev.net
🔒 Locked

jpeg textures?

Started by Luka K Feb 21, 2007 at 5:14 AM 5 replies 1.8k views
Original Post
Luka K
Luka K
I have problem that I can't put jpeg file as texture in my program. I download some programs that supose to help me but they are too big and complicated (and I can't even compile them). I just need the simpliest code that will put jpeg picture like texture. Can anyone help me with that, please!!!
Lord_Evil
Lord_Evil
OpenGL doesn't provide tools to convert JPEG and other image formats to a OpenGL texture (unlike the DirectX library). You need to convert JPEG yourself (very complicated) or use a third party library like DevIL.
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!
Luka K
Luka K
First thanks for helping Lord_Evil,

but still with DeviL library I don't know how to put jpeg image like texture. I know that maybe I'm asking too much, but there must be someone who already done this same thing and who can give me easy code that will work. Cause I have to do it fast, I don't have so much time unfortunatly, to explore and try to do it myself.
Lord_Evil
Lord_Evil
Look at that tutorial.
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!
JoeJ
JoeJ
There's another lib: http://freeimage.sourceforge.net/features.html
It's also widely used.
If you have time to try both, let me know your choice.
I've had minor problems with a DevIL lib released 2 years ago.
Luka K
Luka K
@ Lord_Evil - this tutorial looks very usfull, thanks

@ JoeJ - I will try that too and let you know if I managed to do what I want

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.