Jump to content

  • Log In with Google      Sign In   
  • Create Account


FBO woes


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
21 replies to this topic

#21 medevilenemy   Members   -  Reputation: 308

Like
0Likes
Like

Posted 10 June 2012 - 04:22 PM

I've done some more tweaking, and I've managed to draw an opaque quad with a transparent window in its center. The reason one of the quads was clipping before seems to have been depth (I was drawing a couple of its vertices with 0.5 depth and for some reason it wasn't playing nice). The "window" is created by drawing a 0.0 alpha quad in the appropriate location with alpha func set to GL_ONE, GL_ZERO. The next thing I need is to be able to achieve the desired effect by subtracting the alpha of the "window" from the opaque quad (this way I could do overlapping lights and gradients). alpha func GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA doesn't seem to work for this. Any suggestions?
There was a saying we had in college: Those who walk into the engineering building are never quite the same when they walk out.

Sponsor:

#22 medevilenemy   Members   -  Reputation: 308

Like
0Likes
Like

Posted 15 June 2012 - 09:40 AM

After lots more tweaking and digging around, the blending proof of concept is now functional (after some fiddling and experimentation with the blend subract and minmax extensions). Thanks for your help @Ohforf sake.
There was a saying we had in college: Those who walk into the engineering building are never quite the same when they walk out.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS