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)' #5

Closed nst0022 closed 4 years ago

nst0022 commented 4 years ago

I have changed the code to XPLMInstancing, which is mandatory for X-Plane 11.50 Vulkan.

As I am on Linux, I was not able to 'make' for Windows and Mac, but I tested the new coding in a separate configuration.

I have marked all changes with 'nst0022' in the source code.

On my machine, 5 GroundTraffic plugins work now:

Golden Gate Bridge Oakland Bay Bridge MisterX San Francisco (1) MisterX San Francisco cable cars (1) San Diego Coronado Bridge


(*1) One peculiarity: The original GroundTraffic.txt files caused X-Plane to crash at the first XPLMInstanceSetPosition attempt. I needed to replace all objects, that had ANIM_begin/_end in their .obj file with their counterparts without ANIM_begin/_end. I first thought, that XPLMInstanceSetPosition cannot handle animated objects, but it worked well with Laminar's Instance Sample Code. Well ?