omegaiota / DiffCloth

Code repository for our paper DiffCloth: Differentiable Cloth Simulation with Dry Frictional Contact
https://people.csail.mit.edu/liyifei/publication/diffcloth/
MIT License
339 stars 31 forks source link

Restore windows support. #9

Closed fire closed 1 year ago

fire commented 1 year ago

Hi!

I spent some time getting Windows support.

https://github.com/omegaiota/DiffCloth/compare/main...fire:differentiable_cloth:drop_python

Maybe you have some use of this.

It's a bit messy.

  1. ran clang format
  2. skipped python integration
  3. use c++17 std::filesystem
  4. some changes to the cmakelist for glfw and glad
  5. misc new lines add to printed string
  6. the global enum POINT is already defined. Rename to CAMERA_POINT.
  7. Does not automatically do the required steps to copy glfw3.dll, libnangui.dll and libomp.dll to the build directory.
  8. Had to disable preview after every iteration because of a crash in the renderer
  9. Easiest was to upgrade nanogui for the glad deps
omegaiota commented 1 year ago

Hi Fire, I'll take a look at this and find some time to work on build support for Windows. Your notes will be very helpful.

fire commented 1 year ago

cmake -DGLFW_USE_WAYLAND=ON ..