Page 1 of 1

Cigi Object Rendering

Posted: Fri Oct 26, 2018 8:54 pm
by mchriest
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

Re: Cigi Object Rendering

Posted: Tue Oct 30, 2018 1:20 pm
by Brady Butler
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

Re: Cigi Object Rendering

Posted: Tue Oct 30, 2018 3:35 pm
by mchriest
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.

Re: Cigi Object Rendering

Posted: Thu May 09, 2019 5:08 pm
by Brady Butler
Hello Mike,

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

Regards,
Brady