Download

How to set nDisplay render target texture

In the nDisplay configuration documentationthere is a parameter for [viewport] called “rtt” that determines whether the viewport renders as a texture. I’d like to know how I can set this texture to a render target. I’ve been searching through the source code but haven’t been able to figure it out. Any help is appreciated!

If it helps here is the line in the configuration file where the [viewport] is defined


[viewport] id="vp_1" x="0" y="0" width="1920" height="1080" projection="proj_simple_1" rtt="true"

It is set in the “BP_IncameraSettings” that got introduced in 4.25 i believe.

A very good starting point is Last Pixel Studios tutorial https://www.youtube.com/watch?v=gec9idRXpxo that is based on Vitalii Boiko’s demo scene (https://drive.google.com/file/d/1QZQ…RhlzgAVN9/view )

From there it should be easy to adjust it to your own needs.