Recommended format to export 3D models for WebGL f

2019-08-23 01:57发布

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.

1条回答
何必那么认真
2楼-- · 2019-08-23 02:43

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.

查看更多
登录 后发表回答