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.

Implementing Pointer Lock

Home Forums Programming Implementing Pointer Lock

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42432
    shantiscript
    Customer

    Hi all,
    i am trying to implement pointerlock to move a first person camera based on this example:

    https://github.com/Soft8Soft/verge3d-code-examples/blob/master/misc_controls_pointerlock.html

    I got it to work based on this post

    How to use PointerLock correctly for a first-person camera

    using setObjectTransform to move the camera but it doesn’t work well enough as there is no smoothing applied to the camera motion.

    But trying to use the pointer lock example the camera just shakes but doesn’t move.

    Is there a working example somewhere that integrates it into verge3D using the default verge3d setup (not the bar bones setup from scratch like in the github example).

    Or is there another way to do this thats already implemented that i am maybe not aware of?

    Regards
    Sebastian

    #47831

    Hi,

    Sorry for the late answer, pointerlock for first-person cameras is now supported in the latest verge3d 3.9 release: https://www.soft8soft.com/verge3d-3-9-for-blender-released/

    Now it can be enabled in the camera settings in Blender, Max or Maya. Also, it can be controlled via API:

    
    app.controls.enablePointerLock = true;
    

    Co-founder and lead developer at Soft8Soft.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.