Bytecroc Posted August 14, 2020 Share Posted August 14, 2020 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. Quote Leadwerks 4.x Pro, examples please for C++, english is not my native language. Link to comment Share on other sites More sharing options...
reepblue Posted August 14, 2020 Share Posted August 14, 2020 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. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Bytecroc Posted August 14, 2020 Author Share Posted August 14, 2020 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. Quote Leadwerks 4.x Pro, examples please for C++, english is not my native language. Link to comment Share on other sites More sharing options...
reepblue Posted August 14, 2020 Share Posted August 14, 2020 Grab the camera with a for loop, then use it's fog functions to change it dynamically. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Bytecroc Posted August 14, 2020 Author Share Posted August 14, 2020 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. Quote Leadwerks 4.x Pro, examples please for C++, english is not my native language. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.