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
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
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
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
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
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
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
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
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
==
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
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
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
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
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
14 matches
Mail list logo