I have a web application that manipulates a 3D model on the server and allows the user to view the model. Using Java is a hard requirement for the web application, but the way the WebGL viewer interfaces with the application is still to be implemented.
What is the recommended format/method to export 3D models from Java to something easily usable in WebGL? You can assume I use the Java 3D library on the server side and Three.js on the client side.
My preferred pipeline is export to JSON format and then convert to Float32Array in my loader. Collada will also work but because Collada allows things like a mesh to be described in many different ways Collada importers are usually finicky.