zoukankan      html  css  js  c++  java
  • 昨晚用蹩脚的英文上了nvidia的官方论坛问physx的cloth和fluid的碰撞问题

    昨晚用蹩脚的英文上了nvidia的官方论坛问physx的cloth和fluid的碰撞问题

    Hi,everyone.I have a problem about the interaction between fluid(SPH) and cloth .My Physx version is 2.8.4 .I use the cloth and fluids to simulate blood flow in the vessel.But i found there are some particles pass through the cloth just like the cloth is transparent. Is there some bugs about the Collision Detection between the cloth and fluid(SPH)??? Or how can i deal with this problem? Thanks
    http://pic002.cnblogs.com/images/2012/283027/2012030122324714.jpg

    here are the source code
    //fluid
    NxFluidDesc fluidDesc;
    fluidDesc.maxParticles = MAX_PARTICLES;
    fluidDesc.kernelRadiusMultiplier = 2.0f;
    fluidDesc.restParticlesPerMeter = 40.0f;
    fluidDesc.motionLimitMultiplier = 3.0f;
    fluidDesc.packetSizeMultiplier = 8;
    fluidDesc.collisionDistanceMultiplier = 0.3;
    fluidDesc.stiffness = 50.0f;
    fluidDesc.viscosity = 80.0f;
    fluidDesc.restDensity = 1000.0f;
    fluidDesc.damping = 0.0f;
    fluidDesc.restitutionForStaticShapes = 0.2f;
    fluidDesc.dynamicFrictionForStaticShapes = 0.05f;
    fluidDesc.simulationMethod = NX_F_SPH;

    fluidDesc.flags |=NxFluidFlag::NX_FF_COLLISION_TWOWAY; 

    //cloth
    NxClothDesc clothDesc;
    clothDesc.globalPose.t = NxVec3(0,18.2,-11);
    clothDesc.globalPose.M.rotX(0.35f);

    clothDesc.thickness = 0.1f;
    clothDesc.density = 0.5f;
    clothDesc.bendingStiffness = 1.0f;
    clothDesc.stretchingStiffness = 1.0f;
    clothDesc.dampingCoefficient = 0.10f;
    clothDesc.friction = 0.3f;
    clothDesc.collisionResponseCoefficient = 0.4f;

    clothDesc.tearFactor = 2.0f;


    clothDesc.flags |= NX_CLF_BENDING;

    clothDesc.flags |= NX_CLF_DAMPING;

    clothDesc.flags |= NX_CLF_COLLISION_TWOWAY;


    clothDesc.flags |= NX_CLF_TEARABLE;
    //fluid interaction
    clothDesc.flags |=NX_CLF_FLUID_COLLISION;
    clothDesc.selfCollisionThickness=10.0f;



    if (gHardwareSimulation)
    clothDesc.flags |= NX_CLF_HARDWARE;




    老外是这样回答的

    • Retucula March 1 Quote Accept Reject Flag
      Posts: 19
      Collision is performed between cloth particles and fluid particles - so try to increase cloth resolution.

      Also, that was "experimental feature".. not fully functional.
    • 0340181048 12:03AM Quote Accept Reject EditFlag
      Posts: 2
      Retucula said:

      Collision is performed between cloth particles and fluid particles - so try to increase cloth resolution.

      Also, that was "experimental feature".. not fully functional.



      Is this feature improved in Physx 3.1??




    • 0RetuculaRetucula 2:00AM Quote Accept Reject Flag
      Posts: 19
      Afaik, it was removed actually.
       
       
       
      按着他的说法,看看能不能提高cloth的网格密度来提高碰撞的效果。结果一试,还真是这样。 老外V5


  • 相关阅读:
    视觉三维重建中不同三角网格视角的选择
    最小二乘求解常数k使得kx=y(x,y为列向量)
    STL常用
    2D-2D:对极几何 基础矩阵F 本质矩阵E 单应矩阵H
    Ubuntu常用软件
    ubuntu linux 安装分区
    单向链表
    1.ssm web项目中的遇到的坑--自定义JQuery插件(slide menu)
    模板引擎freemarker的使用(二)
    模板引擎freemarker的使用(一)
  • 原文地址:https://www.cnblogs.com/qwcbeyond/p/2377851.html
Copyright © 2011-2022 走看看