oldiesgoodies Posted July 5, 2011 Share Posted July 5, 2011 Hi Is it possible to code some HDK stuff with C? I know HDK is c++ but i am wondering if someone without knowledge of c++(but with c knowledge) managed to write some HDK stuff? Quote Link to comment Share on other sites More sharing options...
symek Posted July 6, 2011 Share Posted July 6, 2011 My experience is limited, so you may wait for some pro answer, but I suspect HDK doesn't differ here from any c++ code, judging after using a few times some C code based on general guidance from a popular faqs like this one. Generally I had to, at most, slightly change the code, so it could be compiled with g++, which in my case meant some clean ups in variables declaration/initialization. I would assume it's a cleaner way, than linking C objects. But who knows... (well, Edward knows for sure). Quote Link to comment Share on other sites More sharing options...
oldiesgoodies Posted July 8, 2011 Author Share Posted July 8, 2011 My experience is limited, so you may wait for some pro answer, but I suspect HDK doesn't differ here from any c++ code, judging after using a few times some C code based on general guidance from a popular faqs like this one. Generally I had to, at most, slightly change the code, so it could be compiled with g++, which in my case meant some clean ups in variables declaration/initialization. I would assume it's a cleaner way, than linking C objects. But who knows... (well, Edward knows for sure). Hey thanks for some insight. I am most concerned with including HDK C++ and include files. I doubt I will be making complicated stuff. I am rather curious about it. I am in the process of learning c++ anyways thanks Quote Link to comment Share on other sites More sharing options...
Jason Posted July 8, 2011 Share Posted July 8, 2011 If you are trying to keep things simple, you might want to consider looking at using inline C++ within python. This might let you take care of the (quite, er, verbose) C++ nonsense you need to deal with just to define a node and its parameters, and jump straight to coding in C right in the middle of it. http://www.sidefx.com/docs/houdini11.0/hom/extendingwithcpp You are going to have to deal with C++, yes, but you can program-by-example (hack up example code) and get going easily. If you want to access much of the UT_ utility classes then you're going to do that in C++; there is no simple plain C way of invoking any of those functions. Quote Link to comment Share on other sites More sharing options...
oldiesgoodies Posted July 8, 2011 Author Share Posted July 8, 2011 Jason that sounds like a superb idea. Thanks for the tip. 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.