Meadville Space Center
Welcome, Guest. Please login or register.
September 26, 2020, 03:50:26 AM

Login with username, password and session length
Search:     Advanced search
Welcome to the new Meadville Space Center forums!
25068 Posts in 2094 Topics by 2266 Members
Latest Member: twa517
* Home Help Search Login Register
+  Meadville Space Center
|-+  Project Apollo - NASSP
| |-+  Project Apollo - NASSP Development
| | |-+  Programming (Moderators: movieman, dseagrav, Swatch, lassombra)
| | | |-+  [Q] Left Rendez-vous window viewpoint
« previous next »
Pages: [1] Print
Author Topic: [Q] Left Rendez-vous window viewpoint  (Read 1417 times)
DarthVader
Project Admin
Sr. Member
*****
Posts: 315



View Profile WWW
« on: October 29, 2005, 07:16:08 PM »

Hey guys,

When in Saturn::SetView() you define the viewpoint for the left RNDZ window you set the vector as:

v = _V(-1.022, 1.046, offset - 3.0);

Where is _V(0,0,0) located? And why is Z using an offset?

Thanks a lot.
Logged

DarthVader
Project Admin
Sr. Member
*****
Posts: 315



View Profile WWW
« Reply #1 on: October 30, 2005, 02:54:34 PM »

also, according to how much the main panel was scaled, how far away from it  is the viewpoint?

thanks
Logged

Tschachim
Project Apollo - NASSP
Administrator
Hero Member
*****
Posts: 3700


nassp.sf.net


View Profile WWW
« Reply #2 on: October 31, 2005, 04:15:27 AM »

When you are looking at the left RNDZ window you are looking along the spacecraft perpendicular axis, the x and y offset is the displacement of the LM's docking target from this axis so that you are looking directly on the docking target. The z offset is mainly because of the VC: During staging the length of the Saturn changes and so the z position of the VC. (0, 0, 0) is the center of the vessel's local reference system.

Ahh, you begin to look into the source code, now it's only a small step developing something... Wink

Cheers
Tschachim
Logged

DarthVader
Project Admin
Sr. Member
*****
Posts: 315



View Profile WWW
« Reply #3 on: October 31, 2005, 10:18:02 AM »

Thanks for the reply Tschachim Happy When you define a viewpoint, is it the position of the "player screen" or of the "player eyes"?
Logged

Tschachim
Project Apollo - NASSP
Administrator
Hero Member
*****
Posts: 3700


nassp.sf.net


View Profile WWW
« Reply #4 on: October 31, 2005, 11:23:44 AM »

The SetView function does not define a viewpoint but set the camera offset for the internal views (that is the generic cockpit, the VC and the panel) with the SetCameraOffset function. This is the position of the camera ("players eyes") in local vessel coordinates.
This position is independent from the panel position or the panel scaling, because of this the left rndz. panel has to be centered to work correctly.

Cheers
Tschachim
Logged

DarthVader
Project Admin
Sr. Member
*****
Posts: 315



View Profile WWW
« Reply #5 on: October 31, 2005, 12:39:23 PM »

Oookaaay ... so if the panels are scaled, should the FOV be adjusted to show something more realistic? I have been pondering on that for a few days ...
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!