Giter Site home page Giter Site logo

add fly ability in viewer mode about 3dstreet HOT 4 CLOSED

kfarr avatar kfarr commented on August 20, 2024
add fly ability in viewer mode

from 3dstreet.

Comments (4)

vincentfretin avatar vincentfretin commented on August 20, 2024

movement-controls="fly:true"

Oh I see you're still using wasd-controls actually on camera rig, that's probably why I see weird rotation of camera in viewer mode, because look-controls is on the rig and not the camera. wasd-controls and look-controls are meant to be on the camera, not the rig, but then it conflicts with cursor-teleport that moves the rig and not the camera. That's why you need to switch to movement-controls on rig and look-controls on camera, and remove wasd-controls usage.

from 3dstreet.

kfarr avatar kfarr commented on August 20, 2024

@vincentfretin i was trying to have one camera rig (aka "Viewer") that is used in all cases for vr, mobile ar, desktop which motivated this structure for having a camera rig instead of something simpler. for in vr teleport and cursor teleport a rig was needed.

discussion on similar topics from 2019:
aframevr/aframe#3394 (comment)

That's why you need to switch to movement-controls on rig and look-controls on camera, and remove wasd-controls usage.

So the plan would be:

from 3dstreet.

kfarr avatar kfarr commented on August 20, 2024

ok here's a PR for this. it seems to work exactly the same, including that the fly option does not work.
#749

from 3dstreet.

vincentfretin avatar vincentfretin commented on August 20, 2024

I fixed the issue in your PR.

from 3dstreet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.