Urho3D Wiki

The Basics[]

The Urho3D techniques can be found under "CoreData/Techniques/".

Their name is basically a combination of their features.

A Model without any texture or special effect looks like this (these images here have been rendered with Blender):

Shader empty.jpg

Diffuse Map[]

A diffuse map is a typical texture (image) which modifies the color of the surface:

Shader d-0.jpg

Normal Map[]

A normal map modifies the normals of the surface. This creates "artificial" bumpiness/roughness and can be used to make a model look more detailed:

Shader n-0.jpg

The diffuse and normal map together look like this:

Shader dn-0.jpg

Specular Map[]

The specular map modifies the specularity (light reflection) of the surface:

Shader s-1.jpg

I gave the "water" of this "planet" a bright blue and the green land mass a dark green-grey. Bright means high reflectivity and dark means low reflectivity. There seems to be no way in Blender to further increase the specularity without making the light(s) brighter, so this is done later via Urho material.

Shader dsn-1.jpg
Shader ds-1.jpg

Shader sn-1.jpg

Combinations from left to right: Diffuse+Specular, Normal+Specular, Diffuse+Normal+Specular.

Here is another example: http://vincent-gros.com/wp-content/uploads/2012/07/RockFloor07.jpg (found at http://vincent-gros.com/category/portfolio/3dgallery/personalwork/)

Urho3D Techniques[]

Urho3D 1.32 comes with these technique files:

  • "NoTexture" means no diffuse texture (solid color or vertex color).
  • "Unlit" means not affected by light.
  • "VCol" is vertex color.
  • "Add" and "Multiply" is often used for particle effects like fire or smoke and means that the material does not replace the background color but is added/multiplied with it.
  • "Mask" means that transparent textures generate correct shadows by making shadows when the alpha is >0.5 and no shadow when <0.5:
    Urho detailed shadows.jpg

[TODO: explain the shipped techniques better HELP NEEDED]

Baking and saving the three Maps in Blender results in the following images, which are later used as textures in Urho3D (Note: Urho3D does not load progressive JPEGs, which is default setting in GIMP). They have been converted to JPEGs with 90% quality to reduce the file size from >4MByte to around 1MByte. The UV map has been created via "Smart UV Project" with "Angle Limit"=66 (default), "Island Margin"=0.03, "Area Weight"=0 and with "Correct Aspect".

Planet specular.jpg
Planet diffuse.jpg

Planet normals.jpg

See also: http://urho3d.wikia.com/wiki/Blender_Techniques

Appearance in Urho3D[]

This is the planet with Diffuse, Normal and Specular Map:

Urho planet-1.jpg

The material.xml:

    <technique name="Techniques/DiffNormalSpec.xml"/>
    <texture name="Textures/planet_diffuse.jpg" unit="diffuse"/>
    <texture name="Textures/planet_normals.jpg" unit="normal"/>
    <texture name="Textures/planet_specular.jpg" unit="specular"/>
    <parameter name="MatDiffColor" value="0.64 0.64 0.64 1"/>
    <parameter name="MatSpecColor" value="5 5 5 10"/>

The MatSpecColor has been manually increased from 1 1 1 10 to 5 5 5 10 to make it brighter. The rest has been automatically set by the Blender exporter. The four values mean red, green, blue, and hardness.

Urho Gallery[]

Urho planets.jpg

Some of the Urho techniques applied to the planet. Each material file has only the name of the technique changed, like "Techniques/DiffNormalSpec.xml" to "Techniques/NoTextureNormal.xml". The name above each planet is the technique file name (minus ".xml").

[TODO: Add examples of materials with alpha and Add/Multiply techniques.]