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
Dynamic shadows from the lantern MOD
Bucic Offline
Member

Posts: 145
Threads: 27
Joined: Feb 2013
Reputation: 3
#1
Information  Dynamic shadows from the lantern MOD

Is it possible to get dynamic shadows on scenes where the main source of light for the shadows would be the lantern? It would be really appealing for some blokes with high-end computers.

Edit:
Related
Penumbra to Amnesia shadow rendering regression
http://www.frictionalgames.com/forum/thread-21737.html

Grphc mods
[Image: moddb_88x31_v12.png]
(This post was last modified: 06-06-2013, 09:06 AM by Bucic.)
05-25-2013, 05:36 PM
Find
Googolplex Offline
Banned

Posts: 2,340
Threads: 246
Joined: Oct 2008
#2
RE: Dynamic shadows from the lantern - possible?

(05-25-2013, 05:36 PM)Bucic Wrote: Is it possible to get dynamic shadows on scenes where the main source of light for the shadows would be the lantern? It would be really appealing for some blokes with high-end computers.

Possible yes, but not in HPL2. I think that would be an atmosphere improvement and a good idea for HPL3 future games.
05-25-2013, 05:42 PM
Find
Bucic Offline
Member

Posts: 145
Threads: 27
Joined: Feb 2013
Reputation: 3
#3
RE: Dynamic shadows from the lantern - possible?

(05-25-2013, 05:42 PM)Googolplex Wrote: Possible yes, but not in HPL2. I think that would be an atmosphere improvement and a good idea for HPL3 future games.
I meant HPL2, so the answer is "NO". I got all excited when I saw

<Player_Lantern
.
.
.
CastShadows = "false"
.
.
.
/>

in the game cfg.

Grphc mods
[Image: moddb_88x31_v12.png]
(This post was last modified: 05-25-2013, 06:09 PM by Bucic.)
05-25-2013, 06:09 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#4
RE: Dynamic shadows from the lantern - possible?

(05-25-2013, 06:09 PM)Bucic Wrote:
(05-25-2013, 05:42 PM)Googolplex Wrote: Possible yes, but not in HPL2. I think that would be an atmosphere improvement and a good idea for HPL3 future games.
I meant HPL2, so the answer is "NO". I got all excited when I saw

<Player_Lantern
.
.
.
CastShadows = "false"
.
.
.
/>

in the game cfg.

It is possible, you could change the point light attached to the lantern to a spotlight that casts shadows Smile You should create a new version of the lantern though - not overwrite the original! Big Grin
05-25-2013, 06:35 PM
Find
Bucic Offline
Member

Posts: 145
Threads: 27
Joined: Feb 2013
Reputation: 3
#5
RE: Dynamic shadows from the lantern - possible?

(05-25-2013, 06:35 PM)sonataarctica Wrote: It is possible, you could change the point light attached to the lantern to a spotlight that casts shadows Smile You should create a new version of the lantern though - not overwrite the original! Big Grin
Wait, wouldn't the original devs do that if it really was possible?

To be clear - I won't try to mod the lantern. I don't feel like getting into the editor and such.

Grphc mods
[Image: moddb_88x31_v12.png]
05-25-2013, 08:35 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#6
RE: Dynamic shadows from the lantern - possible?

(05-25-2013, 08:35 PM)Bucic Wrote:
(05-25-2013, 06:35 PM)sonataarctica Wrote: It is possible, you could change the point light attached to the lantern to a spotlight that casts shadows Smile You should create a new version of the lantern though - not overwrite the original! Big Grin
Wait, wouldn't the original devs do that if it really was possible?

To be clear - I won't try to mod the lantern. I don't feel like getting into the editor and such.

I guess it's because spotlights are directional, you can't make one that's 360 degrees that casts shadows, so really you'd only be able to make it cast shadows infront of you which would look a little strange as a lantern would have a radius light, not a spotlight, possibly why they chose not to. This is why the flashlight mod has shadows, it uses a spotlight instead of a pointlight Big Grin
(This post was last modified: 05-25-2013, 08:53 PM by ExpectedIdentifier.)
05-25-2013, 08:52 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#7
RE: Dynamic shadows from the lantern - possible?

also dont forget that dynamic shadows hurt performance.
05-25-2013, 10:07 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#8
RE: Dynamic shadows from the lantern - possible?

Use a spotlight with shadow casting enabled. No point in having a point light that casts shadows on the lantern -- you can only see the direction you're facing. Shadows anywhere but in front of you won't be visible anyways.

And they probably didn't have shadows cast from the lantern because it would have to be set up differently for folks with different screen resolutions.

05-25-2013, 10:32 PM
Find
Bucic Offline
Member

Posts: 145
Threads: 27
Joined: Feb 2013
Reputation: 3
#9
RE: Dynamic shadows from the lantern - possible?

In any case, too bad the feature is not there. Such lighting puts everything alive, getting into whole new level of playing tricks with your mind!

As for performance. The FEAR game flies on old GF9600 with this option enabled, so let's not go there, please.

Grphc mods
[Image: moddb_88x31_v12.png]
05-26-2013, 12:11 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#10
RE: Dynamic shadows from the lantern - possible?

(05-26-2013, 12:11 PM)Bucic Wrote: In any case, too bad the feature is not there. Such lighting puts everything alive, getting into whole new level of playing tricks with your mind!

As for performance. The FEAR game flies on old GF9600 with this option enabled, so let's not go there, please.

Seeing as you obviously have not touched the editor yet you shouldn't speak, this is HPL2, a different engine from FEAR, not build to work with dynamic shadows properly, it also runs OPENGL instead of DirectX, unlike FEAR.

Dynamic shadows in the HPL engine are super heavy to render, however as stated several times before, it is possible to make the lantern dynamic and it's really easy to do so.
05-26-2013, 04:18 PM
Find




Users browsing this thread: 1 Guest(s)