Parallax Projection #409
-
hey, i struggle to port the following example from babylonjs to cables. i patched all the parts of projViewFromRectangle but something seems totally wrong. https://playground.babylonjs.com/#3J0YVC#2 a few things i'm not sure of:
what is happening here in babylonjs: proj.multiplyToRef(tra, projDest); maybe someone is fit concerning babylonjs and knows the cables equivalents |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
more info |
Beta Was this translation helpful? Give feedback.
-
ok, maybe this is confusing me. the getProjectionMatrix op seems not to work, check the example, both getProjectionMatrix op output the same matrix although there are different things going in |
Beta Was this translation helpful? Give feedback.
-
next try, no luck. itried to port the babylonjs code, still something wrong |
Beta Was this translation helpful? Give feedback.
-
https://cables.gl/p/vigo1i |
Beta Was this translation helpful? Give feedback.
https://cables.gl/p/vigo1i
projection matrix translation was simply done by manipulating index 8 and 9 of the matrix with converted eyeX and eyeY
its working