Jump to content

FOG System client 40K !


Recommended Posts

Hi

I have a big problem with the fog/shadow system for client 40K.
I have example ^^

Normaly I change in constinfo.py
 

And result for client 34K :

SNGcpMX.jpg

The fog and shadow is very good.
But the same with client 40k : 

Knd993f.jpg

 

how change this ?
I can change the source of the launcher.

You are an idea ?

Thanks :)

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Maybe in this little piece of code

 

GameLibMapOutdoorRenderHTP.cpp

	std::pair<float, long> fog_far(fFogFarDistance+1600.0f, 0);
	std::pair<float, long> fog_near(fFogNearDistance-3200.0f, 0);

Edit

Or

void CMapOutdoor::__RenderTerrain_RenderHardwareTransformPatch()
{
	DWORD dwFogColor;
	float fFogFarDistance;
	float fFogNearDistance;
	if (mc_pEnvironmentData)
	{
		dwFogColor=mc_pEnvironmentData->FogColor;
		fFogNearDistance=mc_pEnvironmentData->GetFogNearDistance();
		fFogFarDistance=mc_pEnvironmentData->GetFogFarDistance();
	}
	else
	{
		dwFogColor=0xffffffff;
		fFogNearDistance=5000.0f;
		fFogFarDistance=10000.0f;
	}

I also think that my VIEW_RANGE the order has something to do also

  • Love 1
Link to comment
Share on other sites

Maybe in this little piece of code

 

GameLibMapOutdoorRenderHTP.cpp

	std::pair<float, long> fog_far(fFogFarDistance+1600.0f, 0);
	std::pair<float, long> fog_near(fFogNearDistance-3200.0f, 0);

Edit

Or

void CMapOutdoor::__RenderTerrain_RenderHardwareTransformPatch()
{
	DWORD dwFogColor;
	float fFogFarDistance;
	float fFogNearDistance;
	if (mc_pEnvironmentData)
	{
		dwFogColor=mc_pEnvironmentData->FogColor;
		fFogNearDistance=mc_pEnvironmentData->GetFogNearDistance();
		fFogFarDistance=mc_pEnvironmentData->GetFogFarDistance();
	}
	else
	{
		dwFogColor=0xffffffff;
		fFogNearDistance=5000.0f;
		fFogFarDistance=10000.0f;
	}

I also think that my VIEW_RANGE the order has something to do also

Not working..

Link to comment
Share on other sites

Maybe in this little piece of code

 

GameLibMapOutdoorRenderHTP.cpp

	std::pair<float, long> fog_far(fFogFarDistance+1600.0f, 0);
	std::pair<float, long> fog_near(fFogNearDistance-3200.0f, 0);

Edit

Or

void CMapOutdoor::__RenderTerrain_RenderHardwareTransformPatch()
{
	DWORD dwFogColor;
	float fFogFarDistance;
	float fFogNearDistance;
	if (mc_pEnvironmentData)
	{
		dwFogColor=mc_pEnvironmentData->FogColor;
		fFogNearDistance=mc_pEnvironmentData->GetFogNearDistance();
		fFogFarDistance=mc_pEnvironmentData->GetFogFarDistance();
	}
	else
	{
		dwFogColor=0xffffffff;
		fFogNearDistance=5000.0f;
		fFogFarDistance=10000.0f;
	}

I also think that my VIEW_RANGE the order has something to do also

Not working..

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.