Monday, August 10, 2009

Project Mod SVN 14

SVN commit log:

  • Moved lighting to eye space to reduce roundoff error.

  • Added PeriodicBroadcastGame and ListenerGame to start testing very simple client/server game state transfer.

  • Fixed some horrible errors in newmath/Matrix{2,3,4}, which weren't really being used before.

  • Added ability to get the inverse() or inverseTranspose() of a Matrix{2,3,4}.

  • Added a ReadByteStream to go with the WriteByteStream.

  • Implemented better bzip2 support in {Read,Write}ByteStream.

  • Added SDL_net to build-system3.

  • Core classes State, Body, Solid, Constraint, and Light are serializeable through toBytes() and fromBytes().

  • TODO: implement toBytes() and fromBytes() in Controller.



The window on the left is sending a game state packet over UDP to the window on the right, which is displaying it from a fixed viewpoint. :3

Wednesday, August 5, 2009

Deferred shadow maps

After a bit of time off I made the deferred shader not be a hack and added colored, shadow mapped lighting. Code will be in SVN 11, maybe tomorrow evening.

In this screenshot, the car thingy has three colored spot lights attached to its front:


Edit: SVN 11 committed.