About the Pixel art style
Pixel-art models keep real 3D geometry but texture it with deliberately small images, so the pixels stay sharp at any distance.
- Textures must be sampled with nearest/point filtering; bilinear filtering blurs them. In glTF the sampler is stored as NEAREST, and most engines pick it up on import.
- Avoid lossy texture compression that smears pixel edges; small textures cost little memory anyway.
- Leaves are alpha-tested cards with hard pixel edges, no soft alpha and no sorting.
- Geometry stays simple, so draw calls and triangle counts are close to low-poly.
For the full look, pair the models with a low internal render resolution or a pixelation post-effect. Typical genres: retro adventures, roguelites, farming and exploration games, 2.5D platformers.
Using it in Bevy
Bevy loads glTF/GLB through the AssetServer: asset_server.load(GltfAssetLabel::Scene(0).from_asset("tree.glb")), spawned with SceneRoot; individual meshes and materials are addressable by label. FBX and OBJ need third-party crates, so GLB is the format to use.
- LOD: give the LOD0–LOD3 entities a
VisibilityRange(start and end margins) for distance switching with dithered crossfade — Bevy's HLOD mechanism. - Leaves: glTF alphaMode MASK becomes
AlphaMode::Mask(cutoff)onStandardMaterial, and double-sided materials disable back-face culling. - Entities that share a mesh and material are batched and instanced automatically, so many tree copies stay cheap.
- Collision: Bevy has no built-in physics; build a collider from the collision mesh with Avian or bevy_rapier.