Soooo, I haven't said much about the vector engine the last few days because I had to go into the guts of the thing and rethink how I was modeling the map.
You still seem to have corners glowing too brightly. Did you ever try drawing with GL_MAX and fading through color intensities instead of the alpha channel?
(With glBlendEquation(GL_MAX) set, OpenGL ignores the alpha channel and uses the maximum of the color intensity you're drawing and the color intensity on the screen. So, instead of drawing polygons fading from transparent white to opaque white, you should draw them fading from black to white.
Or, if you draw opaque green on top of opaque red with GL_MAX, you'll get yellow. Simple!)
I haven't revisited the graphics blending problems since that time -- I've been focusing on map generation. That said, as soon as some map generation issue finally drives me up the wall I'll probably go back and try this idea. :)
Comments 3
Reply
(With glBlendEquation(GL_MAX) set, OpenGL ignores the alpha channel and uses the maximum of the color intensity you're drawing and the color intensity on the screen. So, instead of drawing polygons fading from transparent white to opaque white, you should draw them fading from black to white.
Or, if you draw opaque green on top of opaque red with GL_MAX, you'll get yellow. Simple!)
Reply
Reply
Leave a comment