I'm trying to achieve this: http://learningwebgl.com/blog/?p=1786 with Three.js. I have no idea where to start looking. Just passing the scene as a texture gives a type error.
Asked
Active
Viewed 3,620 times
3
-
1If you Google "three.js render to texture" one of the results that comes up is [this one](http://ryan-kahn.com/threejs/threejs/examples/webgl_rtt.html). You can take a look at the source how it's done. From what I gather (but have a look for yourself) you set up a second camera, specify a texture target and use that result to texture the objects. – Bart Nov 23 '11 at 10:32
-
Thank you! That did the trick :) Should have looked at the examples... – Tobias Artz Nov 30 '11 at 17:59
-
Good that that solves it. If you can, post what you have done as an answer and accept it. Then we have a clear question/answer pair here for future visitors. – Bart Nov 30 '11 at 18:06
1 Answers
3
I found the answer here: http://mrdoob.github.com/three.js/examples/webgl_rtt.html
Three.js might not have the best documentation but the examples almost cover every situation.

Tobias Artz
- 87
- 1
- 8