MCPcopy Index your code
hub / github.com/DGriffin91/bevy_bistro_scene

github.com/DGriffin91/bevy_bistro_scene @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
54 symbols 80 edges 3 files 7 documented · 13%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Bevy Bistro Example

Note bevy 0.18 has an issue using compressed textures: https://github.com/bevyengine/bevy/issues/21490

Download scene from https://developer.nvidia.com/orca/amazon-lumberyard-bistro (or see link below for processed glTF files with instancing)

Reexport BistroExterior.fbx and BistroInterior_Wine.fbx as GLTF files (in .gltf + .bin + textures format). Move the files into the respective bistro_exterior and bistro_interior_wine folders.

demo

  • Press 1, 2 or 3 for various camera positions.
  • Press B for benchmark.
  • Press to animate camera along path.

To optionally convert the textures to KTX2 use: cargo run -- --convert. You need kram in your path to do this. It will convert all the textures to BC7 KTX2 zstd 0 using available_parallelism() and update the gltf files to use the KTX2 textures. Or use compress feature with --compress arg to generate compressed textures with mipmaps at runtime. --cache will additionally cache the compressed textures. So to run with cached runtime compression: cargo run --release --features compress -- --compress --cache

Alternate processed files with instancing (glTF files on discord):

  • Fixed most of the metallic from fbx issue by using a script that makes everything dielectric unless it has metal in the name of the material
  • Made the plants alpha clip instead of blend
  • Setup the glassware/liquid materials correctly
  • Mesh origins are at individual bounding box center instead of world origin
  • Removed duplicate vertices (There were lots of odd cases, often making one instance not match another that would otherwise exactly match)
  • Made the scene use instances (unique mesh count 3880 -> 1188)
  • Removed 2 cases where duplicated meshes were overlapping
  • Setup some of the interior/exterior lights with actual sources
  • Setup some basic fake GI
  • Use included scene HDRI for IBL

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 30
Class 15
Method 7
Enum 1
Interface 1

Languages

Rust100%

Modules by API surface

src/mipmap_generator.rs32 symbols
src/main.rs20 symbols
src/convert.rs2 symbols

For agents

$ claude mcp add bevy_bistro_scene \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page