Obi Official Forum
Help Can I get help? - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Help Can I get help? (/thread-4363.html)



Can I get help? - ziziza93 - 13-09-2024

I need to select specific regions in the OBI blueprint to run different cloth simulations, but using Unity’s built-in UI makes it challenging to isolate and configure those parts. Therefore, I would like to pre-select the points I need using tools like Vertex Groups and Vertex Paint in a 3D modeling program such as Blender, and then export this data via an FBX file. My goal is to select this data in the OBI blueprint in Unity. Could you provide a guide for this process?


RE: Can I get help? - josemendez - 13-09-2024

(13-09-2024, 10:02 AM)ziziza93 Wrote: I need to select specific regions in the OBI blueprint to run different cloth simulations, but using Unity’s built-in UI makes it challenging to isolate and configure those parts. Therefore, I would like to pre-select the points I need using tools like Vertex Groups and Vertex Paint in a 3D modeling program such as Blender, and then export this data via an FBX file. My goal is to select this data in the OBI blueprint in Unity. Could you provide a guide for this process?

Hi,

You can use the blueprint editors' texture import/export tools to create/paint your per-particle data in an external tool. The only prerequisite is for your mesh to be uv unwrapped and for its uvs to have no overlap, since otherwise multiple particles would map to the same location in the texture.

kind regards,


RE: Can I get help? - ziziza93 - 25-09-2024

(13-09-2024, 12:17 PM)josemendez Wrote: Hi,

You can use the blueprint editors' texture import/export tools to create/paint your per-particle data in an external tool. The only prerequisite is for your mesh to be uv unwrapped and for its uvs to have no overlap, since otherwise multiple particles would map to the same location in the texture.

kind regards,

Thank you for your answer.
Applying different blueprints to each object is resolved.

I want to implement it like the sewing function of the blender using the stitcher function you told me,
Is it possible to implement a similar function with a sticher, just like the blender with an edge attached with sewing?


RE: Can I get help? - josemendez - 25-09-2024

(25-09-2024, 08:58 AM)ziziza93 Wrote: Thank you for your answer.
Applying different blueprints to each object is resolved.

I want to implement it like the sewing function of the blender using the stitcher function you told me,
Is it possible to implement a similar function with a sticher, just like the blender with an edge attached with sewing?

Yes, you can call stitches.AddStitch(particle1, particle2) to add a stitch between any 2 particles, then call stitcher.PushDataToSolver() once you're done adding stitches.

If you want to do it the blender way you will need to detect mesh borders yourself, this isn't something Obi does for you. Simplest way is to go over all triangles in the mesh and figure out which edges appear only once, these will be border edges.

kind regards,