realbasic-games
[Top] [All Lists]

Re: Triangle colors

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Triangle colors
From: "Joseph J. Strout" <joe at strout dot net>
Date: Tue, 21 Feb 2006 10:57:13 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <2bf2283438d9f2d89cf636ac7fbc3477 at pyramiddesign dot us>
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.

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.

HTH,
- Joe

--

Joseph J. Strout
joe at strout dot net
_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>