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 Nastasi <joe at pyramiddesign dot us>
Date: Wed, 22 Feb 2006 10:15:15 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <2bf2283438d9f2d89cf636ac7fbc3477 at pyramiddesign dot us> <a0620078ac021049f2852 at [10 dot 0 dot 1 dot 13]>

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>


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