3D models can be added on different ways. Supported formats are Flora3D, Collada Obj, KML and KMZ. KML animations and collada skeleton animations are supported to some degree. A small tutorial on creating simple animations can be read here [Animating 3D models].
Model specific layer options are:
A point shapefile that references model files with the following attributes:
To make cables work, Biosphere has to know the start- and endpoints of a model. These points are provides via custom kml attributes. They can be added to an existing kml file or another model can be referenced in a simple kml file like the following sample:
https://sourceforge.net/p/biosphere3d/wiki/Objects/attachment/SimpleExample.kml
Note that Biosphere uses the kml location as relative position in meter to the actual position given by the point shape.
Like can be seen in the sample, a single cable section has a start and endpoint, given by a x, y and z coordinate in meter relative to the model origin. Multiple such sections can be added for more cable connections between models.
<Cable>
<StartX>-4.5</StartX>
<StartY>0.7</StartY>
<StartZ>25.5</StartZ>
<EndX>-4.5</EndX>
<EndY>-0.7</EndY>
<EndZ>25.5</EndZ>
</Cable>
A polygon shapefile that references OIX records, that are distributed in the polygons. Two attributes are needed:
With this menu entry, Biosphere reads the KML location as expected as an absolute position on earth with longitude and latitude in degree.
KMZ files are compressed KML files. Biosphere simple extracts the content and opens the KML file with its absolute location on earth.
Models can be placed right under the camera with this menu entry. A simple kml file is created that references the model. That kml file is than opened.
For an exact placement of small models on very large collada models, Biosphere can place referenced models on geometry, that uses special material attributes. In the following snipped of a phong material definition comes after the first common attribute the two ways of referencing models. A single model can be placed in the center of the geometry with the B3D_SinglePlant section, which takes a model file, a scale and rotation. An OIX distribution for the plane of the geometry can be referenced with B3D_OIXPolygon, which takes a file and a record.
<phong>
<diffuse><color>1.0 1.0 1.0 1.0</color></diffuse>
<B3D_SinglePlant>
<model>Abies_alba_500.flora3d</model>
<scale>1</scale>
<rotation>30.0</rotation>
</B3D_SinglePlant>
<B3D_OIXPolygon>
<file>randomPlants.oix</file>
<record>RandomTreesRecord2</record>
</B3D_OIXPolygon>
</phong>
For materials with a reflectivity value, biosphere specific attributes can be used to create waves on surfaces that use this material. The two attributes waveLength and waveHeight take the same values as the other water surfaces or the global water surface.
<phong>
<reflectivity><float>0.9</float></reflectivity>
<B3D_WaterPolygon>
<waveLength>0.1</waveLength>
<waveHeight>0.005</waveHeight>
</B3D_WaterPolygon>
</phong>