Jump to content
  • 0

FOG System client 40K !


doNaLs

Question

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

20 answers to this question

Recommended Posts

  • 0

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

  • 0

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

  • 0

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

  • 0
  • Premium

Hi (Salut :D), you have to check FOG_LEVEL in constinfo. :)

 

FOG_LEVEL0 = 4800.0
FOG_LEVEL1 = 9600.0
FOG_LEVEL2 = 12800.0

 

If you already made this change, there's an other folder for fog I think. :x

Link to comment
Share on other sites

  • 0

Hi (Salut :D), you have to check FOG_LEVEL in constinfo. :)

 

FOG_LEVEL0 = 4800.0

FOG_LEVEL1 = 9600.0

FOG_LEVEL2 = 12800.0

 

If you already made this change, there's an other folder for fog I think. :x

I did it before :) Does anyone else have any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 32

      Boss Effect Over Head

    2. 0

      Open Source API for Metin2 Server Management - Early Development

    3. 0

      Official Item Combination [18.4]

    4. 2

      Proper SIGNAL management for Windows

    5. 2

      Proper SIGNAL management for Windows

    6. 4

      syserr erorr ( not working OK button on client )

    7. 2

      Proper SIGNAL management for Windows

    8. 6

      Metin2 2003 Beta Client!!!!!

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.