Jump to content

maphysart

Members
  • Content count

    11
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About maphysart

  • Rank
    Peon

Personal Information

  • Name
    sha
  1. Hi,I just installed the optix 2.5 and tested the collision sample. It is great and very fast. And I wish to use optix in my personal project, in which there are a lot of dragonflies flying between growing lsystem flowers. I found that there is some method using SDF and vops network to implement the collision avoidance, but it is slow. Besides, I really hope to make advantage of the gpu power. As far as I know, optix can accpet the exported obj files, but I do not know how to figure out which gemoetry primitives are collided with the dragonlflies. If I know, the flowers geometry could get feedback when collided, like animation or color changes. Besides, I read the documents within the optix sdk and souce code for the quickstart tutorial. I did not understand which primitive types are accepted by optix. In pbrt, the primitive types are very clear, sphere, triangle mesh, cylinder, etc. I did not find conterparts in optix. I really appreciate your help or any suggestions. Thanks. Maybe I should post the question in nvidia forum.
  2. Thanks a lot to Michael. I found DATAPATH and OBJID, and know more about Sop solver. They are global parameters, so I did not find them in the OUT node. But there are still some questions: I add a float parameter in the copy_per_impact node within geosolver sop network. and put in `stamp("../OUT", "ST", 0)` I wish to get the simulation time from the dent outside this sop network. But it did not work. Besides, I searched "path" or "path syntax" in the help doc and found nothing. Could you or anybody give me more detail about the path syntax? Thanks .
  3. I try the dentingwithpop sop solver example hip in the help file. Inside the dopnetwork solvergeo, there are two expression I can not understand. 1st. in the copy_per_impact node: dopnumrecords("../..", stamp("../OUT", "OBJID", 0), "Feedback", "Impacts") 2nd in the merge_dop_object node: `stamps("../OUT", "DATAPATH", "../..:dentme/Geometry")` so what is the meaning of OBJID? I am confused because the OUT is only a null node. It does not have any attributes or parameters called OBJID. Besides, What is DATAPATH? I could not find it in the global or standard variables. Futhermore, why use ../..: , what is the meaning of ":" ? Thanks a lot. I hope you can give me some hints.
  4. Obj import node fails to work in Domino tutorial?

    Thank you for your help. I try both methods you suggest. Both of them works. Great. And your modified version is more concise and directly. I prefer to use rbd point in the future. Yes, as what you said, the difference is not obvious but big enough. Besides, I should turn off the deforming the geometry option. it becomes really faster. thanks again.
  5. Obj import node fails to work in Domino tutorial?

    here is discussion about the obj import. http://forums.odforce.net/index.php?showtopic=5307 I tried according to this topic. But failed. The only difference between the hip file and mine is that I copied along the path. thanks for your suggestions.
  6. I am studying the Gnomon rigid body dynamics DVD and have a problem. the high res model did not move according to the simplified model when using the object import node. I find the tip in the forum. But the methods inside still failed to work. Please give me some hints. Thanks a lot. In the attachment is hip file. test2.hip
  7. But there is another confusion. Here I am studying the tutorial writen by Dan Letarte( thanks to him) and use the python codes directly. If I write the python functions myself, how could I debug the function and track the execution of the function step by step as the we could in Maya. It is well known that we could debug in the Maya enviroment with Visual Cpp. So how about Python in houdini? Thanks for your suggestions.
  8. Thank you very much. It works. Here is the code of the buildMenu function: def buildMenu(): import shlex accumNode = hou.node('.') pEntity = hou.Node.evalParm(accumNode, "pEntity") # because in the Entity order menu, the order of primitives are 0, so I modify the if block. if pEntity == 0: groupsList = hou.hscriptExpression("primgrouplist(opinputpath(\".\", 0))") else: groupsList = hou.hscriptExpression("pointgrouplist(opinputpath(\".\", 0))") names = "" if groupsList != "": for names in groupsList: check = shlex.split(groupsList) numGroups = len(check) i = 0 final = [] while i < numGroups: final += [check,check] i = i + 1 try: final except NameError: final = [] return final And below is the python menu script: hou.pwd().hdaModule().buildMenu() Thanks again.
  9. Thank you. I notice it. I set the menu script language to HScript in the parameter description. I failed once again. But when I set the menu script language to Python, it works better, still not good because I get the 'r', 'a', 'd' three letter the group list. I do not why. Could you give me more hints ? Thanks . In the attachment is the hip file and the otl file. accumulator_node.hip Accumulator.otl
  10. in the attachment is HDA tutorial Accumulator by Dan Letarte I still do not find out what is wrong with menu script when I try to get the primgroupelist from the input node. Thank you for your help. letarte_accumulatorTutorial.pdf
  11. I am a newbie and am trying the tutorial by Dan Letart, building a HDA with python. Here is the tutorial. http://203.208.39.132/search?q=cache:3hlSu...IN2hJZ0qaKbH9hg but the menu script always failed to work. I do not know why. Here is the script according to the tutorial: echo `strreplace(pythonexprs("hou.pwd().hdaModule().buildMenu()"), "'", "\'")` this step is to format the group in the input node above and display these groups in the parameter box in this HDA. I really copy the script to the menu script. And I check the python function buildMenu, which is correct. I am confused. Please help me. Thanks a lot.
×