Page 2 of 2

Re: ocean beach surface underwater tile - SOLVED

Posted: Sat Jan 24, 2015 5:08 pm
by Drakkan
Granamir wrote:I'm not an expert like you...i understood almost nothing about your solution...is there something like copy-paste solution?
Or can you explain what i have to do considering i'm not an expert?
Thank you very much
I am not expert myself, dont worry. Unfortunately I didnt have time try minmay solution yet... as for my which is little buggy, you need just to create and use this objects for underwater. If you do not know how to create water tiles etc, check Skugg videos which are here
viewtopic.php?f=22&t=7055


defineObject{
name = "water_no_surface",
baseObject = "base_floor_decoration",
components = {
{
-- updates global reflection and refraction maps
class = "WaterSurface",
planeY = -0.4,
fogColor = vec(0.042, 0.09, 0.26) * 0.5,
fogDensity = 0.2,
--planeY = -0.4,
reflectionColor = vec(0.77, 0.9, 1.0) * 0.9,
refractionColor = vec(1,1,1),
},
{
-- builds a continuous mesh from underwater tiles
class = "WaterSurfaceMesh",
offset = vec(0,-7,0,0),
material = "water_surface_calm",
underwaterMaterial = "water_surface_underwater",
offset = vec(0, -1.25, 0),
},
},
dontAdjustHeight = true,
editorIcon = 264,
}

Re: ocean beach surface underwater tile - SOLVED

Posted: Sat Jan 24, 2015 7:14 pm
by Granamir
Thank you very much
i'll try your solution too

...

hem, maybe i'm more unable than i tought, but this doesn't work
i created that object, used in my map (with and without normal ocean surface) but nothing changes underwater
i guess i missed something...

Re: ocean beach surface underwater tile - SOLVED

Posted: Wed Jan 27, 2016 7:11 am
by Eleven Warrior
Thank you Drakan. This is just what I needed :)