What console commands can I use in my executable to show various buffer visualizations? For example I want to show AO only, or albedo or specular (on the whole scene).
âshow visualizebufferâ together with âr.BufferVisualizationTarget xâ, where x is one of the strings in the [Engine.BufferVisualizationMaterials] section of BaseEngine.ini
Hi , ShowFlag.Visualizebuffer and r.BufferVisualizationTarget are actually only visible inside the editor, and I failed to get the latter working at all.
So is there something I need to do to enable these console commands in the packaged game? and could you give an example for using the r.BufferVisualizationTarget command?
Thanks
If you build a development version of the game and not a shipping version, you should be able to see the buffers. Shipping takes most of this stuff out.
Iâm indeed building a development version, and Iâm able to view and use the console in the packaged game, however those two commands in particular are missing from my development build.
I only tested the commands with UE4Editor.exe -game (editor executable run in game mode). Iâm guessing they donât work in cooked game because they are tagged as cheat cvars. You can test removing the cheat flag and compile the game executable, see if they work then.
In addition to enabling the commands, I think you need two things:
r.ForceDebugViewModes=1 (DefaultEngine.ini). Otherwise FSceneView::ConfigureBufferVisualizationSettings() is not being called.
After setting that variable, you need to recook your content, which will now include Engine/Content/BufferVisualization/*.uasset. Otherwise FBufferVisualizationData::Initialize() wonât find the visualization materials.
You can use Post Process Material found in the engine content and apply the one you want to the post process volume. You can also create a reference of post process volume and control it through blueprint.
I added the line as the first thing in defaultengine.ini, deleted all folders in the project except for content and config, and then restarted the editor and packaged the project and STILL it tells me itâs not allowed.
What did I miss?
EDIT: Ok, so you need to put the line after the RenderSettings line⌠BUT:
When I type âviewmode wireframeâ everything disappears, even colliders that were previously showing using âshow collisionâ. Whatâs up with that?