fade out using 2 cameras?

Blitz3D Forums/Blitz3D Programming/fade out using 2 cameras?

Hi,

I have successfully created a nice screen fade out/in effect by sticking a black cube in from the the camera and chaning it's aplha value.

The question is how do I do this using 2 camera with different viewports? I have split my screen (for 2 player mode) so have 2 cameras and viewports. I cannot use the above method to fade both cameras as one camera might see the others camera black cube!

Help.

You could render the cameras seperately and hide/show the cubes you use to fade too?

e.g.

HideEntity camera1
HideEntity fadecube1
ShowEntity camera2
ShowEntity fadecube2
renderworld
HideEntity camera2
HideEntity fadecube2
ShowEntity camera1
ShowEntity fadecube1
renderworld

???

Cheers,

Ryan

but if i hide the camera then that cameras viewport will go black will it not?

I don't think this is the solution...


but if i hide the camera then that cameras viewport will go black will it not?



Yes it will but that's correct as rsbrowndog's method renders the 2 cameras separately, before executing Flip to display them both.

AH! Yes see what you mean, works beautifully...

THANKS!