Marginal / GroundTraffic

Animated ground vehicle traffic kit for X-Plane
http://marginal.org.uk/x-planescenery
GNU Lesser General Public License v2.1
10 stars 12 forks source link

nst0022, x11.50 Vulkan (XPLMInstance) #6

Closed nst0022 closed 4 years ago

nst0022 commented 4 years ago

(Sorry for this 2nd pull request, I had to fix some cut&paste errors)

I have made changes to accomodate X-Plane 11.50 Vulkan, namely using XPLMInstancing instead of XPLMDrawObjects.

As I am on Linux, I could not compile for Windows or Mac, but tested the changes in a separate configuration (64-bit Linux only).

The plugin works (here) now for the following custom sceneries:

• San Francisco Golden Gate Bridge • San Francisco Oakland Bay Bridge • San Francisco Airport Vehicles (1) • San Francisco Cable Cars and Ferries (1) • San Diego Coronado Bridge

covering the GroundTraffic statements 'route', 'highway', and 'train'.


(*1) One peculiarity: In these two GroundTraffic.txt files, I had to replace all objects, that contained ANIM_begin/_end in their .obj files, which caused X-Plane to crash on first XPLMInstanceSetPosition, with their non-ANUM counter parts. I first thought, that XPLMInstanceSetPosition cannot handle such active objects, but in worked fine in Laminar's Instancing Sample Code. Well (?)

nst0022 commented 4 years ago

Pull request closed due to this comment in the org forum, to avoid possible future confusion.