qcmesh

QCMeshTools.plugin/QCMeshValidate

gtoledo3's picture

Super simple plugin patch, don't let the main name fool you. Returns a 1 if a valid QCMesh is attached to the input port, a 0 other wise.

http://www.georgetoledo.com/2011/03/qcmeshtoolsqcmeshvalidate.html

It was mainly a test of how to use a QCMesh input to "do stuff", and this seemed like a good square one.

Draw QCMesh (Composition by gtoledo3)

Author: gtoledo3
License: (unknown)
Date: 2010.10.04
Compatibility: 10.6
Categories:
Required plugins:
(none)

This composition allows for drawing of QCMesh with normals that work with the lighting environment, mesh that works with shadows, and also that doesn't cause any weird evaluation side effects (eg., other stuff in the composition ceasing to evaluate).

It features non contiguous drawing, all stock patches, ability to change color at any time (eg., typical "paint" feature), and line and point sprite modes (stock).

Notes:

-Point Sprites have an aberration rendering with shadows where the shadow engine seems to think they are "larger" than they really are. This is an Apple bug, I believe, can't do anything about it.

-I've "deprecated" the Mesh filters (this composition is somewhat related to the "wiggle draw" I posted). When you "draw" while a filter is engaged, normals can break. This makes no sense given the patch ordering, and again, I believe this is an Apple/ QC mesh bug that I can't particularly do anything about.

-"Double clicking" to clear reduces queue count to 1 instead of 0, but this isn't really perceivable in visual result. This is to suppress a QCMesh log error when mesh creator is connected to a QCMesh render and while input ports are attached, but no structure is being fed (which I believe shouldn't happen to begin with, but log errors annoy me, so I did this to suppress it even though I believe it to be questionable. I would rather leave this value at 0 in a perfect world).