Page 1 of 1

Applying Specular Lighting To Models

Posted: Mon Dec 11, 2006 1:14 am
by Vyse
Here is a quick tutorial on how to apply specular lighting to your models. It adds a real time light glare onto your models. This really makes your models look great!

I have not tested the flag on a object, just a player model and weapon.

Before starting the steps what I have found so far is that it appears you can't have the mesh have more than 1 texture on it. The mesh can only pull from 1 texture. However, I'm still testing this so maybe there can be more. Also I havn't removed the sun flare from my .fx file so I don't know if there has to be a flare or not but right now I have a sun in the map and it works.

Instructions:

1)Make sure your global lighting placed in Zero Editor has the "Cast Specular" on yes

2)Using the Battlefront 1 edit flag, select your polygons with the U key, (Basicly just ctrl+A to select all the polys) then open the edit flag dialog box. Scroll down to Render Specular under the Render Types and hit ok. You do not need to call out a texture or anything.

3)Munge the map and your done.

Options:
You can adjust the angle of your placed light in Zero Editor to change when the light hits on the mesh.

The ending effect is below. The pic are from looking in different directions, you can see the lighting has changed.

Image

RE: Applying Specular Lighing To Models

Posted: Mon Dec 11, 2006 4:21 am
by Rekubot
Vyse, you're amazing. I've been wondering how to do this for sooooo long! Thanks!

Posted: Mon Dec 11, 2006 4:59 am
by Karnage
Is that the model I think it is Vyse?

Or is it just the weapon for the model?

Posted: Mon Dec 11, 2006 5:02 am
by Linus
Many thanks to you, Vyse...

- Linus

Posted: Mon Dec 11, 2006 8:17 am
by Qdin
neat :)

always good with a short tutorial! :wink:

Posted: Mon Dec 11, 2006 9:00 am
by t551
Thanks, Vyse!

Posted: Mon Dec 11, 2006 10:04 am
by Teancum
Long live Metroid Prime!

Posted: Mon Dec 11, 2006 12:27 pm
by The_Emperor
Awesome as always, vyse

Posted: Mon Dec 11, 2006 3:55 pm
by Kyross
They have such informations in the art docs, but you may not have known that or you could be making it easier.

Yay you, anyway.

Posted: Mon Dec 11, 2006 4:52 pm
by Vyse
Teancum wrote:Long live Metroid Prime!
Yes, Vi Va La Metroid Prime! :) As many have guessed that is a WIP of the power gun from the Metroid games.

Now if would could only figure out how to do the refraction flag mentioned in the doc. It's not even one of the redner types in the edit flag dialog box.

Posted: Tue Dec 12, 2006 5:46 pm
by Qdin
what does 'refraction' mean..? :?

Posted: Tue Dec 12, 2006 5:53 pm
by t551
Refraction is how light rays change direction as they cross from one material to another, although I'm not sure if that's what it means here.