Re: [JAVA3D] Removing object

2004-02-11 Thread Seatizen
Thank you, now it works:) The real problem in my case was that i didn't know that adding BG to TG is even possible (yup, there are still such persons in our world:). By the way - could you recommend me good Java3D books, for beginners but not only (mostly e-books, because i have "(always) hungry w

[JAVA3D] Removing object

2004-02-11 Thread Seatizen
Hello, I have a Box object in my scene: BG --> TG --> TG1 --> Box which i want to remove. I tried: TG1.removeChild(Box) and the result is RestrictedAccessException: live or compiled. What do i do wrong? How to avoid it? Thank you for any help. Greetings, [EMAIL PROTECTED] =

[JAVA3D] Textures

2004-02-08 Thread Seatizen
Hello. There is an example of creating shapes using TriangleFanArray class in the Java3D Sun Tutorial - YoyoApp.java: ... TriangleFanArray tfa; int N = 17; int totalN = 4*(N+1); Point3f coords[] = new Point3f[to

[JAVA3D] Picking and getAppearance()

2004-02-08 Thread Seatizen
Hello. I've already found solution of my picking problem, but there is another problem: I created Box object in first (public) class, set box.setCapability(Box.ENABLE_APPEARANCE_MODIFY) and then put it through creator to the second class. And the problem is: i can't get the Appearance object (in th

[JAVA3D] Picking

2004-02-07 Thread Seatizen
Hello. I don't know if this is right place to put my problem, but... I've got two Box objects on the screen. I click one of them (picking): ... sceneGraphPath = branchGroup.pickClosest(pickRay) ... How can i find out (using the sceneGraphPath object) which Box did i clicked? When i was using Colo