MeshSync icon indicating copy to clipboard operation
MeshSync copied to clipboard

Geometry nodes not synced when RealizeInstances node is used

Open Wozniax1 opened this issue 1 year ago • 4 comments

I attached a blend file with a geometry node setup that is not showing in Unity when sync is enabled. GN_Curve_Array.zip

Another sync issue I noticed is when I used Delete Geometry node to remove a face from a cube it works in blender but in Unity unchanged cube is synced. It is synced correctly only when geometry node modifier is applied.

Wozniax1 avatar Sep 16 '22 23:09 Wozniax1

Thanks for your feedback @Wozniax1.

If you enable the option to "bake modifiers" in MeshSync and go into Object mode in blender, the mesh should be synced correctly. We do not currently support applying modifiers like geometry nodes in edit mode.

For the "delete geometry" node to work you also need to enable the "bake modifiers" option and it should work.

schinkowski avatar Sep 20 '22 14:09 schinkowski

Hi, thanks for clarification.

Bake modifiers option applies the modifiers, so it is not using geometry nodes anymore, and I cannot have separate instances. I have whole model as one mesh instead.

Wozniax1 avatar Sep 20 '22 19:09 Wozniax1

I think the problem comes from the realize instances node. That node turns the instances into actual geometry and joins them to a single mesh. You would need to find a way to make it work without that node so they remain instances. I'm not sure how you could achieve the same result with that though because you are deforming the instances along the curve so each instance needs to be different.

schinkowski avatar Sep 21 '22 14:09 schinkowski

Thanks for explanation

Wozniax1 avatar Sep 21 '22 15:09 Wozniax1

Closing. Feel free to reopen if there are any more related questions.

sindharta avatar Nov 02 '22 04:11 sindharta