Posted: Thu Oct 30, 2008 6:45 am
Excuse me if the question seems dumb, but have you defined external views in shipdata.plist? They can only be displayed if they are defined here with the custom_views-key, followed by an array that contains the different view positions one after the other in the order they are cycled through. The syntax is (example from the built-in Cobra III):chomann wrote:this is my first ship build, and im having problems with the external views, meaning when I hit "v" the views do not cycle. The ship shows up fine in the shipyard, and on the loading screen but i can't get a single external view of it while in game. Is there some "golden Rule" for setting the views or a certain range that I need to stay with in for the views to work. If i use custom views and set my own do the coordinates go in x,y,z order and are they in meters just like wings3d? Thanks
Code: Select all
<key>custom_views</key>
<array>
<dict>
<key>view_description</key>
<string>Rear View</string>
<key>view_orientation</key>
<string>1.0 0.0 0.0 0.0</string>
<key>view_position</key>
<string>0.0 30.0 -200.0</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>Rear Right View</string>
<key>view_orientation</key>
<string>0.9239 0.0 0.3827 0.0</string>
<key>view_position</key>
<string>141.42 30.0 -141.42</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>Right View</string>
<key>view_orientation</key>
<string>0.7071 0.0 0.7071 0.0</string>
<key>view_position</key>
<string>200.0 30.0 0.0</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>Front Right View</string>
<key>view_orientation</key>
<string>0.3827 0.0 0.9239 0.0</string>
<key>view_position</key>
<string>141.42 30.0 141.42</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>Front View</string>
<key>view_orientation</key>
<string>0.0 0.0 1.0 0.0</string>
<key>view_position</key>
<string>0.0 30.0 200.0</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>Front Left View</string>
<key>view_orientation</key>
<string>0.3827 0.0 -0.9239 0.0</string>
<key>view_position</key>
<string>-141.42 30.0 141.42</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>Left View</string>
<key>view_orientation</key>
<string>0.7071 0.0 -0.7071 0.0</string>
<key>view_position</key>
<string>-200.0 30.0 0.0</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>Rear Left View</string>
<key>view_orientation</key>
<string>0.9239 0.0 -0.3827 0.0</string>
<key>view_position</key>
<string>-141.42 30.0 -141.42</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>Top View</string>
<key>view_orientation</key>
<string>-0.7071 0.7071 0.0 0.0</string>
<key>view_position</key>
<string>0.0 200.0 -15.0</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
<dict>
<key>view_description</key>
<string>Bottom View</string>
<key>view_orientation</key>
<string>0.0 0.0 0.7071 0.7071</string>
<key>view_position</key>
<string>0.0 -200.0 -15.0</string>
<key>weapon_facing</key>
<string>FORWARD</string>
</dict>
</array>
Code: Select all
"custom_views" = (
{
"view_description" = "Rear View";
"view_orientation" = "1.0 0.0 0.0 0.0";
"view_position" = "0.0 30.0 -200.0";
"weapon_facing" = FORWARD;
},
{
"view_description" = "Rear Right View";
"view_orientation" = "0.9239 0.0 0.3827 0.0";
"view_position" = "141.42 30.0 -141.42";
"weapon_facing" = FORWARD;
},
{
"view_description" = "Right View";
"view_orientation" = "0.7071 0.0 0.7071 0.0";
"view_position" = "200.0 30.0 0.0";
"weapon_facing" = FORWARD;
},
{
"view_description" = "Front Right View";
"view_orientation" = "0.3827 0.0 0.9239 0.0";
"view_position" = "141.42 30.0 141.42";
"weapon_facing" = FORWARD;
},
{
"view_description" = "Front View";
"view_orientation" = "0.0 0.0 1.0 0.0";
"view_position" = "0.0 30.0 200.0";
"weapon_facing" = FORWARD;
},
{
"view_description" = "Front Left View";
"view_orientation" = "0.3827 0.0 -0.9239 0.0";
"view_position" = "-141.42 30.0 141.42";
"weapon_facing" = FORWARD;
},
{
"view_description" = "Left View";
"view_orientation" = "0.7071 0.0 -0.7071 0.0";
"view_position" = "-200.0 30.0 0.0";
"weapon_facing" = FORWARD;
},
{
"view_description" = "Rear Left View";
"view_orientation" = "0.9239 0.0 -0.3827 0.0";
"view_position" = "-141.42 30.0 -141.42";
"weapon_facing" = FORWARD;
},
{
"view_description" = "Top View";
"view_orientation" = "-0.7071 0.7071 0.0 0.0";
"view_position" = "0.0 200.0 -15.0";
"weapon_facing" = FORWARD;
},
{
"view_description" = "Bottom View";
"view_orientation" = "0.0 0.0 0.7071 0.7071";
"view_position" = "0.0 -200.0 -15.0";
"weapon_facing" = FORWARD;
}
);