Jump to content

GL_ViewportFont query!


Recommended Posts

I am trying to write some data to the viewport using 'GL_ViewportFont' class. I declared its object and RE_Render object:

GR_ViewportFont *data = new GR_ViewportFont;

RE_Render *ren = new RE_Render(0,"viewport");

I am calling data->int label (RE_Render *r, const UT_String &str, const UT_Vector3F &pos, const UT_Vector3F &col, fpreal32 *&dst_points, fpreal32 *&dst_texcoord, fpreal32 *&dst_colors, XPosition xpos, YPosition ypos, fpreal &x_offset) const

by passing some constants to this function. As soon as I run Houdini it crashes on this function call. I am creating a SOP node and calling this function from within the cookMySop method.

1. Should I be calling this from cookMy Sop?

2. Am I defining RE_Render incorrectly?

Since Houdini does not print out any error on crashing I have no idea where I am going wrong.

Does anyone know about this or any other alternate solution ?

Thanks!!!

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...