FlightGear WorldTerrain SkyBox Server: Difference between revisions

Jump to navigation Jump to search
m
Line 137: Line 137:
The skyboxes are currently handled on the FlightGear side by the use of a custom camera group, located in a file called skybox-cameras.xml. I haven't worked out the rest of my data pruning issues and hence have not uploaded anything to the fgdata side of my FlightGear repository for this project, but the skybox file is necessary to run the project.  Here is the skybox-cameras.xml file:
The skyboxes are currently handled on the FlightGear side by the use of a custom camera group, located in a file called skybox-cameras.xml. I haven't worked out the rest of my data pruning issues and hence have not uploaded anything to the fgdata side of my FlightGear repository for this project, but the skybox file is necessary to run the project.  Here is the skybox-cameras.xml file:


[[http://indiemotionsoftware.com/files/skybox-cameras.xml]]
[http://indiemotionsoftware.com/files/skybox-cameras.xml $FG_ROOT/skybox-cameras.xml]
<syntaxhighlight lang="xml"><!--
 
************************************************************************
Definitions for four cameras, tracking three cardinal directions ESW (main
camera handles North) and then one for straight up.
 
************************************************************************
-->
<PropertyList>
<camera-group>
<window>
<name>FlightGear World Server</name>
<host-name type="string"/>
<display>0</display>
<screen>0</screen>
<width>4000</width>
<height>800</height>
<decoration type="bool">false</decoration>
</window>
<camera>
<window>
<name>FlightGear World Server</name>
</window>
<viewport>
<x>0</x>
<y>0</y>
<width>800</width>
<height>800</height>
</viewport>
<view>
<heading-deg type="double">90.0</heading-deg>
</view>
<frustum>
<top>480</top>
<bottom>-480</bottom>
<left>-480</left>
<right>480</right>
<near>480</near>
<far>40000</far>
<fixed-near-far>true</fixed-near-far>
</frustum>
</camera>
<camera>
<window>
<name type="string">FlightGear World Server</name>
</window>
<viewport>
<x>800</x>
<y>0</y>
<width>800</width>
<height>800</height>
</viewport>
<view>
<heading-deg type="double">0</heading-deg>
</view>
<frustum>
<top>480</top>
<bottom>-480</bottom>
<left>-480</left>
<right>480</right>
<near>480</near>
<far>40000</far>
<fixed-near-far>true</fixed-near-far>
</frustum>
</camera>
<camera>
<window>
<name>FlightGear World Server</name>
</window>
<viewport>
<x>1600</x>
<y>0</y>
<width>800</width>
<height>800</height>
</viewport>
<view>
<heading-deg type="double">-90.0</heading-deg>
</view>
<frustum>
<top>480</top>
<bottom>-480</bottom>
<left>-480</left>
<right>480</right>
<near>480</near>
<far>40000</far>
<fixed-near-far>true</fixed-near-far>
</frustum>
</camera>
<camera>
<window>
<name>FlightGear World Server</name>
</window>
<viewport>
<x>2400</x>
<y>0</y>
<width>800</width>
<height>800</height>
</viewport>
<view>
<heading-deg type="double">-180.0</heading-deg>
</view>
<frustum>
<top>480</top>
<bottom>-480</bottom>
<left>-480</left>
<right>480</right>
<near>480</near>
<far>40000</far>
<fixed-near-far>true</fixed-near-far>
</frustum>
</camera>
<camera>
<window>
<name>FlightGear World Server</name>
</window>
<viewport>
<x>3200</x>
<y>0</y>
<width>800</width>
<height>800</height>
</viewport>
<view>
<heading-deg type="double">0.0</heading-deg>
<pitch-deg type="double">90.0</pitch-deg>
</view>
<frustum>
<top>480</top>
<bottom>-480</bottom>
<left>-480</left>
<right>480</right>
<near>480</near>
<far>40000</far>
<fixed-near-far>true</fixed-near-far>
</frustum>
</camera>
<gui>
<window>
<name type="string">FlightGear World Server</name>
</window>
</gui>
</camera-group>
</PropertyList>
<!--  end of preferences.xml  -->
</syntaxhighlight>


Also, here is my preferences file, where the skybox-cameras file is included:
Also, here is my preferences file, where the skybox-cameras file is included:


[[http://indiemotionsoftware.com/files/preferences.xml]]
[http://indiemotionsoftware.com/files/preferences.xml $FG_ROOT/preferences.xml]
 
<syntaxhighlight lang="xml">
<!-- simply add an include directive referencing the skybox-cameras.xml file -->
<rendering include="skybox-cameras.xml">
</syntaxhighlight>




Navigation menu