Swinging light Rope

Avatar
sssummer
69 Posts
Posted Mar 14, 2008
I have made a swinging light and everything works fine except the rope doesn't show up.. How do I fix this?
Advertisement
Registered users don't see ads! Register now!
Avatar
Megadude
154 Posts
Posted Mar 14, 2008
Replied 11 minutes later
Is there a red/green line between your move_rope and keyframe_rope in hammer? If not, it means your move_rope isn't pointing to the right place.
Avatar
sssummer
69 Posts
Posted Mar 14, 2008
Replied 1 hour later
How do I point it to something?
Avatar
Aldéz
221 Posts
Posted Mar 15, 2008
Replied 8 hours later
Place a keyframe_rope entity by the lamp. Set the keyvalue "Next KeyFrame" in the move_rope to the keyframe_rope.
Avatar
Ricotez
738 Posts
Posted Mar 15, 2008
Replied 4 hours later
A swinging light? A DYNAMIC swinging light?

...

God, hope your framerates are still playable.

Avatar
NykO18
183 Posts
Posted Mar 15, 2008
Replied 1 hour later

Ricotez wrote:
A swinging light? A DYNAMIC swinging light?
...
God, hope your framerates are still playable.

One dynamic light in a level is still playable, unless its lighting an uterly complicated structure and you're playing with a GeForce 4, there's nothing to worry about.

Avatar
sssummer
69 Posts
Posted Mar 15, 2008
Replied 1 hour later
It's not a dynamic light, it's a point_spotlight parented to the lamp.
Avatar
Ricotez
738 Posts
Posted Mar 15, 2008
Replied 3 minutes later
But it swings, so the light changes position, so the lightmap can't be precalculated in hammer and must be calculated while playing. That makes it dynamical. You don't need a light_dynamic just for it to be dynamic. Once you named a light, it is dynamic. Once a light changes position, or it fades in and out, or it flickers, or whatever that doesn't make it static, it's a dynamic light and it will be calculated in-game, resulting in lower framerates as the source engine isn't the best engine for dynamic lightning. If you have a light that remains on one position but changes its luminosity, while compiling only the brightest and the darkest lightmaps will be created, all the others will be in-game.

Okay, I have to admit, a few dynamic lights in a map don't really have an impact on playability, but much further than a few you shouldn't go.

Avatar
Fusion
77 Posts
Posted Mar 15, 2008
Replied 6 hours later

sssummer wrote:
It's not a dynamic light, it's a point_spotlight parented to the lamp.

According to the Valve Developer Wiki, a point_spotlight IS a light_dynamic with some added sprite effects.

Avatar
Megadude
154 Posts
Posted Mar 15, 2008
Replied 7 minutes later

Fusion wrote:
According to the Valve Developer Wiki, a point_spotlight IS a light_dynamic with some added sprite effects.

Also from the wiki:

Quote:
If the 'No Dynamic Light' spawn flag is checked this entity will just provide a sprite effects, and will not illuminate other objects.

So it is not always a dynamic light.

Avatar
Fusion
77 Posts
Posted Mar 15, 2008
Replied 14 minutes later
It depends if sssumer wants the swinging light to actually cast light or not as far as a performance drop goes.
Avatar
sssummer
69 Posts
Posted Mar 15, 2008
Replied 34 minutes later
Well I want to know if it's possible to have the point_spotlight to actually give off light, not just bring effects.. making it much more realistic. Is this possible?
Avatar
Fusion
77 Posts
Posted Mar 15, 2008
Replied 5 minutes later

sssummer wrote:
Well I want to know if it's possible to have the point_spotlight to actually give off light, not just bring effects.. making it much more realistic. Is this possible?

Short answer: Yes.

Just make sure you have the "No Dynamic Light" flag unchecked.

Advertisement
Registered users don't see ads! Register now!
Avatar
sssummer
69 Posts
Posted Mar 16, 2008
Replied 2 hours later
Thanks, works great!