freezy / freezy/VisualPinball.Engine

Table Import: Share mesh duplicates

Open
#230 6 comments 0 reactions 0 assignees View on GitHub
enhancement geometry
Dominant language
C#
Stars
508
Forks
73
Avg merge
43m
Merged PRs (30d)
3

Description

For the hybrid renderer to instance objects, duplicate mesh assets need to be sharing the same base mesh. On import, duplicate meshes should be identified and have their mesh component set to a common mesh for that element. For meshes that are the same but a different scale, the mesh should be shared and the transform scaled accordingly. Flipped meshes, meshes who's transform has a negative scale on any axis, can remain a separate mesh as the instancing does not support negatively scaled instances.

Vert count + bounds total volume or name matching may catch most instances.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.