Home › Forum › SOFA › Programming with SOFA › Collision in CUDA
Tagged: 64_bits, Linux_ubuntu, SOFA_other
- This topic has 0 replies, 1 voice, and was last updated 8 years, 2 months ago by Binesh.
Viewing 1 post (of 1 total)
-
AuthorPosts
-
27 October 2016 at 16:50 #7693BineshBlocked
I have made a simple model for testing a collision of tringlemodel to spheremodel in the file sample_nocuda_collision.scn and everything is ok.
then I have added cuda plugin and changed my triangle mesh to cuda template in teh file sample_cuda_collision.scn but there is no collision. between triamglemodel and sphere.
I have attached my scene and required mesh data.
Also I have attached a snapshot of my cmake config for cuda.I used ubuntu 14.04, cuda 7.5, gcc 4.8 and the latest source on master branch.
cmakeConfig.png
diff.png
mesh
scene
scene_nocuda********
No cuda<?xml version="1.0"?> <Node name="Root" dt="0.02" > <VisualStyle name="visualStyle1" displayFlags="showAll" /> <DefaultPipeline name="DefaultCollisionPipeline" verbose="0" draw="0" depth="6" /> <BruteForceDetection name="Detection" /> <Gravity name="gravity1" gravity="0 0 -10" /> <MinProximityIntersection name="minProximityIntersection5" /> <DefaultContactManager name="Response" response="default" /> <DefaultCollisionGroupManager name="Group" /> <Node name="node1" > <EulerImplicitSolver name="eulerImplicitSolver0" /> <CGLinearSolver template="GraphScattered" name="cGLinearSolver1" /> <MeshGmshLoader name="loader" filename="flat_tri.msh" trianglesGroups=" -1 0 486" /> <TriangleSetTopologyContainer name="triangleSetTopologyContainer3" position="@loader.position" edges="@loader.edges" triangles="@loader.triangles" /> <TriangleSetTopologyModifier name="triangleSetTopologyModifier4" /> <TriangleSetTopologyAlgorithms template="Vec3d" name="triangleSetTopologyAlgorithms5" /> <TriangleSetGeometryAlgorithms template="Vec3d" name="triangleSetGeometryAlgorithms6" /> <MechanicalObject template="Vec3d" name="mObject9" position="0 0 0" velocity="0 0 0" force="0 0 0" externalForce="0 0 0" restScale="1" /> <UniformMass template="Vec3d" name="uniformMass2" filename="unused" /> <TriangularFEMForceFieldOptim template="Vec3d" name="triangularFEMFFOptim7" /> <TTriangleModel template="Vec3d" name="tTriangleModel18" tags="CarvingSurface" selfCollision="1" /> <FixedConstraint template="Vec3d" name="fixedConstraint0" indices="0 10 20 30 40 50" /> </Node> <Node name="node2" > <EulerImplicitSolver name="eulerImplicitSolver0" /> <CGLinearSolver template="GraphScattered" name="cGLinearSolver1" /> <MechanicalObject template="Vec3d" name="mObject2" position="0 0 5 0.5 0 5 0 0.5 5" velocity="0 0 0" force="0 0 0" externalForce="0 0 0" restScale="1" /> <UniformMass template="Vec3d" name="uniformMass3" totalmass="1" filename="unused" /> <TSphereModel template="Vec3d" name="tSphereModel3" tags="CarvingTool" selfCollision="1" /> <UniformVelocityDampingForceField template="Vec3d" name="uniformVelocityDampingFF4" /> </Node> </Node>
Cuda
<?xml version="1.0"?> <Node name="Root" dt="0.02" > <RequiredPlugin name="requiredPlugin0" printLog="1" pluginName="SofaCUDA" /> <VisualStyle name="visualStyle1" displayFlags="showAll" /> <DefaultPipeline name="DefaultCollisionPipeline" verbose="0" draw="0" depth="6" /> <BruteForceDetection name="Detection" /> <Gravity name="gravity1" gravity="0 0 -10" /> <MinProximityIntersection name="minProximityIntersection5" /> <DefaultContactManager name="Response" response="default" /> <DefaultCollisionGroupManager name="Group" /> <Node name="node1" > <EulerImplicitSolver name="eulerImplicitSolver0" /> <CGLinearSolver template="GraphScattered" name="cGLinearSolver1" /> <MeshGmshLoader name="loader" filename="flat_tri.msh" trianglesGroups=" -1 0 486" /> <TriangleSetTopologyContainer name="triangleSetTopologyContainer3" position="@loader.position" edges="@loader.edges" triangles="@loader.triangles" /> <TriangleSetTopologyModifier name="triangleSetTopologyModifier4" /> <TriangleSetTopologyAlgorithms template="CudaVec3f" name="triangleSetTopologyAlgorithms5" /> <TriangleSetGeometryAlgorithms template="CudaVec3f" name="triangleSetGeometryAlgorithms6" /> <MechanicalObject template="CudaVec3f" name="mObject9" position="0 0 0" velocity="0 0 0" force="0 0 0" externalForce="0 0 0" restScale="1" /> <UniformMass template="CudaVec3f" name="uniformMass2" filename="unused" /> <TriangularFEMForceFieldOptim template="CudaVec3f" name="triangularFEMFFOptim7" /> <TTriangleModel template="CudaVec3f" name="tTriangleModel18" tags="CarvingSurface" selfCollision="1" /> <FixedConstraint template="CudaVec3f" name="fixedConstraint0" indices="0 10 20 30 40 50" /> </Node> <Node name="node2" > <EulerImplicitSolver name="eulerImplicitSolver0" /> <CGLinearSolver template="GraphScattered" name="cGLinearSolver1" /> <MechanicalObject template="Vec3d" name="mObject2" position="0 0 5 0.5 0 5 0 0.5 5" velocity="0 0 0" force="0 0 0" externalForce="0 0 0" restScale="1" /> <UniformMass template="Vec3d" name="uniformMass3" totalmass="1" filename="unused" /> <TSphereModel template="Vec3d" name="tSphereModel3" tags="CarvingTool" selfCollision="1" /> <UniformVelocityDampingForceField template="Vec3d" name="uniformVelocityDampingFF4" /> </Node> </Node>
-
AuthorPosts
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.