DoctorBuzz Posted August 20, 2005 Share Posted August 20, 2005 Hi guys, how can I access point and primitive position, point and primitive attributes, etc. in a DOP simulation? Quote Link to comment Share on other sites More sharing options...
mtucker Posted August 23, 2005 Share Posted August 23, 2005 You can access DOP geometry information using any of the expressions you use to access SOP geometry information like point(), prim(), and so on. All you need to know is how to specify DOP geometry in the first parameter of the expressions (the one that normally specifies the SOP node). To do this, use a string with the format: dopnet:objname/dataname dopnet is the path (relative or absolute) to the DOP Network. objname is a specification of the object you are interested in. This can be an object name or an object id number. dataname is the path to the geometry data attached to the object. If no dataname is given, "/Geometry" is assumed. Mark Quote Link to comment Share on other sites More sharing options...
DoctorBuzz Posted August 23, 2005 Author Share Posted August 23, 2005 Thanks for your answer mtucker, but i mean how to access it with HDK... Thanks anyway Quote Link to comment Share on other sites More sharing options...
Jason Posted August 23, 2005 Share Posted August 23, 2005 Thanks for your answer mtucker,but i mean how to access it with HDK... Thanks anyway 20783[/snapback] Hi there; Take a look at the source code for the ODE Solver DOP on Sourceforge - you'll see it in there. Quote Link to comment Share on other sites More sharing options...
mtucker Posted August 23, 2005 Share Posted August 23, 2005 Oops. I guess I should have guessed that since this is the HDK forum As Jason says, the ODE Solver code shows how to access the GU_Detail pointer from a DOP Object. The SIM_SolverHair example in the $HFS/toolkit/samples/SIM directory also does this. I'm assuming that once you have a GU_Detail pointer you know how to get what you want? If not, check the HDK documentation relating to geometry ($HFS/toolkit/html/geometry/index.html). Mark Quote Link to comment Share on other sites More sharing options...
DoctorBuzz Posted August 23, 2005 Author Share Posted August 23, 2005 Thanks guys, I'll look into the examples you suggested. Thanks again for the support (as always on this forum) 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.