¿Cómo lograr un fundido cruzado entre diferentes cámaras/escenas en three.js?
Frecuentes
Visto 1,604 veces
1
Is it possible, and if so, what is the best way to achieve the following effect in three.js:
I am displaying scene S1 as viewed from camera C1and from there:
- crossfade to scene S2 as viewed from camera C2, or
- crossfade to scene S1 as seen from camera C3
Any assistance helping me think about this will be greatly appreciated!
1 Respuestas
0
Something like this is pretty easy:
- Use 2 rendertargets to draw the different scenes from the different cameras
- Use both rendertargets with this blend shader https://github.com/mrdoob/three.js/blob/master/examples/js/ShaderExtras.js#L1099
Respondido 27 ago 12, 20:08
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas javascript webgl three.js or haz tu propia pregunta.
Do you have these scenes actually created and are currently able to simple switch between them rather than crossfading? - Cory Gross
alas, an abrupt switch is not what I am looking for, the intended effect is a graceful blended transition. - gonzalo