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:09:02 -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]>

On Dec 13, 2005, at 12:50 PM, Joseph J. Strout wrote:

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

tm.VertexColors.AddRGBToAll 255, 255, 255

the same as:

tm.VertexColors.Item(0) = &cFF0000
tm.VertexColors.Item(1) = &c00FF00
tm.VertexColors.Item(2) = &c0000FF
?

No. The first adds solid white to all vertices; the second sets vertex 0 to red, vertex 1 to green, and vertex 2 to blue. Not the same thing at all.

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