Author Topic: Creating Meshes  (Read 931 times)

Offline HakubiLee

  • Familiar Grounds Dweller
  • **
  • Posts: 62
  • Floof-O-Meter: 5
  • Weeping willow, won't you wallow louder?
    • View Profile
Creating Meshes
« on: May 27, 2014, 06:54:58 pm »
Hi! Here's what I want to do...
Use the basicplane.mesh and make a sign. What I need to do is make a texture to go over the basic plane that says stuff. I can make the texture easy, I just don't know how to get it to appear in-game.

If someone could give me detailed step-by-step instructions?

I'm not making a new mesh because I have problems with it and can't fix it right now.

Thanks in advance!
I'm back to share art, and start roleplays!!

In-game I am HakubiLee!

Offline Whisperingwaves

  • #2FAB4U
  • Community Champion
  • ****
  • Posts: 1,593
  • Country: us
  • Floof-O-Meter: 135
  • #SlainyTheBattleTurkey
    • Whisperingwaves
    • @slainytbm
    • View Profile
    • Kiros
Re: Creating Meshes
« Reply #1 on: May 27, 2014, 08:13:47 pm »
Modding/Meshing Tutorials Board

Try looking here but below will be a tutorial for ya if it helps and saves you from digging some c:

Hello! I recently attempted to make my own horn texture for a mutant character of mine. It took just about an hour to figure out how to do it, but I did. So, I thought I'd make this Tutorial.



Step one!
Simply create a 512x512 canvas in Gimp, Photoshop, or whatever you use. (I, personally, use Gimp.)
Then, you can use another texture from the items you have to use as a guideline.
I'm making a texture for Xaph Horns (Ringo and Delay's Item Pack.) so I used the original Xaph Texture.


Step Two!
Once you've made your pattern, give it a name ya like. I used SinxeHornsTex. (You don't need to add the Tex.)
Save it in Local Disk C:> Program Files (86x)> FeralHeart> Media> Items
(In some systems there's the Program Files part, in others it's just FeralHeart.)

Step Three!
Here's the hard part, open up your "item materials" Notepad file and paste this code where ya like.
material Blankity Blank
{
   technique
   {
      pass
      {
         texture_unit
         {
            Blankity Blank.png/jpg
         }
      }
   }
}

Now, where it says Blankity Blank in Red, add whatever name you want. But remember that name!
In green, place the name of the texture you just made. (With the proper File Type, .png, .jpg, ect)

material sinxehorn
{
   technique
   {
      pass
      {
         texture_unit
         {
            SinxeHornsTex.jpg
         }
      }
   }
}

See the Difference?

Step Four!
Now, since I wanted the Zaph horns in a different color, I used the Zaph horn lay-out. -coughCheatedcough-

[Xaph Horns]
mesh=xaphhorns.mesh
material=xaph
bone=forehead
offset_f=0 2.2 1.5
rotation_f=230 0 0
offset_c=0 1.5 2
rotation_c=260 0 0

Copy that exactly, by either copying and pasting or just typing it down. But, here's the work part.
Change the part in Red to whatever you want your Item's display name to be.
And change the green to the name of your Item Material. In my case, it'd look like this,

[Sinxe Horns]
mesh=xaphhorns.mesh
material=sinxehorn
bone=forehead
offset_f=0 2.2 1.5
rotation_f=230 0 0
offset_c=0 1.5 2
rotation_c=260 0 0

See the Difference?


Step Five!
Test it out and Enjoy! ^^

And that's what mine looked like! If you've done this all right (and I didn't miss anything) you should have some wonderful new textures for your items.

Happy Halidays from little 'ole me!
[/color]

Even tho this one was for items, I do think it may work, but eh, heres another:

--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

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)




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



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.



(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-
Presets- Working on
Map Making- Working on
Textures-
Object maker- Working on
Converting into OGRE-


Hope these helped you dear!

~ Whisper

Avatar by Chezdip on Lioden || Signature by Jackdaw ♥
In-Game As Whisperingwaves

Offline HakubiLee

  • Familiar Grounds Dweller
  • **
  • Posts: 62
  • Floof-O-Meter: 5
  • Weeping willow, won't you wallow louder?
    • View Profile
Re: Creating Meshes
« Reply #2 on: May 27, 2014, 08:28:03 pm »
Thank you! I'll see if they work! :D
I'm back to share art, and start roleplays!!

In-game I am HakubiLee!

Offline Whisperingwaves

  • #2FAB4U
  • Community Champion
  • ****
  • Posts: 1,593
  • Country: us
  • Floof-O-Meter: 135
  • #SlainyTheBattleTurkey
    • Whisperingwaves
    • @slainytbm
    • View Profile
    • Kiros
Re: Creating Meshes
« Reply #3 on: May 27, 2014, 08:40:15 pm »
No probs floof ^^ Always happy to help -huggles-

~ Whisper

Avatar by Chezdip on Lioden || Signature by Jackdaw ♥
In-Game As Whisperingwaves