PDA

View Full Version : My Texture Class + A Question about an Addition..



cutting_crew
11-04-2003, 09:23 AM
ok folks, i have a texture class i have written to include for every openGL program i am writing. it supports .bmp and .tga files and even has an option when you instantiate your texture variable, to tell the class if you are using a big endian machine(i.e. SGI, SUN). by default its of course little endian. Now i want to add to this for even more advanced projects and to allow for more portability by adding support for .jpeg files. I have done some searching and was wondering what would i do as the first step or the first few steps in adding this support. how does .jpeg using byte swapping differ from .bmp or .tga for example. thanks in advance! btw i might be willing to give out this class if you ask nicely hehe.

MichaelK
11-04-2003, 09:27 AM
Give it to me, please.

Did it sound nice?

mithun_daa
11-04-2003, 09:43 AM
give it to me plzzzzzzzz, pretty plz, with sugar on it.
thankz in advance


Originally posted by cutting_crew:
ok folks, i have a texture class i have written to include for every openGL program i am writing. it supports .bmp and .tga files and even has an option when you instantiate your texture variable, to tell the class if you are using a big endian machine(i.e. SGI, SUN). by default its of course little endian. Now i want to add to this for even more advanced projects and to allow for more portability by adding support for .jpeg files. I have done some searching and was wondering what would i do as the first step or the first few steps in adding this support. how does .jpeg using byte swapping differ from .bmp or .tga for example. thanks in advance! btw i might be willing to give out this class if you ask nicely hehe.

cutting_crew
11-04-2003, 09:46 AM
well i am waiting on my new machine at work so right now i dont have access to it. i will have to wait til i get home and put it together for you.

-- also i was hoping if anyone could help me out on adding support to .jpeg files. anyone??

-- oh and one other thing. right now this is version 1.0.0. this means the implementation of the class right now only does simple 2D and 3D texturing, no bump mapping, or any of that ..... yet. i thought before i get that far i would like to add .jpeg support.

[This message has been edited by cutting_crew (edited 11-04-2003).]

jwatte
11-04-2003, 01:37 PM
DevIL

cutting_crew
11-05-2003, 07:23 AM
why am i the devil?

Mazy
11-05-2003, 08:36 AM
i think it stands for "Developers Image Library" http://www.opengl.org/discussion_boards/ubb/smile.gif

MichaelK
11-06-2003, 12:25 AM
cutting_crew: remember, I was first.

Freelancer
11-06-2003, 05:10 AM
Hi! I'd like to have this texture class too! And...
I DO HAVE the code you need:

- jpeg support;
- tiff support(except jpeg-compressed tiffs);
- png support;

Post your e-mail, I'll send you tomorrow.

dorbie
11-06-2003, 05:36 AM
NO, he means DevIL:
http://openil.sourceforge.net/

cutting_crew
11-06-2003, 05:51 AM
lolol,..ok i thought he was calling me the devil cos he thought i was teasing everyone hehe lol. hey freelancer that would be great..umm, is your code for just windows or linux too? i am striving to make it compatible with at least those 2 OS's. can we private message on here? i dont know if i should give out my e-mail for everyone to see.. for obvious reasons. thanks!

tfpsly
11-06-2003, 06:05 AM
Originally posted by cutting_crew:
can we private message on here? i dont know if i should give out my e-mail for everyone to see..!

No private message.
Your email is freely available in your profile in there: http://www.opengl.org/discussion_boards/...me=cutting_crew (http://www.opengl.org/discussion_boards/cgi_directory/ubbmisc.cgi?action=getbio&UserName=cutting_crew)

cutting_crew
11-06-2003, 06:15 AM
well right now if you email me there it wont go through cos i have only my friends emails allowed..everything else automatically goes to junk mail and is automatically deleted. i had to go this route to keep all the spam, nasty emails and such off my machine. im sure you can relate. i will change this to my yahoo email, so you can send it there freelancer.. anyway thanks again