No Fog?

Posts 1–10 of 10 · Page 1 of 1
No Fog?
Im still having a problem with no fog, everything goes to a yellowish/white color:

if( HM_NoFog ==1)
{
*(float*)ADR_FOGNFAR = 1166127104;
*(float*)ADR_FOGNEAR = 0;
}

#define ADR_FOGNFAR 0x9EA994
#define ADR_FOGNEAR 0x9EA99C

Can anyone tell me why?
Code:
        //nofog//
	if(NoFog==1)
		pDevice->SetRenderState(D3DRS_FOGENABLE, false);
	
	//color fog//
	if(ColFog==1) {	pDevice->SetRenderState(D3DRS_FOGCOLOR,0xffFF0000);}
	if(ColFog==2) {	pDevice->SetRenderState(D3DRS_FOGCOLOR,0xff00FF00);}
	if(ColFog==3) {	pDevice->SetRenderState(D3DRS_FOGCOLOR,0xff0000FF);}
	if(ColFog==4) {	pDevice->SetRenderState(D3DRS_FOGCOLOR,0xff000000);}
	if(ColFog==5) {	pDevice->SetRenderState(D3DRS_FOGCOLOR,0xffFFFF00);}
	if(ColFog==6) {	pDevice->SetRenderState(D3DRS_FOGCOLOR,0xffFFFFFF);}
	if(ColFog==7) {	pDevice->SetRenderState(D3DRS_FOGCOLOR,0xffFF00FF);}
	if(ColFog==8) {	pDevice->SetRenderState(D3DRS_FOGCOLOR,0xffC0C0C0);}
D3D, better way.
My hack doesnt have D3D, No D3D = Undetected
Code:
if( HM_NoFog ==1)
 {
 *(float*)ADR_FOGNFAR = 1166127104;
 *(float*)ADR_FOGNEAR = 0;
 }
maby the red makes alot clear
Good point. Seems like you used Nearfog addie for both.
Quote Originally Posted by AeroMan View Post
Code:
if( HM_NoFog ==1)
 {
 *(float*)ADR_FOGNFAR = 1166127104;
 *(float*)ADR_FOGNEAR = 0;
 }
maby the red makes alot clear
maby the red dosent make things more clear? :P
its an f in the first and e in the last ^^
Quote Originally Posted by scraprecon View Post
Good point. Seems like you used Nearfog addie for both.
nop he dont
Keep this friendly and yeah, he's modifying two different addresses:

if( HM_NoFog ==1)
{
*(float*)ADR_FOGNFAR = 1170939904;
*(float*)ADR_FOGNEAR = 1120403456;
}
I have At the moment this one:

if(CH_NoFog ==1)
{
*(float*)ADR_FOGNFAR = 1166127104;
*(float*)ADR_FOGNEAR = 1166127104;
}

But it is still keep showing a black screen.
Quote Originally Posted by DirecTX_ View Post
if( HM_NoFog ==1)
{
*(float*)ADR_FOGNFAR = 1170939904;
*(float*)ADR_FOGNEAR = 1120403456;
}
uuhm....
how would this work since you use the same adress but keep changing the value?
i doubt this will work


Quote Originally Posted by wssjuh12 View Post
I have At the moment this one:

if(CH_NoFog ==1)
{
*(float*)ADR_FOGNFAR = 1166127104;
*(float*)ADR_FOGNEAR = 1166127104;
}

But it is still keep showing a black screen.
ofc, you need far & near fog
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us