Forum

Quake 2 Source Code Review (Fabien Sanglard)

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Quake 2 Source Code Review (Fabien Sanglard)

Postby Spirit » Tue Sep 20, 2011 6:45 pm

Just saw that Fabien Sanglard released his Quake 2 Source Code Review a couple of days ago.

http://fabiensanglard.net/quake2/
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm

Re: Quake 2 Source Code Review (Fabien Sanglard)

Postby dreadlorde » Wed Sep 21, 2011 12:03 am

Nice. I could have swore that q2 had software colored lighting, apparently I was wrong. :(
Ken Thompson wrote:One of my most productive days was throwing away 1000 lines of code.

Get off my lawn!
User avatar
dreadlorde
 
Posts: 268
Joined: Tue Nov 24, 2009 2:20 am

Re: Quake 2 Source Code Review (Fabien Sanglard)

Postby leileilol » Wed Sep 21, 2011 1:20 am

no it doesn't, though it was something i planned to do once
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: Quake 2 Source Code Review (Fabien Sanglard)

Postby qbism » Wed Sep 21, 2011 4:54 pm

dreadlorde wrote:Nice. I could have swore that q2 had software colored lighting, apparently I was wrong. :(

No, but you can have it nowadays... FTEQW software engine does. Possibly DP vid_soft mode also. It would have been nice to see a modern engine added to the comparison- FTEQW, KMQuake2, Berserker, etc. Newbies need to be herded AWAY from the ancient original exe's.
User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: Quake 2 Source Code Review (Fabien Sanglard)

Postby frag.machine » Thu Sep 22, 2011 12:28 am

I loved the lookup table trick to implement transparency in software. Very clever.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Re: Quake 2 Source Code Review (Fabien Sanglard)

Postby leileilol » Thu Sep 22, 2011 4:14 am

yeah though lookup alpha is common at the point when quake2 did it (even Heretic did it), even the 33/66% alpha method (using row or column order to switch between the two)

shame it didn't do more than that - there certainly was room for additive transparency with using the colormap fade table to control the opacity of the additive colors.

BTW FTEQW's software engine only does colored lighting on the level in 16/32bit color modes, and doesn't color the models, AND its software renderer is retired, anyway
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest