I want to get the output (ie what is displayed on the screen) as an array of colors.
I tried googling 'three.js screen output as array' but couldnt find what I was looking for. Any advice or pointers in the right direction would be appreciated.
I want to get the output (ie what is displayed on the screen) as an array of colors.
I tried googling 'three.js screen output as array' but couldnt find what I was looking for. Any advice or pointers in the right direction would be appreciated.
2pha's comment above solved the issue!
If using the webgl renderer, convert the canvas into an image, draw the image onto a new canvas (context2d), then read the pixels from the canvas. Search google for each of those steps and you should have your answer.