aod6060 / FirstPersonShooter

This is going to be a First Person Shooter game made from scratch
MIT License
1 stars 0 forks source link

Update 4 - Lighting and Material System #7

Closed aod6060 closed 9 years ago

aod6060 commented 9 years ago

This is a complete rewrite of the lighting and material system. I've decided to use a the simple blinn-phong model because the microfacet model is to complicated for my needs.

aod6060 commented 9 years ago

I've got back to were I can use all 3 light types. Here a simple picture of me attaching a spot light to the camera to effectivly create a simple flash light.

nwlighting1

aod6060 commented 9 years ago

I've just got multi-lighting working again.

nwlighting2

aod6060 commented 9 years ago

Ok I've got a small update for the material system. I have several different effects that I'll be using for the material system. First one is the basic albedo. This is just the base color. Normal Mapping this technique to add roughness to a serface, specular mapping which is a way to enhance were the specular light will reflectect from, emissive mapping which allow for self glow, and alpha masking which allows to discard fragments from.

Here some images of normal and specular mapping in action.

nwlighting3

nwlighting4

nwlighting5

The next image show alphaMasking in action. This can be used for billboarding.

nwlighting6

This next images show off emissive mapping in action.

nwlighting7

Well I'm still going to work on the material system until I get everything under controll then I'll close this issue for now.

aod6060 commented 9 years ago

I'm finally done for now with the lighting and material system. This means I can safely say that I can move on to something else :). The material system is simple yet robust and the lighting system can handle around 8 light for now. Plus I've made it were I can add additional light really easily. The next one I'm going to focus on is the shadow system. I'm also going to add in the postprocess system too. :)

nwlighting8