Changing of Default Axis Range in TargetingPod Camera View

charlie00123
Posts: 7
Joined: Sun Jun 16, 2019 1:25 pm

Changing of Default Axis Range in TargetingPod Camera View

Postby charlie00123 » Sun Jun 16, 2019 1:49 pm

Hello all! I'm new to P3D and working on Targeting Pod example provided with the SDK.
I'm trying to change the Field of regard of the camera and for that I need to change camera axis (pitch in particular) range i.e from (-90°- +90°) to (-120° - +30°).
Is that possible. Can someone help me out with this?
In Aircraft.cfg file, There are camera definitions available and I can change the initial Pbh values but but none of them changes the range of the camera pitch.
I'd really appreciate if some expert would guide me how can I change these values.
Thanks!

JB3DG
Posts: 423
Joined: Mon Jan 09, 2012 6:44 pm

Re: Changing of Default Axis Range in TargetingPod Camera View

Postby JB3DG » Sun Jun 16, 2019 8:37 pm

Pitch can only ever be +- 90. When you are at -120, you change the heading to + or -180, and the pitch to -60. So when pitch passes -90, it starts to increase again, with a heading of -180.
Jonathan Bleeker
Milviz systems dev

Formerly known as Naruto-kun

charlie00123
Posts: 7
Joined: Sun Jun 16, 2019 1:25 pm

Re: Changing of Default Axis Range in TargetingPod Camera View

Postby charlie00123 » Tue Jun 18, 2019 5:03 pm

Hi! Thank you for your response.
Yes I understand. But pitch in targeting Pod sample is fixed, i.e when I touch +90 or -90, it won't move further.
The heading, on the other hand, shifts to +180 if I decrease it down to -180 and vice virsa.
Pitch stops at +90 when I increase, and -90 when I decrease it.
I tried to edit the targetingPod.swf file and found that we can only change the front end of the targeting Pod (i.e the positions of Crosshair, radials etc) not the logic behind them.
This range is got to be defined somewhere that's why p3d knows it should stop at these points.

JB3DG
Posts: 423
Joined: Mon Jan 09, 2012 6:44 pm

Re: Changing of Default Axis Range in TargetingPod Camera View

Postby JB3DG » Tue Jun 18, 2019 7:12 pm

Its up to you to work within those confines. If you desire to send an angle > 90 deg pitch, you need to stop it, set heading to -180, and then start decreasing pitch.
Jonathan Bleeker
Milviz systems dev

Formerly known as Naruto-kun


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 2 guests