Jump to content
Sign in to follow this  
little

viewport text display !

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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!

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
Sign in to follow this  

×