- Posts: 3584
- Thank you received: 612
<view n="1"> <name>Helicopter View</name> <enabled type="bool">true</enabled> <type>lookat</type> <config> <from-model type="bool">false</from-model> <from-model-idx type="int">0</from-model-idx> <eye-lat-deg-path>/position/latitude-deg</eye-lat-deg-path> <eye-lon-deg-path>/position/longitude-deg</eye-lon-deg-path> <eye-alt-ft-path>/position/altitude-ft</eye-alt-ft-path> <eye-heading-deg-path>/orientation/heading-deg</eye-heading-deg-path> <eye-pitch-deg-path>/orientation/pitch-deg</eye-pitch-deg-path> <eye-roll-deg-path>/orientation/roll-deg</eye-roll-deg-path> <at-model type="bool">true</at-model> <at-model-idx type="int">0</at-model-idx> <at-model-heading-damping type="double">0.0</at-model-heading-damping> <ground-level-nearplane-m type="double">0.9f</ground-level-nearplane-m> <x-offset-m>0</x-offset-m><!-- right --> <y-offset-m>80</y-offset-m><!-- up --> <z-offset-m>-200</z-offset-m><!-- back --> <pitch-offset-deg>-5</pitch-offset-deg> <default-field-of-view-deg>60</default-field-of-view-deg> </config> </view>
<x-offset-m>0</x-offset-m><!-- right --> <y-offset-m>80</y-offset-m><!-- up --> <z-offset-m alias="/fuck/you/flightgear" />
I need to have a close look at the Nimitz today as some of it appears to be broken in 2020.1 so I'll see if I can see how it's done...
StuartC wrote: If we could ever figure out why we cant add working Cats to ouir own carriers, we could have the Hermes and classic cat operating carriers out there.
Unfortunately that doesn't give the desired effect - as above in reply to Stuart, that positions the point upon which the "eye" is fixed and rotates around. Moving that just means that you can't then rotate the view right around the ship, the viewer ends up inside the hull which is not desirable.
Richard wrote: From looking at the view logic in the core maybe use target-#-offset-m instead of #-offset-m
Yeah, I was looking at that and I think it could be an interesting approach, but I'm not convinced it will help in this particular case. I will be playing with it today.
Also setting eye-fixed may help as you can set the eye-#-deg-path (lat/lon/alt)
Now that will be handy...
I've got some WIP changes to the core to identify the nearest carrier to the aircraft - the idea is to be able to have a moving LSO view.
That was it, I'm afraid! The first thing I tried to do on my new carrier "aircraft" was to sort out the views and came to a crashing halt almost immediately!! Just to be clear, this is the "player" or "aircraft" part of the MP carrier, under the control of a player, so it should behave just as an aircraft does in terms of views. The other side, the MP scenario, will come later.
Maybe if you send me a more complete example I can try to debug it directly
OK, I'll start another thread so we can get as much info as we already know about it in one place, and perhaps we can solve it.
StuartC wrote: We know how its done but when you transfer it, it gets broken and the cat has zero power.
You are not logged in.
You are not logged in.