defold / defold/defold

Add option to choose vertex data format in model (f32, f16, etc.)

Open
#10,967 1 comment 11 reactions 0 assignees View on GitHub
bob engine feature request render
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
2d 2h
Merged PRs (30d)
129

Description

**Is your feature request related to a problem? Please describe (REQUIRED):**
Reduce bundle size.

**Describe the solution you'd like (REQUIRED):**
It would be useful to add an option to select the vertex data format for models. For example:
32-bit float (f32) — current behavior
16-bit float (f16) — for reduced bundle size

I am not sure what is the best way. Choose vertex format in model component, or maybe something like texture profiles but for models.If we have model profiles in future it can be improved with more features and compression. Like this https://github.com/defold/defold/issues/9773

Also i am not sure it this format should worked for all model components. Or we need to have position, normals, uv as separate choose

For my case, it will be enought to have a simple dropdown option in the model component to choose the vertex format used for all components)position, normal, uv) of the model at once.

**Describe alternatives you've considered (REQUIRED):**
Use mesh and implement custom format.(but i lose all benefits from models)

**Additional context (OPTIONAL):**
For example in my last game meshsetc on 2 place by size in bundle report

Image

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.