The 2nd thing I'm not able to solve (although I've tried to make sense of the documentation) is transparency. The following code ought to display a semy-transparent sphere containing a box penetrating the sphere with its edges:
But no matter what value I use for opacity (this holds for floats between 0.0 and 1.0), the sphere remains opaque. To insert the box into the scene first doesn't make any difference, too.
In a sense I'm new to Processing and have big trouble with getting grip on the (otherwise impressive!) built-in 3D-abilities.
Are you with me, the following code should show a sphere »containing« a cube with its edges reaching out of the sphere (although I do not understand the order of the translations and rotations, but that is another cup of tea). The whole scene ought to be lit from the top right side with the light shining
into the scene.
Now the question is: why is the sphere lit as expected but the box's edges are as black as my soul? And, what's more, when the last stanza is expanded with a 2nd rotation like this
That doesn't make any sense to me - can anyone help me? (I have more code samples, but OpenGL seems to do what it wants - I just can't make sense of what I'm seeing. And I've tried for hours, now).