I don't understand why do you want to check the mouse position if the mouse
is not moving ??? It's obvious that the position is the last one where a
mouse move event was fired. If you really need to know the mouse position at
every moment, then just use the mouse move listener to store the position
Wonder if I'm that statistical anomaly ! I was probably the first to give
1.5 a shot because I was deperately hoping that a memory leak that I was
battling at the time it was released would simply go away.
My apps. have no 1.5 specific code, and they seem to work just fine with 1.5
except probably
Hi,
I’m in a hurry trying
to complete a demo app.
JSDT will be used to
distribute data to different hosts running the same J3D app. Example of data
can be position data for some object.
A Behavior has been created,
it will be called periodically.
That Behavior should use a
J
Thank you for replying.
I need to check the mouse position constantly even it's not moving, for
example, if I move my mouse to (25, 50) and stop moving, when the
mouseMoved() method detected that it's inside it will keep doing
something until this mouse is moving away from this area. Someone
sugge
> Someone
> suggests me to use a thread to check constantly inside the method
Me. ;)
> Loop
> Check mouse position
> IF mouse position is in the area, do something
> ELSE do nothing
> End Loop
Sure, you can do exactly that in Java; just the way you mentioned
it.
Being afraid of threads is pretty stupid. Threads are what makes things to
happen smooth and to promptly react regardless of what else the computer is
doing. If you're not using threads, then *everything* in your program will
happen sequentialy, i.e. you won't be able to do 2 things simultaneous.
B
Thy the code below. You will see that setting a translation makes the
rotation values wrong. Translation values are not even present in a
Matrix3d, so how can this be??
Try comment the "t.set(new Vector3d(10,0,10));" line out, and observe
the different result.
import javax.media.j3d.*;
import javax
Thanks to all your reply, I will change my design to using thread then,
cuz it sounds much easier for me to program in threads this way. :)
Andy
Florin Herinean wrote:
Being afraid of threads is pretty stupid. Threads are what makes things to
happen smooth and to promptly react regardless
Actually I've tested your code and the culprit is setScale, not
set(). That's normal, since what you retrieve is the combined
rotation-scale matrix from the transform3d.
Cheers,
Florin
-Original Message-
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] Behalf Of Nikolai V.
Florin Herinean wrote:
Actually I've tested your code and the culprit is setScale, not
set(). That's normal, since what you retrieve is the combined
rotation-scale matrix from the transform3d.
It is? Well if I comment out setScale it works fine, but if I comment
out setTranslation it also works fi
Thank you for your answer Lars,
Thank you for the hint that my vectors can be parallel.
The direction of my normal vector is not so important.
Basically it schould not be the (0,0,0) Vector, but any other normal vector.
The most important thing of my arrow is the direction, which is defined by
the
It turns out this is an LD_LIBRARY_PATH issue. There
is a library that does not exist in 1.4 that is tucked
away off the beaten path in 1.5 beta. Once I added
that directory to the environment variable
LD_LIBRARY_PATH, presto it works.
For anyone interested, the library in question
relative to the
This is a known bug in 1.5beta, and it is fixed in beta2.
BugId : 4976297 - JAWT apps on Linux now have to set LD_LIBRARY_PATH to
point to libmawt.so
- Chien Yang
Java 3D, Sun Microsystems Inc.
John Washbourne wrote:
It turns out this is an LD_LIBRARY_PATH issue. There
is a library that does not
Hi I am trying to rotate A Cylinder(plate) over a box (base)
I use RotationInterpolator
I made a translation of the cylinder to the top of the box
the Interpolator target is the cylinder
but when I add the rotator to the base the cynlinder will loose its translation and is drawn to the center
Ghislain DZOU wrote:
Hi I am trying to rotate A Cylinder(plate) over a box (base)
How can I come over this problem
Very simple, all transformgroup interpolators require exclusive access
to the tranformgroup they modify, do not modify by hand any
transformgroup an interpolator is modifying.
So if y
Thanks a lot I get good result now !
- Original Message -
From: "Nikolai V. Chr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 28, 2004 9:52 PM
Subject: Re: [JAVA3D] RotationInterpolator affect translation
> Ghislain DZOU wrote:
>
> > Hi I am trying to rotate A Cylin
Hi, anyone can provide me the code for making a Java3D application full
screen enabled without any border decorations? Because my code
generates errors saying that this window is displayable which is not
able to take away the decorations:
GraphicsEnvironment env = GraphicsEnvironment.getLocalGraph
Hi,
I think the best way to do this is create a separate fullscreen frame,
then remove the Canvas3D from its original frame and add it to the new
fullscreen frame. You can then swap it to the old frame when returning
from fullscreen mode. This works seemlessly for me.
This is because you can only
But what do you mean by invisible frame? is it the Window class in the API?
Andy
David Grace wrote:
Hi,
I think the best way to do this is create a separate fullscreen frame,
then remove the Canvas3D from its original frame and add it to the new
fullscreen frame. You can then swap it to the old fr
I have a question of stopping a thread. I studied the API that I know
that the interrupt will stop a thread. But here is my code:
public void mouseMoved(MouseEvent e){
if(e.getX() <= 1 || e.getX() >= boundary.width - 1 ||
e.getY() <= 1 || e.getY() >= boundary.height - 1){
Hi,
I don't mean an invisible frame. You just create a new Frame or JFrame
to use as a fullscreen frame.
ie.
JFrame frame = new JFrame();
frame.setUndecorated(true);
//Add code here to remove the Canvas3D from the old windowed frame
//oldContainer.remove(canvas3D);
//Add code here to add the C
21 matches
Mail list logo