I am trying to create a node.js endpoint which creates a PNG out of a scene. When running this in a browser all is well but using the same code with headless-gl creates a totally transparent image. What am I missing?
Also, I couldn’t figure out how to make a code box, that’s why I used images instead. How does one make a code box in the topic?
Better to share you code as a GitHub repository. In this way, it’s easier for the community to download and test the project.
I’ve tried to start your app via
npm i && npm start but get this runtime error:
TypeError: THREE.Scene is not a constructor
Do I need a special
node.js version for your project? I’m currently using
Hmm, that’s weird. I run version 14.15.1