Scripts / Picture in Picture - 2 camera's possible?

Author
Message
Saintyboy
9
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 16th Mar 2016 11:30
Hi guys, anyone have any idea on how to incorporate 2 camera views into a game; ie something like a driving game and you have a rear view mirror with a different camera view in it; so basically a picture in a picture.
Racked my brains and cant see any way to use more than one camera at a time.

Any advice would be more than welcome.
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 16th Mar 2016 17:31
We don't have any commands to control the main camera yet, we definitely won't be able to have two cameras any time soon.

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
Saintyboy
9
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 17th Mar 2016 16:04
if I cant do it with camera there must be a workaround - any genious's out there?
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 17th Mar 2016 16:16
you could do it with sprites and their distance and angle relating to the player like the radar script if you really wanted to.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 17th Mar 2016 16:30
Quote: "you could do it with sprites and their distance and angle relating to the player like the radar script if you really wanted to."


Sprites wouldn't give him a picture of what's behind him though would it?

i7, NV960 4GB, 16GB memory, 2x 4TB Hybrid, Win10.
i5 , AMD 6770 1GB, 8GB memory, 512GB Generic SATAIII + 2TB Seagate Baracuda SATAIII, Win7.
i3, Radeon integrated graphics, 4GB memory, 512gB Generic SATAII, Win8.1.
Q6600, Intel integrated graphics, 2GB memory, 180GB Generic SATAII, WinXP.
Saintyboy
9
Years of Service
User Offline
Joined: 18th Jun 2015
Playing:
Posted: 17th Mar 2016 16:34
and I would need a sprite image of every object in the game!
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 18th Mar 2016 09:38
Quote: "Sprites wouldn't give him a picture of what's behind him though would it?"

Sure it would, you can create entire games completely out of sprites if you want
Quote: "and I would need a sprite image of every object in the game!"

Yep but you did say there should be a workaround and that's the only one that comes to mind
For something like a formula 1 racing game this would probably be an easy solution, a simple sprite to show a bit of road in the mirror and then some extra sprites to show the front of any cars following behind... If you restrict the view / size of the mirror.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 18th Mar 2016 10:52
This is the only other camera view I have found. see screenshot
There is a shader that gives you a top down view, (masked) camera view of the map, I never got around to see if I could manipulate it, as I need to learn the shader language.
I cannot remember which shader it was, ill have to dig around in a backup drive to find the fpe to tell.
It might be of some use oneday.

Note: the red arrow point to the same entity, in the screenshot.
Desktop: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 CPUs), ~3.6GHz, Windows 10, 64-bit, 16 GB Ram, NVIDIA GeForce GTX 750 Ti, Display Memory: 4018 MB. Resolution 1360x768, Passmark 3528.
Laptop: Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-12-22 15:17:42
Your offset time is: 2024-12-22 15:17:42