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"

Set shadow of the head of my beheaded character mesh

Hello,

I ve resized my character mesh head to 0 as it's a FPS and I don't have the AIM offset anims so if i don't do that when i move the camera pitch it shows his hairs,

But the shadow of the character don't have his head too,

Outlast does it so I know there s a way, just can figure out how.

Thanks

Product Version: UE 4.18
Tags:
more ▼

asked Jan 21 '18 at 11:43 PM in Rendering

avatar image

CharlyB.Goode
202 2 9 16

avatar image CharlyB.Goode Feb 23 '18 at 02:28 PM

Hello!

For now I'm using two meshes, one beheaded, visible with no shadow and one for the shadow, hidden in game, the problem is I have to use 2 anims BP because I've set sounds in the main one, it works but sometimes anims are not synchronised and it shouldn't be the best for performances.

Nobody have a better idea?

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

4 answers: sort voted first

Hey there, you dont need to scale you just need to make sure that the head material when applied is not double sided and the inner vertices are backfacing so they are not rendered due to backface culling.

more ▼

answered Jan 22 '18 at 12:23 AM

avatar image

xlar8or
6k 163 129 305

avatar image xlar8or Jan 22 '18 at 01:25 PM

You don't want to render the head but you still want to see your body right? In that case you can try the solution from AyanMiru, but that requires that you have the head as a separated skeletal mesh.

avatar image xlar8or Jan 22 '18 at 01:29 PM

Maybe you can try setting the head with an invisible material and enable the Hidden Shadow in the mesh, but it might not work.

avatar image CharlyB.Goode Jan 22 '18 at 02:45 PM

Yes I ve tried with invisible Material, It won't work, I ll export it to blender and see what I can do.

I need to see the whole body but the head give me problems with the FPS camera

Thanks

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

In Skeletal Mesh component Details view, under Rendering rollout try to check "Owner No See" check box. You may also want to check Hidden Shadow under Lighting if shadows are hidden too.

But in case you want to only partially hide your mesh, try adding invisible material. It's hacky tho, there should be better way to do it. :)

more ▼

answered Jan 22 '18 at 05:30 AM

avatar image

AyanMiru
333 4 6 15

avatar image xlar8or Jan 22 '18 at 10:58 AM

I was assuming that he wanted to still see his body except the head, if this is the case the Owner No See will only work if the head is a separate skeletal mesh. If that's not the case your suggestion will work :)

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

Well the material of the head is not double sided but when i m in certain position against light, i see it nose holesTn of my character and when i jump I see his hairs even if I attached the camera to the head bone.

I really want to have no head and have his shadow.

At 3:54, you can see Outlast devs done it, with Unreal engine, https://www.youtube.com/watch?v=NY-0LnM4COQ

For now the only thing working is add a second skeletal mesh hidden in game but I guess it s not the best for performances

more ▼

answered Jan 22 '18 at 01:16 PM

avatar image

CharlyB.Goode
202 2 9 16

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

I've tried with invisible Material but it don't cast shadow

more ▼

answered Jan 22 '18 at 01:27 PM

avatar image

CharlyB.Goode
202 2 9 16

avatar image xlar8or Jan 22 '18 at 01:28 PM

Please answer with Add Comment instead of creating new answers. Check my comment.

(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