YouGroove Posted March 22, 2015 Share Posted March 22, 2015 The water is flickering when the camera is behind some terrain height. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
CreativeOcclusion Posted March 23, 2015 Share Posted March 23, 2015 Mine does the same at a certain distance it will flicker...mine has a large cliff with water below.... Quote Link to comment Share on other sites More sharing options...
YouGroove Posted March 23, 2015 Author Share Posted March 23, 2015 It even disappear depending just on the angle of camera in some places. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted March 26, 2015 Share Posted March 26, 2015 I can't tell because there is no map attached to your post, but it may be normal z-fighting. If that is the case then increasing the near range of the camera will improve the accuracy. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
YouGroove Posted March 28, 2015 Author Share Posted March 28, 2015 I'll try the camera and i'll post some example map also. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted April 5, 2015 Author Share Posted April 5, 2015 Changing water height to 1 , and there is no more problem. The bug is only happenning with values like water height = 0.1 whatever Camera range is. How to test : - Put water.map in your water directory - Put 3dPerson script in your base directory : "Scripts" - run the game and move camera up and down to see water disappearing water.zip Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted April 7, 2015 Share Posted April 7, 2015 I don't get any problems at all: I have an Nvidia card in this computer right now. Is this an AMD card you are using? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted April 7, 2015 Share Posted April 7, 2015 Okay, I have determined this only occurs on AMD cards and is a result of the occlusion culling the water plane uses. If you add this to the script the problem goes away (but occlusion culling is disabled!): self.Camera:SetOcclusionCullingMode(false) Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
YouGroove Posted April 7, 2015 Author Share Posted April 7, 2015 If you add this to the script the problem goes away (but occlusion culling is disabled!): Hummm , not cool , we need occlusion. I think AMD Radeon cards have a different culling system. to not behave like Nvidia. This is not a big issue has choosing height = 0.5 or 1 for water and there is no more flickering, still some other Radeon users will encounter that flickering also if they use terrain and keep water height to a low value. The thread can be closed as there is no solution or have AMD submit a patch. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted April 7, 2015 Share Posted April 7, 2015 I am just adding information to this thread, not saying that is a solution. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
BES Posted April 7, 2015 Share Posted April 7, 2015 Can you add two different cameras? ..one near and one far ..then change their perspectives..I have never tried it in Leadwerks Engine .. I have tried it in other engines to remove a flickering problem with water though...it worked perfectly... I dont know ..its an idea you can try though if you want.. Quote Threadripper 2920X Gen2 CPU(AMD 12-core 24 thread) | 32Gigs DDR4 RAM | MSI Nvidia GeForce RTX 2070 Stock OCed | ASRock X399 Professional Gaming Motherboard | Triple M.2 500Gig SSD's in Raid0 Windows 10 Pro | Blender | Paint.Net | World Machine | Shader Map 4 | Substance Designer | Substance Painter | Inkscape | Universal Sound FX | ProBuilder | 3D World Studio | Spacescape | OpenSky | CubeMapGen | Ecrett Music | Godot Engine | Krita | Kumoworks | GDScript | Lua | Python | C# | Leadworks Engine | Unity Engine 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.