Jump to content

Mirrors and Visualizer


photo

Recommended Posts

Dear @lightmap,

I have not run this particular example. But I think following line is doing it.

viewport->appendSkipFlags(Viewport::SKIP_POSTEFFECTS);

This is important when we use render functionality attached to view port. With every render call we might require to bypass few of the rendering passes from UNIGINE rendering sequence. Due to above optimization the post effects of visualizer drawing will not work as they are skipped.  

Again the one big mirror is reflected using planar reflection. There is a note too. 

Planar reflections don't reflect each other and miss post-effects.

And if planar reflection don't  miss post effects then we will render everything to 10-15 fps. Just a comparative example to make  sure that post effects so many times will eat up fps.

Are you checking this behavior in editor?

Rohit.

Link to comment

Thanks, but it not hepls.

Im checking not in editor, and not use planar reflection, only renderTexture2D, and SKIP_POSTEFFECTS did not help.

Rendered texture still has no visualizer primitives drawn, as in main window scene are.

Link to comment
×
×
  • Create New...