Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

use .makeFrustum in THREE.WebAR.resizeVRSeeThroughCamera #17

Open
jeromeetienne opened this issue Jul 29, 2017 · 1 comment
Open

use .makeFrustum in THREE.WebAR.resizeVRSeeThroughCamera #17

jeromeetienne opened this issue Jul 29, 2017 · 1 comment

Comments

@jeromeetienne
Copy link

jeromeetienne commented Jul 29, 2017

this function is obsolete and trigger a console.warn() from three.js.

THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead.

in THREE.WebAR.js, in THREE.WebAR.resizeVRSeeThroughCamera, change this code to remove the warning

 // old code - disabled because triggering warning
 // camera.projectionMatrix.makeFrustum(left, right, bottom, top, camera.near, camera.far);

 camera.projectionMatrix.makePerspective(left, right, top, bottom, camera.near, camera.far);
@jeromeetienne
Copy link
Author

i should do a pull request when time allow

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

No branches or pull requests

1 participant