Changing of Default Axis Range in TargetingPod Camera View

charlie00123
Posts: 8
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: 488
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: 8
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: 488
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

Cesar Vejar
Posts: 5
Joined: Tue Dec 17, 2019 2:40 am

Re: Changing of Default Axis Range in TargetingPod Camera View

Postby Cesar Vejar » Tue Dec 17, 2019 2:56 am

Along with greeting, I want to know if you managed to place the camera with the TargetingPod.swf?

I want to place the targeting pod as a gaugue or as a window.

I have an A-10 Warthog that I am modifying and I managed to create an MDF from the F-16, but I cannot activate the camera of the targeting pod. I would like my A-10 to have this camera active either inside the VC or as a floating gaugue or floating window.

I hope you can help me.

greetings from Chile.

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

Re: Changing of Default Axis Range in TargetingPod Camera View

Postby JB3DG » Tue Dec 17, 2019 8:55 am

I don't use swf files. All my camera work has been in C++ PDK texture rendering displays.
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 24 guests