Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ‹three-camera› element #3

Open
10 of 11 tasks
olange opened this issue Feb 20, 2019 · 0 comments
Open
10 of 11 tasks

Create ‹three-camera› element #3

olange opened this issue Feb 20, 2019 · 0 comments
Assignees

Comments

@olange
Copy link
Collaborator

olange commented Feb 20, 2019

Features

  • Perspective camera, with user defined and default options DONE 21.02
  • Orthographic camera with user defined and default options DONE 22.02
  • Register/deregister with parent ‹three-app› element DONE 21.02
  • Dispose used resources (THREE Camera, controllers) when disconnect DONE 21.02+27.02
  • Have parent ‹three-app› element define frustum aspect ratio (on init and resize) DONE 21.02
  • Specification of active camera on parent ‹three-app› element DONE 21.02
  • Active camera on parent ‹three-app› element defaults to first ‹three-camera› DONE 21.02
  • Define position and direction of camera DONE 22.02
  • Define view frustum of camera DONE 21.02
  • Define zoom of camera DONE 27.02
  • Handle dynamic addition and removal from DOM STAGING almost done, still a bug on setting frustum aspect ratio upon addition

Sample code

<three-app fps="10">
  <three-camera id="camera01" type="perspective" helper="true"></three-camera>
</three-app>

<three-app fps="10" camera="camera01">
  <three-camera id="camera01" type="perspective" helper="true"></three-camera>
  <three-camera id="camera02" type="perspective" helper="true"></three-camera>
</three-app>

Blocks

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

No branches or pull requests

1 participant