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.

MapControls for Verge3D

Home Forums Programming MapControls for Verge3D

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #72059
    jakob
    Customer

    Hello,
    I have a project that includes a 3D model of a real estate project. At the moment I am using Orbit-control. Unfortunately, it does not work perfectly because the Z-axis is not locked.
    I did some research on the internet and came across the “MapControls.js” from three.js. This controller would be perfect for my situation.
    Code: https://threejs.org/docs/#examples/en/controls/MapControls
    Example: https://threejs.org/examples/misc_controls_map.html

    Now my question is whether I can bring the same controller together in Verge3D, or whether I can use this code somehow?

    Thanks for your help!
    Jacob

    • This topic was modified 8 months, 2 weeks ago by jakob.
    #72061
    xeon
    Customer

    Within your 3D app….under teh Verge3D settings for the camera there are Target Object/Point controls when using a orbit camera. You have the ability to set the Vertical & Horizontal limits Rotation limits to give you full control to prevent the z-axis rotation or lock your camera to a specific angle.

    You can also do this in puzzles or in code.

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

    #72062
    jakob
    Customer

    Hello xeon,
    thank you for your quick reply.
    However, I am specifically concerned with the “panning” and not the rotation. I want the panning to happen only on the horizontal plane (x-axis y-axis) and not also in the z-axis. Just like in the example in my first post.
    I haven’t found anything about this in the settings.
    Do you have any ideas in this regard?
    Thank you!

    #72063
    kdv
    Participant

    Here you can find a working solution.
    https://www.soft8soft.com/ru/%D1%84%D0%BE%D1%80%D1%83%D0%BC%D1%8B/%D1%82%D0%BE%D0%BF%D0%B8%D0%BA/%d0%b8%d0%b7%d0%bc%d0%b5%d0%bd%d0%b8%d1%82%d1%8c-%d0%ba%d0%be%d0%bd%d1%82%d1%80%d0%be%d0%bb%d0%bb%d0%b5%d1%80/page/4/#post-19320

    Puzzles and JS coding. 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 the meaning at all.

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