AVGP / three-software-renderer

Universal, in-memory Three.js renderer based on the original THREE.SoftwareRenderer
60 stars 16 forks source link

[Express] The example produce a black image. #26

Closed 0rangeFox closed 3 years ago

0rangeFox commented 3 years ago

Hey guys, I'm using NodeJS with the Express framework, and at the same time with this software and with dependencies with the versions that are requested in package.json of this software and even so without success, could someone give me a little help? Thanks. express-renderer.zip

0rangeFox commented 3 years ago

This error is similar to https://github.com/AVGP/three-software-renderer/issues/13, but using the Express framework.

0rangeFox commented 3 years ago

There, I was able to find a solution to do rendering through the Express framework for the endpoints giving an image in the final answer. I'll leave the file there for who wants to use this method.

NodeJS + Express + EJS Engine + Three.JS + Three.JS Software Renderer - Working version with latests versions of dependencies. express-renderer.zip