realbasic-games
[Top] [All Lists]

Re: Vertex Colors

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Vertex Colors
From: Joseph Nastasi <joe at pyramiddesign dot us>
Date: Tue, 13 Dec 2005 15:36:31 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <328800874cbf85936b626c9b2d927a39 at pyramiddesign dot us> <a0620070abfc4ba334e7e at [10 dot 0 dot 1 dot 4]> <b7863075141cbd28afc3ae4791b95116 at pyramiddesign dot us> <a06200714bfc4dd3782d0 at [10 dot 0 dot 1 dot 4]>

On Dec 13, 2005, at 3:19 PM, Joseph J. Strout wrote:

At 3:09 PM -0500 12/13/05, Joseph Nastasi wrote:

Duh... I knew that... :-)
When we say "adds" does that mean it increments the color values of each vertex or just sets them all to the color value?

It really does add the given value. If it were going to set them, it'd be called SetRGBToAll.

AHA! So, I can use:
tm.VertexColors.Item(0) = &cCC0000
tm.VertexColors.Item(1) = &cCC0000
tm.VertexColors.Item(2) = &cCC0000

to set the trimesh (it's just a simple triangle.) color to a not-so-bright red. Then use:

tm.VertexColors.AddRGBToAll -10, 0, 0

in a loop to gradually turn the color black, right?
Finally a _real_ particle generator...
--
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>