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"

Cylinder mask material from camera to character

I am trying to set up a material with an opacity mask that acts like a cylinder from the camera to the character. I am using a line trace to detect collision from the camera to the material. I have implemented it successfully with a spheremask that sets the location of the sphere to hit location. This doesn't play well though. I am trying to hide walls that make it hard for the player to see around and navigate in a tight enclosure. How can I manipulate the spheremask to work as a cylinder with ends at the camera and character locations? Or can I use some other technique to achieve this?

Product Version: UE 4.19
Tags:
more ▼

asked Jan 14 '19 at 02:05 AM in Blueprint Scripting

avatar image

FishMob
5 3

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

1 answer: sort voted first

there's a method that uses the sphere mask. Shown around the 10 min mark of this vid. https://www.youtube.com/watch?v=GXbE0IqbA7w

you could also try the drawline 3d node.

more ▼

answered Jan 14 '19 at 02:31 AM

avatar image

IndieGameCove
1.4k 11 4 10

(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