One problem is I can't get it to cycle through the views correctly. It starts at 0 but cycles through to 10 and then back to 1, skipping 0. I have checked and double checked the view definitions against a few other aircraft and don't see anything wrong. I can set the current-view-number to 0 and that works, but it wont cycle to 0.
The other issue is I am getting weird views for model and flyby. I have seen these strange views on other aircraft but I could say which ones or if they were the same view assignment.
I'm hoping someone will see something I am overlooking or knows what the issue might be.
Current code for the views
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<chase-distance-m type="double" archive="y"> -30 </chase-distance-m>
<view n="0">
<internal type="bool" archive="y">true</internal>
<config>
<x-offset-m archive="y" type="double"> 0.520 </x-offset-m> <!--right-->
<y-offset-m archive="y" type="double"> -1.091 </y-offset-m> <!--up-->
<z-offset-m archive="y" type="double"> -8.668 </z-offset-m> <!--back-->
<pitch-offset-deg type="double"> -15 </pitch-offset-deg>
<default-field-of-view-deg> 60 </default-field-of-view-deg>
</config>
</view>
<view n="100">
<name>Passanger Seat View</name>
<type>lookfrom</type>
<internal archive="y">true</internal>
<config>
<!--dynamic-view type="bool">true</dynamic-view-->
<from-model type="bool">true</from-model>
<from-model-idx type="int">0</from-model-idx>
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
<x-offset-m archive="y" type="double"> -0.520 </x-offset-m> <!--right-->
<y-offset-m archive="y" type="double"> -1.091 </y-offset-m> <!--up-->
<z-offset-m archive="y" type="double"> -8.668 </z-offset-m> <!--back-->
<pitch-offset-deg type="double"> -15 </pitch-offset-deg>
<default-field-of-view-deg> 60 </default-field-of-view-deg>
</config>
</view>
<view n="101">
<name>Crane Seat View</name>
<type>lookfrom</type>
<internal archive="y">true</internal>
<config>
<!--dynamic-view type="bool">true</dynamic-view-->
<from-model type="bool">true</from-model>
<from-model-idx type="int">0</from-model-idx>
<ground-level-nearplane-m type="double">0.5f</ground-level-nearplane-m>
<x-offset-m archive="y" type="double"> -0.575 </x-offset-m> <!--right-->
<y-offset-m archive="y" type="double"> -1.665 </y-offset-m> <!--up-->
<z-offset-m archive="y" type="double"> -7.735 </z-offset-m> <!--back-->
<pitch-offset-deg type="double"> 0 </pitch-offset-deg>
<default-field-of-view-deg> 60 </default-field-of-view-deg>
<heading-offset-deg type="double">180</heading-offset-deg>
</config>
</view>
<view n="102">
<name>Tail Camera View</name>
<type>lookfrom</type>
<internal archive="y">true</internal>
<config>
<from-model type="bool">true</from-model>
<from-model-idx type="int">0</from-model-idx>
<ground-level-nearplane-m type="double">0.01f</ground-level-nearplane-m>
<x-offset-m archive="y" type="double"> 0.000 </x-offset-m> <!--Right-->
<y-offset-m archive="y" type="double"> 1.801 </y-offset-m> <!--Up-->
<z-offset-m archive="y" type="double"> 10.637 </z-offset-m> <!--Back-->
<pitch-offset-deg> -5 </pitch-offset-deg>
<default-field-of-view-deg type="double"> 30 </default-field-of-view-deg>
</config>
</view>
</PropertyList>
These are the strange views for
Flyby view=6
Model view=7