Giter VIP home page Giter VIP logo

Comments (6)

mtamis-NV avatar mtamis-NV commented on July 19, 2024

delta points in the direction of travel of the triangle center (relative to the wind).
Drag acts in the opposite direction, as it should slow down the movement.
Hope that clears things up.

from nvcloth.

a908778387 avatar a908778387 commented on July 19, 2024

Oh, I see! I got wrong about understanding “air drag”. Now everything is clear! Thanks a lot! @v@

from nvcloth.

a908778387 avatar a908778387 commented on July 19, 2024

Hello, I have two problem about wind:

  1. "delta points in the direction of travel of the triangle center (relative to the wind).", But I found this code : T4f delta = current - previous + wind; Usually, relative to a speed, we use subtraction,why here wind is added to the delta。

// orthogonal to delta, in delta-normal plane, same length as delta
T4f liftDir = cross3(cross3(delta, normal), delta * scale);
I found the annotation the length should same as delta,but cross3(delta, normal) will mutiply a sinTheta,should the code to be like this “T4f liftDir = cross3(cross3(delta, normal), delta * scale)/cosTheta;”?
NvCloth work fine in my project, but the wind always makes me confused。 thanks a lot!

from nvcloth.

a908778387 avatar a908778387 commented on July 19, 2024

Sorry the code should be “T4f liftDir = cross3(cross3(delta, normal), delta * scale)/sinTheta;” ?

from nvcloth.

mtamis-NV avatar mtamis-NV commented on July 19, 2024

I agree that this code is a bit confusing.
The sign of wind is already flipped in this line:
result.mWind = transform(result.mRotationMatrix, translation - wind) & maskXYZ;
in src\IterationState.h:298
I hope that helps.

from nvcloth.

a908778387 avatar a908778387 commented on July 19, 2024

thank you,I got it!

from nvcloth.

Related Issues (20)

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.