• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Please see the most recent updates in the "Where did the .com name go?" thread. Posts number 16 and 17.

    Post 16 Update

    Post 17 Warning

VC Snap Views in FSX?

TARPSBird

Moderator
Staff member
In CFS2/FS2002/FS2004 I've always had the default capability in VC view to use the number keypad for quick looks around the plane (automatically snapping back to forward view), or to use the hat switch to move to a fixed view left/right/up/etc. In FSX the snap-view capability is apparently not a default VC feature. Is it even possible to program the number keypad keys to do it in VC view? If so I'd like to know which of the numerous FSX view commands to program, I can't figure them out.
 
According to the SDK, these entries in each [Cameraconfiguration.x] section are responsible for snaps:

snappbhreturnboolTrue/FalseIf true, camera position returns to its initial position when the snap movement command key is released.Cockpit( SnapPbhReturn = True )
Virtual Cockpit( SnapPbhReturn = False )
panpbhreturnboolTrue/FalseIf true, camera position returns to its initial position when the pan movement command key is released.Cockpit( PanPbhReturn = True )
Virtual Cockpit( PanPbhReturn = False )

<tbody>
</tbody>




Sample camera config for the VC:

[CameraDefinition.xxx]
Title=VC Snap
Guid={C95DCA82-9E4A-4E2A-A34C-D8D9D948F078}
Description=
Origin=Virtual Cockpit
MomentumEffect=Yes
SnapPbhAdjust=Swivel
SnapPbhReturn=True
PanPbhAdjust=Swivel
PanPbhReturn=True
Track=None
ShowAxis=YES
AllowZoom=TRUE
InitialZoom=0.6
SmoothZoomTime=2.0
ZoomPanScalar=1.0
ShowWeather=Yes
XyzAdjust=TRUE
ShowLensFlare=FALSE
Category=Cockpit
PitchPanRate=30
HeadingPanRate=75
PanAcceleratorTime=0
HotKeySelect=

Add this one to the aircraft.cfg of the a/c in question (or the cameras.cfg in FSX's config folder), make sure to keep the numbering in sequence and give it a try.
Haven't tried it myself, it's just the default VC camera adjusted with the above commands.
 
Bjoern, thanks for putting me on the right track. :salute: In the VC section of the default cameras.cfg file (see below), setting SnapPbhAdjust to "Ordinal" vice "Swivel" causes the view to snap to the fixed position of whatever numberpad key is pressed. Setting SnapPbhReturn to "True" vice "False" snaps the view back to forward when the numberpad key is released. PanPbhAdjust and PanPbhReturn (the next line entries) have the same effect on panning your view with the hat switch. I have to learn more about this Camera thing, it seems like a pretty nice feature of FSX.

[CameraDefinition.002]
Title = Virtual Cockpit
Guid = {C95EAB58-9E4A-4E2A-A34C-D8D9D948F078}
Description = This is the description of the virtual cockpit view.
Origin = Virtual Cockpit
MomentumEffect = Yes
SnapPbhAdjust = Ordinal <<< View snaps to fixed position...
SnapPbhReturn = True <<< ...then snaps back to forward view
PanPbhAdjust = Swivel
PanPbhReturn = False
Track = None
ShowAxis = YES
AllowZoom = TRUE
InitialZoom = 0.7
SmoothZoomTime = 2.0
ZoomPanScalar = 1.0
ShowWeather = Yes
XyzAdjust = TRUE
ShowLensFlare=FALSE
Category = Cockpit
PitchPanRate=30
HeadingPanRate=75
PanAcceleratorTime=0
HotKeySelect=1
 
Back
Top