Jump to content

Yannci

Members
  • Content count

    7
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

1 Neutral

1 Follower

About Yannci

  • Rank
    Peon
  • Birthday 08/08/1991

Personal Information

  • Name
    Yannic
  • Location
    Stuttgart, Germany

Recent Profile Visitors

442 profile views
  1. First of all, the Visual Studio version is only indirectly connected to your problem. It's the toolchain/toolkit that has to match. The toolkit declares the compiler version. So you are able to use Visual Studio 2017 with the toolkit version 14. If your build finishes without errors the problems seems to be the library itself. DLL's are normaly placed in your Users directory in the houdini17/dso folder. This directory is automatically appended to the HOUDINI_DSO_PATH. If think this directory is set in the CMake files shipping with the HDK (houdini/install/dir/toolkit/cmake). Haven't proofed it but seems reasonable. If there is no .dll file, Houdini can't load it. If it's there, set the HOUDINI_DSO_ERROR variable to 1 or 2 and you will get output in the console during startup related to loaded libraries. Maybe there you find the reason and solution for your problem. If your compiled library contains a custom operator, maybe one of the hook functions for registering the node in houdini is missing. Or maybe you are using the wrong compiler version. Then you should go to my first sentence and google around. But I would recommend that anyway. Best Yannic
  2. You're welcome! Haven't tried both ways to be honest but wanted to mention it. Would be cool if you could share your experiences!
  3. If you're using Qt it would be native c++ application (I assume we are talking about the Framework and not the wrapper library). You could then launch it as standalone Qt Application from your menu. A guess from my side would be, if your own library is kind of simple, to use the ctypes python module which allows you to directly load a dynamic library into the RAM and use it in your python code. I haven't tested it in anyway and it could be a hassle getting this to work. Another option is to use e.g boost python which let's your write simple c++ code to wrap your library functions in python code.
  4. Your welcome! Glad that I could help you.
  5. I found the solution a few hours ago: The force and torque vectors seem to be uninitialized when passed to the getForceSubclass() method. Populating them with values is absolutely neccessary after creating the force on the object. Hopefully someone can profit from my mistake in the future.
  6. Hello everybody, I'm currently working on a two-way rigid body coupling with SPH simulations in Houdini. Everything is working out fine. Execept from one of the key points. The two way coupling. The SPH Solver is running in Houdini, it reacts to Houdinis rigid bodys, get's its correct data etc. To apply the corresponding velocitys and torque to the rigid body I subclassed SIM_Force and implemented the virtual getForceSubclass method. This method has a UT_Vector for force and torque as parameter. If I add to this vectors arbitray values (even with 0, 0, 0) my rigid body is freaking out. If I put a gravity force node in the simulation and set it's values to 0 for all components it looks better until some point where my rbd seems to disappear. Using the torque vector this happens often on the first simulation frame. I think that I did all as in the SIM_ForceOrbit example in the HDK: I derived my class from SIM_Force I overrode getForceSubclass, getForceOnCircleSubclass, getForceOnSphereSubclass (the last two just call getForceSubclass) I overrode the getOptimalForceSamplingSubclass which returns SIM_FORCE_SAMPLEPOINT because the rbd is only represented with it's pivot point. The data get's places in the SIM_Container (Forces) as every other Forces, too, so that it can be discovered by the bullet solver. I builded it as Force AutoDOP Node and also as a simple Force Data that is created with the SIM_DATA_CREATE Macro on the Object. None is working. printing the content of the position and mass, passed in to the getForceSubclass method, on the console shows reasonably values Any suggestions? Is there a better way to achieve what I try to do, I think the RBD_State or other Data is not the way to go. Best regards and a big thanks to everyone helping me out. Yannic
  7. You call SOP_Circle::cookMySop in your SOP_myCircle::cookMySop method. It's a virtual method, so you just have to override it. So remove your call to the baseclass cookMySop and I think you should be done and get your attribute.
×