gi_va grid

this is a component using instancing and render picking.

giva.jpg

dragging your mouse over the viewer will reveal parts of the underlying geometry.

The initial grid comes from Carsten Nicolais book “Grid Index” published by gestalten verlag, Berlin, and is build using a Circle SOP and instancing. The resulting geometry is rendered and converted into a geometry again via a Trace SOP to create separate primitives from the overlapping circle SOPs.
By assigning the primitive number of each primitive to a color via the Primitive SOP the “Render Pick” CHOP will now return the id of the primitive which my mouse is on, encoded into a color.
This information is then used in a Glsl Shader MAT to oonly display those primitves that my mouse is over.

Cheers
Markus
gi_va.tox (1.76 MB)

Awesome!

Very nice and useful! Thank you!