Convert Figma logo to code with AI

id-Software logoDOOM-3

Doom 3 GPL source release

3,080
694
3,080
0

Top Related Projects

Doom 3 BFG Edition

1,777

dhewm 3 main repository

Doom 3 GPL source release

2,368

The ioquake3 community effort to continue supporting/developing id's Quake III Arena

Quick Overview

The id-Software/DOOM-3 repository contains the source code for the classic first-person shooter game DOOM 3, which was released in 2004. The game is known for its advanced graphics and atmospheric gameplay, and the repository provides access to the game's source code for developers and enthusiasts.

Pros

  • Advanced Graphics: DOOM 3 was a technical marvel at the time of its release, featuring highly detailed environments, realistic lighting, and impressive visual effects.
  • Atmospheric Gameplay: The game's dark, moody atmosphere and intense combat create a tense and immersive gaming experience.
  • Modding Potential: The availability of the source code allows for extensive modding and customization, enabling the community to create new content and experiences.
  • Historical Significance: As a landmark title in the first-person shooter genre, DOOM 3 has had a significant impact on the development of the gaming industry.

Cons

  • Dated Technology: While the game's graphics were impressive at the time, they have since become dated, and the engine may require significant work to bring it up to modern standards.
  • Limited Optimization: The original game was known for its high system requirements, and the source code may not be optimized for modern hardware and software configurations.
  • Licensing Concerns: The use of the DOOM 3 source code may be subject to licensing restrictions, which could limit its commercial or open-source applications.
  • Lack of Active Development: The repository has not been actively maintained since its initial release, which could make it challenging to work with for modern developers.

Getting Started

To get started with the DOOM 3 source code, follow these steps:

  1. Clone the repository from GitHub:
git clone https://github.com/id-Software/DOOM-3.git
  1. Navigate to the cloned repository:
cd DOOM-3
  1. Build the project using the appropriate build tools for your platform. The repository includes instructions for building the game on Windows, Linux, and macOS.

  2. Run the game using the built executable. The repository also includes instructions for configuring and running the game.

Please note that working with the DOOM 3 source code may require a significant amount of time and effort, as the codebase is over 15 years old and may not be compatible with modern development tools and frameworks.

Competitor Comparisons

Doom 3 BFG Edition

Pros of DOOM-3-BFG

  • Improved graphics and performance optimizations
  • Additional content, including the "Lost Mission" expansion
  • Better compatibility with modern systems and widescreen displays

Cons of DOOM-3-BFG

  • Some changes to gameplay mechanics and balance
  • Removal of certain features present in the original DOOM-3
  • Less mod-friendly due to changes in file formats and engine structure

Code Comparison

DOOM-3:

void idRenderWorldLocal::AddEntityDefs( int numNewDefs, idRenderEntityLocal **newDefs ) {
    for ( int i = 0 ; i < numNewDefs ; i++ ) {
        AddEntityDef( newDefs[i]->index, newDefs[i] );
    }
}

DOOM-3-BFG:

void idRenderWorldLocal::AddEntityDefs( int numNewDefs, idRenderEntityLocal **newDefs ) {
    for ( int i = 0 ; i < numNewDefs ; i++ ) {
        AddEntityDef( newDefs[i]->index, newDefs[i] );
    }
    R_StaticFree( newDefs );
}

The main difference in this code snippet is the addition of R_StaticFree( newDefs ); in the BFG edition, which helps manage memory more efficiently by freeing the allocated memory for newDefs after use.

1,777

dhewm 3 main repository

Pros of dhewm3

  • Cross-platform support (Windows, macOS, Linux)
  • Active development and community contributions
  • Improved compatibility with modern systems

Cons of dhewm3

  • Lacks some features present in the original DOOM 3 source
  • May have compatibility issues with certain mods

Code Comparison

DOOM-3 (original):

