Author Topic: Realistic Lighting on Presets?  (Read 1106 times)

Offline TheBoss

  • Forum Newcomer
  • *
  • Posts: 2
  • Country: us
  • Floof-O-Meter: 1
  • I know, I'm a hot mess~ <3
    • darkrose1010.deviantart.com
    • View Profile
Realistic Lighting on Presets?
« on: May 30, 2016, 02:34:08 pm »
I'm not exactly sure on where to put this, so I'm just going to take my chances on here.

Anywho. I've come across many users with presets, and every now and then,  I'd noticed some using a code I believe is known as 'Realistic Lighting.'

For those who may have no idea what I'm talking about, it's basically a preset modification where it adds a cool 'lighting' effect to your preset.

I've searched board after board, and thread after thread, and can't seem to find this code anywhere. I've been looking for many months and eventually got tired of looking and decided to ask about it on here.

If any of you know where I could get this code, and possibly the correct way to use it, I'd be very grateful.

Thank you~

Offline G4RG0YLE

  • Elder Grey Pelt
  • ****
  • Posts: 3,431
  • Country: gb
  • Floof-O-Meter: 170
  • Avatar © Felicia on Discord ♡
    • View Profile
Re: Realistic Lighting on Presets?
« Reply #1 on: May 30, 2016, 02:56:04 pm »
EDIT: Realised the code was wrong.

I'll be sure to go and hunt for the code you need.
« Last Edit: May 30, 2016, 02:59:30 pm by Shurtle »

© short ' cakes on Discord ♡

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Realistic Lighting on Presets?
« Reply #2 on: May 30, 2016, 03:53:10 pm »
Code: [Select]
material MATERIAL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1
texture_unit
{
texture TEXTURE.PNG
}
}
}
}

The ambient code adds more realism, making the preset more reactive to light.
You just need to add the ambient line where it's seen above into all the material sections of the preset's code.
This thread(click!) will explain more about this code, as well as other codes for lighting.

Offline yourlocalcrow

  • Dedicated Supporter
  • ***
  • Posts: 412
  • Country: us
  • Floof-O-Meter: 43
  • they/them
    • View Profile
    • my deviantArt
Re: Realistic Lighting on Presets?
« Reply #3 on: May 30, 2016, 03:55:31 pm »
You mean ambient? It goes above the texture_unit line, and had three decimals after it. It should look something like this:
Quote
material preset_3_bodyMatL
{
   technique
   {
      pass
      {
         ambient 0.8 0.8 0.8
         texture_unit
         {
            texture preset_3body.jpg
         }
      }
   }
}