Could draw curve as wireframe in solaris?

   1805   5   1
User Avatar
Member
622 posts
Joined: Nov. 2013
Offline
Hi,

Could draw curve as wireframe(not band or tube) in lop OGL viewer?
I want curves to be drawn as helper icon in my HDA just as Control Sop in Object context.
Anyway?

Thanks!
User Avatar
Member
138 posts
Joined: Feb. 2017
Offline
i want to konw either
User Avatar
Staff
5161 posts
Joined: July 2005
Offline
Add the primvar houdini:gl_wireframe to the curve primitive and it will render as regular GL lines.
User Avatar
Member
55 posts
Joined: May 2013
Offline
In case anyone else has a problem figuring out how to do this in practice, here's an example.

Appears to work just the same with the usd_addprimvar line commented out so I'm not sure if it's good practice to use it or if it's superfluous as I'm a solaris beginner. This is in an attrib wrangle LOP :

Edited by j00ey - Aug. 31, 2022 06:24:42

Attachments:
add_primvar.jpg (72.6 KB)

User Avatar
Member
7801 posts
Joined: Sept. 2011
Online
I attached an example file showing a few other ways you might set the primvar value.

@malexander - What defines which attributes show up under schemas in the edit properties parameter interface dialog? I would think this attribute would fall under some houdini specific schema so you don't have to memorize the name.

Attachments:
gl_wireframe_example.hip (118.0 KB)

User Avatar
Member
55 posts
Joined: May 2013
Offline
Thanks @jsmack, this is really useful.

I agree about the edit properties schema thing, that's the first place I looked to try and set it.
Edited by j00ey - Aug. 31, 2022 12:57:34
  • Quick Links