mrdoob/three.js — Issue #1100: Multiple scenes with its own composer
Author: OgmiosBe
Created: 2012-01-13 13:51:05+00:00
State: open

Hello,

I have started experimenting with THREE and it is very fun to play with. The examples provide the necessary documentation for its use but I can't figure out how is the composer working. I am able to do all the examples in three.js. But they only use 1 scene and 1 composer, except for the webgl_postprocessing.html example. But I can't figure what the masks are for and how to render multiple composers on multiple scenes.

I created 3 scenes with 3 different composers.

In the first scene : my skybox with its own camera perspective
In the second one : a sphere with its own camera
in the third : another sphere using the same camera as the second scene

So I can add some bloom or fxaa on the object of scene 3 separatly from scene 2 and the skybox.
The problem is that I can only render 1 composer of 1 scene. The last composer.render() of the render function actually. It seems logical to me but I can't find an example or issue to teach me how to do it properly.

Basicaly I would like to render the composer1 (the skybox) and then composer2 (sphere with a nice fxaa without any bloom) and finally composer 3 (the other sphere with a little bloom on it without fxaa).

Maybe I have got it backward. Sometime the more you think for a solution, the more you get away from it.

Could someone lend me a hand?