YouGroove Posted March 1, 2015 Share Posted March 1, 2015 Hi, Testing water for a game using long distance view i have two things not looking good : - terrain under water limit is visible - skybox and water don't blend So what could be the best solutions ? - using very large simple underground models or planes with some rocks in the neightbour regions around the terrain model - using not a texture for skybox , but some color grading sky system ? It is possible to have some work around to hide the sky and water dissociation ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
cassius Posted March 1, 2015 Share Posted March 1, 2015 I don't have any such problem with skybox but being able to see grass under water is not very realistic. In my le 2 game I had 2 characters having a swordfight while up to their waist in water. It looked good. Cannot replicate it in le3, UNLESS someone can tell me how. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
mobilemedved Posted November 15, 2016 Share Posted November 15, 2016 Use non transparent water ? How make it? Quote Link to comment Share on other sites More sharing options...
gamecreator Posted November 15, 2016 Share Posted November 15, 2016 In the scene settings, I believe the fourth value under Water Color is the transparency. Quote Link to comment Share on other sites More sharing options...
Josh Posted November 15, 2016 Share Posted November 15, 2016 Actually, it looks like if you open up "Shaders\Water\water.shader" and fine this section of code: #define SHALLOWRANGE 0.1 if (z>SHALLOWRANGE) { float depthmix = min(1.0,(z-SHALLOWRANGE)/(10.0-SHALLOWRANGE)); depthmix=sqrt(depthmix); refraction = refraction * (1.0-depthmix) + (depthmix) * vColor; } You can adjust the SHALLOWRANGE constant and the number 10 to adjust the opacity. 10 meters is the distance at which the water is completely opaque, as the shader is written now. 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 November 15, 2016 Share Posted November 15, 2016 Just realized anything 10 meters below the surface of the water can be safely culled when the camera is above the water! 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...
macklebee Posted November 15, 2016 Share Posted November 15, 2016 hmmm... did the water shader change? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel 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.