Jump to content
juanjgon

How to force a viewport refresh from the HDK?

Recommended Posts

Hi folks,

 

I am working in the Octane IPR integration inside Houdini. I wan't eventually replace the Houdini OpenGL renderer in the perspective viewports with the Octane one.

 

I have all the code ready using the SceneHook classes, but the problem is that I don't know how to refresh the perspective viewport from the Octane thread every time I get a new rendered image. This is essential to make possible the Octane progressive rendering in the Houdini viewports.

 

So in few words: I need to refresh one of the Houdini viewports using a HDK function to call the SceneHook that dump the rendered image.  Any idea?

 

Thanks,

-Juanjo

Edited by juanjgon

Share this post


Link to post
Share on other sites

its not from the C++ library but in the hou.ui python module there is a triggerUpdate() command that forces an update/cook of the current viewports.

 

-Nathan

Share this post


Link to post
Share on other sites

I thought you had IPR support? If you do, then it's just a matter for the user to use the Render View tool (left toolbar) to draw an on-screen region to render.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×