Jump to content

RenderHooks not working


SpiderPig
 Share

Recommended Posts

I wanted to talk to you guys about this topic.

In the Vulkan renderer we had a transfer and render hook. I don't see any need for these two hooks anymore. Do you?

What information needs to be passed to the hook? I think everything can be retrieved with functions:

wglGetCurrentContext();
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &fbo);

At what point in the renderer should this hook be called? I am thinking after all objects are rendered, before post-processing effects.

Should it be set per-camera instead of per-world perhaps?

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

2 hours ago, Josh said:

I wanted to talk to you guys about this topic.

In the Vulkan renderer we had a transfer and render hook. I don't see any need for these two hooks anymore. Do you?

What information needs to be passed to the hook? I think everything can be retrieved with functions:

wglGetCurrentContext();
glGetIntegerv(GL_FRAMEBUFFER_BINDING, &fbo);

At what point in the renderer should this hook be called? I am thinking after all objects are rendered, before post-processing effects.

Should it be set per-camera instead of per-world perhaps?

I thought the same. Take a look here: 

and here: 

For the parameters i think the object which calls the hook should be included and an extra field for custom data. The most important thing for me is that it will be possible to get the internal opengl data. (not only the texture ids, but maybe also the buffers etc) .    

As i posted in the first linked thread i would prefer hooks on the way BEFORE / AFTER and also one for the world update and then for the camera. 

  • Like 2
  • Windows 10 Pro 64-Bit-Version
  • NVIDIA Geforce 1080 TI
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...