realbasic-nug
[Top] [All Lists]

Re: Changing 3DMF on the fly

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Changing 3DMF on the fly
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Wed, 30 Nov 2005 17:05:55 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <E0B972DC-18EA-42C1-A0BD-214A6BE3A924 at tpg dot com dot au>
At 10:07 AM +1100 12/1/05, James Mullins wrote:

Is it possible to change the colour of a 3D sphere I have loaded into a 3Dspace after it has been loaded? I know how to do it at initialization (reading and parsing the string), but I don't want to have to reload each object that I want to change colour (could be hundreds of sphere's.

If it's really a sphere, then there's no other way to do it short of using Declares.

But if it's a sphere-shaped TriMesh, then you can (in RB2005) pull the TriMesh out of it, and muck with its Material (including color) dynamically.

Best,
- Joe

--
Joe Strout                          REAL Software, Inc.

Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
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>