Monday, October 28, 2013

3d environment. Fixing my lights.

This is the porcess I went through setting up my triggered street light opening sequence for my game level.
First I modeled and textured my street light.
























Once I had this asset in game I added a point light and created a prefab.  Because I had the point light located inside of the model. the model wasn't lit, so I made the texture self illuminating.

I then started working on my trigger code.


With this working I began trying to darken my unity scene to make the lamps the only visible light source.

This caused issues with my self-illuminating lamp material solution.

I decided to fix this in code, swapping the lamp to a self illuminating texture when in turns on.










**
**


This makes the dark dark and the light light.

Lights, Done!





No comments:

Post a Comment