GL Quad structure patch and alpha

usefuldesign.au's picture

I can't get quad structure patch to exhibit alpha related transparency. I'm setting alpha for the point colours and on the default white colour for the patch. Posted a demo comp.

10.5.8, NV GeoForce FX 5200

PreviewAttachmentSize
Quad maker (does it obey alpha?).qtz7.29 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

franz's picture
Re: GL Quad structure patch and alpha

it appears to be working in "Distinct quads" mode, but not in "Quads strip".

cwright's picture
Re: GL Quad structure patch and alpha

I find quad strip to be completely wrong (which is expected in this setup).

cwright's picture
Re: GL Quad structure patch and alpha

You're committing GL sin.

You're rendering the quad, then rendering the sphere.

OpenGL CANNOT render stuff BEHIND already rendered stuff that's transparent. YOU ABSOLUTELY ARE REQUIRED TO DRAW FARTHER-AWAY OBJECTS FIRST. This is why you hear about lots of nerds talking about depth sorting. Set your sphere to layer 2 (so the quads are layer 3), and then you win.

usefuldesign.au's picture
Re: GL Quad structure patch and alpha

I know why you're capitalising me, cwright: I committed this sin when I first started on kineme.net and a few times since. Just don't have the graphical programming bkgd that's often required in QC. Unlike those who come into this world with perfections pre-determined/earned, I must learn the hard way and see the error of my ways. You might be surprised at the sins I've managed to purge from my habits!

In the hope of atonement and the cultivation of good karmas (pāramī) I've revised my comp. Quad structure makes more sense too. Kineme: please include in demo comps that ship with GL Tools if it's up to snuff.

I was actually looking at the Kineme depth-sort-sprite as you posted but hadn't made the connection, duh.

Thanks as usual, cwright!!

PreviewAttachmentSize
Quad maker (Yes, it does obey alpha).qtz32.48 KB

smokris's picture
Re: GL Quad structure patch and alpha

usefuldesign.au wrote:
Kineme: please include in demo comps that ship with GL Tools if it's up to snuff.

Thanks. It'll appear in the next release.