Feral Heart

Help & Guidance => Member Made Tutorials => Modding & Meshing Tutorials => Topic started by: Fath on August 04, 2011, 01:48:16 am

Title: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on August 04, 2011, 01:48:16 am
--Yes, you will need to do code, but I make it easy =D--

Post 1- book 1&2
Post 2- Test of your knowledge
Post 3- Gallery!

Ok, So i asked what tutorial people wanted me to do next, and the top vote was this, so here i am! =D

OH! But first, Meet Boo! He is my little helper in these Tutorials <3 I will be changing my other ones to fit Boo in also =D EVERYONE SAY HAI! =3
(http://i1129.photobucket.com/albums/m516/NynthFH/BOO.png)
BTW the red ghostie is from Converting to OGRE, his name is Rex, the blue one is from High-low poly, her names Pam, Im updating them into my other tutorials nau

Great! Lets get started >=D There are two parts, or "books" to this. Book one, Making a texture, Part two, Getting it In-game =D So if you have the texture you want, and just need it in-game, scroll down till you see in HUGE letters GETTING IT IN GAME (duh lol) and if you dont see them, you iz blind, wait, no, that does not work, you have to see to read this... unless someones reading this..... but, wait, no- GAAA MY BRAIN HURTS Dx lol


Book 1

Chapter 1
Making the texture.

So, You want to make the texture? Well, I cant exactly help XD See, what kind of texture you want to make could range from wood to a pink flamingo rug! But I can give guidelines =D

-There is no rule to what size or shape the texture is, unlike height maps or whatever it does not have to be 512 by 512 or whatever, it does not even have to be square!

-It can be transparent, but if it is, you have to have special code or it wont show as transparent!

-You remember the waterfall? Its NOT animated! its the code that makes it move, so just make your texture static, you can animate it with coding =D

-ALWAYS ALWAYS ALWAYS save it into Feralheart>Media>Objects>My_Objects as a .PNG or .JPG. I like .PNG myself =D

Wow book one had a whole chapter O.e lol anywho, moving on...


Book 2
Chapter 1
Copying the .material file!

Ok, Well you have your texture, and you want to put it on something! You will be blown away by how easy this is (that is, if you don't do anything fancy XD)

First, Go to your FeralHeart folder! Open up My_objects and find something that's a material file (.material Cx)

(http://i1129.photobucket.com/albums/m516/NynthFH/TexturesTUT1.png)

Left click, and select Copy (lul i was board xD trying to practice drawing dem <3)

(http://i1129.photobucket.com/albums/m516/NynthFH/TextureTUT2.png)

Then past it! (yes, in the same folder)

Chapter 2

Opening the blasted thing

Ok, so what you do is right click on your pasted materiel file and click on Property's. Then click on "Opens with" And click change. Finally, change it to notepad.

(http://i1129.photobucket.com/albums/m516/NynthFH/TexturesTUT3.png)
(Kudos to you if you laughed ^^)

Now you can open up materiel files C=

Chapter 3
Basic Coding 101

Now, i know code sounds all big and scury, but its not =D

OK, So open up your copied materiel file. I will use Hammy's stone marker file for demonstration purposes (this is only one of the mats btw)

Code: [Select]
material marker
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture blankmarker.png
}
}
}
}

Ok, so lets start with the first line, material marker.  Sound familiar? When in object maker there is the mesh box and the materail box, basicly this is what your naming your texture, so, hammy's texture's name is marker. So when you type in marker the game knows what picture to use.

Now this,

Code: [Select]
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit

This is basicly telling Feralheart that when you type in "marker" That means that you want to use what picture and what you want it to do.

         cull_hardware none
         cull_software none
         texture_unit

That part is what the texture WILL do, right now, its not spost to do anything really XD just be a rock.

Anywho,
The most inportant part is the highlighted part

material marker
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture blankmarker.png
         }
      }
   }
}

That is where you type in the name of the picture. in this case it is blankmarker.png. YOU MUST type in the EXACT name of the picture, caps and all, OR IT WILL NOT WORK >=O


So its easy, after materiel  you put what you want to type in feralheart, like, FernMat. In Texture you type in the name of the picture, like fernleavesgreen.png. Click save, and vola!


