Giter Site home page Giter Site logo

Comments (4)

williamljb avatar williamljb commented on August 21, 2024

Hi xiangdonglai,

The current version does not support this. However, it only requires very few changes. I posted a version of the simulation code here, where it is used to generate synthetic data in my other project. The major difference will be in arcsim/src/obstacle.cpp, where I changed the obtacle I/O to support per-frame obstacle. There are also other minor engineering changes such as flags/config params, etc.

I think these changes can be directly applied to the differentiable code, as long as the obstacles are not used for gradient computation.

from differentiablecloth.

xiangdonglai avatar xiangdonglai commented on August 21, 2024

Thank you for your quick response. I am wondering what you mean exactly by "the obstacles are not used for gradient computation". For example, is it okay if we do not require the gradients with respect to the obstacles, but the obstacles still influence the cloth during simulation?

from differentiablecloth.

williamljb avatar williamljb commented on August 21, 2024

Oh, what I said was actually not correct. On the one hand, since the obstacles affect the cloth motion, their values are indeed in the computation graph (what I wanted to say is that they are basically constants). On the other hand, if you want to optimize the position of the obstacles, it is also possible by setting it as a variable, although you may have to save the mesh to the hard drive for each iteration, which is only a matter of implementation. Sorry for the confusion!

from differentiablecloth.

xiangdonglai avatar xiangdonglai commented on August 21, 2024

I see, thank you.

from differentiablecloth.

Related Issues (13)

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.