Game Development Community

Quake references in Torque

by Bradley Newton Haug · in Torque Game Engine · 03/22/2003 (8:19 pm) · 22 replies

I couldn't help but notice this header in opengl2d3d

//-----------------------------------------------------------------------------
// Torque Game Engine
//
// Quake GL DirectX wrapper
// Portions Copyright (c) 2001 GarageGames.Com
// Portions Copyright (c) 2001 by Sierra Online, Inc.
//-----------------------------------------------------------------------------

(quake mentioned but no copyright)

Looking more in WinGL.CC :
//-----------------------------------------------------------------------------
// This file is based on QGL_WIN.C written for the Quake engine by id.
//-----------------------------------------------------------------------------

Some more quake code is in map2dif, along with a few comments about 'copying this right from source' (paraphrased)

anyone care to comment on this?
Page«First 1 2 Next»
#21
03/24/2003 (12:03 pm)
Oops, missed that one...

The only code in map2dif I could find that is "copied" from the quake stuff is the heuristic for choosing which plane to use next in building the BSP:

// Ok.  Now, I'm blatantly copying this from the qbsp3 source.  Their hueristic:
   //  score =  5    * coplanar            +
   //          -5    * splits              +
   //          -       abs(numFront - numBack) +
   //          -1000 * numTinyWindings  +
   //           5 *    isAxial
   // Plus some crap we don't care about.  For now, we'll just duplicate this.
   //
   S32 finalScore = 5 * numCoplanar - 5 * numSplits - mAbs(numFront - numBack);
   finalScore      -= 1000 * numTinyWindings;
   finalScore      += isAxial ? 5 : 0;

I'm not sure if the code in the comment is actually from the qbsp3 source or if it's from a comment in the qbsp3 source...

This should probably be changed.
#22
03/24/2003 (2:05 pm)
Actually if that's the entirety, I _think_ that it doesn't exceed the line count of acceptable "jacking" (someone told me that 10 lines was what was proposed by FSF as "not really copying"), so you may be okay on that front.
Page«First 1 2 Next»