Jump to content

Custom OpenGL window


Recommended Posts

Hi again,

 

The other idea I have to manage the Octane IPR is to create a custom window. This is how it works in the LightWave plugin and the users are happy with it's features and performance.

 

I am trying to open a custom OpenGL enabled window to use the RE_Render functions. I am using the next code without luck, the window is opened without problems, but it is dead, it doesn't display the RE_render OpenGL functions or any other function. Any idea about what could be the problem, or if there is a better solution to open an OpenGL ready window from Houdini?

RE_Server *server = RE_OGLRender::getServer(); 
RE_Window *previewWindow = server->newWindow(RE_MODE_RGBA_SINGLE, RE_WINDOW_NORMAL);
previewWindow->openWindow(); 
RE_Render *render = previewWindow->getRender();

Thanks,

-Juanjo

Edited by juanjgon
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.

×
×
  • Create New...