RenderingAttributes render;

//***** CREATING SHAPE *****

// when creating your shape, use an appearance with RenderingAttributes set
render = new RenderingAttributes();
Appearance app = new Appearance();
app.setRenderingAttributes(render);

// allow control the rendering attributes when live by setting the capability
render.setCapability(RenderingAttributes.ALLOW_VISIBLE_WRITE);

//***** CONTROLLING VISIBILITY *******

// to turn off
render.setVisible(false);

// to turn back on
render.setVisible(true);

Sorry, I don't have any complete samples but this should get you started.

Kev

Appalaraju.Kvrapati wrote:
759BC7ED1B0BD6118BC400B0D0E16A1FC662D0@BHILLS3NT002">
Hi Kevin,
Thanks for your quick response. can you send some sample code
using RenderingAttributes which is of great help to me?.

Thanks,
Raju


-----Original Message-----
From: Kevin Glass [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 05, 2002 3:34 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] detach() of Branchgroup


RenderingAttributes:

setVisible(false);



Appalaraju.Kvrapati wrote:

Hi Group,
When the scene is alive, How to hide a geometry of the
shape3d in a branch group?. I have tried detach() and removechild() methods
of a branchgroup. These methods are taking lot of time. Any alternative or
workaround ?.

Thanks,
Raju

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".


===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Reply via email to