void idRenderModelStatic::ParseModel( idLexer &parser ) {
    idToken		token;
    parser.ExpectTokenString( "{" );
    while ( 1 ) {
        if ( !parser.ReadToken( &token ) ) {
            parser.Error( "Unexpected end of file" );
            return;
        }
        // ... (rest of the function)
    }
}

dhewm3 (modified):

void idRenderModelStatic::ParseModel( idLexer &parser ) {
    parser.ExpectTokenString( "{" );
    while ( parser.ReadToken( &token ) ) {
        if ( !token.Icmp( "}" ) ) {
            break;
        }
        // ... (rest of the function)
    }
}

The dhewm3 version simplifies the parsing loop and improves error handling.

Doom 3 GPL source release

Pros of doom3.gpl

  • More active development and maintenance
  • Better community support and contributions
  • Improved cross-platform compatibility

Cons of doom3.gpl

  • Potentially less "official" or authoritative codebase
  • May diverge from original id Software vision
  • Possible introduction of new bugs or inconsistencies

Code Comparison

DOOM-3:

void idRenderModelStatic::ParseModel( idLexer &parser ) {
    idToken		token;
    parser.ExpectTokenString( "{" );
    while ( 1 ) {
        if ( !parser.ReadToken( &token ) ) {
            parser.Error( "Unexpected end of file" );
            return;
        }

doom3.gpl:

void idRenderModelStatic::ParseModel( idLexer &parser ) {
    idToken		token;
    parser.ExpectTokenString( "{" );
    while ( 1 ) {
        if ( !parser.ReadToken( &token ) ) {
            parser.Error( "Unexpected end of file" );
            return;
        }

In this case, the code appears to be identical between the two repositories. This suggests that doom3.gpl likely started as a fork of the original DOOM-3 codebase and may have maintained compatibility with the core functionality. However, differences may exist in other parts of the codebase or in more recent commits.

2,368

The ioquake3 community effort to continue supporting/developing id's Quake III Arena

Pros of ioq3

  • More active development and community support
  • Better cross-platform compatibility
  • Improved networking code and performance optimizations

Cons of ioq3

  • Less advanced graphics and visual effects
  • Smaller scope and feature set compared to DOOM 3
  • Limited mod support compared to DOOM 3's extensive modding capabilities

Code Comparison

DOOM 3 (OpenGL rendering):

void R_InitOpenGL( void ) {
    // Initialize OpenGL
    qglClearColor( 0.0f, 0.0f, 0.0f, 0.0f );
    qglClear( GL_COLOR_BUFFER_BIT );
    GLimp_SwapBuffers();
}

ioq3 (OpenGL rendering):

void GLimp_Init( void ) {
    ri.Printf( PRINT_ALL, "Initializing OpenGL subsystem\n" );
    GLimp_InitGL();
    GLimp_SetMode();
}

Both projects use OpenGL for rendering, but DOOM 3's implementation is more complex due to its advanced graphics features. ioq3 focuses on maintaining compatibility with older hardware while improving performance. DOOM 3 offers a more visually impressive experience, while ioq3 provides better stability and cross-platform support.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Doom 3 GPL source release

This file contains the following sections:

GENERAL NOTES LICENSE

GENERAL NOTES

Game data and patching:

This source release does not contain any game data, the game data is still covered by the original EULA and must be obeyed as usual.

You must patch the game to the latest version.

Note that Doom 3 and Doom 3: Resurrection of Evil are available from the Steam store at http://store.steampowered.com/app/9050/ http://store.steampowered.com/app/9070/

Other platforms, updated source code, security issues:

If you have obtained this source code several weeks after the time of release, it is likely that you can find modified and improved versions of the engine in various open source projects across the internet. Depending what is your interest with the source code, those may be a better starting point.

Compiling on win32:

A project file for Microsoft Visual Studio 2010 is provided in neo\doom.sln We expect the solution file is compatible with the Express releases

You will need the Microsoft DirectX SDK installed as well. If it does not reside in "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)" you will need to update the project files accordingly.

Compiling on GNU/Linux x86:

The build system on GNU/Linux is based on SCons: http://www.scons.org/ Issue the scons command in the neo/ folder.

Compiling on MacOS X:

XCode 3.2 project is under neo/sys/osx/

Back End Rendering of Stencil Shadows:

The Doom 3 GPL source code release does not include functionality enabling rendering of stencil shadows via the “depth fail” method, a functionality commonly known as "Carmack's Reverse".

MayaImport:

The code for our Maya export plugin is included, if you are a Maya licensee you can obtain the SDK from Autodesk.

LICENSE

See COPYING.txt for the GNU GENERAL PUBLIC LICENSE

ADDITIONAL TERMS: The Doom 3 GPL Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU GPL which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.

EXCLUDED CODE: The code described below and contained in the Doom 3 GPL Source Code release is not part of the Program covered by the GPL and is expressly excluded from its terms. You are solely responsible for obtaining from the copyright holder a license for such code and complying with the applicable license terms.

Curl library

lines file(s) neo/curl/*, neo/curl/README

COPYRIGHT AND PERMISSION NOTICE

Copyright (c) 1996 - 2004, Daniel Stenberg, daniel@haxx.se.

All rights reserved.

Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.

JPEG library

neo/renderer/jpeg-6/*

Copyright (C) 1991-1995, Thomas G. Lane

Permission is hereby granted to use, copy, modify, and distribute this software (or portions thereof) for any purpose, without fee, subject to these conditions: (1) If any part of the source code for this software is distributed, then this README file must be included, with this copyright and no-warranty notice unaltered; and any additions, deletions, or changes to the original files must be clearly indicated in accompanying documentation. (2) If only executable code is distributed, then the accompanying documentation must state that "this software is based in part on the work of the Independent JPEG Group". (3) Permission for use of this software is granted only if the user accepts full responsibility for any undesirable consequences; the authors accept NO LIABILITY for damages of any kind.

These conditions apply to any software derived from or based on the IJG code, not just to the unmodified library. If you use our work, you ought to acknowledge us.

NOTE: unfortunately the README that came with our copy of the library has been lost, so the one from release 6b is included instead. There are a few 'glue type' modifications to the library to make it easier to use from the engine, but otherwise the dependency can be easily cleaned up to a better release of the library.

OggVorbis

neo/sound/OggVorbis/* neo/sound/OggVorbis/ogg/README neo/sound/OggVorbis/vorbis/README

Copyright (c) 2002, Xiph.org Foundation

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of the Xiph.org Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PropTree

neo/tools/common/PropTree/*

Copyright (C) 1998-2001 Scott Ramsay sramsay@gonavi.com http://www.gonavi.com

This material is provided "as is", with absolutely no warranty expressed or implied. Any use is at your own risk.

Permission to use or copy this software for any purpose is hereby granted without fee, provided the above notices are retained on all copies. Permission to modify the code and to distribute modified code is granted, provided the above notices are retained, and a notice that the code was modified is included with the above copyright notice.

If you use this code, drop me an email. I'd like to know if you find the code useful.

OpenAL SDK

neo/openal/docs/* neo/openal/include/* neo/openal/lib/* neo/openal/osx/*

/**

  • OpenAL cross platform audio library
  • Copyright (C) 1999-2000 by authors.
  • This library is free software; you can redistribute it and/or
  • modify it under the terms of the GNU Library General Public
  • License as published by the Free Software Foundation; either
  • version 2 of the License, or (at your option) any later version.
  • This library is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  • Library General Public License for more details.
  • You should have received a copy of the GNU Library General Public
  • License along with this library; if not, write to the
  • Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  • Boston, MA 02111-1307, USA.
  • Or go to http://www.gnu.org/copyleft/lgpl.html */

Base64 implementation

lines file(s) 234 neo/idlib/Base64.cpp

Copyright (c) 1996 Lars Wirzenius. All rights reserved.

June 14 2003: TTimo ttimo@idsoftware.com modified + endian bug fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=197039

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

IO on .zip files using portions of zlib

lines file(s) 4471 src/framework/Unzip.cpp Copyright (C) 1998 Gilles Vollant zlib is Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

MD4 Message-Digest Algorithm

lines file(s) 260 neo/idlib/hashing/MD4.cpp Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All rights reserved.

License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD4 Message-Digest Algorithm" in all material mentioning or referencing this software or this function.

License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA Data Security, Inc. MD4 Message-Digest Algorithm" in all material mentioning or referencing the derived work.

RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose. It is provided "as is" without express or implied warranty of any kind.

These notices must be retained in any copies of any part of this documentation and/or software.

MD5 Message-Digest Algorithm

lines file(s) 273 neo/idlib/hashing/MD5.cpp This code implements the MD5 message-digest algorithm. The algorithm is due to Ron Rivest. This code was written by Colin Plumb in 1993, no copyright is claimed. This code is in the public domain; do with it what you wish.

CRC32 Checksum

lines file(s) 168 neo/idlib/hashing/CRC32.cpp Copyright (C) 1995-1998 Mark Adler

OpenGL headers

lines file(s) 5920 neo/renderer/glext.h 613 neo/renderer/wglext.h

/* ** License Applicability. Except to the extent portions of this file are ** made subject to an alternative license as permitted in the SGI Free ** Software License B, Version 1.1 (the "License"), the contents of this ** file are subject only to the provisions of the License. You may not use ** this file except in compliance with the License. You may obtain a copy ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: ** ** http://oss.sgi.com/projects/FreeB ** ** Note that, as provided in the License, the Software is distributed on an ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. ** ** Original Code. The Original Code is: OpenGL Sample Implementation, ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, ** Inc. The Original Code is Copyright (c) 1991-2002 Silicon Graphics, Inc. ** Copyright in any portions created by third parties is as indicated ** elsewhere herein. All Rights Reserved. ** ** Additional Notice Provisions: This software was created using the ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has ** not been independently verified as being compliant with the OpenGL(R) ** version 1.2.1 Specification. */

NV-CONTROL X Extension

neo/sys/linux/libXNVCtrl/* Copyright NVIDIA Corporation

ExtUtil.h

neo/sys/linux/extutil.h /*

  • $Xorg: extutil.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $

Copyright 1989, 1998 The Open Group

Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. *

  • Author: Jim Fulton, MIT The Open Group
  •                 Xlib Extension-Writing Utilities
    
  • This package contains utilities for writing the client API for various
  • protocol extensions. THESE INTERFACES ARE NOT PART OF THE X STANDARD AND
  • ARE SUBJECT TO CHANGE! */

OSS headers

neo/sys/linux/oss/* Copyright by 4Front Technologies 1993-2004

Brandelf utility

lines file(s) 225 neo/sys/linux/setup/brandelf.c

/*-

  • Copyright (c) 1996 Søren Schmidt
  • All rights reserved.
  • Redistribution and use in source and binary forms, with or without
  • modification, are permitted provided that the following conditions
  • are met:
    1. Redistributions of source code must retain the above copyright
  • notice, this list of conditions and the following disclaimer
  • in this position and unchanged.
    1. Redistributions in binary form must reproduce the above copyright
  • notice, this list of conditions and the following disclaimer in the
  • documentation and/or other materials provided with the distribution.
    1. The name of the author may not be used to endorse or promote products
  • derived from this software withough specific prior written permission
  • THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  • IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  • OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  • IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  • INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  • NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  • DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  • THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  • (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  • THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  • $FreeBSD: src/usr.bin/brandelf/brandelf.c,v 1.16 2000/07/02 03:34:08 imp Exp $ */

makeself - Make self-extractable archives on Unix

neo/sys/linux/setup/makeself/*, neo/sys/linux/setup/makeself/README Copyright (c) Stéphane Peter Licensing: GPL v2