Feral Heart

Help & Guidance => Game Help => Topic started by: Hallucination on September 09, 2014, 04:20:29 pm

Title: Darkening Mesh Textures?
Post by: Hallucination 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?
Title: Re: Darkening Mesh Textures?
Post by: Kerriki 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
Title: Re: Darkening Mesh Textures?
Post by: Hallucination 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.
Title: Re: Darkening Mesh Textures?
Post by: Ingredient 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 (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=27675.0) 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 :)
Title: Re: Darkening Mesh Textures?
Post by: Hallucination on September 11, 2014, 02:36:33 pm
Thank you very much, Ingredient! +Floof for you.
Title: Re: Darkening Mesh Textures?
Post by: Ingredient on September 12, 2014, 09:15:12 am
No worries, and thank you :)

*floofs back*