Nested spheres transparent to each other

Jun 5, 2012 at 4:05pm

Nested spheres transparent to each other

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
#53417
Jun 5, 2012 at 4:58pm

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

#192179
Jun 5, 2012 at 8:46pm

Thanks Robert– makes sense!

#192180

You must be logged in to reply to this topic.