nestumkiller Posted July 2, 2008 Share Posted July 2, 2008 Hi! I'm creating a bunch of primitives (GU_PrimPoly, GEO_PrimSphere, etc...), but I would like for them to be rendered only in wireframe (like a control SOP) independently of the current Shading Mode. Is there any flag I can set to render them like that? Thanks Quote Link to comment Share on other sites More sharing options...
sibarrick Posted July 2, 2008 Share Posted July 2, 2008 Isn't it just a case of not closing the primitives? Quote Link to comment Share on other sites More sharing options...
nestumkiller Posted July 2, 2008 Author Share Posted July 2, 2008 Isn't it just a case of not closing the primitives? In some cases yes, like drawing a line or a plane (just repeating the last point). But in the particular case of a GU_PrimSphere doesn't seem to work. I'm building a sphere like this: GU_PrimSphereParms params; params.gdp = gdp; params.xform = UT_DMatrix4::getIdentityMatrix(); params.ppt = ppt; params.type = GEO_PATCH_ROWCOL; // // Represent the joint simply as a geo sphere // GEO_Primitive* prim = GU_PrimSphere::build( params ); On the params.type I've tried all cases but {GEO_PATCH_TRIANGLE, GEO_PATCH_QUADS}. There doesn't seem to be an option for "open". It makes sense since there is no such thing as an open sphere. When I toggle to wireframe mode I get 2 circles and a cross, which I would like to have all the time. Any clues? I guess it's one of those Houdini "hidden" functions... Quote Link to comment Share on other sites More sharing options...
edward Posted July 2, 2008 Share Posted July 2, 2008 Don't create primitive spheres then? Quote Link to comment Share on other sites More sharing options...
sibarrick Posted July 3, 2008 Share Posted July 3, 2008 Don't create primitive spheres then? Yeah, draw your spheres as 2 open poly circles Quote Link to comment Share on other sites More sharing options...
nestumkiller Posted July 4, 2008 Author Share Posted July 4, 2008 Yeah, draw your spheres as 2 open poly circles Thanks Just did it. I thought the actual primitives could have some render mode depending on the houdini shading... oh well... just had to lose a bit more time drawing circles. 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.