This got my attention
Here is the days work.
http://grimrock.nexusmods.com/mods/119
What we have done is to create a model that is a semi transperant plate just above the floor with a water texture.
Then we define that model inside a lightsource.
Code: Select all
defineObject{
name = "sx_flooded",
class = "LightSource",
lightPosition = vec(0, 0.4, 0),
lightRange = 0,
lightColor = vec(1, 1, 1),
brightness = 1,
castShadow = false,
model = "mod_assets/models/sx_flooded.fbx",
placement = "floor",
particleSystem = "waterflow",
particleSystemNode = "MainObject",
replacesFloor = false,
editorIcon = 136,
}
Then we create particle effects (I did 2 effects), one that gives the illusion of flowing water, and another that gives the illusion of sparkling static water.
We use the glitter_silver texture for the effect.
Code: Select all
defineParticleSystem{
name = "waterflow",
emitters = {
{
emissionRate = 1000,
emissionTime = 0,
spawnBurst = false,
maxParticles =1000,
boxMin = {-1.3,-1,-1.3},
boxMax = {1.3,0,1.3},
objectSpace = true,
sprayAngle = {0,1},
velocity = {0,0},
texture = "assets/textures/particles/glitter_silver.tga",
lifetime = {100000, 100000},
colorAnimation = false,
color0 = {1, 1, 1},
opacity = 0.7,
fadeIn = 0.4,
fadeOut = 2.5,
size = {0.05, 0.1},
gravity = {10,0,0},
airResistance = 1,
rotationSpeed = 8,
blendMode = "Additive",
}
}
}
defineParticleSystem{
name = "waterstatic",
emitters = {
{
emissionRate = 1000,
emissionTime = 0,
spawnBurst = false,
maxParticles =300,
boxMin = {-1.3,-1,-1.3},
boxMax = {1.3,0,1.3},
objectSpace = true,
sprayAngle = {0,1},
velocity = {0,0},
texture = "assets/textures/particles/glitter_silver.tga",
lifetime = {100000, 100000},
colorAnimation = false,
color0 = {1, 1, 1},
opacity = 0.7,
fadeIn = 0.4,
fadeOut = 2.5,
size = {0.05, 0.1},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 8,
blendMode = "Additive",
}
}
}
The end result is looks like this.
Grap the source from nexus and check it out, seeing is believing
I got water sound effects and waterfall also with fog emitters, screenshots just don't cut it.
Skuggasveinn.