Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Placing objects on volume
#3
After a deeper look, here is my answer:
The spline.Interpolate method takes as an input a TF. A TF is not equally distributed on a spline. Please read this to learn more about it.
On the other hand, m_VolumeData.InterpolateVolume takes a value between 0 and 1 that is proportional to the length.

This difference beetween the two is already handled by the Volume Spots CG module, so using it will solve your issue. But if you have any reason to not use the Volume Spots module, simply replace the first parameter of your InterpolateVolume call by this:
Code:
spline.TFToDistance(tfPosition) / spline.Length

Also, on a different subject, if you are using Curvy 5.0.0, you will notice a compiler warning telling you that GetRotatedUp is obsolete and will be removed in a future update. Just inline this method in your own script to solve this. By inlining it, you will also benefit from the side effect which is that you can avoid computing the tangent twice.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
Placing objects on volume - by Anthonyk - 12-31-2018, 02:14 AM
RE: Placing objects on volume - by _Aka_ - 12-31-2018, 10:34 AM
RE: Placing objects on volume - by _Aka_ - 12-31-2018, 11:10 AM
RE: Placing objects on volume - by Anthonyk - 12-31-2018, 02:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Replace deform mesh on volume spots Kokoriko49 1 2,313 06-09-2025, 06:49 PM
Last Post: _Aka_
Photo Volume Spots problem with spacing Bond007 3 2,536 01-20-2025, 12:27 PM
Last Post: _Aka_
  Method of scattering objects along spline joebain 1 1,385 11-26-2024, 03:20 PM
Last Post: _Aka_
  Duplicate Volume references become null joebain 5 3,232 11-18-2024, 10:46 AM
Last Post: joebain

Forum Jump: