Site Tools


tutorial:ds3-gparam-basics

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:ds3-gparam-basics [2025/02/26 01:50] admintutorial:ds3-gparam-basics [2025/02/27 00:45] (current) admin
Line 17: Line 17:
 Let’s start talking about the LIGHT section, what exactly it does? Well, this category will deal with the position of the light’s direction, the color it will use, the strength of that color, the strength of the light’s reflection and the SSAO of it. Let’s start talking about the LIGHT section, what exactly it does? Well, this category will deal with the position of the light’s direction, the color it will use, the strength of that color, the strength of the light’s reflection and the SSAO of it.
  
-<code>+<code XML>
 [LIGHT ANGLE]  [LIGHT ANGLE] 
 <param name1="Directional Light Angle0" name2="Angle" type="Float2"> <param name1="Directional Light Angle0" name2="Angle" type="Float2">
Line 25: Line 25:
 The bold numbers above are, in order, the Y Axis and the X Axis of the light’s angle. The bold numbers above are, in order, the Y Axis and the X Axis of the light’s angle.
  
-<code>+<code XML>
 [LIGHT COLOR]  [LIGHT COLOR] 
 <param name1="Directional Light DiffColor0" name2="DiffColor" type="Float4"> <param name1="Directional Light DiffColor0" name2="DiffColor" type="Float4">
Line 34: Line 34:
 **RED/GREEN/BLUE and ALPHA** (The alpha number controls how strong will be the light) **RED/GREEN/BLUE and ALPHA** (The alpha number controls how strong will be the light)
  
-<code>+<code XML>
 [LIGHT REFLECTION COLOR]  [LIGHT REFLECTION COLOR] 
 <param name1="Directional Light SpecColor0" name2="SpecColor" type="Float4"> <param name1="Directional Light SpecColor0" name2="SpecColor" type="Float4">
Line 43: Line 43:
 **RED/BLUE/GREEN and ALPHA** (The alpha number controls how strong will be the light) **RED/BLUE/GREEN and ALPHA** (The alpha number controls how strong will be the light)
  
-<code>+<code XML>
 [LIGHT REFLECTION STRENGTH]   [LIGHT REFLECTION STRENGTH]  
 <param name1="**Directional Light Sharpness0**" name2="Sharpness" type="Float"> <param name1="**Directional Light Sharpness0**" name2="Sharpness" type="Float">
Line 57: Line 57:
 Now that I have presented the 5 main observations of what controls some characteristics of the LIGHT, I will need you to make a mental effort to understand one point, let's imagine the following: Now that I have presented the 5 main observations of what controls some characteristics of the LIGHT, I will need you to make a mental effort to understand one point, let's imagine the following:
  
-<code>+<code XML>
 <param name1="Directional Light DiffColor0" name2="DiffColor" type="Float4"> <param name1="Directional Light DiffColor0" name2="DiffColor" type="Float4">
 <value id="0">0,919829 0,757829 0,698302 22</value> <value id="0">0,919829 0,757829 0,698302 22</value>
Line 69: Line 69:
 In this part of gparam, we have the colour of some ID lighting: In this part of gparam, we have the colour of some ID lighting:
  
-<code>+<code XML>
 Value id="0" / Value id="1" / Value id="2" / Value id="3" / Value id="4" / Value id="10" Value id="0" / Value id="1" / Value id="2" / Value id="3" / Value id="4" / Value id="10"
 </code> </code>
Line 75: Line 75:
 Sounds confusing but imagine you are editing a piece of mapstudio map, there are two sections of information where you can set these ids Sounds confusing but imagine you are editing a piece of mapstudio map, there are two sections of information where you can set these ids
  
-<code>+<code XML>
 LightSetID  [     ] LightSetID  [     ]
 FogParamID  [     ] FogParamID  [     ]
Line 84: Line 84:
 Now let's imagine the following, each Value ID has 4 lights that can be directed and configured. Now let's imagine the following, each Value ID has 4 lights that can be directed and configured.
  
-<code>+<code XML>
  <param name1="Directional Light DiffColor0  <param name1="Directional Light DiffColor0
  <param name1="Directional Light DiffColor1      <param name1="Directional Light DiffColor1    
Line 93: Line 93:
 They seems to be pretty much the same thing, but they arent. Take a look at this: They seems to be pretty much the same thing, but they arent. Take a look at this:
  
-<code>+<code XML>
  <param name1="Directional    >>|Light|<<     Diff    >>|Color0|<<  <param name1="Directional    >>|Light|<<     Diff    >>|Color0|<<
  <param name1="Directional    >>|Light|<<     Diff    >>|Color1|<<      <param name1="Directional    >>|Light|<<     Diff    >>|Color1|<<    
Line 109: Line 109:
 Every light will always have Light color 0 and Light color 1 active and visible, but near the end of this portion of the XML that takes care of the light part you will find  Every light will always have Light color 0 and Light color 1 active and visible, but near the end of this portion of the XML that takes care of the light part you will find 
  
-<code>+<code XML>
 <param name1="Directional Enable LocalLight1" name2="Enable LocalLight1" type="BoolB"> <param name1="Directional Enable LocalLight1" name2="Enable LocalLight1" type="BoolB">
     <value id="0">**False**</value>     <value id="0">**False**</value>
Line 133: Line 133:
 It will follow a similar structure to the light part, much of this you will have to test and experience personally. It will follow a similar structure to the light part, much of this you will have to test and experience personally.
  
-<code>+<code XML>
 <param name1="Fog-Color" name2="Color" type="Float4"> <param name1="Fog-Color" name2="Color" type="Float4">
 <value id="0">**0,802986 0,718366 0,67493 0,683**</value> <value id="0">**0,802986 0,718366 0,67493 0,683**</value>
Line 142: Line 142:
 **RED/GREEN/BLUE and ALPHA** (The alpha number controls how strong will be the fog) **RED/GREEN/BLUE and ALPHA** (The alpha number controls how strong will be the fog)
  
-<code>+<code XML>
 <param name1="Fog-heightColor" name2="heightColor" type="Float4"> <param name1="Fog-heightColor" name2="heightColor" type="Float4">
         <value id="0">**0,802986 0,718366 0,72493 0,423**</value>         <value id="0">**0,802986 0,718366 0,72493 0,423**</value>
Line 153: Line 153:
 Basically changing the Fog-Dist will manage the horizontal distance from the fog to the player. On the other hand, Fog-heightDist will do the same but vertically. Basically changing the Fog-Dist will manage the horizontal distance from the fog to the player. On the other hand, Fog-heightDist will do the same but vertically.
  
-<code>+<code XML>
   <param name1="**Fog-Dist**" name2="Dist" type="Float">   <param name1="**Fog-Dist**" name2="Dist" type="Float">
         <value id="0">**22,8**</value>         <value id="0">**22,8**</value>
Line 163: Line 163:
 The last two options, Fog-fogAlpha and Fog-fogContrast, will control how full an environment will become with the fog or how visible fog becomes by changing these two options. The last two options, Fog-fogAlpha and Fog-fogContrast, will control how full an environment will become with the fog or how visible fog becomes by changing these two options.
    
-<code>+<code XML>
  <param name1="Fog-fogAlpha" name2="Alpha" type="Float">  <param name1="Fog-fogAlpha" name2="Alpha" type="Float">
         <value id="0">**1**</value>         <value id="0">**1**</value>
tutorial/ds3-gparam-basics.1740534639.txt.gz · Last modified: by admin