Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Split Screen (3D) AGK version of SET CAMERA VIEW

Author
Message
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 2nd Jul 2015 13:08
Hi all,

I'm developing a small mini game that I plan to release open source when it's ready.

It would benefit from the ability to have split screen multiplayer

In DBP, this was mega easy, using two cameras, and using SET CAMERA VIEW to set the screen pixels where the camera outputted to. As far as I can tell from the help docs, AppGameKit supports multiple cameras, but doesn't have an equivalent command for setting camera output to a portion of the screen. Not sure if i'm missing something, because I couldn't understand the point of having multiple cameras (i.e. CameraID) without having a command to set the cameras output to something specific, like screen dimensions or output to image? Unless "CameraID" is a placeholder for future commands that don't exist yet?

Has anyone tried split screen 3D in AppGameKit?

Thanks very much,
Shock
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 2nd Jul 2015 13:42 Edited at: 2nd Jul 2015 15:13
Hi Shock,

multiple cameras are not ready in the actual version, but may come in the next one.

Alternative, you could create two render images and position the only camera you have, to the positions you want have your two cameras every frame.
After positioning the camera you render the scene to the images.
Also I think multiple cameras are done in this way in DBpro or similar.

hope you understand.

I could make a demo if you want.

[/Edit]
Ok I made it anyway:
Multiple Cameras Demo


[Edit]


Using AGKv2 Tier1
SoftMotion3D
AGK Developer
18
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 2nd Jul 2015 19:50
i did 4 screen split using render to image....

this is very doable with just one camera.

www.sheldonscreations.com
Shock
AGK Developer
21
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 15th Jul 2015 01:27
Hi janbo,

That's awesome thanks. Do you mind if I incorporate your functions in my simple open source project? If so, what would you like to license this under? Full credits provided ofcourse

Login to post a reply

Server time is: 2024-03-29 12:25:57
Your offset time is: 2024-03-29 12:25:57