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 / testing out multiple 3d cameras using rendertoimage

Author
Message
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 1st Sep 2014 05:42 Edited at: 1st Sep 2014 05:45
so i have been fooling around with rendertoimage and have sorta got 2 cameras simulated.

the only problem is the camera aspect ratios are terrible and need to be adjusted.

any ideas how this can be done without the introduction of new commands.

example code here:


this showcases 2 cameras but are stretched bad. anyideas what i could do to thin them out but keeping it widescreen?



Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 1st Sep 2014 16:02
Yeah, that needs some work, I'll take a look at it as part of the 3D work.
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 1st Sep 2014 16:16
sweet!

thanks.

SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 1st Sep 2014 16:44

for those that want to play around with it...here is another way to do it. i have removed the render command to leave the background black. now it only shows the 2 sprites(cameras)

i also put in some black borders so the 2 screens are not stretched as bad. I think this will work great for an ouya splitscreen game.

IronGiant
AGK Bronze Backer
12
Years of Service
User Offline
Joined: 27th Feb 2012
Location: the great state of madness
Posted: 1st Sep 2014 20:46 Edited at: 1st Sep 2014 20:47
Yes, I must second the desire for more than one camera, be nice for rear-views, radars and such in 3D. I'm just now getting into 3D programming and have found many ideas I have had that would benefit
from having an extra camera or two.

Nice cool hack you have there though SoftMotion3D. will scope it out later when i get the chance.

I'm Working on a WoW-like mouse control system at the moment for my future 3D apps and games. Hard to get right with touch screens than with mice.

It's Bird! , It's Plane!, No its a rocket powered Squirrel holding some acorns and a smile!

Login to post a reply

Server time is: 2024-11-25 07:33:49
Your offset time is: 2024-11-25 07:33:49