Applying Specular Lighting To Models
Moderator: Moderators
-
- General
- Posts: 776
- Joined: Sun Aug 28, 2005 5:01 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Applying Specular Lighting To Models
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.
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.
-
- Jedi
- Posts: 1080
- Joined: Wed Apr 05, 2006 12:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: Rekubot
- Location: UK
RE: Applying Specular Lighing To Models
Vyse, you're amazing. I've been wondering how to do this for sooooo long! Thanks!
- Karnage
- Commander Randomtoast
- Posts: 947
- Joined: Sun Oct 23, 2005 9:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Wherever there is shenanigannery.
-
- Old School Staff
- Posts: 2059
- Joined: Wed Feb 23, 2005 9:54 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
- General
- Posts: 791
- Joined: Sat Jul 16, 2005 3:23 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Teancum
- Jedi Admin
- Posts: 11079
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
-
- Supreme Galactic Ruler
- Posts: 2118
- Joined: Sat Dec 10, 2005 6:30 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Waaaaay over there.
-
- General
- Posts: 776
- Joined: Sun Aug 28, 2005 5:01 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
- Old School Staff
- Posts: 2059
- Joined: Wed Feb 23, 2005 9:54 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set