MASON-INTEREST-L Archives

September 2009

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Wed, 2 Sep 2009 10:20:15 +0200
MIME-version:
1.0
Reply-To:
Content-type:
text/plain; charset=ISO-8859-1; format=flowed
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Content-transfer-encoding:
7bit
Comments:
To: MASON Multiagent Simulation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (18 lines)
Joerg Hoehne wrote:

> I'm trying to change the color of an SpherePortrayal3D object during runtime. I've checked my 
> code and I'm positive the color of the object will be changed but not visualized accordingly.
> 
> I've got the impression the color of a XXXPortrayal3D object can't be changed after the first 
> construction (or display) of the 3D scene by j3d. Before the first construction/display I was able to 
> change the color with the same code snipped found below.
> Here is the code snippet anyway ('this' references to a subclassed SpherePortrayal3D object):
> 
> this.appearance = SpherePortrayal3D.appearanceForColor(color);

That'd be about right.  Or you can make up your own Java3D Appearance.

It'll take me a little while to look into it.

Sean

ATOM RSS1 RSS2