I think that you can use a transparent appearence in
the case you want to hide object and make it static(or
global) to save it on all objects u want to hide.
The problem you may get is to regain the old
appearence so u can inherit shape3d and add another
function called toggle appearence to use a static
transparent appearence instead of the one you use and
when you want to regain old appearance toggle it
again.

--- "Madeti, Henu S. (UMR-Student)" <[EMAIL PROTECTED]>
wrote:
> Hi all,
> Please ignore my previous message. I solved the
> problem.
> I am trying to hide shape3d objects at run-time. I
> plan to do this by getting the renderingattributes
> from its appearance and then setting rendering
> attributes to invisible. But it does not work. Help
> me
> Here is the code.
> //shape  and appearance already created
>
shape1.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
> shape1.setAppearance(a);
>
> Appearance a3 = shape1.getAppearance();
> RenderingAttributes r = a3.getRenderingAttributes();
> r.setVisible(false);
> shape1.setPickable(false);
>
> it gives me null when i try to set the rendering
> attributes to fasle.
> Any ideas why this is happening or alternative ideas
> how to hide objects except detaching objroot. it
> costs me lot of time if i detach.
>
> thank-u
> henu
>


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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