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>
|