Cigi Object Rendering

Any issues, problems or troubleshooting topics related to the additional features present in the Prepar3D Professional Plus client application.
mchriest
Posts: 25
Joined: Tue Feb 21, 2012 4:17 pm

Cigi Object Rendering

Postby mchriest » Fri Oct 26, 2018 8:54 pm

Using P3D v4.3 pro plus as an IG via CIGI:
Am connecting and flying using external host, but unable to view my aircraft.
The ViewDef packet ViewID = 0, matching the ViewID in CigiConfig
Using ExtendedType setting, I can confirm that my target aircraft is loaded, by noting the Cigi Aircraft view when right-clicking the display when Cigi - IG is started. This entry changes correctly if I load a different object.
The Camera definition CigiView is auto-loaded when Cigi-IG is started.
The camera def for CigiView has "Hide user Aircraft" set to 0.
EntityState is 1 (active)
Alpha channel is 255
alpha override is false.
EntityPosition EntityID is set to 0, matching the EntityContorl ID
ViewContol EntityID is set to 0. GroupID set to 0.
I have enabled the ViewControl offsets, and have shifted back along x axis testing from 15 to 100 meters back, to make sure my eypoint isn't inside the airplane.

Interestingly, while trying various aircraft, I do get a couple textures rendered for the F-22 Raptor. These would appear to be a couple trailing edge wing portions, one left and one right. As I shift back along the x axis, the surfaces are nearer or further from the camera, as expected. No other objects are displayed at all.
Anybody have any idea what I'm missing? I need to move on to managing articulated parts, but that's not easy to test on an invisible airplane!

Windows 10 pro,
64 GB RAM,
Intel i7-8700
NVidia GeForce 1080

User avatar
Brady Butler
Lockheed Martin
Posts: 927
Joined: Tue May 09, 2017 5:31 pm

Re: Cigi Object Rendering

Postby Brady Butler » Tue Oct 30, 2018 1:20 pm

Hello mchriest,

Try setting the ViewID to a different int value. Currently we do not draw the model if the ViewIDs are the same. With a different ViewID you should be able to right click and change the view to the object and see its articulated parts.

Regards,
Brady
Brady Butler
Prepar3D® Software Engineer

mchriest
Posts: 25
Joined: Tue Feb 21, 2012 4:17 pm

Re: Cigi Object Rendering

Postby mchriest » Tue Oct 30, 2018 3:35 pm

Hi Brady,
First, I'd like to thank you very much for your helpful reply. Your suggested workaround results in the object being rendered, and I can now move forward with my work on articulated parts. I'm grateful for your help, and glad that P3D is providing support for cigi.

That said, I'd consider this to be a rather serious design flaw that I hope will be remedied in the next release. P3D should be using the Entity State member of the entity control packet to determine object visibility.

Please note that your suggested workaround breaks P3D's handling of the View Control offsets. After manually switching to the CIGI View, the CIGI offsets in the View Control packet are ignored, and the CIGI view enters a pseudo-locked spot type of view, controllable via the keyboard. Note that the View Control offsets are respected if initially starting with ViewID=0.

Thanks again for your attention to this matter, and your useful reply.

Mike.

User avatar
Brady Butler
Lockheed Martin
Posts: 927
Joined: Tue May 09, 2017 5:31 pm

Re: Cigi Object Rendering

Postby Brady Butler » Thu May 09, 2019 5:08 pm

Hello Mike,

Thanks for the feedback, we have looked into it and a fix will be in a future release.

Regards,
Brady
Brady Butler
Prepar3D® Software Engineer


Return to “Prepar3D Professional Plus Client Application Questions”

Who is online

Users browsing this forum: No registered users and 14 guests