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"

Underwater Effect

I'm looking for some sort of way to check and see if the player's camera is inside of the post processing volumes bounds, along with a trigger volume so that I can create an underwater effect.

Thanks <3

Product Version: Not Selected
Tags:
more ▼

asked Sep 26 '14 at 09:42 PM in Blueprint Scripting

avatar image

TSpartanT
116 17 20 26

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

1 answer: sort voted first

Hey TSpartanT,

You can do that in the Level Blueprint pretty easily. Select the object you want to check to see if the player is in, then in the Level Blueprint, right-click and make a "Event On Actor Begin Overlap" node.

https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Types/LevelBlueprint/index.html https://docs.unrealengine.com/latest/INT/Engine/Physics/Collision/index.html

When the player is "overlapping" with the volume, then they are within it. Based on that, you can set on or off the "underwater" effects that you have made.

Let me know if that helps.

more ▼

answered Sep 26 '14 at 10:26 PM

avatar image TSpartanT Sep 26 '14 at 10:33 PM

Thanks! I know how to do this, but I'm looking to specifically activate the effects when the CAMERA itself has entered the volume.

The way you provided is how I already set it up, but it will have the "Underwater" effects even when the player is above the water. Since it's triggering it on overlap, and technically the actors mesh is overlapping.

I haven't tested it with a camera, but i'm assuming that when the players feet touches the water, the camera will get effects.

Maybe I'm thinking too hard?

avatar image Alexander Paschall ♦♦ EPIC Sep 29 '14 at 10:10 PM

You could use the same technique, but with components instead of actors. Make a Blueprint that will be your "water blueprint" and add a Box Component to it. The Box Component can be used as a trigger volume, but if you do an "On Component Begin Overlap" that will let you get the exact component that is overlapping. Use that to check if the camera is overlapping. Let me know if that helped.

(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