Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 67769

Three.js is a JavaScript 3D Library which makes use of WebGL

1 vote

Position object in FOV in threejs

You need the camera's properties for the following formula, mainly the angles of the camera, the position of the camera, vertical FOV, the aspect ratio (width / height), the near and the far clipping …
Bálint's user avatar
  • 15k
0 votes

Center Perspective Camera on Coordinates

You can just use camera.lookAt(Vector3): perspectiveCamera.lookAt(coordinates);
Bálint's user avatar
  • 15k
1 vote

How would I process accelerometer data to use it for camera rotation?

You don't need to use the accelerometer, there's already a way to get the device's orientation with the deviceorientation event: addEventListener("deviceorientation", function(e) { // This functi …
Bálint's user avatar
  • 15k
2 votes
Accepted

How to orient a layer to connect 2 points AND facing the camera

Take the vector pointing from the first point to the second and also the vector from the first point to the camera position, take their cross product. This creates a vector perpendicular to the other …
Bálint's user avatar
  • 15k