01-10-2010, 11:45 PM
Screen:
Requisiti:
How do add a spotlight to your scene :
I'll use car headlights as example here :
You now have a spotlight as headlights.
Repeat for Spotlight02-04 if you need.
The addon also contains a shadable default terrain and a sample project called SpotLightDemo.3dr
The shadable terrain can be found by pressing Ctrl+D under Terrains.
Autore: shadmar
Download: SpotLights
Contains:
[thumb]http://img248.imageshack.us/img248/2361/3drad2010081622044071.jpg[/thumb]
Requisiti:
How do add a spotlight to your scene :
I'll use car headlights as example here :
- Make sure all skinmehes you want to react to a SpotLight MUST be using a _user_ shader (any).
- Add a spotlight by pressing CTRL+D, go to effects and select SpotLight01 (if this is the first spotlight or pointlight in your scene), if you already have a spot or pointlight, select SpotLight02 and so on..
- Add your car
- Position "SpotLight01 : Pos / Range / Color", to the front of the car in the editor. you can also edit color/range by clicking it.
- Link Car with SpotLight01 Script : Cone/Orientation/Target(s), open it and make sure this is true (if not edit it)
int OrientationObject = OBJ_0;
You might want to boost intensity in daylight or set the sun to black
float intensity = 5;
The cone of light is also adjustable
float cone = 50; //higher value gives more narrow cone. 0 will set spot as pointlight
- Link SpotLight01 Script : Cone/Orientation/Target(s) to every skinmesh you shaded in 1.
You now have a spotlight as headlights.
Repeat for Spotlight02-04 if you need.
The addon also contains a shadable default terrain and a sample project called SpotLightDemo.3dr
The shadable terrain can be found by pressing Ctrl+D under Terrains.
Autore: shadmar
Download: SpotLights
Contains:
- Terrain addon (so you can shade it)
- Four SpotLights addons
- Sample Project called SpotlightDemo.3dr