Sup guys, I introduced the respawn bunker asset in the last entry. I only showed the exterior [ because I had not written an interior shader for this game ].
Well I spent some time today and wrote the shader path for building interiors.
I'm pretty happy with how it turned out. I custom rolled most things for this asset alone, since it's the only one I can see being in this project, but still it will be trivial to modify the framework to support different types of lights per object. Right now I've got it setup to handle 10 dynamic spotlights PER OBJECT. If you can simulate spot lights you can do directional and point just the same, spot lights being the more complex of the three.
I moved the calculation of the tangent/bi-tangent/normal matrix into the pixel shader so I can do a loop through all the lights and get lighting on the normals/specular and reflection also. All with a single draw call per material.
The bunker asset was created by one of my contractors/buddies David Miranda
To recap, here is the exterior of the respawn bunker that everyone will spawn in...
Here is the beginning of the shader, support for 1 point light! Yeaa!
//Close up of the floor
Then I added support for multiple lights...
I obvioulsy still have to add lots of props, shadowing, etc...and mainly axis aligned light shafts from the ceiling lights.
Yessss...here are some pics of the interior shader as it stands today.
Remember this is a WIP, after 1 day of work ;-)
Oh I also got fading names displayed on the various active players...
That's all for today...[grin]
- Danny
The interior almost looks cartoon like/cell shaded? The walls of the interior to be exact. Also, I just read that you took out the force fields?? I actually liked how they were. (though the denseness of the lines could have used some tinkering) They were cool looking and I liked how when you got close you could see into the near-side pretty easily, but you couldnt see right through the far-side. Also, from afar it just plain looks cool!
Bring back the force fields!
Just kidding, im sure your new variation of them will look just as good, if not better.
Good luck and keep it up!