EvonX
Inside every 3D game EvonX builds

What are mipmapsSharp at every distance, light on the phone.

Mipmaps are smaller copies of a texture that the graphics card reads when a surface is far away. They stop textures from shimmering and save the GPU work, and they cost a third more memory. In an EvonX game every model's textures travel as WebP inside the GLB and the engine builds their mipmaps as they load. This page shows the price with real files.

Mip levelcow.glb · cow-color.webp
three.js · trilinearWebP 69.6 KB2,048 × 2,04812 levels
scaled view
drawn 2,048 px wide
the GPU reads
level 0 · 2,048 × 2,048whole chain on the GPU: 21.3 MB

Close up: level 0, the full 2048 map

How it works

From a model's textures to the pixel you see.

None of this is a setting you look for. It is what happens to the textures of every 3D model in your game.

  1. Step 1

    Each model brings three maps

    A 3D model in an EvonX game wears a colour map, a normal map for the small bumps and a metal-roughness map for how shiny each point is. All three are stored as WebP inside the model's GLB file.

  2. Step 2

    Their size comes from how the model is made

    A character that moves is rigged from 1024-pixel pictures, so its maps come back at 1024. In EvonX's own templates a brief can cap a model, as the Metro city does with 512 for its guns. Other models keep the size of the 3D service, 2048 in the files we measured.

  3. Step 3

    The engine builds the mip chain on load

    The game's three.js loader reads each texture's sampler, which asks for trilinear filtering, and builds every smaller level on the graphics card when the texture is uploaded. No file on disk carries the levels.

  4. Step 4

    Slanted ground gets anisotropic filtering

    Where a game's layer draws a road, a conveyor belt or a ground tile at a shallow angle, it turns on anisotropic filtering, 4 to 8 samples, so the surface stays sharp where plain mipmaps would blur it.

  5. Step 5

    Pixel art switches mipmaps off

    Pixel figures standing in a 3D world use nearest filtering with no mipmaps, so their hard pixel edges are never averaged into mush when the camera pulls back.

What are mipmaps

A mipmap is the same picture, halved until it is one pixel.

Mipmaps are a texture's pre-shrunk copies: the full picture, then half its width and height, then half again, down to a single pixel. A 1024 map has eleven levels. The tower is the real colour map of the police car in EvonX's Metro city, each layer one level; the lens shows the actual pixels of the level you pick, halved in your browser the way a graphics card builds them.

The table holds the price. On the graphics card each texel takes 4 bytes, so level 0 of this map is 4,194,304 bytes. All the smaller levels together add 1,398,100 more, a third on top, for a chain of 5,592,404 bytes. That third buys two things: distant surfaces stop shimmering, and the GPU reads far fewer bytes for a model that covers a handful of pixels.

police-car.glb · 1,024²WebP 54.2 KB
L3 · 128 × 128real pixels of this level

level 0 4,194,304+ 1,398,100 bytes (+33.3%) for every smaller levelwhole chain 5,592,404 bytes

What is mipmapping

Mipmapping picks the level that fits each pixel.

Mipmapping is the rule the GPU follows while it draws: for every pixel it works out how many texels fall under it and reads the level where that is about one. Near the camera that is level 0. Toward the horizon one screen pixel covers a whole patch of the pattern, and a small level already holds its average.

The floor is drawn pixel by pixel in your browser from Conveyor Smash's 256-pixel crate face. Turn mipmaps off and each pixel samples level 0 at a single point: the far rows break into noise and crawl as the floor moves. Turn them on and the GPU blends the two nearest levels, which is trilinear filtering, so the distance settles into a calm blur. Show levels colours each pixel by the level it reads, the bands an engine's debug view shows.

far: small levelsnear: level 0

crate-face.webp · 256 × 256 · tiled floor, drawn live

Texture size

Texture size should follow how big a thing is on screen.

A texture's resolution is its width and height in pixels, and its cost grows with the square: a 2048 map holds sixteen times the texels of a 512 one. The frame is 2048 pixels wide, and each real map sits inside it at its own scale, taken from six models EvonX shipped.

The pistol in a hand and the fighter Ren carry 512 maps; their three maps take 4 MB on the GPU with mips. The Metro houses and the rigged hero of Wanderwood Isles use 1024, 16 MB. The cow of Fresh Corner and the katana of the fighting game kept the 2048 their 3D service delivered: 64 MB for a sword of 369 triangles. Neither had a cap in its brief, and that is the honest gap. In a build, a texture's size still follows how the model was made, not yet how big it appears.

2048 frame2,048²

weapon-katana.glb · fighting · no cap: the 3D service's 2048

download, WebP338 KB3 maps
on the GPU, with mips64.0 MB3 maps
triangles369 

Texture memory

Small to download is not small on the GPU.

