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

texture mapping

Started by arikMag Apr 23, 2004 at 6:15 AM 1 replies 450+ views
Original Post
arikMag
arikMag
hello guys - I''m new with opengl and I have a problem with texture mapping and I hope you can help me. when I take a original bmp picture - it''s work fine. but when I take jpeg picture, convert it to bmp(by easy graphic converter) and then try to texture - the program stop working in this stage (when i open the file) : if ((fp = fopen(filename, "rb")) == NULL) the new picture is in 128*128 so it''s soposed to work fine. so what can be the problam. thanks alot, and have a great day.
uber_n00b
uber_n00b
Is there a run-time error?
My fellow Americans I have just signed legislation that outlaws Russia forever. Bombing will commence in five minutes.
Steve132
Steve132
Are you sure that your code works great with a regular bitmap file?
if it does, your converter is probably screwed up.
try using paint for windows XP or Some form of photoshop

--------------------------------------

It took me long enough, but now I am finally 16. Yay! Sorta funny, but I am probably the only person on earth who wrote a 3D driving game prior to actually driving .

Topic Locked

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

Sign in to reply to this topic.