Console commands for Buffer Visualization

Hi,

I know there are console commands for viewmodes in Unreal, but I have been searching for the commands for the various buffer visualisation (opacity, ambient occlusion, etc.).

Would anybody know if such console commands exist and if not can they be programmed? Thanks for any help you could provide

any solution to this?

Yes, you must create a postprocess material (create material then type->post process). you can select which pass you want.

Then, create a postprocess volume and place it into the level. Make sure to check unbound. In the blendables section, select your postprocess material that you created earlier. If I recall correctly you modify the settings in the postprocess volume and it works.

Reply if you need more help

thanks, that worked, it can even be added onto different camera viewpoints

Hi Madvoyer,

What do you mean by ‘select which pass’ you want? I am unable to find that setting in 4.16.

Thanks!

It can be done with two commands…

To put the view mode into buffer visualization mode, use the following: ViewMode VisualizeBuffer

To specify which buffer to visualize, use: r.BufferVisualizationTarget ...

Where the list of target names are:
BaseColor
CustomDepth
CustomStencil
FinalImage
ShadingModel
MaterialAO
Metallic
Opacity
Roughness
SceneColor
SceneDepth
SeparateTranslucencyRGB
SeparateTranslucencyA
Specular
SubsurfaceColor
WorldNormal
AmbientOcclusion
CustomDepthWorldUnits
SceneDepthWorldUnits
PreTonemapHDRColor
PostTonemapHDRColor

4 Likes

Hi everyone!

I was trying to fire these 2 cmds {ViewMode VisualizeBuffer | r.BufferVisualizationTarget $TargetName } in the output log but nothing happens.

Any idea why is this happening?

Thanks!

Running these 2 on Begin Play (in Level Blueprint) worked for me.
In my case I visualize SceneDepth, to visualize other Buffer Visualization simply replace “SceneDepth” in the first Execute Console Command.


Hope that helps.

3 Likes

Hello, if you are using the advanced version of UE. And using the editor utility, you can retrieve a node called the Set Editor viewport Visualize Buffer
zxczxc