Questions tagged [pointofview]

7 questions
3
votes
3 answers

How to reset SceneKit pointOfView camera

I an new to SceneKit. Trying to figure out, how I can reset the pointOfView camera to it original zoom/position so it would cover all nodes in the scene?
Kashif
  • 4,642
  • 7
  • 44
  • 97
2
votes
1 answer

Getting Y rotation of ARKit pointOfView

I'm trying to get the real life angle of the point of view in ARKit scene (0 - 360 degrees). I'm using euler angles from SCNNode of pointOfView. print("\(pointOfView.eulerAngles.y.radiansToDegrees)") Problem is, that when looking north, I'm…
awolCZ
  • 31
  • 3
2
votes
0 answers

ARKit pointOfView / position / rotation / orientation camera constraint on earth in solar system

I'm working on updating an existing solar system with augmented reality. https://github.com/johndpope/solarSystem-1 As with most universe demos the system uses a heliocentric model, the sun is at (x:0,y:0,z:0) however I want to have the solar…
johndpope
  • 5,035
  • 2
  • 41
  • 43
1
vote
0 answers

Changing point of view in 3D plots in Matplotlib

I am trying to change the view of a 3D plot as if I'm standing at the red point looking in the direction of the green line. Setting the azimuth angle of the view to be equal to the slope takes care of the direction. However, zooming to the red point…
Jamal Harb
  • 11
  • 4
0
votes
1 answer

Fastify point-of-view local variables

I am switching from Express.js to Fastify. I need to do it quickly, so using only API is impossible yet. Haven't written React app. My problem is: I am using point-of-view and I don't know how to pass local variable to all requests. In express there…
Yakov Kemer
  • 373
  • 3
  • 17
0
votes
0 answers

Render page in custom HttpExceptionFilter

Does anybody can suggest solution, how to render page in custom HttpExceptionFilter in nest.js, when using Fastify and ejs. Below current HttpExceptionFilter: import { ExceptionFilter, Catch, ArgumentsHost, HttpException, HttpStatus } from…
user2443795
  • 144
  • 7
0
votes
1 answer

SceneKit and using a custom camera class

I am trying to create a custom Camera class to reuse across all levels in SceneKit. I have defined the cameraNode Set the sceneView to use the cameraNode pointOfView Define class: class GameCamera: SCNCamera { let cameraNodeHorizontal:…
michiel
  • 31
  • 3