Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Only render ropes
#8
(11-03-2021, 04:15 PM)Jesse Wrote: Thanks for the video! I've tested it in the same sample scene and I've found that it only works if I disable the ObiSolver on runtime. I had mine disabled in the editor. It makes sense that has to call Interpolate() at least once for the mesh to update.

Disabling it in editor will prevent the mesh from even being generated, so that's expected behavior.

(11-03-2021, 04:15 PM)Jesse Wrote: I'm setting the particles directly in the solver, I assume I can skip the interpolation step and call ObiRopeExtrudedRenderer.UpdateRenderer() directly?

The data flow is: particles (ObiActor)->smoothed curve (ObiPathSmoother)->updating the mesh(ObiRopeExtrudedRenderer). To update the mesh, the renderer uses points from the smoothed/decimated curve, not particle positions directly.

At the very least you'll need to call the ObiPathSmoother's GenerateSmoothChunks() method, followed by the renderer's UpdateRenderer() method.

cheers!
Reply


Messages In This Thread
Only render ropes - by Jesse - 11-03-2021, 09:30 AM
RE: Only render ropes - by josemendez - 11-03-2021, 12:00 PM
RE: Only render ropes - by Jesse - 11-03-2021, 02:07 PM
RE: Only render ropes - by josemendez - 11-03-2021, 02:47 PM
RE: Only render ropes - by Jesse - 11-03-2021, 03:00 PM
RE: Only render ropes - by josemendez - 11-03-2021, 03:52 PM
RE: Only render ropes - by Jesse - 11-03-2021, 04:15 PM
RE: Only render ropes - by josemendez - 11-03-2021, 04:37 PM
RE: Only render ropes - by Jesse - 11-03-2021, 04:43 PM
RE: Only render ropes - by Jesse - 12-03-2021, 11:17 AM
RE: Only render ropes - by josemendez - 12-03-2021, 11:25 AM
RE: Only render ropes - by Jesse - 12-03-2021, 02:41 PM