Forums > Jitter

Nested spheres transparent to each other

June 5, 2012 | 4:05 pm

The attached zip has two pngs with transparent backgrounds, and a patch that has the pngs wrapped on spheres that are transparent to each other. Can’t sort out how to get the smaller sphere inside the larger.

Attachments:
  1. NestedSpheres.zip

June 5, 2012 | 4:58 pm

you need to use the @layer attribute for ordering.

the outer sphere back-faceing shape (@cull_face 2) should be drawn first (@layer 1)
followed by the inner sphere @cull_face 2 – @layer 2
followed by the inner sphere @cull_face 1 – @layer 3
followed by outer sphere @cull_face 1 – @layer 4


June 5, 2012 | 8:46 pm

Thanks Robert– makes sense!


Viewing 3 posts - 1 through 3 (of 3 total)