Main Page | Report this Page
Computers Forum Index  »  Computer - Graphics (Algorithms)  »  A "reference" software-only 3D renderer (GPL)...
Page 1 of 1    

A "reference" software-only 3D renderer (GPL)...

Author Message
ttsiod...
Posted: Sun Nov 01, 2009 1:48 pm
Guest
Hi, everyone.

One of my hobbies that has persisted over the years, is working on a
real-time software-only 3D renderer that I began writing in the days
of Hercules and CGA cards. "Working" in this context, means trying to
make it (a) clearer in terms of code, and (b) faster in terms of
execution. Oh, and enjoying the process :-)

The complete source code is available here:

http://users.softlab.ece.ntua.gr/~ttsiod/renderer.html

It has evolved to a pretty nice state, with the following features:

- 3D transformations (object => world => camera coordinates)
- Point rendering (vertex-based or triangle-based)
- Gouraud shading (complete Phong equation calculated per vertex)
- Phong shading (complete Phong equation calculated per pixel)
- Z-Buffer
- Shadow mapping (with/without soft shadows)
- Display and keyboard handling (concurrent keypresses) through libSDL
- Extensive use of C++ templates ("metaprogramming") to avoid code
duplication (e.g. one scan converter drives ALL rendering modes)
- Uses OpenMP or Intel Thread Building Blocks to take advantage of
multi-cores.
- Extremely portable: runs on Linux, Windows, Free/Net/OpenBSD, Mac OS/
X, etc
- For Unix-based OSes (as well as Windows/MinGW), uses autoconf/
automake.
- Includes MSVC solution with all dependencies pre-packaged (made with
the free Visual C++ 2008 Express Edition).

I have been hacking on it, on and off, for more than a decade, and I
admit I find it very rewarding as a hobby, so I thought I'd just share
it here, as a "reference" implementation of many basic 3D algorithms.

Hope you'll like it... I definitely enjoyed (and still enjoy)
developing it.

Thanassis Tsiodras, Dr.-Ing.
ttsiodras at removeMe gmail dot com
 
Kaba...
Posted: Sun Nov 01, 2009 8:02 pm
Guest
ttsiod wrote:
Quote:
Hope you'll like it... I definitely enjoyed (and still enjoy)
developing it.

Thanassis Tsiodras, Dr.-Ing.
ttsiodras at removeMe gmail dot com

Very good:) It warms my heart to see a software renderer in action. In
particular the shadow maps make the images interesting.

--
http://kaba.hilvi.org
 
 
Page 1 of 1    
All times are GMT
The time now is Wed Dec 02, 2009 3:21 pm