Multi-View Cockpit

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
capt.Pirk
Dangerous
Dangerous
Posts: 73
Joined: Sun May 21, 2006 6:06 pm

Multi-View Cockpit

Post by capt.Pirk »

So, we have foward,port,starboard and aft views.
Has anyone got all four working simultaneously yet, across multiple monitors?
I wonder who has the best Oolite setup, enclosed multi-screen cabinet ??
dajt
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 364
Joined: Tue Aug 17, 2004 7:05 am
Location: Orange, NSW, Australia

Post by dajt »

I have to admit to having thought about this too. But then I think about how hard it was to get one view showing in OpenGL and decide that maybe it's a job for someone else!

Perhaps each SDL surface does have its own OpenGL context... then it might just be a matter of calling the drawing routine 3 or 4 times. Slow the framerate down a touch I imagine.
Regards,
David Taylor.
User avatar
winston
Pirate
Pirate
Posts: 731
Joined: Mon Sep 27, 2004 10:21 pm
Location: Port St. Mary, Isle of Man
Contact:

Post by winston »

I would imagine most multi-monitor setups are merely a very very wide desktop. Instead of having three OpenGL contexts, just have a very very wide window and a wider angle of view (so instead of the normal ~90 degree view angle on the front view all the time, calculate the view angle from the width of the desktop, so a 3-monitor wide desktop comes out at around 270 degrees angle of view).

I'm not knowledgeable enough about OpenGL though to know whether this is trivially possible or whether it'd involve lots of interesting tricks to accomplish. I'm just guessing it will be further towards the 'easy' end of the spectrum compared to three separate contexts showing a different view in each.

Of course, the alternate approach is to do what many flight simmers do - a dedicated computer for each view - that way, you won't have a single computer and video card having to do all the processing for all the views. Of course, Oolite would then need the appropriate netcode (but it'd be simpler netcode than what Spooky is hoping to do with multiplayer)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

A single context on different monitors would be less efficient than a single context, require the monitors to have the same resolution and would be problematic on screens handled by different graphics cards (possible on OS X, but slower; probably not possible on other systems). Also, the way projection works in OpenGL, you can at most asymtotically approach 180°; a 270° field of view is not possible without doing a more complex projection in software.

Adapting the current Oolite code to render to multiple contexts at once seems... hairy. The more modular code I’ve been working on could probably do it more easily, only adapting Oolite to it has also proven quite hairy. :-)
User avatar
Draco_Caeles
Dangerous
Dangerous
Posts: 105
Joined: Sat Apr 15, 2006 11:40 pm
Location: North-west England

Post by Draco_Caeles »

One thing I have noticed is that the view doesn't change depending on what ship you're flying. Apart from the pitch/roll and the speed, there's no real 'cue'... For instance, flying a Sidewinder up to a station should be more 'thrilling' than flying up in an Anaconda...

Rrrf. I suspect I'm not making sense, but I know what I mean. No matter what the ship, the view is always the same. (Damn those holographic cameras.) And... maybe it should be a little different for different sizes of ship.
Space Corps Directive #7214
To perserve morale during long-haul missions, all male officers above the rank of First Technician must, during panto season, be ready to put on a dress and a pair of false breasts.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Well… you can set a custom HUD/cockpit for each ship, and set the view points so that part of the ship is visible through the window. Beyond that, well, what’s outside won’t change for the benefit of your ship. :-)
User avatar
capt.Pirk
Dangerous
Dangerous
Posts: 73
Joined: Sun May 21, 2006 6:06 pm

Post by capt.Pirk »

winston wrote:
Of course, the alternate approach is to do what many flight simmers do - a dedicated computer for each view - that way, you won't have a single computer and video card having to do all the processing for all the views. Of course, Oolite would then need the appropriate netcode (but it'd be simpler netcode than what Spooky is hoping to do with multiplayer)
Yes, exactly. I'm no coder myself, but this is the approach that is probably the simplist solution. The only perceivable downside is of course 4x hardware items.
I also have a OXbox (OldXbox) and this is exactly what can be done with 4x 'Forza Motorsports' and 4 x Xbox consoles.
User avatar
CWolf
---- E L I T E ----
---- E L I T E ----
Posts: 317
Joined: Mon Jul 03, 2006 12:33 pm
Location: Currently floating round Eninre

Post by CWolf »

Draco_Caeles wrote:
One thing I have noticed is that the view doesn't change depending on what ship you're flying. Apart from the pitch/roll and the speed, there's no real 'cue'... For instance, flying a Sidewinder up to a station should be more 'thrilling' than flying up in an Anaconda...

Rrrf. I suspect I'm not making sense, but I know what I mean. No matter what the ship, the view is always the same. (Damn those holographic cameras.) And... maybe it should be a little different for different sizes of ship.
Maybe it would be possible to change the scale of everything depending on the player ship, making everything look bigger in a Sidewinder and smaller in a Boa...
The act of talking b*ll*cks whilst waving one's arms about wildly is referred to as testiculation.

Image
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

CWolf wrote:
Maybe it would be possible to change the scale of everything depending on the player ship, making everything look bigger in a Sidewinder and smaller in a Boa...
Er… no? That really doesn’t make any sense.
User avatar
Wolfwood
---- E L I T E ----
---- E L I T E ----
Posts: 735
Joined: Wed Mar 29, 2006 9:53 am
Location: Finland
Contact:

Post by Wolfwood »

CWolf wrote:
Maybe it would be possible to change the scale of everything depending on the player ship, making everything look bigger in a Sidewinder and smaller in a Boa...
I know what you mean, but that would not be the answer. Houses in my neigbourhood seem to stay the same size whether I walk by them or drive my car (which is a lot bigger than I am).

But I understand that you'd like to feel more "naked" in an Sidewinder than in a Boa? Perhaps this could be achieved with different engine sounds for different sized ships... Or perhaps we need to go VR with the whole thing before this can be achieved...
Author of Tales from the Frontier - official Elite 4 anthology.
Author of Marcan Rayger adventures - unofficial fan-fic novellas set in the Frontier universe.
Post Reply