User Tools

Site Tools


hpl2:tutorials:material_editor:tutorial_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
hpl2:tutorials:material_editor:tutorial_1 [2011/02/15 21:11]
l1ght5h0w
hpl2:tutorials:material_editor:tutorial_1 [2020/07/19 19:53] (current)
saito100
Line 1: Line 1:
 ====== Material Editor - Tutorial 1 ====== ====== Material Editor - Tutorial 1 ======
  
- +The Material Editor is where you create and edit material files (.mat). These files tell the engine which textures and material properties each model uses.\\ 
-The Material Editor is where you create and edit material files (.mat). These files tell the engine which textures and material properties each model uses.\\ ​ \\  For this tutorial we will go through controls, viewer properties and setting basic textures (diffuse, normal and specular map) for a tileable floor material. +\\ 
 +For this tutorial we will go through controls, viewer properties and setting basic textures (diffuse, normal and specular map) for a tileable floor material.
  
 ---- ----
  
- +First open MaterialEditor.exe located in the game redist.\\ 
-First open MaterialEditor.exe located in the game redist.\\ ​ Since we will be working with a floor we need the preview window to display a plane instead of a box. Simply change Box to plane under "​Model"​ to the right.\\ ​ Preview controls:​\\ ​ Zoom: scroll wheel\\ ​ Move lightsource direction: right mouse button+move mouse\\ ​ \\  There are a few options under the preview window and they are easy understand.\\ ​ \\  To add a diffuse texture check the "​Diffuse"​ box under "​Texture Units"​.\\ ​ Under "​File"​ press the button next to it, locate and choose a floor texture (example: redist%%\%%static_objects%%\%%mansionbase%%\%%floor%%\%%mansionbase_floor_boards.dds).\\ ​ Keep the other options as it is.\\  Do the same thing again with "​NMap"​ and "​Specular"​. These should located at the same place and with _nrm and _specular as prefix.\\ ​ This is a wood material so do not forget to set "​Physics Material"​ to "​Wood"​ at the top of the window.\\ ​ Save!\\ ​ {{:hpl2:​tutorials:​material_editor:​material_editor01.jpg}}+Since we will be working with a floor we need the preview window to display a plane instead of a box. Simply change Box to plane under "​Model"​ to the right.\\ 
 +Preview controls:\\ 
 +Zoom: scroll wheel\\ 
 +Move lightsource direction: right mouse button+move mouse\\ 
 +\\ 
 +There are a few options under the preview window and they are easy understand.\\ 
 +\\ 
 +To add a diffuse texture check the "​Diffuse"​ box under "​Texture Units"​.\\ 
 +Under "​File"​ press the button next to it, locate and choose a floor texture (example: redist<​nowiki>​\</​nowiki>​static_objects<​nowiki>​\</​nowiki>​mansionbase<​nowiki>​\</​nowiki>​floor<​nowiki>​\</​nowiki>​mansionbase_floor_boards.dds).\\ 
 +Keep the other options as it is.\\ 
 +Do the same thing again with "​NMap"​ and "​Specular"​. These should located at the same place and with _nrm and _specular as prefix.\\ 
 +This is a wood material so do not forget to set "​Physics Material"​ to "​Wood"​ at the top of the window.\\ 
 +Save!\\ 
 +{{https://​i.postimg.cc/​y857vHBN/​Material-Editor.png}}
  
hpl2/tutorials/material_editor/tutorial_1.1297804315.txt.gz · Last modified: 2011/02/15 21:11 by l1ght5h0w