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"

Hiding decals per camera

Hi there! Making a multiplayer game and I'm running into a problem.

I've got decal-based footprints that I want invisible to the camera, but visible through a SceneCapture2D. I've got a device that can be seen through to see these 'footprints' but to the naked eye they are invisible.

I've tried using this approach: https://answers.unrealengine.com/questions/423830/how-to-set-actors-visibility-per-camera-1.html?sort=oldest

By setting the footprint decal actors to be hidden by the player controller in C++. But apparently it does not work for decals, any static meshes I'd have in this actor are properly hidden but the decals are not, probably because they are deferred or something.

Any ideas on how I might get this to work? Having a decal visible to a SceneCapture2D but not visible to a camera/player controller.

Thank you!

Product Version: UE 4.19
Tags:
more ▼

asked Dec 15 '18 at 06:47 PM in Blueprint Scripting

avatar image

mellowsoft
39 1 5 16

avatar image mellowsoft Dec 15 '18 at 06:49 PM

I've also thought about somehow using a material function or something to be able to set the opacity of the decal material to 0 if rendered from a camera, and set opacity to 1 or full/visible when rendered from a scenecapture2d component...

avatar image mellowsoft Dec 15 '18 at 07:12 PM

toggling 'show decals' console command works in theory but then all my other decals are lost as well, and I am using a lot of decals. Looking for a way to affect specific decal actor classes or material instances, I guess.

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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