Author Topic: Darkening Mesh Textures?  (Read 2259 times)

Offline Hallucination

  • Dedicated Supporter
  • ***
  • Posts: 369
  • Country: 00
  • Floof-O-Meter: 17
    • View Profile
Darkening Mesh Textures?
« on: September 09, 2014, 04:20:29 pm »
Okay, so I'm making a map using Bluestone, no sky file making it darker, and I have begun to retexture meshes to make them look like their apart of the map, however... The Bluestone applied to meshes is rather... ambient compared to the darkened Bluestone in the cave. Does anyone know how to fix that, or the code to insert to make it equally dark?

Offline Kerriki

  • Band Geek
  • Immortal Legend
  • *****
  • Posts: 5,670
  • Country: us
  • Floof-O-Meter: 371
  • Who needs furniture when you have the floor?
    • Kikiorylandia
    • View Profile
    • DeviantART
Re: Darkening Mesh Textures?
« Reply #1 on: September 10, 2014, 01:06:06 am »
Are they default meshes or custom meshes? If they're default, then do you have Minx's Day and Night mod? If so, then that's probably the case. From what I remember, that download has retextured meshes to make them look darker
Farewell everyone<3

Offline Hallucination

  • Dedicated Supporter
  • ***
  • Posts: 369
  • Country: 00
  • Floof-O-Meter: 17
    • View Profile
Re: Darkening Mesh Textures?
« Reply #2 on: September 10, 2014, 01:22:51 am »
My goal is actually to darken the meshes, they are default meshes and I do not have any form of mods. I made the cave darker with the no sky file, but the trees do not darken with it.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Darkening Mesh Textures?
« Reply #3 on: September 10, 2014, 06:23:14 am »
So you want to make certain objects darker? You can do that by changing the ambient line in the .material file. Mura the Mink's Realistic Night and Day mod has the default meshes darkened as well as the terrain and characters.

If you want to change the ambience yourself without any mods, simply open up a meshes' .material file- for example Feralheart >> Media >> Objects >> Trees >> acaciaTree.material.

You'll see something like this:

material acaciaLeafMat
{
   transparency_casts_shadows off
   receive_shadows off
   technique
   {
      pass
      {
         ambient 0.75 0.75 0.75 1
         diffuse 0.05 0.05 0.05 1
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
            texture acaciaLeaf.png
         }
      }
   }
}

Where I've marked on the script is the ambient code I was talking about. Change the 0.75's (I'm not sure what the '1' at the end does). Make the number go higher for example 0.9 or 1 then the object will become lighter. Go down and the object will become darker, depending on the map's lighting which you can change in Sky Maker.

Hope this helps :)
Will be inactive due to work and exams.

Offline Hallucination

  • Dedicated Supporter
  • ***
  • Posts: 369
  • Country: 00
  • Floof-O-Meter: 17
    • View Profile
Re: Darkening Mesh Textures?
« Reply #4 on: September 11, 2014, 02:36:33 pm »
Thank you very much, Ingredient! +Floof for you.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Darkening Mesh Textures?
« Reply #5 on: September 12, 2014, 09:15:12 am »
No worries, and thank you :)

*floofs back*
Will be inactive due to work and exams.