If anybody has messed around with Asteroths Corrupt tileset, you may have noticed that the torchlight makes it vibrant and lively, while ceiling lamps dull the environment (suck the life right out of the walls).
So, if I'm gonna go for a moody/horror thing I want to control the lighting instead of allowing the player to light the entire place carrying a torch (even kill the light spell). So can I just clone ceiling lamps and change some definitions to get the natural light out of them, or is it more complicated than that? Can't get the particle system definition to be found or recognized after cloning a new object(lamp) and new particle system (just changed the color defs in the prison_ceiling_lamp particles def/changed the name) and put the location into the new lamp object clone. Got the object, but a "no such particle system" warning.
Natural light (Red/yellow) ceiling lamps/kill light spell
Natural light (Red/yellow) ceiling lamps/kill light spell
Last edited by msyblade on Mon Oct 29, 2012 7:56 pm, edited 1 time in total.
Currently conspiring with many modders on the "Legends of the Northern Realms"project.
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Re: Natural light (Red) ceiling lamps instead of magical(blu
I am actually doing this currently with my dungeon. I am not at home at the moment so forgive any inaccuracies or lack of depth.
If you look at the asset pack you will find the temple ceiling lamp and its corresponding particle. The lamp itself has a place to make RGB adjustments on a scale of 0 to 1 per Red, Blue, and Green. You'll see it right away. Also able to adjust brightness and range. I also killed the orb particle within the lamp by placing a -- in front of the particle system. If you would like to keep the particle intact but adjust its color then do the same for it.
An example of what I do with mine, I maximize all of RGB to look like daylight and then adjust the height so I can place it high in a shaft. I only do this on the first floor of course.
Also just a suggestion if you are wanting to control torch use, how about only adding torches with low fuel.
You mentioned killing the light spell, how do I accomplish this?
If you look at the asset pack you will find the temple ceiling lamp and its corresponding particle. The lamp itself has a place to make RGB adjustments on a scale of 0 to 1 per Red, Blue, and Green. You'll see it right away. Also able to adjust brightness and range. I also killed the orb particle within the lamp by placing a -- in front of the particle system. If you would like to keep the particle intact but adjust its color then do the same for it.
An example of what I do with mine, I maximize all of RGB to look like daylight and then adjust the height so I can place it high in a shaft. I only do this on the first floor of course.
Also just a suggestion if you are wanting to control torch use, how about only adding torches with low fuel.
You mentioned killing the light spell, how do I accomplish this?
- Skuggasveinn
- Posts: 562
- Joined: Wed Sep 26, 2012 5:28 pm
Re: Natural light (Red) ceiling lamps instead of magical(blu
First you define the lamp object
you can see that I use also a new particleSystem called "temple_ceiling_lamp_red" so we can't forget to define that also
Hope that helps
Skuggasveinn.
Code: Select all
cloneObject{
name = "temple_ceiling_lamp_red",
baseObject = "temple_ceiling_lamp",
particleSystem = "temple_ceiling_lamp_red",
lightColor = vec(1,0,0), -- sets light to red. edit the numbers to any r,g,b values between 0 and 1 to change the color
}
Code: Select all
defineParticleSystem{
name = "temple_ceiling_lamp_red",
emitters = {
-- glow
{
spawnBurst = true,
emissionRate = 1,
emissionTime = 0,
maxParticles = 1,
boxMin = {0,0,-0.1},
boxMax = {0,0,-0.1},
sprayAngle = {0,30},
velocity = {0,0},
texture = "assets/textures/particles/glow.tga",
lifetime = {1000000, 1000000},
color0 = {0.90, 0.1, 0.1},
opacity = 1,
fadeIn = 0.1,
fadeOut = 0.1,
size = {3, 3},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 0,
blendMode = "Additive",
}
}
}
Skuggasveinn.
Re: Natural light (Red) ceiling lamps instead of magical(blu
That is awesome, I got it completely figured out. cloned it, called it corrupt_ceiling_lamp, and changed the colors in it. In the process instead of killing the particle system I renamed it to "fireball" to check it out.Now I've got floating flameballs in the ceiling giving off natural light, looks pretty cool.
To kill the light spell, clone it, rename it (I called mine "Neutral Light") and replace the oncast string to Darkness. When cast, it says "Neutral Light" and Darkness doesnt affect the lighting you've set up for the player, so it's a push. (To put it simpler, just use the same runes as light, but redifine what those runes do. You could always just make runes 2 and 5 create a snail slice instead, and light would be disabled.
To kill the light spell, clone it, rename it (I called mine "Neutral Light") and replace the oncast string to Darkness. When cast, it says "Neutral Light" and Darkness doesnt affect the lighting you've set up for the player, so it's a push. (To put it simpler, just use the same runes as light, but redifine what those runes do. You could always just make runes 2 and 5 create a snail slice instead, and light would be disabled.
SpoilerShow
defineObject{
name = "corrupt_ceiling_lamp",
class = "LightSource",
lightPosition = vec(0, 3, 0),
lightRange = 10,
lightColor = vec(1.0, 0.5, 0.25),
brightness = 18,
castShadow = true,
particleSystem = "fireball",
placement = "floor",
editorIcon = 88,
}
name = "corrupt_ceiling_lamp",
class = "LightSource",
lightPosition = vec(0, 3, 0),
lightRange = 10,
lightColor = vec(1.0, 0.5, 0.25),
brightness = 18,
castShadow = true,
particleSystem = "fireball",
placement = "floor",
editorIcon = 88,
}
SpoilerShow
-- Nuetral light
defineSpell{
name = "nuetral_light",
uiName = "Nuetral Light",
skill = "spellcraft",
level = 1,
runes = "BE",
manaCost = 25,
onCast = "darkness",
}
defineSpell{
name = "nuetral_light",
uiName = "Nuetral Light",
skill = "spellcraft",
level = 1,
runes = "BE",
manaCost = 25,
onCast = "darkness",
}
Currently conspiring with many modders on the "Legends of the Northern Realms"project.
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Re: Natural light (Red) ceiling lamps instead of magical(blu
Is it more of a dim orange light like a torch?
I'm using Batty's wall & ceiling lanterns but they give off more of a white light and changes the shadow effects in the dungeon that don't have the same effect.
I'm using Batty's wall & ceiling lanterns but they give off more of a white light and changes the shadow effects in the dungeon that don't have the same effect.
The FORCE is with me!!!
Re: Natural light (Red) ceiling lamps instead of magical(blu
I've got the three variables in the color code of my ceiling lamp clone set to 1.0, 0.5, and 0.25 respectively. I should note that after looking at torchlight effect scripts, I believe a torch actually gives of three colors of light simultaneously. I believe I'm actually just getting the fireballs light, which is fine because it is that perfectly natural blend. So the corrupt_ceiling_lamp script above inserted into your objects.lua
script will give you a natural light without the player getting torches. Coming from the ceiling changes EVERYTHING shadow wise. look for those chandelier thingies around randomly and a light above it (no shaft!) casts its shadow all around the walls/room.Cooool effect.
script will give you a natural light without the player getting torches. Coming from the ceiling changes EVERYTHING shadow wise. look for those chandelier thingies around randomly and a light above it (no shaft!) casts its shadow all around the walls/room.Cooool effect.
Currently conspiring with many modders on the "Legends of the Northern Realms"project.
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Re: Natural light (Red) ceiling lamps instead of magical(blu
Hey thanks, sorry I couldn't actually throw some scripts at you at the time but looks like Skugg was all over it.msyblade wrote:That is awesome, I got it completely figured out. cloned it, called it corrupt_ceiling_lamp, and changed the colors in it. In the process instead of killing the particle system I renamed it to "fireball" to check it out.Now I've got floating flameballs in the ceiling giving off natural light, looks pretty cool.
To kill the light spell, clone it, rename it (I called mine "Neutral Light") and replace the oncast string to Darkness. When cast, it says "Neutral Light" and Darkness doesnt affect the lighting you've set up for the player, so it's a push. (To put it simpler, just use the same runes as light, but redifine what those runes do. You could always just make runes 2 and 5 create a snail slice instead, and light would be disabled.SpoilerShowdefineObject{
name = "corrupt_ceiling_lamp",
class = "LightSource",
lightPosition = vec(0, 3, 0),
lightRange = 10,
lightColor = vec(1.0, 0.5, 0.25),
brightness = 18,
castShadow = true,
particleSystem = "fireball",
placement = "floor",
editorIcon = 88,
}SpoilerShow-- Nuetral light
defineSpell{
name = "nuetral_light",
uiName = "Nuetral Light",
skill = "spellcraft",
level = 1,
runes = "BE",
manaCost = 25,
onCast = "darkness",
}