Feral Heart

Help & Guidance => Member Made Tutorials => Modding & Meshing Tutorials => Topic started by: Ingredient on March 17, 2012, 08:53:51 am

Title: How To Make Your Own Waterfall Texture
Post by: Ingredient on March 17, 2012, 08:53:51 am
Hello there people of Feralheart. In this tutorial i will be telling you some basic information on how to make your own waterfall texture.

First of all lets open up your special program to create your texture. Me? I use GIMP. Its free if your wanting to use it. What you can do is go to your "misc" folder (Your local disk drive (C:)>>Feralheart>>Media>>Objects>>misc) and open up the waterfall texture Feralheart provides (waterfall1.png) with the program you plan on using. Just remember to always have the image size 512 by 512.

Once opened you can start creating your unique waterfall texture. Change the colour, turn it pitch black whatever your happy with. Are you done yet? Good, lets carry on.

(http://i39BannedImageSite/2cgg8s2.jpg)
Here is my waterfall texture, i am happy with it so im going to save. Save it in the misc folder like the other waterfall texture. Lets change the name shall we. How about "waterfall2.png" sound good? You MUST remember to put the .png at the end. Its very important.

Were not finished yet guys.

In the "misc" folder we have a "waterfall.material" file. Copy and paste it into the same folder and rename it to something of your sort. You need to open it that pasted .material file using Notepad. So right click the file and click Open or Open With. Then choose the option Notepad, if the option isnt there you need to hit "Browse" and find it. Though its most likely you wouldnt have to do that.
(http://i44BannedImageSite/1692qeo.jpg)
(http://i44BannedImageSite/2dt0wsi.jpg)

Ok have you done that? Good, lets open this file up. This is what you shall see.

material WaterFallMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off

         texture_unit
         {
            texture waterfall1.png
            scroll_anim 0 1
         }
         texture_unit
         {
            texture waterfallMask1.png
            scroll_anim 0 0.7
            colour_op modulate
         }
      }
   }
}

This is the material name, typing that in will make the texture show. Since we have made our own lets call it something else. How about "MyFirstWaterfall" or like me just add a number at the end. Make sure you remember exactly what you called it.
You type in the name of your image here. I called mine waterfall3.png so that is what i shall type in. Whatever you called yours type in remember to type the .png in too.
You can leave this how it is since the image is already there. What this does is kind of creates the shape of the waterfall. If you typed in the image of your texture it just looks unusual. Just trust me and leave it how it is, your waterfall will look better.

So lets change the code and now it will look like this.

material WaterFall3Mat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off

         texture_unit
         {
            texture waterfall3.png
            scroll_anim 0 1
         }
         texture_unit
         {
            texture waterfallMask1.png
            scroll_anim 0 0.7
            colour_op modulate
         }
      }
   }
}

Do you notice the differences in the code?

Ok now save it. Dont click "Save As" just click the "Save" button. Now get ready for what you are about to witness.

You remember what your material is called, right? Look back into your .material file and find your material name in case you didnt remember it.

Now lets open Feralheart and go onto Object Maker. Go to the tab called Mesh, lets type in "Waterfall1.mesh" into the Mesh box and then click the Add New button. Theres Feralheart's waterfall, lets change that texture now. See in the Material box (underneath the Mesh box) it says "WaterFallMat" well lets change that to our material name. My waterfalls material name was WaterFall3Mat so that is what i shall change it too. Hit Enter on your keyboard and observe as the waterfall has a different texture.

(http://i41BannedImageSite/2r7byc2.png)

Now this is the shape of the waterfall, if you changed that "waterfallMask1.png" in the material code to your texture image, you would see a difference. Im sure you would prefer it if you left the "waterfallMask1.png" there.

I hope you managed to get your texture to show successfully. Remember to save your waterfall so you can use it in your maps.
Title: Re: How To Make Your Own Waterfall Texture
Post by: ilovewolve on March 17, 2012, 01:43:35 pm
Nice thx alot even though i makes map i just came to play lol
Title: Re: How To Make Your Own Waterfall Texture
Post by: sarabi26 on March 20, 2012, 12:41:56 pm
I dont have a waterfall texture :|
Title: Re: How To Make Your Own Waterfall Texture
Post by: Ingredient on March 21, 2012, 10:33:22 am
The game includes the waterfall texture so it WILL be there, well unless you have deleted it or something. Check the "misc" folder though just in case. You can also type in "waterfall1.png" in a search bar or something.

If your 100% sure that it is not there then i will send you an image of Feralhearts waterfall texture.

gabrielle im glad you found this tutorial helpful :)
Title: Re: How To Make Your Own Waterfall Texture
Post by: ilovewolve on March 21, 2012, 09:06:54 pm
Ur are very welcome ingerdient
Title: Re: How To Make Your Own Waterfall Texture
Post by: sarabi26 on March 27, 2012, 12:27:57 pm
The game includes the waterfall texture so it WILL be there, well unless you have deleted it or something. Check the "misc" folder though just in case. You can also type in "waterfall1.png" in a search bar or something.

If your 100% sure that it is not there then i will send you an image of Feralhearts waterfall texture.

