How to render three.js server-side?

后端 未结 2 1275
轮回少年
轮回少年 2021-02-20 13:06

How can I render three.js server side? At the moment our website renders player avatars using three.js locally, however that issues security things as well as potential bugs wit

2条回答
  •  深忆病人
    2021-02-20 13:57

    There are several discussions about using three.js on node.js on the three.js GitHub page. Check for example:

    • Use Three.js functions in node.js
    • node.js server rendering with node-webgl and/or headless-gl

    There is also this question on stackoverflow which could be considered a duplicate of your question.

    This one is dealing with a project called node-three.js on GitHub. It will support rendering in three.js on node.js. Not sure if it does exactly what you want (I have no first hand experience with this library) but worth checking it out I guess.

提交回复
热议问题