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
#11
RE: Dynamic shadows from the lantern - possible?

(05-26-2013, 04:18 PM)Traggey Wrote: 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.
I couldn't forseen this will be a problem in a game engine half a decade newer. Also if anyone have had put the info on dynamic shadows being a problem in HPL2 I would certainly acknowledge it. Any info regarding dynamic shadows in HPL 2.5+ or HPL 3?

Grphc mods
[Image: moddb_88x31_v12.png]
(This post was last modified: 05-26-2013, 05:48 PM by Bucic.)
05-26-2013, 05:46 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#12
RE: Dynamic shadows from the lantern - possible?

In any engine it could effect performance, especially if the scene needs to be rendered multiple times just for the lights and shadows for one frame. Then there's the quality of the shadows which can hurt performance as well. HPL3 might have dynamic shadows for point lights, but i'm not sure on that. In any case, if you want dynamic shadows for the lantern, you'll need to manually edit a few files.

Tutorials: From Noob to Pro
05-26-2013, 08:58 PM
Website Find
Bucic Offline
Member

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

(05-26-2013, 08:58 PM)Your Computer Wrote: In any engine it could effect performance, especially if the scene needs to be rendered multiple times just for the lights and shadows for one frame. Then there's the quality of the shadows which can hurt performance as well. HPL3 might have dynamic shadows for point lights, but i'm not sure on that. In any case, if you want dynamic shadows for the lantern, you'll need to manually edit a few files.
Noted.

Few files you say? Not just the lantern model? Could you tell us some more?

Grphc mods
[Image: moddb_88x31_v12.png]
(This post was last modified: 05-26-2013, 09:11 PM by Bucic.)
05-26-2013, 09:11 PM
Find
Traggey Offline
is mildly amused

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

(05-26-2013, 09:11 PM)Bucic Wrote:
(05-26-2013, 08:58 PM)Your Computer Wrote: In any engine it could effect performance, especially if the scene needs to be rendered multiple times just for the lights and shadows for one frame. Then there's the quality of the shadows which can hurt performance as well. HPL3 might have dynamic shadows for point lights, but i'm not sure on that. In any case, if you want dynamic shadows for the lantern, you'll need to manually edit a few files.
Noted.

Few files you say? Not just the lantern model? Could you tell us some more?

All you need is to get the modeleditor.exe, open the lantern up and replace the pointlight with a spotlight, then enable shadow casting for the light..
05-27-2013, 07:50 AM
Find
Bucic Offline
Member

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

Thanks Traggey!

I spoke to a friend of mine who played all of the Penumbra games. He says Penumbra has dynamic shadows. YouTube seems to confirm this. What has happened that it has been disabled for Amnesia?[/align]

Grphc mods
[Image: moddb_88x31_v12.png]
05-27-2013, 09:41 AM
Find
Traggey Offline
is mildly amused

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

Amnesia uses a pointlight instead of a spotlight, because it's a lantern and not a torch this time, rendering pointlight dynamic shadows is hard.
05-27-2013, 10:42 AM
Find
Bucic Offline
Member

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

(05-27-2013, 10:42 AM)Traggey Wrote: Amnesia uses a pointlight instead of a spotlight, because it's a lantern and not a torch this time, rendering pointlight dynamic shadows is hard.
But why? Pardon my ignorance but I see no basis for using different light sources for lantern in Amnesia vs glowstick in Penumbra. I'm genuinely curious.

Grphc mods
[Image: moddb_88x31_v12.png]
(This post was last modified: 05-27-2013, 02:08 PM by Bucic.)
05-27-2013, 02:05 PM
Find
Brennenburg Offline
Member

Posts: 206
Threads: 9
Joined: Feb 2011
Reputation: 0
#18
RE: Dynamic shadows from the lantern - possible?

(05-25-2013, 10:07 PM)martinnord Wrote: also dont forget that dynamic shadows hurt performance.

Only if your PC is archaic. Smile

[Image: TRcp2.png]
05-27-2013, 02:21 PM
Find
Bucic Offline
Member

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

And so it works! I'll post some shots in no time!

Grphc mods
[Image: moddb_88x31_v12.png]
(This post was last modified: 05-27-2013, 07:45 PM by Bucic.)
05-27-2013, 06:34 PM
Find
Bucic Offline
Member

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

Here are the screenshots.
http://sdrv.ms/ZaqZcz

The first few have been taken at spotlight FOV 60, dist 3, while the rest is FOV 220, dist 16, if I remember correctly.

Culprits:
- the shadows are jagged even at highest shadow resolution; the bigger the distance between the object that casts shadow and the wall, the more jagged shadows; on the other hand it's far less visible when you're moving as in normal gameplay
- estimated FPS hit on AMD crap Mobility Radeon HD3650: from 30 FPS down to 15-20 FPS
- at high spotlight FOVs there's a permanent shadow following the player Dodgy , visible at the edge of the player's field of view (FOV). It's not visible at spot light FOV = 90 but such FOV is too narrow for lantern, making it look like a flashlight.

But the scenes are sick with those shadows! The game is even more scary now :/

Grphc mods
[Image: moddb_88x31_v12.png]
(This post was last modified: 05-27-2013, 08:06 PM by Bucic.)
05-27-2013, 07:51 PM
Find




Users browsing this thread: 1 Guest(s)