Replies: 3 comments 4 replies
-
I don't think you can do exactly that (as by definition, the camera is the current viewpoint) but you might be able to improve the effect by changing the camera's parameters. Or create a secondary camera in front of the main one, as a child of it (with a given Apologies if I've misunderstood what you're trying to do. |
Beta Was this translation helpful? Give feedback.
-
Ah, ok, I may have to leave that to others e.g. @kalwalt to answer that when they are able to. I am not au-fait with the marker side of AR.js, only the location-based side. |
Beta Was this translation helpful? Give feedback.
-
@kunal-rp i think modifying the camera require also modify the Artoolkit5 setup for the camera, If you are using marker or NFT this is done initially and not sure if it can be changed after, without restarting the whole app. The loadCamera function load a generic parameter file with the camera settings (near, far, distortion factors...) this is required to generate the projection Camera matrix used by the Threejs camera. In another words we create a camera aligned with the camera used by the Emscripten code. You can see this in ARjs Context: AR.js/three.js/src/threex/arjs-context.js Lines 329 to 346 in be7c908 |
Beta Was this translation helpful? Give feedback.
-
Is it possible to modify the perspective camera's position within the scene ?
For my use case, I would like to set the z position to the middle of the near and far. The issue I am running into is that the marker positions are too small for me to scale down certain text and mesh sizing/coordinates.
Moreover marker/nft position detection should updated as well since the coordinate scale has increased
Beta Was this translation helpful? Give feedback.
All reactions