>> BTW, the new rendering looks awsome.
Thanks!
>> There is just something weird.
>> As if the shadows on the bonds don't match the shadows on the atoms.
I'm so happy you noticed! :)
>> It looks as if atoms and bonds had different light sources. The light
>> source for the atoms seems to be in the upper left corner, while the
>> light source for the bonds seems to be in the viewer's eyes.
You are absolutely correct.
Here is what is going on:
The graphics engine is not a true 3D engine.
There are no real light-source calculations going on at all.
The spheres are easy because they always look the same, regardless of the
orientation.
Cylinders are more difficult, because the lighting is a function of the
orientation in 3D.
A few months ago I spent a day or two trying to get it to work ... but I
gave up.
I have since bought several 3D graphics books and a math book, so I am
ready to try again :)
If you have any 3D graphics experience I would love to get your assistance!
Miguel
|