Re: [Warzone-dev] Patch: Fog of War / Mist
- Original Message - From: "Per Inge Mathisen" <[EMAIL PROTECTED]> To: "Development list" Sent: Saturday, February 10, 2007 5:44 PM Subject: Re: [Warzone-dev] Patch: Fog of War / Mist On 2/10/07, The Watermelon <[EMAIL PROTECTED]> wrote: On 2/10/07, Gerard Krol <[EMAIL PROTECTED]> wrote: > Fog of War seems to be broken in that it renders a "foggy" sky instead > of a black background. Fixed that. hmm just curious,do you know why the sky texpages are unused/broken?seems it draws orange color filled 'fog' instead of the 'sky background' png stored in texpages folder... I don't think that was ever implemented. Right, it wasn't implemented. Anyone remember them being there in the original? - Per ___ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev ___ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev
Re: [Warzone-dev] Patch: Fog of War / Mist
On 2/10/07, The Watermelon <[EMAIL PROTECTED]> wrote: On 2/10/07, Gerard Krol <[EMAIL PROTECTED]> wrote: > Fog of War seems to be broken in that it renders a "foggy" sky instead > of a black background. Fixed that. hmm just curious,do you know why the sky texpages are unused/broken?seems it draws orange color filled 'fog' instead of the 'sky background' png stored in texpages folder... I don't think that was ever implemented. Anyone remember them being there in the original? - Per ___ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev
Re: [Warzone-dev] Patch: Fog of War / Mist
On 2/10/07, Gerard Krol <[EMAIL PROTECTED]> wrote: Fog of War seems to be broken in that it renders a "foggy" sky instead of a black background. Fixed that. - Gerard hmm just curious,do you know why the sky texpages are unused/broken?seems it draws orange color filled 'fog' instead of the 'sky background' png stored in texpages folder... ___ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev
[Warzone-dev] Patch: Fog of War / Mist
Fog of War seems to be broken in that it renders a "foggy" sky instead of a black background. Fixed that. - Gerard Index: src/loop.c === --- src/loop.c (revision 726) +++ src/loop.c (working copy) @@ -183,8 +183,9 @@ #endif //JPS 24 feb??? - if (fogStatus & FOG_BACKGROUND) + if (war_GetFog()) { +// Mist clearMode = CLEAR_FOG;//screen clear to fog colour D3D if (loopMissionState == LMS_SAVECONTINUE) { @@ -194,6 +195,7 @@ } else { +// Fog of War clearMode = CLEAR_BLACK;//force to black 3DFX } pie_ScreenFlip(clearMode);//gameloopflip Index: src/multiint.c === --- src/multiint.c (revision 726) +++ src/multiint.c (working copy) @@ -1989,6 +1989,7 @@ widgSetButtonState(psWScreen, MULTIOP_FOG_ON,WBUT_LOCK); widgSetButtonState(psWScreen, MULTIOP_FOG_OFF,0); game.fog = TRUE; +war_SetFog(FALSE); // FIXME: multiplayer FOG_ON means fog of war active if(bHosted) { sendOptions(0,0); @@ -1999,6 +2000,7 @@ widgSetButtonState(psWScreen, MULTIOP_FOG_ON,0); widgSetButtonState(psWScreen, MULTIOP_FOG_OFF,WBUT_LOCK); game.fog = FALSE; +war_SetFog(TRUE); if(bHosted) { sendOptions(0,0); Index: lib/ivis_opengl/piemode.c === --- lib/ivis_opengl/piemode.c (revision 726) +++ lib/ivis_opengl/piemode.c (working copy) @@ -134,6 +134,10 @@ case CLEAR_OFF_AND_NO_BUFFER_DOWNLOAD: break; case CLEAR_BLACK: + glDepthMask(GL_TRUE); + glClearColor(0.0f,0.0f,0.0f,0.0f); + glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); + break; default: glDepthMask(GL_TRUE); fog_colour.argb = pie_GetFogColour(); ___ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev