Game Development Community

Split Screens

by John Carroll · in Torque Developer Network · 09/11/2006 (8:43 am) · 5 replies

Hi, we're trying to split the screen into 4 different independant views. Movement on each of these views will be minimal, so framerate reductions are acceptable (even down to 15fps). Each of the views must have it's own independant camera. I've been thinking of split screens just like racing games on the xbox. Is this possible in Torque? How much modification is necessary? Any ideas on where to begin?

Thanks,

--John

About the author

Working on using Torque as an Image Generator for Tactical Simulations under laser and live fire conditions, for Law Enforcement/Military applications.


#1
09/11/2006 (8:52 am)
This should get you started. It is limited to the player's camera, though. And here is a GUI control that allows named object access.

As for how hard to implement, I'm not sure. I've never thought to do it.
#2
09/11/2006 (10:50 am)
Somewhere there is a resource implementing exactly Security Cameras.
I believe they even automatically include Swivel.

Unfortunately my GG-site searching skills are crappy and i can't find it.
It was sort of old, definitely <= 2004, possibly even 2002.
#3
09/11/2006 (12:19 pm)
Yup. That was the second link that I posted.
#4
09/11/2006 (1:06 pm)
Ah right - i followed the first one but not the second.
#5
09/11/2006 (1:41 pm)
Actually, I had discovered that one, but it wasn't working with the 1.4 codebase. After you pointed this resource out to me I decided to have a crack at figuring out why it wasn't working. I did figure out why it wasn't working, in OnRender, I moved the code that calls the parents OnRender and sets the clip rect, to after we figure out if we have an attached object or not. This now works well, but what I'm really trying to do is setup up to 5 independant cameras, and this code checks to see if the camera is attached to something with a collision mesh. I am working on trying to remove this obstacle, since I'd like to fly all 5 cameras from 5 different starting points into a line, gliding through the terrain as they go. Thanks for the quick replies, as a result I am making some progress.

--John