[JAVA3D] simple view rotation

2002-09-06 Thread Andrew Gartland-Jones
I am new to Java 3D and have a simple problem to solve - that I can't! All I'm trying to do is change the view position around the origin by clicking buttons, so I change from the default (+ve Z) front view, to the side, back, top and bottom views. I can transform the view using the Transform3D

[JAVA3D] books

2002-09-06 Thread Robert Stones
I am new Java 3D and I am thinking of purchasing the book: Java 3D Programming by Daniel Selman Anyone used this book and are there any better books to purchase. begin:vcard n:Stones;Robert tel;work:+44 (0)1904 462675 x-mozilla-html:FALSE org:Central Science Laboratory version:2.1 email;interne

[JAVA3D] selecting objects within mouse windows

2002-09-06 Thread A. Murat Tanyer
Hi all; I want to select the Java3D objects by opening a window by mouse. Is this possible? I don't want to select objects one by one. Can anyone give me a hint or an example code? Thanks Ali === To unsubscribe, send email

Re: [JAVA3D] selecting objects within mouse windows

2002-09-06 Thread Anirban Bhadore
Hi Ali, What do you mean by selecting the Java3d objects? if you mean to highlight/rotate/?.. the java3d objects in your scene, you can do it programatically by traversing the Scene Graph for your type of objects( you can categorise the Java3d shapes if you need by extending the Shape3D class an

Re: [JAVA3D] simple view rotation

2002-09-06 Thread Jack Gundrum
Try this public void setViewpoint(int showAllAxis) { Transform3D viewTrans = new Transform3D(); Point3d eyePos = new Point3d(center); Vector3d up = new Vector3d(); switch( showAllAxis ) { case 0 :

[JAVA3D] PickTranslateBehavior

2002-09-06 Thread Jason Cheatham
I'm using the PickTranslateBehavior class to move vrml objects in my scene. I've got a floor/ceiling/walls vrml file and a table vrml file, and things on the table. I have set the capability for only the objects on the table to allow picking : setCapability( TransformGroup.ENABLE_PICK_REPORTI

Re: [JAVA3D] Decal + Alpha blending problem

2002-09-06 Thread Justin Couch
David Yazel wrote: > Decal groups seme to have an artifact that I can't seem to get around. If I > am alpha blending between terrain layers java3d is still rendering the the > alpha blended layers in the transparency pass at the end of the rendering > cycle, even if these layers are in a decal g

Re: [JAVA3D] books

2002-09-06 Thread Jonathan Leong
"Robert Stones" <[EMAIL PROTECTED]> There is an online version of this book. http://www.manning.com/selman/onlinebook/ Jonathan Leong - Original Message - From: "Robert Stones" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 2:37 AM Subject: [JAVA3D] books

Re: [JAVA3D] PickTranslateBehavior

2002-09-06 Thread Jason Cheatham
I figured out the problem thanks to Justin Couch's article at http://www.j3d.org/tutorials/raw_j3d/chapter6/picking.html I wasn't calling the the setPickable(false) method of the Node class for the table and ceiling/walls/floor. I'm assuming that whenever I clicked the mouse, either the table

[JAVA3D] NullPointerException in RenderBin.collectDirtyTRInfo ??

2002-09-06 Thread Nikolai V. Chr.
I just got this from Java3D 1.3 and Java 1.4.0: java.lang.NullPointerException at javax.media.j3d.RenderBin.collectDirtyTRInfo(RenderBin.java:6298) at javax.media.j3d.RenderBin.updateObject(RenderBin.java:845) at javax.media.j3d.MasterControl.updateMirrorObjects(MasterCont

Re: [JAVA3D] books

2002-09-06 Thread Jason Taylor
As pointed out there is a free online version of this book... >From the 3-4 J3D books I own, the ones I've browsed (on the rare occations of finding >one in a shop :) and those I've seen extracts of on the web I have to say that >Daniel's is certainly one of the best. I've used the online versi

Re: [JAVA3D] NullPointerException in RenderBin.collectDirtyTRInfo ??

2002-09-06 Thread Justin Couch
Nikolai V. Chr. wrote: > java.lang.NullPointerException >at javax.media.j3d.RenderBin.collectDirtyTRInfo(RenderBin.java:6298) > I have no idea why it came, the program was just rendering. Anybody know > something about it? Can't help you much other than to say we see it too. In particu

Re: [JAVA3D] Loading animation data by using the Xj3d vrml loader

2002-09-06 Thread Justin Couch
¿À½Â¿ì(Sengwoo Oh) wrote: > There were many many question about loading animation data from vrml > file. i want to load simple motion data( position and rotation key data) > by using Xj3d loader. [snip] > I can get behavior node by using Scene.getBehaviorNodes(), however, I > can't know how to

[JAVA3D] Questions about status of j3d.org, j3d and more...

2002-09-06 Thread Daniele Dellafiore
Hi. What is the status of j3d.org code? The version 0.6 is dated february 2002. What improvements, if any, have been done to the code since that date? Is actual code enough stable to try to use it? Second question. I have understood that the development of J3D 1.4 will have been a little differ

Re: [JAVA3D] Questions about status of j3d.org, j3d and more...

2002-09-06 Thread Justin Couch
Daniele Dellafiore wrote: > What is the status of j3d.org code? The version 0.6 is dated february > 2002. What improvements, if any, have been done to the code since that > date? Is actual code enough stable to try to use it? As stable as any beta code can be :) Seriously though, almost all of t

Re: [JAVA3D] Out of memory when closing windows

2002-09-06 Thread Kelvin Chung
Hi Carsten, Actually the window just hide when close so removeNotify() didn't get through Java3D to cleanup the canvas. A better fix is to add ef.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); (default is HIDE_ON_CLOSE) instead of my previous suggestion when only cleanup when A

Re: [JAVA3D] NullPointerException in RenderBin.collectDirtyTRInfo ??

2002-09-06 Thread Kelvin Chung
Hi Nikolai, It is a bug in Java3D, please send us a test program to invesitgate. Thanks. - Kelvin - Java 3D Team Sun Microsystems Inc. Nikolai V. Chr. wrote: > I just got this from Java3D 1.3 and Java 1.4.0: > > java.lang.NullPointerException >at javax.media.j3d.Rende

[JAVA3D] curved ray intersection problem

2002-09-06 Thread James Zhang
Looking for a solution to a general computational geometry problem. I have a curved ray (2D or 3D) and some sample points along the ray. I also have a (2D or 3D) regular grid with equal spacing in x, y and z direction. I want to compute the intersection points between the ray and the grid. That i

[JAVA3D] Transformgroups, and mouse behaviors

2002-09-06 Thread Scholl, Ed
A couple questions I was hoping you all could help me with: I'm attempting to add different objects dynamically to a scene. 1) Within my class, I can create a TransformGroup, and add a shape3D to it; however, outside that class, I have a getTransformGroup method that returns said TransformGroup

Re: [JAVA3D] Xj3D Dev Snapshot Released

2002-09-06 Thread Justin Couch
Chia-Wei Hsu wrote: > I downloaded snapshot and successfully recompiled > loader.java example from examples/loader directory. Ok, first problem is that you should not be using that file anymore :) I thought I'd deleted it when I rewrote it. Can you try again with LoaderDemo.java. There are two

Re: [JAVA3D] Xj3D Dev Snapshot Released

2002-09-06 Thread Chia-Wei Hsu
Hi Justin, Both loader.java and LoaderDemo.java have the same behavior in my machine. They can not load Hanim files. It is OK to load non-Hanim files from both exapmles. However, when the obj (ex. BoxConeSphere.wrl from web3d exapmles) is rotated by dragging left mouse button, it outputs this mes

Re: [JAVA3D] Transformgroups, and mouse behaviors

2002-09-06 Thread John Wright
Ed, Yes, the only thing you can add while your scene is "live" is a BranchGroup. - John Wright Starfire Research "Scholl, Ed" wrote: > > A couple questions I was hoping you all could help me with: > > I'm attempting to add different objects dynamically to a scene. > > 1) Within my class, I can

Re: [JAVA3D] Xj3D Dev Snapshot Released

2002-09-06 Thread Justin Couch
Chia-Wei Hsu wrote: > However, when the obj (ex. BoxConeSphere.wrl from > web3d exapmles) is rotated by dragging left mouse > button, it outputs this message: > > Exception occurred during Behavior execution: I which case you certainly don't have the latest dev release code being executed. Thi

Re: [JAVA3D] Xj3D Dev Snapshot Released

2002-09-06 Thread Matthew T. Beitler
Justin Couch <[EMAIL PROTECTED]> wrote: > > There are two bugs I've just found which mean anyone using the > Loader will currently crash. They're in CVS now and another dev > release will be made during next week. We've just had a bunch > more stuff put in for the mobile renderer this afternoon a