Textures and IMML¶
Models are published by default with accompanying textures, and additional texture maps can be added through the VastPark Publisher
It is possible to apply different textures to a Model or Primitive from a designated URI.
To do this you can add a texture tag to your Model or Primitives Material IMML.
Texture IMML Example:
<Primitive Name="box" Type="Box" Complexity="VeryLow" Position="-1,0,0" Size="1,1,1">
<MaterialGroup Id="-1">
<Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" EnableTextures="True"/>
<Texture Source="http://www.vastpark.com/images/logos/vastparkblackcolour2.jpg"/>
</MaterialGroup>
<Physics Enabled="False" Movable="False"/>
</Primitive>
The below picture demonstrates a box before and after a texture has been applied to it.