Author Topic: Mo'Material Codes : |Shading | Lighting | Shine |  (Read 14272 times)

slycan

  • Guest
Mo'Material Codes : |Shading | Lighting | Shine |
« on: May 06, 2011, 12:38:24 am »
Some'more .material coding
There's alot more you can learn about here: http://www.ogre3d.org/docs/manual/manual_14.html
However, these are just basic ones I've used before for mods (:
-images soon-


Ambient Lighting ( Shading)


Gives the body part shading

Quote
material preset_2_bodyMatL
{
   technique
   {
      pass
      {
        ambient 0.8 0.8 0.8 1.0
         texture_unit
         {
            texture CharacterImage.png
         }
      }
   }
}

~Variations~
Medium Shading : ambient 0.6 0.6 0.6 1.0
Dark Shading : ambient 0.4 0.4 0.4 1.0
Super Shading : ambient 0.2 0.2 0.2 1.0



Shading


Gives the body part a certain type of shading technique

Quote
material preset_2_bodyMatL
{
   technique
   {
      pass
      {
        shading gouraud
         texture_unit
         {
            texture CharacterImage.png
         }
      }
   }
}

~Variations~
High-End Shading : shading phong
Normal Shading (default) : shading gouraud
Polygon Shading : shading flat


Specular Lighting ( Shininess )


Gives the body part a reflective shiny-ness from the light ( sort of like wetness or metal)

Quote
material preset_2_bodyMatL
{
   technique
   {
      pass
      {
        specular 0.2 0.2 0.2 1.0
         texture_unit
         {
            texture CharacterImage.png
         }
      }
   }
}

~Variations~
Clean : specular 0.2 0.2 0.2 1.0
Shiny : specular 0.4 0.4 0.4 1.0
Super Shiny : specular 0.6 0.6 0.6 1.0
Blinding: specular 0.8 0.8 0.8 1.0
« Last Edit: May 06, 2011, 01:24:27 am by Slycan »

Offline Tigg

  • Immortal Legend
  • *****
  • Posts: I am a geek!!
  • Country: at
  • Floof-O-Meter: 0
  • Your right hand on 3D-Meshes
    • t-i-g-g
    • channel/UCKuFJTwBJf94Tq07oVBNMrA
    • 76561198118876593
    • TiggDarkfury
    • View Profile
    • Isla Thanatos Gameserver
Re: [WIP]List of .Material Scripts/Coding
« Reply #1 on: May 06, 2011, 12:43:00 am »
Lol, why dont you use the already existing Thread? ;)

slycan

  • Guest
Re: [WIP]List of .Material Scripts/Coding
« Reply #2 on: May 06, 2011, 12:45:17 am »
oh I'm not going to stickie this I'm just going to link it like the others ^^

Offline Tigg

  • Immortal Legend
  • *****
  • Posts: I am a geek!!
  • Country: at
  • Floof-O-Meter: 0
  • Your right hand on 3D-Meshes
    • t-i-g-g
    • channel/UCKuFJTwBJf94Tq07oVBNMrA
    • 76561198118876593
    • TiggDarkfury
    • View Profile
    • Isla Thanatos Gameserver
Re: [WIP]List of .Material Scripts/Coding
« Reply #3 on: May 06, 2011, 01:00:47 am »
Then i will link your Thread :3

Offline Fantasia_Cross

  • Experienced Traveler
  • **
  • Posts: 230
  • Country: us
  • Floof-O-Meter: 5
    • https://www.deviantart.com/unite
    • View Profile
Re: Mo'Material Codes : |Shading | Lighting | Shine |
« Reply #4 on: November 06, 2012, 11:29:50 pm »
How do I apply these to the Material File? Do I overwrite text or just paste it at the bottom?
Feel free to ask for my Discord in regards to Feralheart Topics.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Mo'Material Codes : |Shading | Lighting | Shine |
« Reply #5 on: November 07, 2012, 03:53:46 am »

Offline Fantasia_Cross

  • Experienced Traveler
  • **
  • Posts: 230
  • Country: us
  • Floof-O-Meter: 5
    • https://www.deviantart.com/unite
    • View Profile
Re: Mo'Material Codes : |Shading | Lighting | Shine |
« Reply #6 on: November 07, 2012, 05:11:29 am »
Thank you so much! I am now narrowing in on your Tutorials! (Nice Logo by the way)
Feel free to ask for my Discord in regards to Feralheart Topics.

Offline Fantasia_Cross

  • Experienced Traveler
  • **
  • Posts: 230
  • Country: us
  • Floof-O-Meter: 5
    • https://www.deviantart.com/unite
    • View Profile
Re: Mo'Material Codes : |Shading | Lighting | Shine |
« Reply #7 on: November 07, 2012, 05:14:58 am »
OH, and if I need to make the MARKINGS...shiny? Forgot to add that.
Feel free to ask for my Discord in regards to Feralheart Topics.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Mo'Material Codes : |Shading | Lighting | Shine |
« Reply #8 on: November 07, 2012, 05:17:16 am »

Offline Fantasia_Cross

  • Experienced Traveler
  • **
  • Posts: 230
  • Country: us
  • Floof-O-Meter: 5
    • https://www.deviantart.com/unite
    • View Profile
Re: Mo'Material Codes : |Shading | Lighting | Shine |
« Reply #9 on: November 07, 2012, 05:31:05 am »
I'd be willing to wait. ^^
Feel free to ask for my Discord in regards to Feralheart Topics.