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"

Make a shadow of an AI appear and disappear

Hello,

I am wondering how would I make a shadow of an AI/ghost appear through a window then disappear, I have been trying for a few days now and don't know what to do.

To clarify: I only want the shadow to be visible, I do not want the mesh or physical object to be visible in game. So in the end, a player should see a shadow of something for a few seconds and then the shadow should be gone.

Product Version: UE 4.18
Tags:
more ▼

asked Feb 06 '18 at 03:26 AM in Blueprint Scripting

avatar image

KingAlmond
3 2 4

avatar image ThompsonN13 Feb 06 '18 at 03:58 AM

i dont think its impossible if your trying to use a translucent material.

https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/MaterialProperties/1_10/

avatar image KingAlmond Feb 06 '18 at 04:12 AM

so I would have to use an actor with that type of material?

avatar image ThompsonN13 Feb 06 '18 at 04:30 AM

i meant to write i think its impossible or at least not somthing thats possible yet

avatar image KingAlmond Feb 06 '18 at 02:24 PM

oh damn, that ruins my idea for a game! Is there, no way to have a character cast a shadow at certain times but not have the character physically present at the same time? I know you can do it with actors.

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

2 answers: sort voted first

As far as I know it's not possible. Problem is that the lighting of AI characters is calculated at runtime and if the object is set to be invisible, it's not going to be calculating a shadow because there is nothing to calculate a shadow from.

more ▼

answered Feb 09 '18 at 07:35 AM

avatar image

cridia
815 30 26 105

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

That is the thing. I know how to turn shadows on and off so I thought I could answer this but it wont work if the mesh itself is not visible.

Best thing my mind could come up with is if you don't care if the Ai is actually there to cast said shadow then I would just make a black decal with default settings as it would give the illusion of a shadow in the shape of your Ai Char and then spawn it and De-spawn it as needed giving you the illusion of a shadow. Might even be able to animate it if your good with materials and animations.

Let me know if this will work for you and I can guide you further.

more ▼

answered Feb 09 '18 at 04:30 PM

avatar image

Exonfluxx
384 1 5 8

(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