Recommended format to export 3D models for WebGL from a Java web app

时光毁灭记忆、已成空白 提交于 2019-12-13 07:02:04

问题


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:


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.



来源:https://stackoverflow.com/questions/12040296/recommended-format-to-export-3d-models-for-webgl-from-a-java-web-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!