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
Level Editor Help Shadows don't work
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#1
Shadows don't work

Hello everyone!

I'm stumbling upon a problem. I have a quite big spotlight (60 Radius, 90 FOV) which illuminates this sort of garden. The problem is, the walls are planes; and light, although it creates shadows, goes through... here's a screenie to show the problem:

http://imgur.com/c7iVayl

The spotlight is set to cast shadows, the planes are set to cast shadows too.
EVERYTHING should cast shadows...

Any ideas?

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 07-07-2014, 02:33 PM by The chaser.)
07-07-2014, 02:32 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Shadows don't work

I think that is actually a common issue with the engine. Light usually passes through objects it shouldn't. I'm afraid I don't know what to do about it, but perhaps someone do :/

07-07-2014, 03:10 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#3
RE: Shadows don't work

Make several smaller ones...
HPL2... some parts could be really improved, witch i'm sure of FG guys will have in HPL3
07-07-2014, 04:47 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#4
RE: Shadows don't work

First, press G in your editor to remove that atrocious grid xD
As for the spotlight, I'm pretty sure the light goes through planes only in the editor.
Try in-game how it looks.

here:
Spoiler below!
[Image: ae5vagersa.jpg]
In-game I see a black square on the floor.

(This post was last modified: 07-07-2014, 08:46 PM by Daemian.)
07-07-2014, 08:43 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#5
RE: Shadows don't work

Yeah, here are 2 new images:

I've reduced to spotlight radius, although it's weaker, it doesn't go through and casts shadows on the planes, I guess that's something...

This is what happens if the previous setting were kept:

http://imgur.com/dDvhNay
http://imgur.com/G2udXo8

*The skybox isn't definitive

About planes not casting shadows, I have a question:

If light finds a static object with no texture at all will it cast shadows?

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-08-2014, 02:38 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#6
RE: Shadows don't work

(07-08-2014, 02:38 PM)The chaser Wrote: About planes not casting shadows, I have a question:

If light finds a static object with no texture at all will it cast shadows?

I don't know about this one, but one trick I use is get the plane_black from the technical static object and place that wherever I don't need light, specially through a plane. Just putting it around 0.02 behind the plane will cast a shadow, and the back is invisible to the view 180 degrees behind.

It would work well here I believe, because you're using a plane for a wall.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
07-08-2014, 02:48 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#7
RE: Shadows don't work

Stays the same... there's still that light from beneath the walls... Nice idea, though.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-08-2014, 03:03 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#8
RE: Shadows don't work

Are you sure? I used that plane_black.mat in my mod TheRaven to force the spotlights to cast shadows.
The black planes cut the light by facing the spotlight directly. In-game this black plane casts a shadow behind him.
Spoiler below!

[Image: 6vq4w5q34qw.jpg]
Maybe you didn't enable shadows on the black plane?

In-game
Spoiler below!
[Image: 3463g.jpg]

(This post was last modified: 07-09-2014, 12:00 AM by Daemian.)
07-08-2014, 11:52 PM
Find




Users browsing this thread: 1 Guest(s)