Gradients and memory
Posted
by user146780
on Stack Overflow
See other posts from Stack Overflow
or by user146780
Published on 2010-06-09T01:32:56Z
Indexed on
2010/06/09
1:42 UTC
Read the original article
Hit count: 273
I'm creating a drawing application with OpenGL. I'v created an algorithm that generates gradient textures. I then map these to my polygons and this works quite well. What I realized is how much memory this requires. Creating 1000 gradients takes about 800MB and that's way too much. Is there an alternative to textures, or a way to compress them, or another way to map gradients to polygons that doesn't use up as much memory?
Thanks
My polygons are concave, I use GLUTesselator, and they are multicolored and point to point
© Stack Overflow or respective owner