weird graphics

Started by
2 comments, last by hello_there 22 years, 1 month ago
ok i made a texture in paint shop pro 7. the texture is blue but when i load it in open gl it''s green any one know why.
____________________________________________________________How could hell be worse?
Advertisement
Maybe you''re saving it in a format that swaps the blue and green channels? Or maybe you''re reading it in wrong?

---
"No game will ever rule more than CBT!" - stoof
Visit Da Shovvkejs.
---Mikael Lax
i''m using the load bitmap file funtion that is in open gl game programming.
____________________________________________________________How could hell be worse?
You''re probably telling OpenGL to use the RGB format. Windows BMP files aren''t in RGB, but in BGR or some other weird format. Look it up on MSDN.

This topic is closed to new replies.

Advertisement