From 03a0ad18eb79bb8de5768548f9cba542fc14e8b6 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 2 Nov 2002 21:41:53 +0000 Subject: [PATCH] Finished setting up configurable default viewing properties, and implement them for the C172P 3D model. Look near the top of preferences.xml for an example. The recognized properties are as follow, with vanilla defaults in parentheses: /sim/view/config/default-field-of-view-deg (30) /sim/view/config/default-pitch-deg (0) /sim/view/config/front-direction-deg (0) /sim/view/config/front-left-direction-deg (45) /sim/view/config/left-direction-deg (90) /sim/view/config/back-left-direction-deg (135) /sim/view/config/back-direction-deg (180) /sim/view/config/back-right-direction-deg (225) /sim/view/config/right-direction-deg (270) /sim/view/config/front-right-direction-deg (315) These are particularly useful for the view from inside a 3D aircraft model. --- Aircraft/c172p-3d-set.xml | 19 +++++++-- keyboard.xml | 82 ++++++++++++++++++++++++++++++++++++++- preferences.xml | 19 ++++----- 3 files changed, 107 insertions(+), 13 deletions(-) diff --git a/Aircraft/c172p-3d-set.xml b/Aircraft/c172p-3d-set.xml index 1eabbfe86..441de07fb 100644 --- a/Aircraft/c172p-3d-set.xml +++ b/Aircraft/c172p-3d-set.xml @@ -41,14 +41,27 @@ October 23 2001 John Check, fgpanels@rockfish.net true - -0.4 - 0.3 + 3 + -0.15 + 0.25 0.1 + 50.0 + -9.5 + -1.5 + 45 + 90 + 135 + 180 + 225 + 270 + 315 - -13 + 50 + -1.5 + -9.5 diff --git a/keyboard.xml b/keyboard.xml index b52bec6a8..ffac5b8fc 100644 --- a/keyboard.xml +++ b/keyboard.xml @@ -330,6 +330,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -348,6 +353,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -366,6 +376,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -384,6 +399,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -422,6 +442,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -440,6 +465,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -458,6 +488,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -476,6 +511,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -485,7 +525,7 @@ calculated by adding 256 to the GLUT key value in glut.h. property-assign /sim/current-view/field-of-view - 55.0 + @@ -1054,6 +1094,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -1072,6 +1117,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -1090,6 +1140,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -1108,6 +1163,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -1126,6 +1186,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -1144,6 +1209,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -1162,6 +1232,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + @@ -1180,6 +1255,11 @@ calculated by adding 256 to the GLUT key value in glut.h. /sim/current-view/goal-heading-offset-deg + + property-assign + /sim/current-view/pitch-offset-deg + + diff --git a/preferences.xml b/preferences.xml index bf1fa003e..ae35bf90d 100644 --- a/preferences.xml +++ b/preferences.xml @@ -91,15 +91,16 @@ Started September 2000 by David Megginson, david@megginson.com true 0 0.5f - 0 - 0 - 45 - 90 - 135 - 180 - 225 - 270 - 315 + 55.0 + 0 + 0 + 45 + 90 + 135 + 180 + 225 + 270 + 315