Screen coordinates 3d coordinate conversion

I’m a programmer,This is the first week I contact 3d engine.
Some problems

For example, in jme3 what can be triggered by the mouse screen coordinates into 3d scene coordinates similar examples, the best third-person perspective, an example of using the mouse to move objects, Thank

Hey. There is an example of moving objects. :slight_smile:
http://code.google.com/p/jme-simple-examples/ - world editor.

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3

InputManager.getCursorPosition () 2d information on how to convert 3d information similar examples.Thank you very much :affe:

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3

Specifically the end of: https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_picking

…but really if you don’t go through the tutorials then you will be asking 100 questions to which the answers are easily found.

Thank you, but the tutorial method extends the functionality ray collision after the collision location information, but the light of the two parameters must be the Vector3f but inputManager.getCursorPosition () is not compatible with Vector2f, parameters, if I like the tutorial Ray Ray New Ray(cam. getLocation (), the cam.getDirection ()), so do the words, then the tone will be what my results So

That was an incomprehensible translation and the image link seems to be broken.

1 Like
@yy569778806 said: Thank you, but the tutorial method extends the functionality ray collision after the collision location information, but the light of the two parameters must be the Vector3f but inputManager.getCursorPosition () is not compatible with Vector2f, parameters, if I like the tutorial Ray Ray New Ray(cam. getLocation (), the cam.getDirection ()), so do the words, then the tone will be what my results So

You didn’t read far enough… I said it was at the bottom. Here is a screen cap from that EXACT SAME tutorial:

I think maybe video game development is too hard for you… especially if you don’t do the tutorials.

I’m very sorry, I was too careless, thank you, wish you a nice weekend