Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving light sources, possible?
Kraggdog Offline
Member

Posts: 69
Threads: 12
Joined: Apr 2011
Reputation: 0
#1
Question  Moving light sources, possible?

Been awhile, but back on the forum to ask a question about the game engine.

I'm fairly sure that it wasn't possible to animate a moving light source in HPL2.

What I mean by this, is to have, say, a glowing ball that could be animated to move around the level as a light source.

If i'm wrong, then please point me to a thread on how to do this in HPL2, if not, will this lighting method be possible in HPL3? (if machine for pigs was developed in HPL3, I haven't kept up with the news).

06-18-2012, 11:51 AM
Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: Moving light sources, possible?

You could animate it. You'd just need to attach a light souce (Pointlight or Spotlight) to a bone in the animated object's skeleton.

It is also equally possible to have it as a move object as opposed to actually animating it, though it's motions wouldn't be as accurate as you could make it with animations.

06-18-2012, 12:04 PM
Find
Kraggdog Offline
Member

Posts: 69
Threads: 12
Joined: Apr 2011
Reputation: 0
#3
RE: Moving light sources, possible?

(06-18-2012, 12:04 PM)Obliviator27 Wrote: You could animate it. You'd just need to attach a light souce (Pointlight or Spotlight) to a bone in the animated object's skeleton.

It is also equally possible to have it as a move object as opposed to actually animating it, though it's motions wouldn't be as accurate as you could make it with animations.
And the lighting / shadows in the scene will be dynamic to reflect this movement? It's not entirely all baked in? I suppose in the same way the lantern works.

Thanks for the tip, will have to try this out

(This post was last modified: 06-18-2012, 12:18 PM by Kraggdog.)
06-18-2012, 12:14 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#4
RE: Moving light sources, possible?

I have tried this using a spotlight and it works. Shadows are only cast by spotlights, no baking (where did you get that from?).

[Image: mZiYnxe.png]


06-18-2012, 12:23 PM
Find
Kraggdog Offline
Member

Posts: 69
Threads: 12
Joined: Apr 2011
Reputation: 0
#5
RE: Moving light sources, possible?

(06-18-2012, 12:23 PM)Acies Wrote: I have tried this using a spotlight and it works. Shadows are only cast by spotlights, no baking (where did you get that from?).
Just old editors, it's been awhile since I used HPL2

06-18-2012, 12:28 PM
Find




Users browsing this thread: 1 Guest(s)