Advertisement Jump to content
Sign in to follow this  

OpenGL Color Map Question

This topic is 4918 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
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!