You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently it's not really possible to set an orthogonal projection.
In camera.js in the function setModelBounds(bounds), the bounds array/vector ist cloned using vec3.clone().
Since bounds has six entries (minX, minY, minZ, maxX, maxY, maxZ) we lose some information and end up with three entries.
This results in an invalid projection matrix and the model can't be rendered.
setModelBounds(bounds) { // <-- takes an array with six entries
this._modelBounds = [];
this.perspective.setModelBounds(vec3.clone(bounds)); // <-- creates an array with three entries
this.orthographic.setModelBounds(vec3.clone(bounds));
Thanks
The text was updated successfully, but these errors were encountered:
muren400
changed the title
Nothing is rendered using orthogonal perspective
Nothing is rendered using orthogonal projection
Mar 31, 2021
Hi,
currently it's not really possible to set an orthogonal projection.
In camera.js in the function setModelBounds(bounds), the bounds array/vector ist cloned using vec3.clone().
Since bounds has six entries (minX, minY, minZ, maxX, maxY, maxZ) we lose some information and end up with three entries.
This results in an invalid projection matrix and the model can't be rendered.
Thanks
The text was updated successfully, but these errors were encountered: