How to render three.js server-side?

Viewed 13165

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 with people with less-end computers (people can inject the code into console and have it render god knows what..)

I looked into using node.js but all documentation on that is vague and appears to be quite outdated..

Any help would be useful

Current local: http://pastebin.com/yv5Qamfz

2 Answers

Check out this blog post. Its from a few years ago, but trying to solve a similar issue. Apparently there isn't an off-the-shelf solution yet.

Perhaps you could render it client-side as you are currently doing, but inside a hidden div, and then render the canvas to an image and display the image to the user? See here for an example.

Related