gl quad structure issue

caseyfarina's picture

So, this one has had me baffled all day long (I apologize if the answer is obvious or previously stated, but I can't seem to find it). I've been trying to create a better ribbon effect in QC and using the gl quad structure patch, however, given the the structure that I'm feeding into the quad structure it disappears half of the time (I send the same structure to the gl point structure patch and there are no problems, all of the points display all of the time.)

There must be some open gl thing I'm missing here.

Also if anyone has any other good ribbon examples I'm open to suggestions. This technique seemed like it could be fairly efficient (if it worked).

Thanks again to team Kineme for the awesome tools.

Casey

PreviewAttachmentSize
gl quad question.qtz21.49 KB

cwright's picture
Re: gl quad structure issue

step 1, delete the extra GL Quad Structure patch (it's sitting on top of the other one, so it's difficult to notice).

step 2, disable backface culling. This is what's causing the ribbon to disappear half the time; backface (or frontface) culling will prevent faces that are facing (or facing away from) the camera from being rendered. You've got it set to Backface Culling, so when the points are ordered such that they "point" backwards, it turns them off. Setting it to None will render the ribbon as you expect.

caseyfarina's picture
Re: gl quad structure issue

Thanks again cwright, I did not notice the duplicate patch (doh), I also never really understood face culling parameters. Thanks again.

usefuldesign.au's picture
Re: gl quad structure issue

Duplicate Patch! So that's why when I turned of Back Face Culling it did nothing. Was wondering why.

Frisky little comp, thanks for posting

caseyfarina's picture
Re: gl quad structure issue

So I cobbled together some javascript to create a properly formated ribbon for the GL quad object.

However, I've been at a loss to create a more "naturalistic" ribbon blowing in the breeze. Right now the ribbon here is obviously transposed in space rather than the end of the ribbon being more noisy or active than the front of the ribbon. If anyone has the time, any ideas on how to increase the noisiness of at the end of the ribbon?

Thanks

PreviewAttachmentSize
gl quad question_java fix_.qtz14.83 KB