Let There be Light!

Misc., Projects Add comments

Well, I have my lighting system working, although it’s incomplete. This is all good fun!

Currently I can specify an ambient light colour and intensity, which is applied uniformly to every object in the scene. I can also create new lights and position them in 3D space, each also with its own intensity and colour. As each light object contains a 3D point for its position, lights (shown as the “X” on the screenshots below) can be moved and rotated with simple method calls.

3D Engine showing Lighting

Next I’m going to add in falloff values for the lights, so that the light intensity drops off as the distance between the face and the light increases.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in