I’m trying to create a split-screen game.
I first tried it using the bufferViewer, but that didnt work because I can only have one of that.
So, I made two buffers, one for each player, and did two onscreenimages with as image the texture of the camera that belongs to that player.
I put the texture on an OnscreenImage.
It runs great, except for the fact that it is REALLY bad quality.
Does anyone have another idea?
Thanks for your reply.
Yeah, I saw that.
One problem. pview is programmed in C++. pview uses the WindowFramework, which is unfortunately only available in C++. And that while I’m trying to create this game using Python.
Is there any alternative?
The way you suggested opens a second window. But I don’t need a second window, but I just need to display the views of two camera that I already have on 1 window. Isn’t there an easier way that using two onscreenimages?
Oh, sorry–I misunderstood, since you were talking about buffers, I assumed you wanted to display something in a separate window.
If you just want to subdivide one window, you don’t need to mess with any of that. You just create a new DisplayRegion. By default, you get one DisplayRegion that covers the whole screen. You can throw that one away (or change its placement) and create any number of DisplayRegions wherever you like. Each one is a rectangular are of the screen that you render into, and each one has a different camera.