Re: [JAVA3D] Rotating One Vector Into Another (CORRECTION)

2001-07-08 Thread Kynn Jones
f(); p.cross(v, a); p.normalize(); return p; } Cheers, KJ On Sat, 7 Jul 2001 06:52:59 -0400, Kynn Jones <[EMAIL PROTECTED]> wrote: > Date:Fri, 6 Jul 2001 22:40:26 -0700 > From:Bob Dengle <[EMAIL PROTECTED]> > Subject: Rotating One Vector Into

Re: [JAVA3D] JAVA3D-INTEREST Digest - 5 Jul 2001 to 6 Jul 2001 (#2001-190)

2001-07-07 Thread Kynn Jones
Date:Fri, 6 Jul 2001 22:40:26 -0700 From:Bob Dengle <[EMAIL PROTECTED]> Subject: Rotating One Vector Into Another Hi I have two vector3ds. I want to rotate one so that it falls along the same line as the other. Does anyone have any suggestions on how to do this? I kn

[JAVA3D] Help! Appearance: no capability to get renderingAttributes

2001-07-02 Thread Kynn Jones
I'm rapidly going insane here. The latest is that I'm getting a javax.media.j3d.CapabilityNotSetException: Appearance: no capability to get renderingAttributes at javax.media.j3d.Appearance.getRenderingAttributes(Appearance.java:415) on an object for which I have explicitly set Renderi

Re: [JAVA3D] How to remove BG children from live TG?

2001-07-01 Thread Kynn Jones
Following up on my own post here: I just tried setting the ALLOW_DETACH capability for the branchgroup nodes to be removed, and I got a different error when removeChild() is invoked: javax.media.j3d.RestrictedAccessException: Group: only a BranchGroup node may be removed This is truly infuri

[JAVA3D] How to remove BG children from live TG?

2001-07-01 Thread Kynn Jones
I get a "CapabilityNotSetException: Group: no capability to detach BranchGroup" when I attempt removeChildren() on a live TransformGroup. I created this transform group like this: TransformGroup tg = new TransformGroup(); ... tg.setCapability(TransformGroup.ALLOW_CHILDREN_READ); tg.setCap

[JAVA3D] Scene graph visualization tools?

2001-06-27 Thread Kynn Jones
I'm looking for a tool to make a diagram of a scene graph as generated by my program. I need this for debugging purposes. Is there such a thing? If there's any choice on the matter, I'd prefer a no-frills but simple tool than a monster development environment. Thanks for your suggestions, KJ

Re: [JAVA3D] [Q] Mouse-rotation around fixed arbitrary axis

2001-06-26 Thread Kynn Jones
I think you have misunderstood me. I do not "want quaternions" (I am quite familiar with them in any case). What I want is code that does for fixed-axis rotations what MouseRotate does for rotations around a single point. (I think I can write such code myself, but I would prefer to use somethin

Re: [JAVA3D] [Q] Mouse-rotation around fixed arbitrary axis

2001-06-26 Thread Kynn Jones
t;[EMAIL PROTECTED]> Arbitrary axis or arbitrary point in space *and* a specified axis? Chris Kynn Jones wrote: > I need to map mouse-dragging motions to rotations around an arbitrary > axis (not necessarily through the origin). Does anybody know where I > can find c

[JAVA3D] [Q] Mouse-rotation around fixed arbitrary axis

2001-06-26 Thread Kynn Jones
I need to map mouse-dragging motions to rotations around an arbitrary axis (not necessarily through the origin). Does anybody know where I can find code (preferably some extension of MouseRotate or MouseBehavior) to do this? Thanks, KJ ==

Re: [JAVA3D] Changing the color of a Shape3D

2001-06-26 Thread Kynn Jones
Found the answer (in the Archive, as it turns out). Changing Box box = new Box(0.2f, 0.2f, 0.2f, app); box.setCapability(Primitive.ENABLE_APPEARANCE_MODIFY); to Box box = new Box(0.2f, 0.2f, 0.2f, Primitive.ENABLE_APPEARANCE_MODIFY, app); got

[JAVA3D] Changing the color of a Shape3D

2001-06-26 Thread Kynn Jones
Surely it cannot be so insanely difficult to do something this simple. I am trying to write code to change the color of a Shape3D object. The Shape3D object is created using this method: private Box makeBox(Color3f color) { Appearance app = new Appearance(); app.setCapability(Appearance

Re: [JAVA3D] Where is Canvas2D

2001-06-26 Thread Kynn Jones
On Tue, 26 Jun 2001 15:13:47 -0500, Will Holcomb <[EMAIL PROTECTED]> wrote: >Canvas2D is a class in the FourByFour example. (The same place as >PickMouseBehavior.) It ought to be in the saem directory. I found PickMouseBehavior after searching the archives. I don't have a directory to go to for

[JAVA3D] Where is Canvas2D

2001-06-26 Thread Kynn Jones
The documentation for PickMouseBehavior refers to the class PickDragBehavior as an example of how to extend PickMouseBehavior. I managed to find (after searching the archives!) code for PickDragBehavior, but this code has some problems. The first one is that in this code PickDragBehavior extend

[JAVA3D] Bug in getPixelLocationInImagePlate?

2001-06-26 Thread Kynn Jones
I think I have found a bug in the j3d library, probably in getPixelLocationInImagePlate. It appears that converting from pixel coordinates to image plate coordinates to virtual world coordinates produces dimensions that are 2x too big. The code below (two files) illustrates this bug. Run the pr