Urho3D Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 8: Line 8:
 
=== Diffuse Map ===
 
=== Diffuse Map ===
 
A diffuse map is a typical texture (image) which modifies the color of the surface:
 
A diffuse map is a typical texture (image) which modifies the color of the surface:
[[File:Shader d-0.jpg|centre|thumb|256x256px]]
+
[[File:Shader d.jpg|centre|thumb|256x256px]]
 
=== Normal Map ===
 
=== 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:
 
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:
[[File:Shader n-0.jpg|centre|thumb|256x256px]]
+
[[File:Shader n.jpg|centre|thumb|256x256px]]
 
The diffuse and normal map together look like this:
 
The diffuse and normal map together look like this:
[[File:Shader dn-0.jpg|centre|thumb|256x256px]]
+
[[File:Shader dn.jpg|centre|thumb|256x256px]]
  +
 
=== Specular Map ===
 
=== Specular Map ===
 
The specular map modifies the specularity (light reflection) of the surface:
 
The specular map modifies the specularity (light reflection) of the surface:
[[File:Shader s-1.jpg|centre|thumb|256x256px]]
+
[[File:Shader s-0.jpg|centre|thumb|256x256px]]
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.
+
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.
[[File:Shader dsn-1.jpg|thumb|256x256px]]
+
[[File:Shader dsn-0.jpg|thumb|256x256px]]
[[File:Shader ds-1.jpg|left|thumb|256x256px]]
+
[[File:Shader ds-0.jpg|left|thumb|256x256px]]
[[File:Shader sn-1.jpg|centre|thumb|256x256px]]
+
[[File:Shader sn-0.jpg|centre|thumb|256x256px]]
 
Combinations from left to right: Diffuse+Specular, Normal+Specular, Diffuse+Normal+Specular.
 
Combinations from left to right: Diffuse+Specular, Normal+Specular, Diffuse+Normal+Specular.
   
Line 34: Line 35:
 
* "Mask" means that transparent textures generate correct shadows by making shadows when the alpha is >0.5 and no shadow when <0.5: [[File:Urho detailed shadows.jpg|centre|thumb|400x400px]]
 
* "Mask" means that transparent textures generate correct shadows by making shadows when the alpha is >0.5 and no shadow when <0.5: [[File:Urho detailed shadows.jpg|centre|thumb|400x400px]]
 
[TODO: explain the shipped techniques better HELP NEEDED]
 
[TODO: explain the shipped techniques better HELP NEEDED]
  +
  +
[TODO: upload the example "planet" here, export it to Urho to show its appearance inside Urho compared to the Blender renderings and explain how to modify the material.xml to use the different techniques.]
   
 
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".
 
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".
Line 40: Line 43:
   
 
== Appearance in Urho3D ==
 
== Appearance in Urho3D ==
  +
[TODO: Update the images above to fit these modified settings]
This is the planet with Diffuse, Normal and Specular Map:
 
  +
 
This is the planet with Diffuse, Normal and Specular Map:
 
[[File:Urho planet-1.jpg|centre|thumb|520x520px]]
 
[[File:Urho planet-1.jpg|centre|thumb|520x520px]]
 
The material.xml:
 
The material.xml:
Please note that all contributions to the Urho3D Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)