gabrielle im glad you found this tutorial helpful :)
I see waterfall.material waterfall1.mesh and waterfall1 still no texture.. BUT! I can get a waterfall in game... Oh wait.. (Lol)
Title: Re: How To Make Your Own Waterfall Texture
Post by: Ingredient on March 27, 2012, 05:54:23 pm
So you loaded the mesh in game and theres no texture on the waterfall?
Title: Re: How To Make Your Own Waterfall Texture
Post by: sarabi26 on March 30, 2012, 02:06:26 pm
So you loaded the mesh in game and theres no texture on the waterfall?
Well I can see the waterfall -_-
Title: Re: How To Make Your Own Waterfall Texture
Post by: Kyna on July 28, 2012, 07:53:35 pm
Thanks for the Help! I'm trying to make a Map and needed a more Frosty WaterFall, this made things MUCH less confusing! :D
Rainbows and Unicorns, Kyna
Title: Re: How To Make Your Own Waterfall Texture
Post by: Ingredient on July 29, 2012, 12:02:49 am
Your welcome, im glad you found this helpful :)
Title: Re: How To Make Your Own Waterfall Texture
Post by: Cherryheart on July 29, 2012, 12:08:06 am
Ty for this, now I can make my Tropical map on FH. C:
Title: Re: How To Make Your Own Waterfall Texture
Post by: GoodWolf on March 03, 2013, 05:15:56 pm
so you can make a texture, but how do you use and post one onto the program?
Title: Re: How To Make Your Own Waterfall Texture
Post by: Ingredient on March 04, 2013, 05:35:24 am
Ty for this, now I can make my Tropical map on FH. C:

You're welcome, Cherryheart ;)

so you can make a texture, but how do you use and post one onto the program?

Which program are you talking about? GIMP or Feralheart? Please be a little more descriptive and it'll be easier for me to help you :)
Title: Re: How To Make Your Own Waterfall Texture
Post by: GoodWolf on March 04, 2013, 11:41:10 pm
Rewrites question: you can make a texture, but where and how do you get a png image and post it on your waterfall texture on the program GIMP? :P
Title: Re: How To Make Your Own Waterfall Texture
Post by: Ingredient on March 05, 2013, 05:38:21 am
Rewrites question: you can make a texture, but where and how do you get a png image and post it on your waterfall texture on the program GIMP? :P

I use GIMP 2.8 so saving it as a .png may be different to an older version.

When you have finished making your texture go File>> Export>> (C:)>> Feralheart>> Media>> Objects>> Misc and type in your texture name then ADD .png at the end of the name.

(http://i48BannedImageSite/n50cph.jpg)

Once you've done that click Export. If you get this box, click Load Defaults.

(http://i50BannedImageSite/iojhoy.png)

Go to your Misc folder and copy and paste that waterfall.material file. Open it up by Right-Clicking the file and choosing to open it with Notepad or Notepad++.

(http://i47BannedImageSite/2zsogt0.jpg)

Then you just follow the instructions on my first post:


material WaterFallMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off

         texture_unit
         {
            texture waterfall1.png
            scroll_anim 0 1
         }
         texture_unit
         {
            texture waterfallMask1.png
            scroll_anim 0 0.7
            colour_op modulate
         }
      }
   }
}

This is the material name, typing that in will make the texture show. Since we have made our own lets call it something else. How about "MyFirstWaterfall" or like me just add a number at the end. Make sure you remember exactly what you called it.

You type in the name of your image here. I called mine waterfall3.png so that is what i shall type in. Whatever you called yours type in remember to type the .png in too.

You can leave this how it is since the image is already there. What this does is kind of creates the shape of the waterfall. If you typed in the image of your texture it just looks unusual. Just trust me and leave it how it is, your waterfall will look better.

So lets change the code and now it will look like this.

material WaterFall3Mat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off

         texture_unit
         {
            texture waterfall3.png
            scroll_anim 0 1
         }
         texture_unit
         {
            texture waterfallMask1.png
            scroll_anim 0 0.7
            colour_op modulate
         }
      }
   }
}

Do you notice the differences in the code?

Ok now save it. Dont click "Save As" just click the "Save" button. Now get ready for what you are about to witness.

You remember what your material is called, right? Look back into your .material file and find your material name in case you didn't remember it.

Now lets open Feralheart and go onto Object Maker. Go to the tab called Mesh, lets type in "Waterfall1.mesh" into the Mesh box and then click the Add New button. There's Feralheart's waterfall, lets change that texture now.

See in the Material box (underneath the Mesh box) it says "WaterFallMat" well lets change that to our material name. My waterfalls material name was WaterFall3Mat so that is what i shall change it too. Hit Enter on your keyboard and observe as the waterfall has a different texture.

(http://i41BannedImageSite/2r7byc2.png)

Now this is the shape of the waterfall, if you changed that "waterfallMask1.png" in the material code to your texture image, you would see a difference. Im sure you would prefer it if you left the "waterfallMask1.png" there.

I hope you managed to get your texture to show successfully. Remember to save your waterfall so you can use it in your maps.
Title: Re: How To Make Your Own Waterfall Texture
Post by: Shadowscar1 on April 20, 2013, 02:53:08 pm
Okay one problem. I made my waterfall in gimp blue and white. But when I load it in the game its the color black and yellow. Wth? O.o?
Title: Re: How To Make Your Own Waterfall Texture
Post by: Ingredient on April 21, 2013, 12:12:31 am
Okay one problem. I made my waterfall in gimp blue and white. But when I load it in the game its the color black and yellow. Wth? O.o?

There may be an error in your .material file. Make sure your image matches the name and .png format in the .material script. If there are no errors there I would recommend using the code I have used in my .material file. Copy and paste it and rename the image.png you are using.