Unity-Technologies / com.unity.demoteam.hair

An integrated solution for authoring / importing / simulating / rendering strand-based hair in Unity.
Other
719 stars 97 forks source link

Is it possible to export generated / simulated results as an FBX (or other) #37

Open JoePotter opened 1 year ago

JoePotter commented 1 year ago

Hi there,

Great package, I'm getting good results for foliage props using the strand based system.

I have the Unity FBX exporter package installed also, but it fails to export the simulated strand-based resulting mesh. Is there any way of successfully exporting this mesh without making a bespoke exporter myself?

Cheers.

fuglsang commented 1 year ago

Hi, and thank you for the feedback!

Currently there is no builtin way to export a mesh from the system. The current modes of rendering are based around view-dependent geometry, which isn't ideal for external use. An export feature is planned for later, along with an option for rendering strands as view-independent geometry (tubes).

If you want to make your own exporter, I would recommend taking a look at the SolverData struct where the various buffers are annotated.