How to get Camera's texture in PDK?

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
a8325811
Posts: 11
Joined: Mon Dec 16, 2019 7:25 am

How to get Camera's texture in PDK?

Post by a8325811 »

Hi, I want to drag some camera's texture, so I can use shared memory to let other program show that image.

If I already have a camera definition like this.

Code: Select all

[CameraDefinition.11]
Title="IRCam"
Guid={c028e6d3-362d-4211-97c8-8d469c886842}
Description = IRCam
Origin = Virtual Cockpit
Category=Cockpit
MomentumEffect = FALSE
SnapPbhAdjust = Swivel
SnapPbhReturn = FALSE
PanPbhAdjust = Swivel
PanPbhReturn = FALSE
Track = None
ShowAxis = FALSE
AllowZoom = TRUE
InitialZoom = 0.60
SmoothZoomTime = 2.0
ZoomPanScalar = 1.0
ShowWeather = Yes
XyzAdjust = TRUE
ShowLensFlare=TRUE
PitchPanRate=30
HeadingPanRate=70
PanAcceleratorTime=0
InitialXyz = 0, -1.3, 6.5
InitialPbh = 0, 0, 0
ClipMode=Spot
HideShadows=1
SideReflection=1
HideModels=0
HideParticles=1
HideUserAircraft=1
HideAutogen=0
HideScreenSpace=0
HideMissionObjects=0
ShowLabels=FALSE
HideSky=0
HideTerrain=0
RenderToTexture=TRUE
RenderToScreen=FALSE
TextureSizeX=512
TextureSizeY=512
UseGlobalTerrainView=TRUE
SensorMode = IRBlackHot
So how can I get this "IRCam" texture ?
Please help, thanks.
Post Reply