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 PlayCanvas
PlayCanvas treats GLB as a container asset. In the Editor, upload GLB (FBX is converted to GLB on import) to get a template with the model hierarchy; in engine-only code use app.assets.loadFromUrl(url, 'container') and asset.resource.instantiateRenderEntity().
- LOD: there is no built-in LOD component, so a small script compares camera distance and toggles the render components of the LOD0–LOD3 entities.
- Static trees can share a batch group to merge draw calls; for large forests use hardware instancing with
meshInstance.setInstancing()and a vertex buffer of transforms. - Leaves: glTF MASK sets
alphaTeston the StandardMaterial; use cull mode none for two-sided leaves. - Collision mesh: a collision component of type mesh plus a static rigidbody, with its render component disabled.