mgear-dev / mgear4

mGear v.4.x.x (python 3 ready) https://mgear4.readthedocs.io
MIT License
264 stars 93 forks source link

Rigbits: PROXY GEO #196

Closed miquelcampos closed 1 year ago

miquelcampos commented 1 year ago

Tool to create proxy geometry like 3ds Max CAT or Ragdoll.

Building default positions

MEMO:

image image image

miquelcampos commented 1 year ago

@mottosso Hi! I am preparing this new tool for mGear. I didn't check yet in Ragdoll API but will be cool if we can re-use the proxy geo generated here to create the volumes in Ragdoll. Do you think that is possible? Just wanted to add this note here, so I don't forget to research this later ;)

mottosso commented 1 year ago

Yes, that should be possible.

Ragdoll is forgiving with regards to the topology of the meshes; they don't need to be closed volumes or have any particular edge or polygon layout. It will look only at the points and generate a closed convex hull from that. So the one thing your tool could do if it needs more precision in the mesh, like a foot or around the clavicle area, is to split a mesh such that there are multiple polygon islands. An island being some set of points that are connected in some way. For example, if you make 2 Maya polygon spheres and Combine them, they will be one mesh that you can connect to Ragdoll, but two separate islands. Ragdoll will look at each individual island when generating the collision geometry, so the more islands you have the greater precision you can get. Each island is convex, but the final combined shape doesn't have to be.

See here for examples and details.

miquelcampos commented 1 year ago

@mottosso Thanks for the heds up and info! The idea is to provide a mechanism to combine and separate the proxy geos, I will take in consideration the convex thing :)

miquelcampos commented 1 year ago

WIP image image

miquelcampos commented 1 year ago

image image