ocean beach surface underwater tile - SOLVED

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: ocean beach surface underwater tile - SOLVED

Post 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,
}
Breath from the unpromising waters.
Eye of the Atlantis
Granamir
Posts: 202
Joined: Wed Jan 07, 2015 7:19 pm

Re: ocean beach surface underwater tile - SOLVED

Post 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...
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: ocean beach surface underwater tile - SOLVED

Post by Eleven Warrior »

Thank you Drakan. This is just what I needed :)
Post Reply