WebP makes a texture cheap to download, but a graphics card cannot sample WebP. The browser decodes it to raw pixels, 4 bytes each, and the mip chain adds its third. Each square is 1 MB of graphics memory; the speck beside the file name is the file you downloaded, drawn to the same scale.

The pistol's colour map is a 7.4 KB file and 1.33 MB on the GPU. The police car's is 54.2 KB and 5.33 MB. The cow's is 69.6 KB and 21.33 MB, more than 300 times its file. That is how a game can download quickly and still run short of memory on a phone, and why the size of a texture matters more than the size of its file. GPU-compressed formats such as KTX2 stay compressed in memory; EvonX ships WebP today, and the free KTX2 guide explains the difference.

  • pistol.glb512 × 512
    WebP file7.4 KB
    on the GPU: RGBA + mips1.33 MB186× the file
  • police-car.glb1,024 × 1,024
    WebP file54.2 KB
    on the GPU: RGBA + mips5.33 MB101× the file
  • cow.glb2,048 × 2,048
    WebP file69.6 KB
    on the GPU: RGBA + mips21.33 MB314× the file
1 square = 1 MBA KTX2 texture would stay compressed on the GPU. EvonX ships WebP today.

What you get

Textures handled without a settings panel.

Mipmaps on every model texture

The engine builds the chain as each model loads, with trilinear filtering, so distant surfaces stay calm instead of crawling.

Smaller maps for moving characters

A rigged character's maps arrive at 1024 pixels, a quarter of the texels of a 2048 map, which is a quarter of the graphics memory.

One light download format

Every map inside a model is WebP and every 2D picture is lossless WebP. The [game optimization](/features/game-optimization) page shows where that leaves a whole build.

Pixel art that stays crisp

Pixel figures skip mipmaps and use nearest filtering, so their edges stay exactly as drawn at any distance.

GPU memory, in numbers

See what KTX2 would change, with the free converter.

The free KTX2 converter turns a PNG, JPG or WebP texture into a .ktx2 file in your browser, with mipmaps, and shows the graphics memory it takes on your own device next to the original. It also opens .ktx2 files and has a calculator for a whole scene. EvonX itself ships WebP today.

Open the KTX2 converter

Honest limits

What EvonX does not do with textures.

No KTX2 or Basis textures

Textures ship as WebP, so on the graphics card they take their full decoded size. GPU-compressed formats are not part of a build today.

No texture size per role yet

Moving characters get 1024-pixel maps from the rigger, and EvonX's own templates can cap a model in its brief. Other models keep the 2048 pixels their 3D service made.

No texture streaming

A model's whole mip chain is built when the model loads. Levels are not fetched one by one as the camera moves.

Mipmaps cost a third more memory

Every 3D map pays 33% on top of its full size for its smaller levels. That is the standard trade, and EvonX keeps it for model textures.

3D is on the paid plans

3D models are part of the paid plans and use credits. 2D games and the free guide do not need one.

Questions

Mipmaps, answered.

What are mipmaps?

Mipmaps are smaller copies of a texture, each half the width and height of the one before, down to one pixel. The graphics card reads a small copy when a surface is far away or small on screen, which keeps it from shimmering and saves memory reads.

What is mipmapping?

Mipmapping is how the GPU uses those copies: for each pixel it estimates how many texels fall under it and samples the level where that is about one. Trilinear filtering blends the two nearest levels so the switch from one to the next is not visible.

Do mipmaps use more memory?

Yes, a third more. A 1024 by 1024 texture takes 4,194,304 bytes on the GPU at 4 bytes a texel; with every smaller level it takes 5,592,404 bytes.

What texture size should a game use?

A size close to how many pixels the thing covers on screen. A pistol in a hand on a phone needs far less than 2048 pixels, which is why EvonX's Metro city caps its guns at 512 and its houses at 1024. Every step down from 2048 to 1024 cuts the memory to a quarter.

Does EvonX make mipmaps for my game?

Yes. The engine builds them for every model texture as the model loads, with trilinear filtering. Pixel figures in a 3D world are the exception: they switch mipmaps off to keep hard pixel edges.

Why do textures shimmer in the distance?

Without mipmaps a far pixel samples one texel out of a large patch, and which texel it hits changes as the camera moves. The result is noise that crawls. Reading a smaller level, which already averages that patch, removes it.

Is WebP a form of texture compression?

It compresses the download: a map inside an EvonX model is a few dozen kilobytes as WebP. It does not compress graphics memory, because the browser decodes it to full pixels before the upload.

Does EvonX use KTX2 textures?

No. EvonX ships WebP today. The free KTX2 converter on this site makes GPU-compressed textures from your own pictures and shows what they save.

Make the 3D game. Let the engine pick the level.

Describe your game. EvonX builds its models, ships their textures as WebP, and the engine draws each one at the level its distance needs.

Make a 3D game