https://github.com/TTimo/doom3.gpl
Doom 3 is open source now
-
MaNGusT
- Art contributor
- Posts: 1154
- Joined: 22 Sep 2006, 10:31
- Location: Russia
-
vexed
- Inactive

- Posts: 2538
- Joined: 27 Jul 2010, 02:07
Re: Doom 3 is open source now
Just the source code is.
Everything else (data / music) isn't.
Though, you can find doom 3 for under $5 now...
/facepalm ...Grinch stole Warzone

contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Super busy, don't expect a timely reply back.
-
MaNGusT
- Art contributor
- Posts: 1154
- Joined: 22 Sep 2006, 10:31
- Location: Russia
Re: Doom 3 is open source now
well, at least there you could find some useful code for wz, i.e. for graphics improvement or net code. AFAIK Doom3 engine uses OGL too. 
-
Ezio
- Trained

- Posts: 306
- Joined: 24 Apr 2010, 16:42
Re: Doom 3 is open source now
software that good in both OGL and software rendering i could think is ps2 emulator but i still can't implement it on wzMaNGusT wrote:well, at least there you could find some useful code for wz, i.e. for graphics improvement or net code. AFAIK Doom3 engine uses OGL too.
-
Jorzi
- Regular

- Posts: 2063
- Joined: 11 Apr 2010, 00:14
Re: Doom 3 is open source now
The doom and quake engines have indeed been very fast and well optimized, and yeah, John Carmack seems to be quite a supporter of openGL.
One of the more famous technologies of doom 3 is of course the shadow volume implementation, also known as Carmack's reverse, which gives correct shadows even when the camera is inside the shadow volume. Don't know how useful this would be for wz, however, since the camera is usually well above all geometry.
One of the more famous technologies of doom 3 is of course the shadow volume implementation, also known as Carmack's reverse, which gives correct shadows even when the camera is inside the shadow volume. Don't know how useful this would be for wz, however, since the camera is usually well above all geometry.


-insert deep philosophical statement here-
-
vexed
- Inactive

- Posts: 2538
- Joined: 27 Jul 2010, 02:07
Re: Doom 3 is open source now
Well, because of the idiotic patents involved with that, 'Carmack's reverse' isn't in the codebase anymore. He did work around that issue though. Changing a few lines around...Jorzi wrote:The doom and quake engines have indeed been very fast and well optimized, and yeah, John Carmack seems to be quite a supporter of openGL.
One of the more famous technologies of doom 3 is of course the shadow volume implementation, also known as Carmack's reverse, which gives correct shadows even when the camera is inside the shadow volume. Don't know how useful this would be for wz, however, since the camera is usually well above all geometry.
It looks like the patent issue with the open-source Doom 3 game won't severely delay the push of this code to the public. John Carmack has already worked around the legal issue within the id Tech 4 engine.
It was only three days ago that this patent issue came to light and was delaying the push of this open-source code, but yesterday Carmack announced he had a workaround in place for the legal issue surrounding Carmack's Reverse / the stencil buffer implementation of shadow volumes patented by Creative Labs.
The kicker? The workaround for this patent amounts to four lines of new code and two lines of changed code.
Yesterday Carmack had tweeted, "this demonstrates the idiocy of the patent -- the workaround added four lines of code and changed two."
/facepalm ...Grinch stole Warzone

contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Super busy, don't expect a timely reply back.
-
Jorzi
- Regular

- Posts: 2063
- Joined: 11 Apr 2010, 00:14
Re: Doom 3 is open source now
Ok, so the shadow casting algorithm is now "something completely different", although it pretty much does the same thing? 


-insert deep philosophical statement here-
-
zany
- Trained

- Posts: 303
- Joined: 20 Sep 2011, 07:04
Re: Doom 3 is open source now
is anyone going to make warzone with this engine?
-
lav_coyote25
- Professional

- Posts: 3434
- Joined: 08 Aug 2006, 23:18
Re: Doom 3 is open source now
zany wrote:is anyone going to make warzone with this engine?
sure, as soon as you start coding.
-
vexed
- Inactive

- Posts: 2538
- Joined: 27 Jul 2010, 02:07
Re: Doom 3 is open source now
Jorzi wrote:Ok, so the shadow casting algorithm is now "something completely different", although it pretty much does the same thing?
Code: Select all
@@ -1143,6 +1143,8 @@ static void RB_T_Shadow( const drawSurf_t *surf ) {
return;
}
+#if 0 // LEITH: the original patent free "preload" code
+
// patent-free work around
if ( !external ) {
// "preload" the stencil buffer with the number of volumes
@@ -1163,6 +1165,30 @@ static void RB_T_Shadow( const drawSurf_t *surf ) {
qglStencilOp( GL_KEEP, GL_KEEP, tr.stencilDecr );
GL_Cull( CT_BACK_SIDED );
RB_DrawShadowElementsWithCounters( tri, numIndexes );
+
+#else // LEITH: the patented "Carmack's Reverse" code
+
+ // patented depth-fail stencil shadows
+ if ( !external ) {
+ qglStencilOp( GL_KEEP, tr.stencilDecr, GL_KEEP );
+ GL_Cull( CT_FRONT_SIDED );
+ RB_DrawShadowElementsWithCounters( tri, numIndexes );
+ qglStencilOp( GL_KEEP, tr.stencilIncr, GL_KEEP );
+ GL_Cull( CT_BACK_SIDED );
+ RB_DrawShadowElementsWithCounters( tri, numIndexes );
+ }
+ // traditional depth-pass stencil shadows
+ else {
+ qglStencilOp( GL_KEEP, GL_KEEP, tr.stencilIncr );
+ GL_Cull( CT_FRONT_SIDED );
+ RB_DrawShadowElementsWithCounters( tri, numIndexes );
+
+ qglStencilOp( GL_KEEP, GL_KEEP, tr.stencilDecr );
+ GL_Cull( CT_BACK_SIDED );
+ RB_DrawShadowElementsWithCounters( tri, numIndexes );
+ }
+
+#endif
}
/*
/facepalm ...Grinch stole Warzone

contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Super busy, don't expect a timely reply back.