Vertex lighting?

Hi! :ba:

Ok,I want to use shading in a project,but I’ve heard that it takes up a lot of FPS on some PCs.However,I also hear that “vertex shading” doesnt slow down so much.

So,I’m confused now.Theres two styles of shading in the GE? :eyebrowlift2:

If yes,how do I use that “vertex shading” thingy?

Thanks for reading my post. :stuck_out_tongue:

Or you can choose a style of shading that’s better then vertex colors, give your meshes a second UV channel and use the render baking feature to create lightmaps.

Vertex shading is the default OpenGL shading which is on by default. You don’t have to activate it. Just make sure that the faces you need to be lit are enabled for lighting. The “other type” of shading would probably be per pixel shading which is achieved with shaders (GLSL shaders in blender game engine since it uses OpenGL, HLSL is for directX and CG is for nVidia shaders. Google for more info on shaders. :wink:

Thanks for the replies,guys! :slight_smile:

How,do you do the texture-map colouring?If I have a model with UV mapped textures,I just go to vertex colouring mode?

Also,I heard that a lot of graffics cards dont support GLSL shaders.Is it just the older ones,or are there even some new ones that dont support GLSL shaders?

Thanks again. :slight_smile:

Using the vertices color is “kind of like” baking an addition color to an object. The colors will be applied at the vertice and averaged across the face. If you want to use it to make shadows you just have to setup your lighting on the object then go to vertex paint mode and click the botton labelled set. This will apply (king of) self shading shadows to the object.

edit I just tried this in 2.43 and it worked for one object but not the other…weird.

Hmm,thanks for the answer,jessegp! :slight_smile:

I’ll test it out tomorrow…

Things you need to do to get it to work. Go to materials for the object make sure vcol is selected and that there is atleast a texture block open. Then do what I said above.