Skip to content

Add bevy_fbx, an FBX loader based on ufbx #19534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,14 @@ bevy_gilrs = ["bevy_internal/bevy_gilrs"]

# [glTF](https://www.khronos.org/gltf/) support
bevy_gltf = ["bevy_internal/bevy_gltf", "bevy_asset", "bevy_scene", "bevy_pbr"]
# [FBX](https://en.wikipedia.org/wiki/FBX)
fbx = [
"bevy_internal/bevy_fbx",
"bevy_asset",
"bevy_scene",
"bevy_pbr",
"bevy_animation",
]

# Adds PBR rendering
bevy_pbr = [
Expand Down Expand Up @@ -1162,6 +1170,17 @@ description = "Loads and renders a glTF file as a scene, including the gltf extr
category = "3D Rendering"
wasm = true

[[example]]
name = "load_fbx"
path = "examples/3d/load_fbx.rs"
doc-scrape-examples = true

[package.metadata.example.load_fbx]
name = "Load FBX"
description = "Loads and renders an FBX file as a scene"
category = "3D Rendering"
wasm = false

[[example]]
name = "query_gltf_primitives"
path = "examples/3d/query_gltf_primitives.rs"
Expand Down Expand Up @@ -3172,6 +3191,18 @@ description = "A simple way to view glTF models with Bevy. Just run `cargo run -
category = "Tools"
wasm = true

[[example]]
name = "scene_viewer_fbx"
path = "examples/tools/scene_viewer_fbx/main.rs"
required-features = ["fbx"]
doc-scrape-examples = true

[package.metadata.example.scene_viewer_fbx]
name = "FBX Scene Viewer"
description = "A simple way to view FBX models with Bevy. Just run `cargo run --release --example scene_viewer_fbx --features=fbx /path/to/model.fbx`, replacing the path as appropriate. Provides enhanced controls for FBX-specific features like material inspection and texture debugging"
category = "Tools"
wasm = false

[[example]]
name = "gamepad_viewer"
path = "examples/tools/gamepad_viewer.rs"
Expand Down
Binary file added assets/models/cube/cube.fbx
Binary file not shown.
Loading
Loading