[SOLVED] Picture In Picture (sort of splitscreen)

Hi,
I worked hard to have an image of a second camera drawn on the screen. It almost work :slight_smile:
The picture is well drawn on the screen with drawScaledImage, but… the meshes are fully opaque and the environment texture (world) is translucent ! :crazy_face:
Of course I would like the world to be fully opaque.
image
Here is the project, if I could have an explanation (sorry it won’t be a zip as it’s not allowed) :
camera_drawScaledImage.blend (1.5 MB)
source/arm/MyTrait.hx
MyTrait.hx (1.0 KB)
source/arm/node/Rotate.hx
Rotate.hx (869 Bytes)
Thanks in advance, I really hope it will work. And this time the environment texture seems to be OK for each camera.

2 Likes

Now it’s working :slight_smile:
I had to draw a black rectangle under the image (why ? I don’t know).
Here is a sample project with a main camera and 2 PIP cameras drawn on the screen.

camera_drawScaledImage.blend (1.5 MB)
PIPCamera001.hx (1.1 KB)
PIPCamera002.hx (1.1 KB)
Rotate.hx (869 Bytes)
Everything is fine with the environment texture.

4 Likes