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"

Making an actor visible only from a scenecapture2d

I need to make an actor visible only to a scenecapture2d and invisible to the main player camera.

This is so that the player will only be able to see the actor when viewed through a security camera.

This is a very important feature of my game, is there any way to do this in the current version of UE4?

Product Version: Not Selected
Tags:
more ▼

asked Nov 03 '14 at 05:32 PM in Rendering

avatar image

capnbubs
11 1 2 3

avatar image HaxO Nov 03 '14 at 10:28 PM

Hmmm, I haven't really messed around with tags yet in Unreal. But that certainly seems like something they would help you handle. For example you could tag your object with 'CameraOnly' and exclude anything with that tag from being rendered by your Player Camera.

avatar image capnbubs Nov 03 '14 at 11:21 PM

I can't find any function for actually hiding them from a specific camera though. You can set them to be universally visible or not, you can also choose to hide them specifically from a scenecapture2d, but there is no way I can find to hide them from just one camera.

It's pretty frustrating!

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

5 answers: sort voted first

Hey everyone,

After a bit of troubleshooting with blueprints I was able to set up an actor that was hidden to the player but visible if viewed from another camera. First I created a HiddenObject blueprint with the static mesh to be hidden. In the static mesh's details settings I set the Rendering option "Owner No See" to true and used the Set Owner node to make my player the owner of the actor. The collision was set to "No Collision" so the player wouldn't run into the invisible mesh.

alt text Since the player is now the owner of the actor it will not appear for the player camera. When the camera view is switched to another camera (such as a security camera), this new camera is NOT the owner so it can still see the mesh. Hopefully this helps setting up objects to be hidden from the player but still visible from another camera.

Cheers

Doug Wilson

ownernosee.png (101.6 kB)
more ▼

answered Nov 03 '15 at 10:39 PM

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

I fixed my problem by diving into the source code, I inserted a new array of extra hidden actors on the player controller and then added a line to append it to the hidden actors array that is built by the game (I assume for occlusion culling purposes).

Now I can insert actors that I don't want the player to see into the extra actors array using blueprint, works like a charm!

more ▼

answered Nov 06 '14 at 08:04 PM

avatar image

capnbubs
11 1 2 3

avatar image Jose Gabriel Nov 20 '14 at 12:29 AM

Can you please explain better I need to do this.

avatar image Mloki Mar 18 '15 at 02:56 AM

Yes please we need details, it sounds really clever.

avatar image Froodo Mar 30 '15 at 05:09 PM

Hey, can you explain it for us?

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

Hello capnbubs,

So after a bit of trial troubleshooting on my own using blueprint scripting, I discovered a really simple way to achieve what you are trying to do.

What I did was set up a trigger box in my level what when overlapping, would toggle to a camera in my level. After setting the camera as my active view, I just added an "Actor Hidden In Game." node and the actor I was toggling disappeared. Keep in mind if you want to make this believable you need to toggle off static shadows for the object you are hiding so the shadow does not remain when the object disappears.

Here is how I set it up in my level blueprint and in my scene as well.

Scene Set-Up alt text

Level Blueprint Set-Up alt text

End Effect

alt text

Hope this helps you achieve your goal!

Thanks,

Andrew Hurley

more ▼

answered Nov 20 '14 at 05:31 PM

avatar image Mloki Mar 18 '15 at 02:54 PM

This does not help a bit, it is easy to hide objects from all cameras, but no way to make things visible only to a specified camera, that would be what I am actually looking for the most. If we would have any way to make a camera only see what we want it to see, independently from which objects are visible set or not, then we could for example add a vision of the map where only the edges are visible to the specified camera (while the other cameras render all objects, that are set visible) or make only objects exclusively visible to the specific camera that contain a boolean variable, that enables vision to the specified camera only. Or to describe it with other words : it would be some kind of individual render mode for a specified camera. Any help ?

Is there a way I can access the standard camera blueprint source code and copy it to create a special camera with that possibilities ?

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

I have made a patch and pull request for this feature.

https://github.com/EpicGames/UnrealEngine/pull/1291

This adds Blueprint functions to the PlayerController to selectively hide components from the player, but not from SceneCapture components.

more ▼

answered Jun 22 '15 at 07:14 PM

avatar image

Banbury
13 2 6 8

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

You can do it if you grab the scenecapture2d, then look for hide actor components. Attach the reference for any actor you want to hide. And that's it.

more ▼

answered Aug 10 '19 at 05:16 PM

avatar image

Naitguolf
66 6 7

(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