Hi
I'm using DarkBASIC Pro with Dark Physics. It doesn't really make a difference with having physics or not, I'm just asking about using multiple cameras.
I'm making a very simple program where a bunch of cubes are placed randomly on the screen in a line going straight down onto a box(the floor). I want to make 2 cameras, one viewing the whole scene, and another where all the cubes will collide with the floor pointing up, so it's like you're a person lying on the floor with a load of boxes about to collide with your face.
Here's my code:
sync on
sync rate 60
phy start
make object box 1, 30, 2, 30
phy make rigid body static box 1
for x = 2 to 1002
make object box x, 1, 0.5, 0.5
color object x, RGB(RND(255), RND(255), RND(255))
position object x, RND(5), x/2, RND(5)
phy make rigid body dynamic box x
next x
make camera 1
position camera 1, 0, 10, -40
position camera 0, 2.5, 0, 2.5
point camera 0, 0, 90, 0
do
phy update
sync
loop
And here's an example for you if you don't have Dark Physics:
sync on
sync rate 60
make object box 1, 30, 2, 30
for x = 2 to 1002
make object box x, 1, 0.5, 0.5
color object x, RGB(RND(255), RND(255), RND(255))
position object x, RND(5), x/2, RND(5)
next x
make camera 1
position camera 1, 0, 10, -40
position camera 0, 2.5, 0, 2.5
point camera 0, 0, 90, 0
do
sync
loop
Now, I've made the two cameras, but what I'm trying to achieve is making two cameras on either side of the screen. Kind of like a first person shooter in split screen muultiplayer. But what I get with this is just the latest camera that has been made shows up on the screen.
Is there any way to split the screen into 2 so one camera is shown on one side, and the other camera is shown on the other side?
P.S. And also, if you could use more than two, like splitting the screen into 4 different sections, or maybe even more...
Thanks in advance for any help