Giter VIP home page Giter VIP logo

Comments (3)

HeinzBenjamin avatar HeinzBenjamin commented on July 30, 2024

Hello there,
thanks a lot. Currently I don't plan to shift to 1.2 as I don't have enough time.
I actually never had the issues discussed in the thread you shared. Did you already try reading the buffers? Did it work?
I didn't chose x64-only support for a particular reason. I simply thought more people had x64 machines at this point and didn't manage to do both yet. If there's demand I can share an x86 version too. Would you need that?
Best
Ben

from flexcli.

digitalwannabe avatar digitalwannabe commented on July 30, 2024

hey ben, thanks for coming back to me.

I have tinkered quite a lot with your repo and did get sharing buffers on gpu to work in general- I had to add a second constructor for your Flex class, which accepts a pointer to the context of my app's renderer (I'm using vvvv), so I could create a dx11 buffer on that context, which I then registered with flex using NvFlexRegisterD3DBuffer....I did get back the particle positions, but I didn't try any further, as the original poster in the link above is the guy who has written the vvvv renderer I'm working with- if he didn't succeed, I surely won't. Also, as I found out now, the changelog for 1.2 states "Add support for device NvFlexBuffers on D3D" http://physxinfo.com/news/12866/nvidia-flex-1-2-0-is-released/ - so I assume they are just not fully supported before....

Anyways, in the meantime I've made all the necessary changes to your code to support version 1.2, no implementation of new features, only a port of the existing code; it compiles fine, however, for some reason vvvv doesn't find the new NvFlex....dlls. Not sure what's going on, but I think/hope it's unrelated to the actual code- if you find time you can see if it works for you:
https://github.com/digitalwannabe/FlexCLI

here's the minimal changes which would need to be reflected in grasshopper nodes:

Parameters:
-no more "isFluid" (set via new featureMode enum, which is not exposed to the user yet)
-no more plasticThreshold/plasticCreep, now part of each rigid
-no more SortAxis (don't know where it's gone)

plasticThreshold and plasticCreep; 2 more inputs for
-RegisterSoftBody
-SetRigids
-RegisterCustomConstraints

internal changes:

  • new SolverDescription, 2 new values, maxContactsPerParticle and featureMode, set to constant values atm
  • NvFlexUpdateTriangleMesh has been changed to a float4 Buffer as input, I have changed FlexCollisionGeometry accordingly

I have tried to mark all my changes to the original code with //dw

best
clemens

from flexcli.

digitalwannabe avatar digitalwannabe commented on July 30, 2024

I forgot one more change, I have replaced GetRigidTransforms with GetRigids- it can now give back new rest positions/normals due to plastic deformations, also some other stuff which I believe is not necessary (offset, indices, stiffness, threhold, creep)....best

from flexcli.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.