little Posted December 4, 2012 Share Posted December 4, 2012 Hi, I am trying to write a custom plugin to draw text data in viewport using HDK. I am trying to use OGL_Render:: textMove3W and OGL_Render::putString function and calling it from within myCookSop which crashes houdini as soon as I use the putString function. I am also overriding renderShaded function but I am having trouble calling this function. Can anyone point me a piece of code that shows what functions I need to implement and from where and how do I call them. Thanks! Quote Link to comment Share on other sites More sharing options...
edward Posted December 4, 2012 Share Posted December 4, 2012 Nodes are not allowed to write to the viewport as they may run on the farm. Only viewport hooks are allowed when given an RE_Context object from Houdini. Quote Link to comment Share on other sites More sharing options...
little Posted December 4, 2012 Author Share Posted December 4, 2012 Thanks for your reply. Does this mean that I have to implement it as a ROP? I dont have much experience programming in HDK and recently started diving into this. Can you please guide me to any example that demonstrates this or anything that will help me know more about this workflow. Thanks! Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted May 12, 2013 Share Posted May 12, 2013 I think this may be what you are looking for: http://www.sidefx.com/docs/hdk12.5/_d_m_2_d_m___info_hook_8_c-example.html Very simple example on how to print information in viewport. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.