Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Only render ropes
#7
(11-03-2021, 03:52 PM)josemendez Wrote: Still unable to get this to happen, Obi 6.0.1, Unity 2019.4.
When disabling the solver, the engine is no longer updated. The rope renderer also stops updating the mesh, but the mesh is still assigned to the MeshRenderer so it should be rendered. Here's a video:



Now that I think of it, this might not be what you're after. You want to override particle positions with custom data, but still have the mesh updated from the particle positions. For that, you'll have to call the actor's Interpolate() method, which interpolates particle positions and triggers mesh update.

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.

I'm setting the particles directly in the solver, I assume I can skip the interpolation step and call ObiRopeExtrudedRenderer.UpdateRenderer() directly?
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