Jump to content
  • Advertisement
Sign in to follow this  
GMA965_X3100

OpenGL Image question

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

Advertisement
thanks...but not what I'm talking about. I'm not referring to application of textures or texture manipulation.
I need to know how to actually manipulate the .bmp file. For example first i have a .bmp file with a clown's picture.
I need to know for example how to place a white rectangle on that clown image, that is directly on the image itself, outside of the openGL program, not in it.
The resulting .bmp file would be a clown image with a white rectangle covering it.

I use the free image library for image manipulation...but I can't seem to get any relevant FreeImage commands to get the job done. Maybe I'm using the wrong FreeImage calls?

Anyhow, it is important that I get his done.

Share this post


Link to post
Share on other sites
You're looking the wrong place then. OpenGL doesn't know anything about .bmps, or any other filetype for that matter, it won't help you here.

You're correct that you can use an image library for this, or you could just do the pixel manipulation yourself, bmp is a fairly easy filetype to parse.

Share this post


Link to post
Share on other sites
I'll second the idea that OpenGL is not a good choice for this. As well as not knowing about BMP files there are other potential problems, such as maximum texture size restrictions, (depending on your hardware) power-of-2 size restrictions, pipeline stalls during readback (which may make the process slower than a pure software solution!), the effects of filtering if you have it enabled, and so on that really work against it. You're better off using a good software imaging library here.

Share this post


Link to post
Share on other sites

MS Paint, GIMP, Photoshop, Paint.Net....?
[/quote]


.lol....no I want images to be altered at runtime, for the purpose of affecting in-game assets...

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net 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!