We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Is it possible to move camera with mouse cursor?

Home Forums General Questions Is it possible to move camera with mouse cursor?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #56212
    mashud008
    Customer

    Is it possible to move the 3D space with the mouse cursor? That is, when the mouse cursor is moved to the right, the camera will move to the right and when the mouse cursor is moved to the left, it will move to the left. As seen in three.js web interactive sites

    #56221
    kdv
    Participant

    It’s possible and it’s named “panning”. But the camera moves in the opposite direction so it looks like the object is moving on the screen.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #56367
    mashud008
    Customer

    Watch this video to see the 3D objects inside move when you move the mouse. That is, the 3D object is moving when the mouse is over. How to make it

    #56409
    xeon
    Customer

    Yes…you can. Here is an example: https://webgl.r66dapps.com/escapev1/. Go to the menu and switch the camera mode. You can see it in action.

    the following is java script code needed
    app.controls.rotateSpeed=-1;
    app.controls.rotateSpeedTouch= -1;

    Change from -1 to 1 depending on the direction needed.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #56463
    xeon
    Customer
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.