Materials in the Game Engine...need a how-to please :)

Hello everyone.

I’ve been trying to learn the game engine and have done most of the online tutorials I could find(except for a few that were confusing or had too many steps missing for this newb)

I just have a simple question about vertex painting. I’m trying get a plain coloured material to show up in the game engine but I can’t seem to get any to show up. I’ve tried applying a material to my mesh and then selecting Make Vert Col in the Edit buttons but it doesn’t work. I’ve also tried using the Set Vert Col in the paint buttons but the materials look horrible while running the game…like they have no corners or shading at all. What am I doing wrong? If someone could take a few mins and post a step by step guide to adding a colour to my mesh that will show up in the game engine I would be very thankful. Even checking other posts I could find on here hasn’t helped…I’m not sure what I’m doing wrong.

Hey… all you need to know if how to face map objects… its the only good way… and pretty too… look under face mapping… or something like that, i know this didnt help but i tried.

Materials won’t work in the gameengine, you have to use UV texturing. You can also go into vertex paint mode and paint like that.

Pooba

or Face mode

select object, Press “F”, select faces and add color in face buttons

What I’m trying to add is a background character in a model(that would not move or anything…just a mannequin) I can import the model I want to use in vrml 1.

I was hoping to add seperate colours to make his shirt a white colour and his pants a blue colour. Using the Paint Buttons I can do this but in the game engine the colours are flat with no defining lines(ie you don’t see the lines of the sleeves on the shirt so they just blend into the rest of the torso) So to me that method of painting is out for the game engine as it looks too unrealistic even for a game.

As to UV texturing, should just try and find some images that I can use to map the colours I want onto the mesh? Is this what you meant by UV texturing? I do know how to map images onto faces but that seems a little bit of a strange method of getting colour onto the mesh…

Thanks for the replies everyone :slight_smile:

Try to select face mode, select polygons you want to paint, then press button for vertex painting, choose desired colour and paint the selected polygons. Then select another group of polygons and so on…

Yes, you use UV texturing in the game engnie. Split a window and change the new one to the UV window. You have to find images that look like a shirt, pants, ect. UV texturing takes practice and is kind of hard to use, but it’s what most games use to texture their games. All commercial games put some sort of image to texture their games, you can’t have an acual detailed model with wrinkles in the shirt.

Pooba

do what pooba said, then to add the textures u press “f” (face mode) and select the face(s) that you want the texture to aply to. then in the new window select your texture and hit “load” then volla it’s done, it’s that simple

Yup… then if you want it to have light to make it a bit more realistic, add some Light, Go to Face Mode “F” select the Face and go to the “Pain Brush” and Click “Light”, you will have to do this to every Face the Object has…so if the object has too many Points… or Polygons… then after you have set all the faces to “Light” you will have to add a “Lamp” (PLace the mouse over the Screen, press Spacebar and the select add new Lamp) in the layer the Object is set on (it has to be in the same layer or else it wont Light up the object)… and thats it… hope it helps you.

>Zero Link<

yeah, gameengine lighting can help, but always remember, realtime lighting will slow down game speed ALOT…i never use it…i just “light” my charecter with vertex paint…first i texture, than i use black vertex paint in different areas to make the particular model look more realistic…but yes, you should deffanintly use UVtextures for this…make sure the file for the texture is as small as possible too…but, before you do any texturing select all of the faces and in the vertex paint window make sure “tex.” is enabled, than select the file you want to use as your texture and finally press the “u” key and map the texture the way you want it! I usually use cube maping though…but yeah, youll get the hang of gameblender eventually…the key is balancing performance with quality…but, i would suggest becoming very advanced in normal blender work(render/animation) before you even attempt to make a game, trust me, it helps…and keep that poly count down! :stuck_out_tongue:

TUDBZD69 over and out! [>] [>] [>]

U dont have to selected every face u could select one face and then click on “copy draw mode”. So all other faces will be set up like the one u selected.

basically theres a ton of different options that you can do to just the textures. once you get the hang of it, it’s very simple and makes your games look very good. one thing though if you have too many textures it’ll start to slow down your game.

This tutorial explains UV mapping and vertex painting.

http://members.yourlink.net/gruff/pink/

I did try that one wiseman303 and for some reason when I follow the steps in that tutorial the entire figure comes out black instead of the usual white in the game engine when you have no textures or material set.

Thanks for all the help.