Fandom

Urho3D Wiki

Shaders/Techniques shipped with Urho3D

69pages on
this wiki
Add New Page
Comments3 Share

The BasicsEdit

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

Diffuse Map Edit

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

Shader d-0

Normal Map Edit

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

The diffuse and normal map together look like this:

Shader dn-0

Specular Map Edit

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

Shader s-1

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
Shader ds-1
Shader sn-1

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 Edit

Urho3D 1.32 comes with these technique files:

Techniques
  • "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

[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
Planet diffuse
Planet normals
See also: http://urho3d.wikia.com/wiki/Blender_Techniques

Appearance in Urho3D Edit

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

Urho planet-1

The material.xml:

<material>
    <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"/>
</material>

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 Edit

Urho planets

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.]

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.