Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

camera-bookmark import ignores FOV #98

Open
2 tasks
frederic-schwarz opened this issue Oct 31, 2017 · 0 comments
Open
2 tasks

camera-bookmark import ignores FOV #98

frederic-schwarz opened this issue Oct 31, 2017 · 0 comments
Labels

Comments

@frederic-schwarz
Copy link
Member

frederic-schwarz commented Oct 31, 2017

using io3d.scene.getAframeElements()
gives you tour-waypoints
but some data is missing:

  • fov ( camera Angle )
  • mode ( bird, floorplan, ... ) can be used later for visibilty things
  • index ( order of the menu + playback ) could be solved be rearranging on import
  {
   "type": "camera-bookmark",
   "children": [],
   "id": "48d6ca58-76af-48f1-940e-0d9361c2131e",
   "mode": "bird",
   "ry": 205.12141931698014,
   "rx": -53.84165060326978,
   "x": -5.186660575811318,
   "y": 0.5,
   "z": -0.7195652558501257,
   "distance": 10.687530728855858,
   "displayInUI": true,
   "activeLevelId": "cf754507-39e8-42bb-a899-f055e2d8983f",
   "visibleLevelIds": [
    "cf754507-39e8-42bb-a899-f055e2d8983f",
    "8a98a9d6-759a-4472-a1a5-84b326f7f72f"
   ],
   "hiddenLevelIds": [],
   "index": 0,
   "fov": 50
  }

current tour-waypoint entity

<a-entity tour-waypoint="Bedroom" io3d-uuid="4d6fec29-1467-40be-8f91-5435f0317072" position="-9.65 8 2.13" rotation="-59.15 594.75 0"></a-entity>

possible adaptation:

<a-entity tour-waypoint="name:Bedroom; fov:50; mode:bird" io3d-uuid="4d6fec29-1467-40be-8f91-5435f0317072" position="-9.65 8 2.13" rotation="-59.15 594.75 0"></a-entity>

this needs adaptation in

  • to-aframe-elements.js to properly import fov data
  • tour-component to animate fov

what do you think @AVGP ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant