x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Spotlight Goes Through objects.

Hey Guys! So this might be easy for you guys that have a lot of experience with the engine but im quite new. I Made a laser pointer and a flashlight for my project using a spotlight. the thing is: the light goes through objects like the terrain; blocks and stairs.

I dont know how to fix it so I would apreciate some help. Thx Guys!

Product Version: UE 4.18
Tags:
more ▼

asked Dec 03 '17 at 12:54 PM in Rendering

avatar image

Regufe
1 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Do you mean the light cone of the spotlight using volumetric exponential height fog? If instead you mean the light itself: make sure the objects the light is going through and the spotlight itself have "cast shadow" enabled in details.

(Also if it only happens in game with movable objects then you might have built the light with the spotlight set to static and that's the reason why your movable objects are ignoring it)

more ▼

answered Dec 04 '17 at 11:02 AM

avatar image

Carthis
46 7 6

avatar image Regufe Dec 04 '17 at 10:34 PM

Ill try it out. thanks for the reply

avatar image Regufe Dec 05 '17 at 04:03 PM

It Does Not work. Can it be becouse i have the spot light lengh so big that it goes across the wall? if so how can i use it so that that doenst happen? thank you.

avatar image Carthis Dec 06 '17 at 11:24 AM

No the lenght shouldn't be a problem at all because all objects in its way should cast a shadow. Instead your meshes could be the problem, if their faces don't have backfaces. To solve this without rebuilding your meshes, in your meshes StaticMeshActor properties in lighing try to set Cast Shadows As Two Sided or use a Two Sided Material. I hope this works!

avatar image Regufe Dec 06 '17 at 07:22 PM

It did not work. Dude, thx for the time spent but im going to simply surrender to the idea of making it. thx anyways

avatar image Regufe Dec 06 '17 at 11:35 AM

Thanks for the reply! Ill try it out and keep you informed

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question