dhewm3/README.md

363 lines
14 KiB
Markdown
Raw Normal View History

2012-01-14 20:22:34 +00:00
# ABOUT
2011-11-22 21:28:15 +00:00
2012-01-14 20:22:34 +00:00
_dhewm 3_ is a _Doom 3_ GPL source modification.
2011-11-22 21:28:15 +00:00
2012-01-14 20:22:34 +00:00
The goal of _dhewm 3_ is bring _DOOM 3_ with the help of SDL to all suitable
plaforms.
2011-11-22 21:28:15 +00:00
2012-01-14 20:22:34 +00:00
Bugs present in the original _DOOM 3_ will be fixed (when identified) without
altering the original gameplay.
2012-01-14 20:22:34 +00:00
**The project is hosted at:** https://github.com/dhewm
2012-01-14 20:22:34 +00:00
**Consult the FAQ at:** https://github.com/dhewm/dhewm3/wiki/FAQ
2012-01-14 19:17:13 +00:00
2012-01-14 20:22:34 +00:00
**Report bugs here:** https://github.com/dhewm/dhewm3/issues
2012-01-14 19:17:13 +00:00
2012-01-14 20:22:34 +00:00
# CHANGES
2012-01-14 20:22:34 +00:00
Compared to the original _DOOM 3_, the changes of _dhewm 3_ worth mentioning are:
- 64bit port
- SDL for low level OS support, OpenGL and input handling
- OpenAL for audio output, all OS specific audio backends are gone
- OpenAL EFX for EAX reverb effects (read: EAX on all platforms)
- A portable build system based on CMake
- (Cross-)compilation with mingw-w64
2012-01-14 20:22:34 +00:00
# GENERAL NOTES
2011-11-22 21:28:15 +00:00
2012-01-14 20:22:34 +00:00
## Game data and patching
2011-11-22 21:28:15 +00:00
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.
2012-01-14 20:22:34 +00:00
Note that _Doom 3_ and _Doom 3: Resurrection of Evil_ are available from the Steam store at
2011-11-22 21:28:15 +00:00
http://store.steampowered.com/app/9050/
2012-01-14 20:22:34 +00:00
2011-11-22 21:28:15 +00:00
http://store.steampowered.com/app/9070/
2012-01-14 20:22:34 +00:00
## Compiling
2011-11-22 21:28:15 +00:00
The build system is based on CMake: http://cmake.org/
2011-11-22 21:28:15 +00:00
Required libraries are not part of the tree. These are:
2012-01-14 20:22:34 +00:00
- libjpeg (minimum v6, v8 recommended)
- libogg
- libvorbis
- libvorbisfile (may be part of libvorbis)
2012-01-14 19:48:09 +00:00
- OpenAL (OpenAL Soft required, Creative's and Apple's versions are made of fail)
- SDL v1.2
- libcurl (optional, required for server downloads)
2011-11-22 21:28:15 +00:00
For UNIX like system these libraries need to be installed (including the
developer files). It is recommended to use the software management tools of
your OS (apt-get, portage, rpm, BSD ports, MacPorts, ...).
2011-11-22 21:28:15 +00:00
For Windows there are two options:
2012-01-14 20:22:34 +00:00
- Use the provided binaries (recommended, see below)
- Compile these libraries yourself
2011-11-22 21:28:15 +00:00
Create a distinct build folder outside of this source repository and issue
the cmake command there, pointing it at the neo/ folder from this repository:
2011-11-22 21:28:15 +00:00
2012-01-14 20:22:34 +00:00
`cmake /path/to/repository/neo`
OSX users need to point cmake at OpenAL Soft (better solutions welcome):
`cmake -DOPENAL_LIBRARY=/usr/local/lib/libopenal.dylib -DOPENAL_INCLUDE_DIR=/usr/local/include /path/to/repository/neo`
2012-01-14 20:22:34 +00:00
## Using the provided Windows binaries
Get a clone of the latest binaries here: https://github.com/dhewm/dhewm3-libs
There are two subfolder:
2012-01-14 20:22:34 +00:00
- 32bit binaries are located in "i686-w64-mingw32"
- 64bit binaries are located in "x86_64-w64-mingw32"
Issue the appropriate command from the build folder, for example:
2012-01-14 20:22:34 +00:00
`cmake -G "Visual Studio 10" -DDHEWM3LIBS=/path/to/dhewm3-libs/i686-w64-mingw32 /path/to/repository/neo`
`cmake -G "MinGW Makefiles" -DDHEWM3LIBS=/path/to/dhewm3-libs/x86_64-w64-mingw32 /path/to/repository/neo`
The binaries are compatible with mingw-w64 and all MSVC versions.
2012-01-14 20:22:34 +00:00
## Cross compiling
For cross compiling a CMake Toolchain file is required.
2012-01-14 20:22:34 +00:00
For the mingw-w64 toolchain "i686-w64-mingw32" on Ubuntu precise it looks like:
<pre>
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR i686)
set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
set(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
</pre>
Then point CMake at your Toolchain file:
2012-01-14 20:22:34 +00:00
`cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/Toolchain.cmake -DDHEWM3LIBS=/path/to/dhewm3-libs/i686-w64-mingw32 /path/to/repository/neo`
2011-11-22 21:28:15 +00:00
2012-01-14 20:22:34 +00:00
## Back End Rendering of Stencil Shadows
2011-11-22 21:28:15 +00:00
The Doom 3 GPL source code release does not include functionality enabling rendering
2012-01-14 20:22:34 +00:00
of stencil shadows via the “depth fail” method, a functionality commonly known as
2011-11-22 21:28:15 +00:00
"Carmack's Reverse".
2012-01-14 20:22:34 +00:00
## MayaImport
2011-11-22 21:28:15 +00:00
The code for our Maya export plugin is included, if you are a Maya licensee
you can obtain the SDK from Autodesk.
2012-01-14 20:22:34 +00:00
# LICENSE
2011-11-22 21:28:15 +00:00
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.
2012-01-14 20:22:34 +00:00
## JPEG library
neo/renderer/jpeg_memory_src.*
2011-11-22 21:28:15 +00:00
This software is copyright (C) 1991-2011, Thomas G. Lane, Guido Vollbeding.
2012-01-14 20:22:34 +00:00
All Rights Reserved except as specified below.
2011-11-22 21:28:15 +00:00
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.
Permission is NOT granted for the use of any IJG author's name or company name
in advertising or publicity relating to this software or products derived from
it. This software may be referred to only as "the Independent JPEG Group's
software".
We specifically permit and encourage the use of this software as the basis of
commercial products, provided that all warranty or liability claims are
assumed by the product vendor.
2011-11-22 21:28:15 +00:00
2012-01-14 20:22:34 +00:00
## PropTree
2011-11-22 21:28:15 +00:00
neo/tools/common/PropTree/*
Copyright (C) 1998-2001 Scott Ramsay
2012-01-14 20:22:34 +00:00
2011-11-22 21:28:15 +00:00
sramsay@gonavi.com
2012-01-14 20:22:34 +00:00
2011-11-22 21:28:15 +00:00
http://www.gonavi.com
This material is provided "as is", with absolutely no warranty expressed
or implied. Any use is at your own risk.
2012-01-07 20:00:04 +00:00
Permission to use or copy this software for any purpose is hereby granted
2011-11-22 21:28:15 +00:00
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.
2012-01-07 20:00:04 +00:00
2011-11-22 21:28:15 +00:00
If you use this code, drop me an email. I'd like to know if you find the code
useful.
2012-01-14 20:22:34 +00:00
## Base64 implementation
neo/idlib/Base64.cpp
2011-11-22 21:28:15 +00:00
Copyright (c) 1996 Lars Wirzenius. All rights reserved.
June 14 2003: TTimo <ttimo@idsoftware.com>
2012-01-14 20:22:34 +00:00
modified + endian bug fixes
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=197039
2011-11-22 21:28:15 +00:00
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.
2012-01-14 20:22:34 +00:00
## IO on .zip files using portions of zlib
src/framework/Unzip.cpp
2011-11-22 21:28:15 +00:00
Copyright (C) 1998 Gilles Vollant
2012-01-14 20:22:34 +00:00
2011-11-22 21:28:15 +00:00
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.
2012-01-14 20:22:34 +00:00
## MD4 Message-Digest Algorithm
neo/idlib/hashing/MD4.cpp
2011-11-22 21:28:15 +00:00
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.
2012-01-14 20:22:34 +00:00
## MD5 Message-Digest Algorithm
neo/idlib/hashing/MD5.cpp
2011-11-22 21:28:15 +00:00
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.
2012-01-14 20:22:34 +00:00
## CRC32 Checksum
neo/idlib/hashing/CRC32.cpp
2011-11-22 21:28:15 +00:00
Copyright (C) 1995-1998 Mark Adler
2012-01-14 20:22:34 +00:00
## OpenGL headers
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.
## Brandelf utility
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.
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.
3. 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
2011-11-22 21:28:15 +00:00
neo/sys/linux/setup/makeself/*, neo/sys/linux/setup/makeself/README
2012-01-14 20:22:34 +00:00
Copyright (c) Stéphane Peter
2011-11-22 21:28:15 +00:00
Licensing: GPL v2