As we can do FRAME { Light XXXXX }, why not TEXTURE { Light XXXXX }?
It's possible?
Dynamic Light on Textures/Walls!
Moderator: Graf Zahl
-
- Posts: 179
- Joined: Wed Jan 04, 2006 2:52
- Location: Rio de Janeiro - BRAZIL
Dynamic Light on Textures/Walls!
So as you read this know my friends I'd love to stay with you all.
Please smile when you think of me. My body's gone that's all...
Please smile when you think of me. My body's gone that's all...
-
- Stronghold Team
- Posts: 319
- Joined: Thu Apr 12, 2007 21:35
- Location: Germany
Just to keep my answer simple.
[Edit]
A thread with the same request =D
Spoiler: Don't open if you know the answer.Have fun. If I sometimes weren't trippy because of too much Ghoul2.wad, I think I was reading something like "no, forget it" or something, I may not be right X_X
[Edit]
A thread with the same request =D
-
- Posts: 179
- Joined: Wed Jan 04, 2006 2:52
- Location: Rio de Janeiro - BRAZIL
-
- Stronghold Team
- Posts: 319
- Joined: Thu Apr 12, 2007 21:35
- Location: Germany
See, if you create a light, you have to set the correct offset for every single texture, because you set the offset in the light, and I think Graf doesn't want to deal with something like this now:
Pointlight BLABLABLA
{
...
}
Texture F_Blablablahh...
{
Texture { Light BLABLABLA; Set offset meh meow woof }
}
It wouldn't be really cool to have every SINGLE light for every SINGLE texture with a light (you have to do the offset like 8 or 9 times for. It is NOT impossible, but I just think Graf won't have the time for this. Maybe he will start in the future, but don't expect it right now.
Pointlight BLABLABLA
{
...
}
Texture F_Blablablahh...
{
Texture { Light BLABLABLA; Set offset meh meow woof }
}
It wouldn't be really cool to have every SINGLE light for every SINGLE texture with a light (you have to do the offset like 8 or 9 times for. It is NOT impossible, but I just think Graf won't have the time for this. Maybe he will start in the future, but don't expect it right now.
-
- Posts: 179
- Joined: Wed Jan 04, 2006 2:52
- Location: Rio de Janeiro - BRAZIL
-
- Developer
- Posts: 4753
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
Doomsday (or Risen3D - or maybe both) has a cool feature where specific points on certain textures glow. Even some of the tekwall textures with little red or green points of light have glowing bits associated with them. Quite how this is done I don't know but my guess is that something that maps the particular pixel to have the light attached to is used.
Even an XY coordinate to attach a dynamic light to would be quite usable IMO.
eg
light definition {blah}
Object Texture TEKGREN5 32,120
That way, a light of definition "blah" could be placed in front of every instance of TEKGREN5 32 units across and 120 units up based on the 64x128 size of the texture. How possible such a thing would be, I don't know: probably totally. Basic common sense tells me that trying to cope with every use and abuse mappers put textures through would make it extremely difficult but if something like that were possible, I'd certainly have fun using it.
Even an XY coordinate to attach a dynamic light to would be quite usable IMO.
eg
light definition {blah}
Object Texture TEKGREN5 32,120
That way, a light of definition "blah" could be placed in front of every instance of TEKGREN5 32 units across and 120 units up based on the 64x128 size of the texture. How possible such a thing would be, I don't know: probably totally. Basic common sense tells me that trying to cope with every use and abuse mappers put textures through would make it extremely difficult but if something like that were possible, I'd certainly have fun using it.

-
- Posts: 179
- Joined: Wed Jan 04, 2006 2:52
- Location: Rio de Janeiro - BRAZIL
Nice! ^^
Check this out:

What i did was create an ACTOR and then define his Light in GLDEFS, BUT, that "Power Cell" must come down to start an infinite loop. When its happen the thing down with the light but much more slowly.
The right thing to do is define the light on the texture of the Power Cell!
Well, i'm not a expert in C++ and stuff but i think as the Dynamic Light feature already is done, may be possible to define hen to textures.
Check this out:

What i did was create an ACTOR and then define his Light in GLDEFS, BUT, that "Power Cell" must come down to start an infinite loop. When its happen the thing down with the light but much more slowly.
The right thing to do is define the light on the texture of the Power Cell!
Well, i'm not a expert in C++ and stuff but i think as the Dynamic Light feature already is done, may be possible to define hen to textures.
So as you read this know my friends I'd love to stay with you all.
Please smile when you think of me. My body's gone that's all...
Please smile when you think of me. My body's gone that's all...
-
- Posts: 61
- Joined: Mon Jan 22, 2007 17:24
- Location: Brasil