Wick3d from scratch

After some books finally arrived by mail, I’ve been spending the past two weeks reading up on 3D maths. Being unhappy with how my playground engine Wick3d was evolving (bad code flow resulting in poor maintainability being the worst of it), I decided to put some of this newly acquired knowledge to practice and redo the engine from scratch. Perhaps the biggest structural improvement would be that the operations such as transformations, culling, drawing, etc… are now being executed from a centralized render pipeline. Furthermore, some other things are done more correctly. For instance, the render target is now a viewport and the camera works with field of view instead of some random zoom factor. The latest addition is a rudimentary clipper, which clips triangles intersecting the projection plane so they don’t just disappear when they’re too close. Regretfully, it doesn’t look too great yet (I have linear texture mapping to thank for that). The shading that was in the previous version hasn’t been reinserted, and it will probably be a while. There’s still plenty of other things that I want to realise before I get back to that.

The code still isn’t available yet, mainly since the code’s not entirely the way I’d like it. In any case, this project is just a study case for me. But who knows what the future might bring ;)

Check the demo if you feel bored, move around the mouse a bit and use the mouse wheel to change the field of view (and notice how fast it starts to look ugly).

3 thoughts on “Wick3d from scratch

  1. Hi Marcus,

    Nice work! I’m interested as well in which books you’ve been reading. I just ordered “3D Math primer for graphics and game development”. I can’t wait to start reading it.
    It would be nice to know which books you’ve been using in order to create this yourself.

    Paul

  2. Hey, the name’s David, actually ;)

    The book’s I’ve been reading are:
    Eric Lengyel – Mathematics for 3D Game Programming and Computer Graphics, Second Edition
    David H. Eberly – 3D Game Engine Design, Second Edition

    Good books covering a broad range on 3D maths, and the prices on Amazon were rather alright ;)

Leave a Reply

Your email address will not be published. Required fields are marked *