Respawn Bunker WIP, Part #2 (Lighting)

Published January 26, 2009
Advertisement
Respawn Bunker Lighting
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
0 likes 9 comments

Comments

nolongerhere
Awesome, as usual.

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!
January 26, 2009 06:46 PM
nolongerhere
Awesome, as usual.

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!
January 26, 2009 06:47 PM
dgreen02
Quote: Original post by Falling Sky
Awesome, as usual.

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!


lol, "Bring back the forcefields!" on picket signs outside my apartment xD

Thanks for the comment, I was thinking about this...I will draft up 4-5 different forcefield effects and then take a poll or something to see what people like the most. The textures/shader effects associated w/them are pretty basic.

I agree with you the effect is too cool to just drop. I will improve it, and post some drafts in the coming days, and see what you guys like the most!

As for the cell shading/cartoon look...I'm not really sure what look/direction I'm going in...as long as it looks unique lol. I think the light shafts and the color scheme gives the game a sorta unique look...it will evolve over time and hopefully get better and better. That's why I value comments/opinions like yours.

Thanks again for the comment.

- Danny
January 26, 2009 06:57 PM
Jason Z
The vehicles and tanks look pretty sweet - if the game concept is along the lines that I think it is, then I'm really looking forward to seeing where this ends up!

Keep up the good work, it's looking great!
January 26, 2009 08:41 PM
dgreen02
Quote: Original post by Jason Z
The vehicles and tanks look pretty sweet - if the game concept is along the lines that I think it is, then I'm really looking forward to seeing where this ends up!

Keep up the good work, it's looking great!


Thanks for the comment...I think that you're thinking the game is along the same lines I'm thinking lol ;-)
January 27, 2009 01:43 AM
soconne


Uh oh.....is that alpha blending on unsorted geometry I see ;p
January 27, 2009 07:41 PM
dgreen02
Quote: Original post by soconne


Uh oh.....is that alpha blending on unsorted geometry I see ;p


Lol, yes I have not got around to it yet :-p
January 27, 2009 08:13 PM
brandonman
I love you dgreen02! ;P Amazing screenshots! Can't wait to see this in action. Do you have any videos online, such as youtube, or even your own site?
January 30, 2009 02:47 PM
dgreen02
Quote: Original post by brandonman
I love you dgreen02! ;P Amazing screenshots! Can't wait to see this in action. Do you have any videos online, such as youtube, or even your own site?


Very soon my friend, very soon.

I've done some test recordings tonight...I was thinking of releasing some footage but I will wait... I still have a lot of stuff to get in there in the nexy day or two. It's great sitting back and watching the AI have at it XD

I also have been uploading videos to youtube but they're only visible to me ;-) I like to do that every week or so, just to see how the game looks w/youtube compression etc...and its fun.

Anyawys yes, mad videos and a website coming soon. xD

- Danny

January 30, 2009 10:32 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement