So, when making dungeons, you sometimes want to add some custom particle/lighting effects, right? Stuff like earthquake dust, custom teleporter effects, fog, candle smoke...and so on. I figured it could be a good idea to share these custom effects somewhere (like here), since the trial-and-error approach to particle making means there's usually a lot of effort put into them.
To start off, here's the fog particle effect I stole from Rotten Place (...speaking of effort...) and then edited to be the thick thing it is right now:
materials.lua
Code: Select all
defineParticleSystem{
name = "fog",
emitters = {
-- fog
{
emissionRate = 1.5,
emissionTime = 0,
maxParticles = 200,
boxMin = {-2, 0.1, -2},
boxMax = { 2, 0.1, 2},
sprayAngle = {0,30},
velocity = {0,0},
texture = "assets/textures/particles/smoke_01.tga",
lifetime = {10,20},
color0 = {0.5, 0.5, 0.5},
opacity = 0.8,
fadeIn = 9,
fadeOut = 9,
size = {4, 8},
gravity = {0,0,0},
airResistance = 0.1,
rotationSpeed = 0.05,
blendMode = "Translucent",
objectSpace = false,
}
}
}
objects.lua
Code: Select all
defineObject{
name = "fog_emitter",
class = "LightSource",
lightPosition = vec(1.2, 0.2, 0),
lightRange = 6,
lightColor = vec(1, 1, 1),
brightness = 0,
castShadow = true,
particleSystem = "fog",
placement = "floor",
editorIcon = 88,
}
-Wolfrug