Hey guys!
Thanks for the amazing work. Would love to share that I just integrated it into Nowhere.io!
Here is a link to a room where you can meet and chat around the splat - Welcome to NOWHERE
I have not had enough time to do a deep dive yet, but I noticed that the performance increases dramatically and it looks much better when you switch to a different camera in our product. You can test this out by clicking the camera icon on the bottom right toolbar and entering either selfie or drone mode.
I am not sure what causes this discrepancy here, but the main (less performant) camera is a UniversalCamera, the selfie camera is an ArcRotateCamera and the drone camera is a UniversalCamera.
I can do a deeper dive next week, but some differences I quickly spotted that we do to the less performant main camera vs the drone one (both universal) is that the main camera has these settings applied:
camera.fovMode = UniversalCamera.FOVMODE_VERTICAL_FIXED;
camera.fov = Angle.FromDegrees(Client.PLAYER_FOV).radians();
camera.minZ = 0.2;
camera.maxZ = 50000;
camera.inputs.removeByType('FreeCameraKeyboardMoveInput'); // Only allow free look
camera.inputs.removeByType('FreeCameraTouchInput'); // We have our custom one
camera.inputs.add(new TouchDeviceInput(camera));
camera.inputs.removeByType('FreeCameraGamepadInput');
Babylon.fixCursorDragOutWindow(camera);
Oh, and the main camera is a parent of the player mesh, while the selfie and drone cameras are children of the player mesh.
One thing that would be super nice to have would be the conversion of .ply to .splat so you can download right from luma and import into Babylon. I used this jsfiddle, Edit fiddle - JSFiddle - Code Playground, to do it, so it should be able to be handled locally by Babylon. Once converting with this tool I was able to load my own splats though.
The last thing to note was that the performance on my end was not as good as what is delivered on sites like luma or polycam, I am sure this will improve over time I just thought I would report my findings here.
Hopefully, this info helps you with development! Super excited about this, thanks again!! We will be doing a more complete implementation of splats in our platform at some point soon!!