A proper pointcloud renderer like the one in ARCore? #278
sarimmehdi
started this conversation in
Ideas
Replies: 1 comment 11 replies
-
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I understand that there are other more important features that take priority but I was hoping for a PointCloud renderer to be integrated into SceneForm.
Currently, I manually project the point cloud onto the image using the camera projection matrix for each new frame. Since there are many points for each frame, I perform the task of computing the projections of all the points on a separate non-UI thread and then draw the 2D points on a custom view that I have overlaid on top of ArSceneView.
I get the feeling that this process could probably be done faster? In ARCore they use OpenGL to do this, as described here.
Right now, I just do the whole thing in Java. I create arrays out of the camera intrinsics matrix and projection matrix. Then, I create a separate array that represents the result obtained by multiplying the two to get the projection matrix and then multiplying that with a 4 by n matrix of points to get their projection. Is there a way this whole process could be integrated into Sceneform? I know there is a Matrix class but I was actually thinking of going the C++ route to make the whole thing super fast (probably with the help of a third-party linear algebra library).
Beta Was this translation helpful? Give feedback.
All reactions