Help offsetting camera view in to only use part of screen using post process material

I am wanting to make my game view only show on a portion of the screen (Think OSRS or similar games where you have UI wrapped around the games viewport. I believe I can achieve this by using a post process material on the camera to offset the camera to my desired position, but I can for the life of me find any documentation on how to do this correctly or figure it out myself. Any help is greatly appreciated.

Thank You.

if i understand correctly, you more or less want to do a floating hud?

sort of but more to be fixed. I want the game viewport in the screen to be on the top and left portion centered if you will so the bottom and right hand side of screen can be UI only.

Everything i read needs me to go into c++ to change the way the viewport renders which is what I am trying to avoid as this is for a blueprint only project. There is plenty of documentation on how to do it in c++. My only work around is to use a post process to offset the UVs of the scene to my desired location and the other parts will be whatever colors or black and just overlayed by a widget.

My main pain is I am not that good at materials and cant find documentation on how to offset the scene texture UV Map to offset the camera view

can you provide an example image of what sorta effect you are looking for? a game screenshot, or drawing for example?
im a bit confused as to what exactly you are trying to accomplish… i think. idk.

you can see how the gameview of the camera is centered then around the game view is the UI.

my thought process is to offset the Scene texture uv map so it will sit centered inside of the widget like in the picture above. I know the proper way would be to change the way the viewport renders in c++ sort of how the ue5 editor does with viewports around the engines UI but I am being tasked to do this with out c++ modifications.

ohhh. i see. so instead of the centerpoint of the camera being at 0.5,0.5, you want it at 0.4,0.4 for example. let me think… ill see if i can figure out something

ok. yup. it was exactly as you suspected. you can do it in a post process like this.

for some more info on how this works; its all powered by the TexCoord node. this is short hand for texture coordinate and it allows you to manipulate textures or do procedural math with it. its a very powerful node.

2 Likes

looks like what I was looking for. I will try out here shortly and report back. Thank you for taking time to assist as materials are my bain.

this definitely I the right path. Now i just need to figure out how to offset the camera.


I’m sure this wont be to hard and I can figure this out. I appreciate your help!

1 Like

Hi @TheSameGuy , did you figure out the camera offset? I’m stuck with the same problem. I think ‘ndisplay’ might be the solution, but if there’s any other method, I would appreciate some help. Thanks

EDIT: I achieved with Ndisplay

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