Jump to content

Light lights through a wall if near range is beig enough


Go to solution Solved by Josh,

Recommended Posts

Posted

You can see a light beside wall, but light source is before this wall.

It happens if near range is bigger than distance to obstacle.

In my game i'm using near range to prevents shadows of character that have this light source (flashlight). But in this case light goes through walls.

image.thumb.png.821a8767e877778b67b850d2079cac0b.png

Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5:

https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/

Posted

Why would it act differently than this? If the wall is closer than the near light range, it would not get drawn into the shadow map.

My job is to make tools you love, with the features you want, and performance you can't live without.

  • Solution
Posted

You might want to try using the render layers feature to make the character not appear in the shadow. Changing the light's near range is a strange solution that will probably cause many other unexpected problems.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted
5 minutes ago, Josh said:

You might want to try using the render layers feature to make the character not appear in the shadow

I need character shadow if another character shines a flashlight at him. And i need shadows in general from flashlight. It there a way to prevent shadow of specific model from specific light source?

Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5:

https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/

Posted
15 minutes ago, Dreikblack said:

I need character shadow if another character shines a flashlight at him. And i need shadows in general from flashlight. It there a way to prevent shadow of specific model from specific light source?

If you are clever, the render layers system can do this.

My job is to make tools you love, with the features you want, and performance you can't live without.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...