sceneview-android icon indicating copy to clipboard operation
sceneview-android copied to clipboard

Move CameraNode to Kotlin

Open FernandoScanavino opened this issue 3 years ago • 1 comments

(from Thomas Gorisse at discord #help channel)

If you want to experiment kotlin-math, there are still some parts of the code using the old Vector3, Sceneform Quaternion,.. to move to kotlin-math A good start could be to move the CameraNode to Kotlin Everything is natural within kotlin-math thanks to Kotlin operator functions E.g inside CameraNode:

Matrix m = new Matrix();
Matrix.multiply(projectionMatrix, getViewMatrix(), m);
Matrix.invert(m, m);

Should become this: val matrix = inverse(projectionMatrix * viewMatrix) I really suspect that some AR camera stream flickering and maybe the ones that you saw comes from some wrong old CameraNode calculations

FernandoScanavino avatar Aug 18 '22 22:08 FernandoScanavino

Will work in https://github.com/fernando-scanavino/sceneview-android-fork/tree/issue-135

FernandoScanavino avatar Aug 18 '22 22:08 FernandoScanavino

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 17 '22 05:11 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

github-actions[bot] avatar Nov 25 '22 05:11 github-actions[bot]