# Rendering a second view

**URL:** <https://forums.unrealengine.com/t/rendering-a-second-view/1192382>\
**Category:** Rendering\
**Tags:** unreal-engine, Physics, Rendering, question\
**Created:** [June 8, 2023, 3:21am UTC](https://forums.unrealengine.com/t/rendering-a-second-view/1192382 "2023-06-08T03:21:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuasp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Samuasp](https://forums.unrealengine.com/u/Samuasp)\
**Post date:** [June 8, 2023, 3:21am UTC](https://forums.unrealengine.com/t/rendering-a-second-view/1192382/1 "2023-06-08T03:21:04Z")

</div>

I’m creating a sci fi style game where the player is hoping between dimensions, it’s taking elements from alien isolation and ratchet and clank rift apart to create the games mechanics

Current setup is as follows

- a single level with two shrunk down skybox’s to represent the two dimensions. The portals are set up using render targets and the player can see into the other dimension, they can use their handheld device at any time to see into the other dimension (think dishonoured 2 a crack in the slab)

My question is can unreal render two viewports at once ? What I was thinking of doing was creating two sub levels, once for each. With the dimension the player isn’t in we don’t want it to be rendered at all unless they are standing in the view of a portal, in which case we render what they would see through the portal?

Is this overkill and shouldn’t be done or is it possible and something I should look into ? If it’s possible anybody got any links to references ect would be amazing. I’m only asking because in the recent ratchet and clank video from (can’t remeber the name) they said that they would render another version of the level when the player used the tether mechanic and then unload the first version when they had complete the transition to the portal.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [June 8, 2023, 9:00am UTC](https://forums.unrealengine.com/t/rendering-a-second-view/1192382/2 "2023-06-08T09:00:11Z")

</div>

Hey there @Samuasp! Welcome back to the community! So generally the only way for UE to (natively) render two viewports is between two players in split screen. If you work from the source, you may be able to utilize that and change it into the mechanic you’d need. Otherwise I believe you’d be working from render targets the same way as your portals.

---

<div class="post-metadata">

**Author:** ![Samuasp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Samuasp](https://forums.unrealengine.com/u/Samuasp)\
**Post date:** [June 15, 2023, 8:49pm UTC](https://forums.unrealengine.com/t/rendering-a-second-view/1192382/3 "2023-06-15T20:49:43Z")

</div>

That’s what I was thinking around, I’ve spent the last week looking possibly doing it using the stencil render but that’s a lot more complicated than this demo really needs to be. They did it in unreal for another game (can’t remember it) where a wall would be visible but then when you moved past a tree the tree would occlude the wall reveal what’s behind it based on how far you moved. It could be done with the stencil but you’d have to mask out a lot of things

For now I’ll stick with the render targets. As it’s indoors and the space dimension needs to represent space I can get Away with the space level being off in the distance having its own skybox and just have both levels loaded at one, just like they did with dishonored 2

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [June 16, 2023, 7:18am UTC](https://forums.unrealengine.com/t/rendering-a-second-view/1192382/4 "2023-06-16T07:18:50Z")

</div>

Absolutely understandable! The stencil method is effective, and more efficient than RTs but definitely far more complicated to deal with. RTs have built in functionality to handle it, but they are so expensive when you need to render them repeatedly. If you do come up with a novel method to pull it off and are comfortable sharing here later, it might help others with your idea in the future!

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [June 17, 2023, 7:39pm UTC](https://forums.unrealengine.com/t/rendering-a-second-view/1192382/5 "2023-06-17T19:39:51Z")

</div>

Hey there @Samuasp! I was taking a look around to see if there are less in depth workarounds you may be able to use, and found that some users are using the Composure plugin to do something similar, it might be of use so I decided to come back and drop this here:

> [@Multiple viewports, single display](https://forums.unrealengine.com/t/multiple-viewports-single-display/768447/2):
>
> I tried a first prototype using the “Composure” plugin in UE5.1. I followed the example shown here ([Unreal Engine 5 ( and 4 ) - Multi Angle Camera Feed to Single Texture Output (6 minutes) - YouTube](https://www.youtube.com/watch?v=r7wM_K6SdFQ)). It works well and I get the result I need. Is it however the most efficient technique? I have a heavy scene to render, so I’m looking to reduce overhead to maximise performance. Quick summary of the technique. You first enable the Composure plugin. You add the four CameraActors to your scene…

---

<div class="post-metadata">

**Author:** ![Samuasp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Samuasp](https://forums.unrealengine.com/u/Samuasp)\
**Post date:** [June 28, 2023, 10:47pm UTC](https://forums.unrealengine.com/t/rendering-a-second-view/1192382/6 "2023-06-28T22:47:22Z")

</div>

I was having a look around and came across this [MultiWorld in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/multiworld) It’s literally the exact thing I’m going for but at £300 😂 but I’ll have a look at that video now see if that helps

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 28, 2023, 10:47pm UTC](https://forums.unrealengine.com/t/rendering-a-second-view/1192382/7 "2023-07-28T22:47:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
