On Feb 21, 2006, at 12:57 PM, Joseph J. Strout wrote:
At 8:11 AM -0500 2/21/06, Joseph Nastasi wrote:
If all the triangles colors are set to one color, what would make
them actually have two slightly different tones?
Shading. If the light hits them at a different angle, and you're
using anything other than the null shader, then they should have
different shades. Set NullShader=True, and they should appear the
same shade.
The thing that seems odd (and maybe is not) is that there are only two
levels of gray (no texture) and they alternate triangles.
A screen shot: http://www.pyramiddesign.us/aok/images/ex.pdf
I understand the overall change in color because of shading. I just
don't get why it also has the alternating shades on the triangle.
Somewhere in the northerly regions of my being (what you might call
the brain), I have a vague memory that this might have something to
do with the order of the vertices, but the fog bank has rolled in...
Well, the order determines which is the "front" of the triangle -- if
you don't have RenderBackFaces = True, then this will actually make
each triangle disappear from one side.
Yes, now I remember!
Thanks!
--
Joseph Nastasi
Pyramid Design - a software development firm
http://www.pyramiddesign.us
Voice 609 601-0814 Fax 609 601-0815
Products:
A-OK! Spacecraft Simulation System - http://aok.pyramiddesign.us
A-OK! The Wings of Mercury http://www.aokwom.com
FTP Suite for REALbasic - http://ftpsuite.pyramiddesign.us
Columnist for REALbasic Developer Magazine
Proud Sponsors of REALbasic Olympics 2005
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|