本文介绍了借助node.js在服务器上运行three.js,将模型导出到json并通过ajax加载到最终用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个JavaScript应用,要求保护模型的绘图界面,以使其不公开.
I have a JavaScript app with a requirement to protect the drawing interface of the model so that it is not to public.
我想在服务器上使用three.js,将模型保存为JSON格式并交付给客户端.客户端上的Three.js将显示它.但是我不知道如何在服务器上实现它.
I want to use three.js on a server, save the model in JSON format and deliver it the client side. Three.js on the client will display it. But I don't know how to implement it on a server.
是否有运行3.js应用程序的Node.js示例?如果是这样,如何从Three.js将网格保存为JSON格式?
Are there any Node.js examples that run three.js apps? If so, how do I save a mesh into JSON format from three.js?
推荐答案
这篇关于借助node.js在服务器上运行three.js,将模型导出到json并通过ajax加载到最终用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!