Feral Heart

Help & Guidance => Game Help => Topic started by: IcyFrost on June 21, 2014, 06:08:55 pm

Title: Sky Texture / Mask
Post by: IcyFrost on June 21, 2014, 06:08:55 pm
I've seen some people with a different sky texture and (After finally finding that thread) was wondering if I could make my own sky mask. Ex: All of the stars or different colors in the sky or something, rather than just twinkling spots.
So, I was wondering, what file could I color over to make a different looking sky mask? o,o
Title: Re: Sky Texture / Mask
Post by: Bawfle on June 21, 2014, 06:39:57 pm
Well first of all you need this nebula mod (http://www.deviantart.com/art/FH-Nebula-Mod-214546906) then all you need to do is change the image of the nebula texture~
Title: Re: Sky Texture / Mask
Post by: IcyFrost on June 21, 2014, 08:54:19 pm
Yes, but that's the problem. I'm that one person who wont download anything even in my life depends on it... .-.
I was looking for a file in the FH folder which I could edit myself... xD
Still though, thanks for the suggestion, if there isn't another way, I'll try that :)
Title: Re: Sky Texture / Mask
Post by: Ingredient on June 22, 2014, 12:05:44 am
I downloaded a sky mask a while ago so I'm going to use what was included to how to make a new sky mask.

In your Feralheart >> Media >> Textures folder copy and paste one of the images, making sure it's a .png file and 512x512 sized image. Rename it and edit it. I think if you use the colour black then the parts in black will show up transparent in-game.

Then in your Feralheart >> Media >> Materials folder open up the Sky.material file in Notepad. Scroll down to this part:

Code: [Select]
material Sky/SkyMat
{
receive_shadows off
technique 1
{
pass
{
lighting off
depth_write off
fog_override true
fragment_program_ref Sky_PS
{
param_named_auto skyTop custom 1
param_named_auto skyBot custom 2
}
texture_unit
{
texture skyMask.png
tex_coord_set 0
}
}
}
technique 2
{
pass
{
lighting off
depth_write off
fog_override true
texture_unit
{
colour_op_ex source1 src_manual src_manual 1 0 0 1
}
texture_unit
{
texture skyMask.png
colour_op_ex blend_texture_alpha src_current src_manual 0 1 0 1
}
}
}
}

And replace it with this:

Code: [Select]
material Sky/SkyMat
{
receive_shadows off
technique 1
{
pass
{
lighting off
depth_write off
fog_override true
fragment_program_ref Sky_PS
{
param_named_auto skyTop custom 1
param_named_auto skyBot custom 2
}
texture_unit
{
texture skyMask.png
}
}
pass
{
lighting off
depth_write off
scene_blend add
fog_override true

texture_unit
{
texture IMAGE.png
scale 0.3 0.3
tex_coord_set 0
}
}
}
technique 2
{
pass
{
lighting off
depth_write off
fog_override true

texture_unit
{
colour_op_ex source1 src_manual src_manual 1 0 0 1
}
texture_unit
{
texture skyMask.png
colour_op_ex blend_texture_alpha src_current src_manual 0 1 0 1
}
}
}
}

Where it says "texture IMAGE.png" is where you type in the name of your new sky mask. When you're done go File >> Save and it should be good to go.

Hopefully it'll turn out how you want in Feralheart :)
Title: Re: Sky Texture / Mask
Post by: IcyFrost on June 23, 2014, 01:08:39 am
Thanks for the help :)
I've figured it out xD
+floof
Title: Re: Sky Texture / Mask
Post by: Ingredient on June 23, 2014, 08:51:46 am
Glad you got it sorted :)