Jump to content
  • Advertisement
Sign in to follow this  
webjeff

OpenGL OpenGL Compositing 50 images

This topic is 4933 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, I have 50 opengl textures I need composited into one image fast, dynamic. Basically their images of lines, and I need to show different combinations of them, rendering 50 with alpha over one another is a little slow, I need it to run faster so I figure if I can somehow composite them to 1 image, it would speed up my render time. Any ideas how to do this with opengl? Thanks Jeff.

Share this post


Link to post
Share on other sites
Advertisement
let me get this straight...

you have 50 images of a line in different positions right? if its a single line on the image, just use one line image and use the glMultiTexCoord function to display multiple lines at different coordinates. make sense? seeing as there is usually only 8 texture units, the next best thing to do is render to texture, thats if you can redraw them in ogl.

Share this post


Link to post
Share on other sites

Quote:

50 with alpha over one another is a little slow, I need it to run faster so I figure if I can somehow composite them to 1 image, it would speed up my render time. Any ideas how to do this with opengl?


Hey man, it's OpenGL, not any stinking 2D sprite library, with function for line rendering written in C/C++/pascal/hand_optimized_assembly. AFAIK you can render 5000 or 50 antialiased, alpha blended lines and see almost no difference in FPS.

So, remember: first make it work than make it fast.


And, as adam17 said, if you still think that would be issue, and you are certain about it (or you have tested it already), try rendering to texture.
Or use display list, but I'm not sure whether those lines are moving with respect to each other... be more specific next time :-)

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!