aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
654 stars 201 forks source link

Camera gizmo not updated when moving the camera #582

Open dmarcos opened 5 years ago

dmarcos commented 5 years ago

When moving the camera in the inspector the position coordinates change and the camera moves when going back to the scene. The gizmo remains in the original position when dragging.

Reported in SO: https://stackoverflow.com/questions/56045081/a-frame-version-8-to-version-9-unable-to-move-model-or-camera-from-within-inspec

tiagosomda commented 5 years ago

Hey @dmarcos,

I am just getting started with aframe and I ran into something like you are describing. It looks like you need to put the camera within a-entity tag and then you move that entity. Otherwise, you are moving the camera position and the VR headset is also setting that position.

There is more info in the camera component documentation:

https://aframe.io/docs/0.9.0/components/camera.html

A camera should usually be positioned at the average height of human eye level (1.6 meters). When used with controls that receive rotation or position (e.g. from a VR device) this position will be overridden. When moving or rotating the camera relative to the scene, use a camera rig. By doing so, the camera’s height offset can be updated by roomscale devices, while still allowing the tracked area to be moved independently around the scene.

RalfViellieber commented 4 years ago

no update on this issue? Animation of camera (rig) seems to be still problematic for inspector (v. 1.0.3). Why not at least a warning "camera movement not representable in inspector"?