Here are some helpful links to get cool codes for your textures (remember to erase stuff like preset_9_bodyRMat, that's for presets. But the code works with anything as long as you did it right =D


OH and on the next post is a Test you can take to make sure you know all this =D THERE IS A REWARD IF YOU FINISH =D

And the next next post is Gallery, where you can show off textures that You made! (just PM me a picture and/or link if you want to share with the community ;D)


Boo says give me nuzzles <3



My Other "for dummys"
 High and Low poly- (http://feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=8473.0)
Presets- Working on
Map Making- Working on
 Textures- (http://feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=10239.0)
Object maker- Working on
 Converting into OGRE- (http://feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=8475.msg119550#msg119550)
Title: Re: Textures 101 For Dummys =D *requested!* WIP
Post by: Fath on August 04, 2011, 01:48:48 am
THE TEST
OF doom xD

Ok! Quick rules!

-No Cheating, that means you cant just skip the test and get the prize from someone else, dat, my friend, is cheating xD
-uhhh..... Dont die? Cx


Description

Ok, Im going to give you a some files (listed below) and your job is to correctly code it! These meshes and textures are mine (though therry converted the meshes for me <3) and I am letting you use them IF you pass the test xD

List of files

Fern1.mesh
FernLeavesGreen.png
FernMatBark
FernLeavesGreenGLOW.png
FernMat.material (the material is blank >=D)
FernMatBark.material (Also blank xD)


Instructions

-Download the mesh
-Go  here (http://feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=5665) and find the correct coding (you want glowing)
-Change the code from preset code to your code
-Open FH and go to Object maker, type in the name of the mesh, add new, then the name of the materiel!
-Take a screenshot and PM it to me, I will approve, then PM you the prize!

THE PRIZE

You know fern1? Well there are 5 others that you will receve (fully coded xD) and 5 more textures you can use for ANYTHING in your maps! (MetalMat, LavaMat, and the others are secret >=D)


START TEST
       -download- (http://www.mediafire.com/?kyrba9wut8l4h)


Meh pupils who passed the test <3


(None yet =O)
Title: Re: Textures 101 For Dummys =D *requested!* WIP
Post by: Fath on August 04, 2011, 01:48:59 am
Gallery!

-none yet OnO
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on August 04, 2011, 05:24:31 am
BTW you can post now ;D
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Frostpaw860 on August 05, 2011, 01:37:07 am
O_O A lot of words, but Its really helpful ^_^  Horray for Dummy guilds! x3
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on August 05, 2011, 02:09:38 am
Ftt I KNOW X.X so much typing -twiches-

I luv my dummys guides <3 lol
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Ruby1234 on August 05, 2011, 05:35:53 am
That. Ghost. Is. So. Cute. <3
Nice tutorial!
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on August 05, 2011, 07:02:13 am
Daww thanks <3 I luv him too =D

and thanks again XD *karma*
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: ringoluver on August 07, 2011, 04:14:03 pm
I SHALL DO THIS TEST! AND I SHALL SUCCEED!
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on August 07, 2011, 05:21:48 pm
=DDD GOOD I HOPE YOU DO >=DDDD
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Kazula on August 07, 2011, 06:02:34 pm
Totally gonna finish first XD


Edit: Finished PM'ing nowz
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on August 07, 2011, 06:04:36 pm
Ftt Ringo already finished =O

But shes a mod, she dunt count XD -huggies Ringo-
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Kazula on August 07, 2011, 06:09:53 pm
XD edit: First AVERAGE person to finish
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on August 07, 2011, 06:11:02 pm
XD lawl
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: ringoluver on August 07, 2011, 06:13:20 pm
PPSSHHH I should count >U Just cause I'm a mod doesn't mean I know how to texture xD
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on August 07, 2011, 06:24:44 pm
FTTT just cus your a mod means you KNOW how to texture, DIS IS FOR PEOPLE LEARNING >U

lol XD
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Kazula on August 07, 2011, 06:28:44 pm
XD I'm learning but I have also kind of figured it out... like I know how to make like different textures on rocks and stuff and I made like one plain texture file but I am really interested in learning the glowy thing and such
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on August 07, 2011, 06:35:23 pm
Remember, if you need help on the test PM me =D
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Kazula on August 07, 2011, 08:28:04 pm
Ok I PM'd you because I was about to punch the computer in da face
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: rawr_loud on August 19, 2011, 09:31:20 pm
o3o It says it couldn't find the .material file. I tried all the different ways too... Helpiz would be nice. Thankies. <3
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Safran on August 25, 2011, 02:46:08 pm
I just cant find out of that D:
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Safran on August 25, 2011, 02:47:14 pm
where to put FernLeavesGreenGLOW :(
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Zaephyr on September 03, 2011, 09:59:37 pm
I had a go at the fern for the contest/test thingamabob x3, everythings ok appart from well.....


(http://fc00.deviantart.net/fs71/f/2011/246/f/1/derpy_fh_fern_by_zaephyrr-d48rea4.png)

That o-o

Im pretty sure it isnt supposed to do that x3
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Kazula on September 03, 2011, 10:48:22 pm
XD it looks better than my first attempt just PM Nynth she'll help ya out

My first attempt:  
(http://i54BannedImageSite/2ms1n9z.png)
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Safran on September 04, 2011, 05:53:49 am
i did
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: xShadex on September 28, 2011, 02:48:16 am
My first attempt looked like a regular fern. :( it didnt glow at all!!
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Fath on September 28, 2011, 02:59:57 am
You have to get the right coding to make it glow =D

And well, it will only glow in the dark XD
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Celeyan on October 27, 2011, 03:44:02 am
Im attempting to make a texture but it says it can't find it.


I make the material and follow what you said.

But it says: cannot find -private-.material!

HALP D:
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: Ducky on November 16, 2011, 11:12:54 pm
Nurgh! I saved it in Feralheart>Media>Objects>My_Objects BUT ISH NOT A MATERIAL FILE! D; ~Le Flail~ How I fix? XI
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: xShadex on May 11, 2012, 01:17:42 am
So wait... Did I do it right? Did it not glow just cause it just wasn't dark..? D:
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: darkforce on May 16, 2012, 07:52:48 pm
D: I'm having trouble with my sign look: (http://i45BannedImageSite/ilkhao.png)  Do yhu guys know what I'm doing wrong?
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: xShadex on May 17, 2012, 02:33:48 am
>.> I shall be testing something...
Title: Re: Textures 101 For Dummys =D *requested! AND DONE!*
Post by: animaljamrules on December 13, 2012, 12:26:30 am