Model Cockpit View: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
m (+-cat: FlightGear add-ons → FlightGear addons)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{stub}}
{{stub}}
{{infobox subsystem
{{infobox subsystem
|image      = Fgaddonslogo202x89.png |thumb
|image      = Fgaddonslogo202x89.png |thumb
Line 11: Line 10:
}}
}}


Model Cockpit View is a FlightGear [[Addons|addon]] that allows to switch the view from any AI/MP models and cockpits. It is based on the previous modules model-view.xml, cockpit-view.xml and model2-view.xml.
'''Model Cockpit View''' is a FlightGear [[addon]] that allows to switch the view from any AI/MP models and cockpits. It is based on the previous modules <code>model-view.xml</code>, <code>cockpit-view.xml</code> and <code>model2-view.xml</code>.
Q/q steps through the available MP/AI aircraft.
 
{{key press|q}}/{{key press|Shift|Q}} steps through the available MP/AI aircraft.


= Issues =
== Issues ==
Currently the cockpit views starts at (0,0,0) which is a bit of a usability problem - it works for someone that knows it is a bit of a hack but looks bad for anyone else.
Currently the cockpit views starts at (0,0,0) which is a bit of a usability problem - it works for someone that knows it is a bit of a hack but looks bad for anyone else.
The Q/q key binding might interfere with aircrafts that use these keys.


= Status =
The {{key press|q}}/{{key press|Shift|Q}} key bindings might interfere with aircraft that use these keys.
AndersG created a version of the addon (<ref>{{cite web
 
== Status ==
AndersG created a version of the addon<ref>{{cite web
   |url    =  https://forum.flightgear.org/viewtopic.php?f=30&t=32718&start=15#p316599  
   |url    =  https://forum.flightgear.org/viewtopic.php?f=30&t=32718&start=15#p316599  
   |title  =  <nowiki> Re:  </nowiki>  
   |title  =  <nowiki> Re:  </nowiki>  
Line 25: Line 26:
   |date  =  Aug 14th, 2017  
   |date  =  Aug 14th, 2017  
   |added  =  Aug 14th, 2017     
   |added  =  Aug 14th, 2017     
   }}</ref>)
   }}</ref>  
that is available in http://www.gidenstam.org/FlightGear/misc/ModelCockpitView-addon.tar.gz.
that is available in http://www.gidenstam.org/FlightGear/misc/ModelCockpitView-addon.tar.gz.


wkitty42 is working on the addon. (<ref>{{cite web
wkitty42 is working on the addon.<ref>{{cite web
   |url    =  https://forum.flightgear.org/viewtopic.php?p=316498#p316498  
   |url    =  https://forum.flightgear.org/viewtopic.php?p=316498#p316498  
   |title  =  <nowiki> Re:  </nowiki>  
   |title  =  <nowiki> Re:  </nowiki>  
Line 35: Line 36:
   |added  =  Aug 13th, 2017  
   |added  =  Aug 13th, 2017  
   |script_version = 0.40  
   |script_version = 0.40  
   }}</ref>)
   }}</ref>


= Changing the view point =
== Changing the view point ==
By default, the view point will be at (0,0,0), so the view point will be exactly on the bottom for many models.
By default, the view point will be at (0,0,0), so the view point will be exactly on the bottom for many models.
The viewpoint can be moved up/down/left/right at runtime by pressing RMB+MMB (right and middle mouse buttons) and dragging. Holding control too makes it move forward/aft/left/right instead. The offset so set will apply to all models viewed (i.e. it doesn't change as you switch the model the view follows).
The viewpoint can be moved up/down/left/right at runtime by pressing RMB+MMB (right and middle mouse buttons) and dragging. Holding control too makes it move forward/aft/left/right instead. The offset so set will apply to all models viewed (in essence it does not change as you switch the model the view follows).


Though this might be useful for analysis purposes, a raised view point is more interesting. The view point can be changed by adding the following code to the addons main.nas file:
Though this might be useful for analysis purposes, a raised view point is more interesting. The view point can be changed by adding the following code to the addons <code>main.nas</code> file:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
Line 66: Line 67:
         ...
         ...
</syntaxhighlight>
</syntaxhighlight>
The offset values shown here are just arbitrary.
The offset values shown here are just arbitrary.


= References =
== References ==
{{Appendix}}
{{Appendix}}


[[Category:FlightGear add-ons]]
[[Category:FlightGear addons]]

Latest revision as of 23:12, 12 July 2020

This article is a stub. You can help the wiki by expanding it.
Model Cockpit View
Fgaddonslogo202x89.png
Started in 07/2007
Description Model Cockpit View
Maintainer(s) AndersG
Contributor(s) AndersG, Melchior Franz, maybe others
Status Under active development as of 07/2007

Model Cockpit View is a FlightGear addon that allows to switch the view from any AI/MP models and cockpits. It is based on the previous modules model-view.xml, cockpit-view.xml and model2-view.xml.

q/ Shift+Q steps through the available MP/AI aircraft.

Issues

Currently the cockpit views starts at (0,0,0) which is a bit of a usability problem - it works for someone that knows it is a bit of a hack but looks bad for anyone else.

The q/ Shift+Q key bindings might interfere with aircraft that use these keys.

Status

AndersG created a version of the addon[1] that is available in http://www.gidenstam.org/FlightGear/misc/ModelCockpitView-addon.tar.gz.

wkitty42 is working on the addon.[2]

Changing the view point

By default, the view point will be at (0,0,0), so the view point will be exactly on the bottom for many models. The viewpoint can be moved up/down/left/right at runtime by pressing RMB+MMB (right and middle mouse buttons) and dragging. Holding control too makes it move forward/aft/left/right instead. The offset so set will apply to all models viewed (in essence it does not change as you switch the model the view follows).

Though this might be useful for analysis purposes, a raised view point is more interesting. The view point can be changed by adding the following code to the addons main.nas file:

        ...
        if (type != "multiplayer")
            color = { text: { color: { red: 0.5, green: 0.8, blue: 0.5 }}};
# move view point above back of vehicle.
if (getprop("/sim/current-view/name") == "Model Cockpit View" and name) {
	if (string.match(name,"*gsvehicle*")){
		#Ground Service vehicle
		setprop("/sim/current-view/z-offset-m", 20);
		setprop("/sim/current-view/y-offset-m", 7);
	} else if (string.match(name,"*carrier*")){
		setprop("/sim/current-view/z-offset-m", 110);
		setprop("/sim/current-view/y-offset-m", 47);
	} else {
		#Aircraft?
		setprop("/sim/current-view/z-offset-m", 60);
		setprop("/sim/current-view/y-offset-m", 17);
	}
}
        if (name)
            gui.popupTip(name, 2, color);
        ...

The offset values shown here are just arbitrary.

References

References
  1. AndersG  (Aug 14th, 2017).  Re: .
  2. wkitty42  (Aug 13th, 2017).  Re: .