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"

Can Scene Capture 2D render only part of the viewport?

Hi, I'm implementing a portal effect and I'm using scene capture 2D in order to generate the portal's destination: https://youtu.be/6QCgtk4MpJ8

I'm concern about rendering optimization where the problem is that the portal may be far way, but the scene capture component will always be rendering the entire screen to the render target texture...

Is there any way I can specify only part of the viewport to be rendered by the scene capture component? Maybe using rectangle coordinates (x1,y1,x2,y2) so the scene capture will not render things that are outside the portal bounds and therefore will be discarted.

Thanks!

Product Version: UE 4.12
Tags:
more ▼

asked Aug 19 '16 at 06:02 AM in Rendering

avatar image

fireapache
48 11 15 18

avatar image Mookaroni Aug 28 '16 at 09:59 PM

I think what you're looking for is the max view distance on the Scene Capture 2D.

On a side note, I'm curious on how you lined up the portal's views relative to your character's position if you're willing to explain

avatar image fireapache Aug 28 '16 at 11:17 PM

It's not view distance... I hope the attached image will make my point.

About the positioning, there's no mystery about it, each portal just take the relative transform of the player from it and apply it to the target portal rotating by 180º around it root component.

alt text

portal.png (577.8 kB)
avatar image dillzilla May 03 '17 at 12:39 AM

im having an issue with rotating the capture components. no matter what rotation i give them they stay the same.

avatar image LeFxPete Jun 07 '17 at 01:36 PM

I think your attached image does not show, how your Scene Capture Component in this view actually works. If I understand your setup correctly, your SCC should be attached to your portal itself, so it will actually capture "through the eyes" of the target portal, and not through your eyes, like in your image. However, you're right, that there is a lot of overhead due to the relatively small screen size of your portal compared to the capture size behind it.

If you somehow want to optimize your screen component capture efficiency, playing with your render targets resolution might improve results. I don't think, that you can tell your Scene Capture Component to somehow "do not capture" specific parts of your scene, at least I'm not familiar with a way to do that. :/ Especially since you would have to adjust this area each time your player moves and it's view angle changes.

avatar image fireapache Jun 07 '17 at 02:32 PM

I don't think there is an option to render only part of the viewport, but I would be happy with any direction on what to change in the engine in order make that feature... or even a "it's not possible" from any UE4 staff would be good too. :-P

(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