> Hi, > > I am actually changing the Color of the Appearance Material of the > Shape3D containing the LineArray. How do i reset the view to the same > view after picking. The Picking process is transfered to my update( ) > method wherein i am changing the color. >
Transform3D view = new Transfom3D(); ViewingPlatform platform = universe.getViewingPlatform(); platform.getViewPlatformTransform().getTransform(view); platform.getViewPlatformTransform().setTransform(view); > Also, how is it that the color change gets reflected when i zoom the > window? When you change the zoom, you update the view, so the scene is redrawn (and your changes take effect) Note: I'm only guessing this might be your problem, it may be completly wrong, but it might be worth trying to check. > > Thanks, > Raghav > Kev > Kevin Glass wrote: > >>Is your scene actually being refreshed after the pick? I'm not sure >> changing the color of an entity will force a refresh? >> >>Try resetting your view to the same view directly after your pick. This >> should force a refresh. >> >>Kev >> >> >> >>>Hi, >>> >>>I have an application wherein i draw a set of lines (LineArray) in >>> Green color initially. Further, when i pick this line and change its >>> color to Red, it doesnt get displayed in Red. Only when i zoom the >>> window, the color change can be seen. I am getting this problem after >>> switching from JRE 1.2.2 / J3D 1.1.3 to JRE 1.4.1 / J3D 1.3. >>> >>>Has this anything to do with the Back / Front buffers / Clipping? >>> >>>Thanks, >>>Raghav >>> >>>=========================================================================== >>> 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". >>> >>> >> >> >>-- >>Jose UML - http://www.newdawnsoftware.com/jose >>Pondering RPG - http://pondering.newdawnsoftware.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". -- Jose UML - http://www.newdawnsoftware.com/jose Pondering RPG - http://pondering.newdawnsoftware.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".
