Pip camera in new html div

I hope to create a picture-in-picture camera within an html div element.

I created a main camera, then a picture-in-picture camera, created a div element, and used engine.registerView(miniCanvas, miniCamera); I associated the picture-in-picture camera with the picture-in-picture canvas, but there was no effect. Here’s my pg:

When using views, the initial canvas (the one passed to the Engine constructor) can no longer be viewed but is used internally. So, you should create an additional canvas / view for the main camera. See how it’s done here, for example:

2 Likes