Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Fog with C++ and loading a map << solved


Recommended Posts

I worked the half day on that problem and I think I  give the information to everyone who also has this problem with fog.

In the Editor fog looks a little bit like fog.

Without implementig fog in C++ source, no fog is visible in C++.

Loading a map after craeting a camera only a touch of a color is visible in the very far, and fog is not working as it should.

I mean with map not a terrain, I loaded a map with only a plattform and some prefabs.

I have not tested with terrain.

So load a map before creating a camera. Nothing works correct if you not do that.

 

Link to post

Fog information is stored with the world/map. When a camera is created, the camera pulls the information about the fog and enables a post effect using that data. Make sure post processing is enabled and no settings are set to low.

Link to post

Yes, but if I want to have a dynamic weather system I will do that in C++ to have the control, I am not a Lua programmer.

In the moment I want only a fix weather it is good to have it with the map.

But thank you anyway for your info.

Link to post

I must make first a few tests, identify models from map and vegetation from map if this is possible.

I need also different spawn points for the camera, it would be the best I implement a developer class for programming and grab them out for release versions.

In this map I used I have not set a camera and no player, only the map itself.

I posted that only for C++ users which have that same problem and did not find anything in the search function.

But anyway thank you for help and suggestions.

Link to post
  • Josh changed the title to Fog with C++ and loading a map << solved

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Facebook Twitter Youtube Github Steam
×
×
  • Create New...