reddozen Posted January 25, 2017 Share Posted January 25, 2017 No matter what I do, I cannot get water material to work with existing meshes. I'm assuming that it doesn't work, and will only work with built in "ground" meshes. If so, this is a problem. My scene below is a good example. Odd shaped pool where a plane wouldn't work. Any help would be appreciated. I'm at a loss. http://red12.studio/Demos/Web/index_water_test.html Quote Link to comment Share on other sites More sharing options...
jpdev Posted January 26, 2017 Share Posted January 26, 2017 Your demo link only shows a skybox for me, nothing else. Here is the water material applied to sphere and a plane: http://www.babylonjs-playground.com/#1SLLOJ#231 So it's not "ground" only. Here it is applied to a completly custom loaded mesh: http://babylonjs-playground.com/#JNOJX#5 iiceman 1 Quote Link to comment Share on other sites More sharing options...
reddozen Posted January 26, 2017 Author Share Posted January 26, 2017 I have attached a picture, and you can use the mouse to drag and look around. Could take a minute to load Could the problem be that my mesh has a texture applied to it already? can that be resolved without reprocessing the mesh in 3DS? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 26, 2017 Share Posted January 26, 2017 Water material is supposed to be attached to a flat surface NasimiAsl 1 Quote Link to comment Share on other sites More sharing options...
reddozen Posted January 26, 2017 Author Share Posted January 26, 2017 The mesh is flat, but you could have flowing water like a water fall that isn't flat that would may want refraction / reflection on. So I'm assuming that I will need to make a custom shader, or did I do something wrong with how I'm using water material? Quote Link to comment Share on other sites More sharing options...
iiceman Posted January 26, 2017 Share Posted January 26, 2017 unrelated but still cool - stargate: http://www.babylonjs-playground.com/#1SLLOJ#232 Edit: still unrelated: it feels like I am pretty close making the iris work..but to tired to keep trying: http://www.babylonjs-playground.com/#1SLLOJ#234 anybody care to help? Edit2: I was kinda done with the iris and it was pretty cool... then the playground crashed...all progress gone...sucks Back to topic: can't you just add the water features like @jpdev demonstrated after importing the mesh? I mean leave them out in the 3D model and be creative with code to at them in the right shapes, place and rotation... you get waterfall all over the place: http://www.babylonjs-playground.com/#UHILW ... add some particles to the end of the waterfall, too, to make the water splash! jerome, GameMonetize and NasimiAsl 3 Quote Link to comment Share on other sites More sharing options...
reddozen Posted January 28, 2017 Author Share Posted January 28, 2017 I hacked something together... Now my next question... is there a way to tone down the reflection to make the refraction come through more? Basically make the water more clear, while still seeing the reflections. Quote Link to comment Share on other sites More sharing options...
iiceman Posted January 28, 2017 Share Posted January 28, 2017 Did you already try setting the alpha of the material? I think that would have the effect you describe. Quote Link to comment Share on other sites More sharing options...
reddozen Posted January 30, 2017 Author Share Posted January 30, 2017 Setting the alpha level or the specularpower doesn't seem to do anything about lowering the intensity of the skybox reflection. My guess is that it's something to do with the water material. Quote 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.