Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
135 stars 2 forks source link

Problem: Bake something as walkable terrain, Solution: Return baked mesh from BakeMeshes node? #2441

Open mpmxyz opened 3 months ago

mpmxyz commented 3 months ago

Is your feature request related to a problem? Please describe.

A contact of mine is working on a tool to edit a heightmap-based terrain. The problem: He can't bake the terrain and make it walkable within the tool.

Describe the solution you'd like

I propose exposing the baked mesh to the user with an additional output ("BakedMesh"): grafik This would allow setting up a premade MeshCollider with non-default options.

Describe alternatives you've considered

waiting for component access and fishing the mesh out of the bake result

Additional Context

1801 also proposes more flexibility in the baking process.

Requesters

Magglor is the creator of the tool I mentioned.

Frooxius commented 3 months ago

What exactly is "BakedMesh" here? Is that the asset itself? The component provider? The slot that it's on?

mpmxyz commented 3 months ago

StaticMesh could be appropriate here. The asset itself cannot be assigned to properties - only the provider - if I understand the types correctly.

On the other hand if you look at RenderToTextureAsset, you may also consider an asset URI a valid solution: grafik