Jump to content
  • Advertisement
Sign in to follow this  
Kincaid

OpenGL Color Map Question

This topic is 4738 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

Hello, im reading RGB data from a bitmap so i can adjust colors in my landscape by coloring in an image in photoshop and all goes well. i've made a plane consisting of simply quads, with in length en width a variable number of quads. i've an bitmap as such; AUX_RGBImageRec *ColorMap; RGB.X = ColorMap->data[index+0]; RGB.Y = ColorMap->data[index+1]; RGB.Z = ColorMap->data[index+2]; en this works fine, i can write some text in bmp en it maps fine onto the grid, but it goes wrong somewhere with te colors. it doesn't work with greens, but red go fine, yellow two, blues are distorted, and a picture of a rainbow gradient is mostly white execpt for te read en yellow parts. It's like opengl cant process some colors correctly of something Who knows what stupid little thing im missing here ??

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • 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!