Question regarding mouse pointer

5 replies [Last post]
Offline
Joined: 01/20/2013

 Hi all,
I've been builting a 3D Ant simulator for a school project, this framewok for building 3d scene is the best i've found. But i have a question regarding mouse pointer.
I've placed the canvas in a JFrame on center and a set of button on the south of the frame.
But when i clicked on the canvas to navigate in the 3d view, the pointer seems "blocked" in the canvas. Impossible to click on the buttons on the south of the frame.

Someones knows how deteach the pointer of the 3d scene ?

Thanks in advance and my appologies for my english !
Regards. 

Offline
Joined: 12/13/2010
Are you talking about the

Are you talking about the mouse pointer being captured by the 3d window?  If it is, you can call env.setMouseGrab(false) to prevent the mouse from being captured.

Offline
Joined: 01/20/2013
 Hi, It's exactly that i need

 Hi, It's exactly that i need ! Thanks for answer.
Do you know if it's possible to set differents texture on part of a heightmap ?
For example i generate a 8*8 heightmap with texture A, when a specific action is done i need to update a part of the map with an other texture.

Thanks in advance.

Offline
Joined: 12/13/2010
The heightmap texture feature

The heightmap texture feature is still being worked on at the moment.  For now, maybe you can simply place an object over the heightmap?

Offline
Joined: 01/20/2013
 Ok, but whar is the way to

 Ok, but whar is the way to add j3d's Shape3D on the environment ? I try to add some shapes directly on the environment or with a branchgroup but in this way the 3d scene doesn't load correctly.
How shape 3d can be add to the environment ?  

Offline
Joined: 12/13/2010
Are you talking about the

Are you talking about the Shape3D class from Java3D API?  jME doesn't work with the Java3D so you cannot use the Shape3D class directly.  What kind of shapes are you trying to load?  If it is a simple quad, you can try setting the model field to "box".  This will give you a basic square which you can rotate and scale.  If you need a more complex shape, you'll need to create it in blender or something like that.