Jump to content

RenderFramework() in 2 parts


Canardia
 Share

Recommended Posts

When using 3D OpenGL commands with LE, it works fine as long no post-processing effects are used.

When post-processing effects are used, then the occlusion culling breaks in the 3D OpenGL commands, and they all draw in front of all other objects.

 

To fix this problem, there should be an optional parameter to RenderFramework(), which tells it to render only geometry and lights, or only post-processing effects:

RenderFramework(1);
// 3D OpenGL commands go here
RenderFramework(2);

The default parameter would be 0, and do the same what RenderFramework() without parameters does now: it renders the geometry and lights, and then the post-processing effects.

 

With this finer granularity control, we can now place 3D OpenGL commands between RenderFramework(1); and RenderFramework(2); and they will be rendered correctly.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...