Virtual Textures

I put together a demo using some real assets

image

The asset is “Green car wreck” by matousekfoto

I chose this asset because it’s visually interesting, and has a total of 16k worth of textures. It’s also close to worst-case usage in terms of UVs, the asset has a ton of tiny UV island with little to no spatial continuity.

Here’s a 1k preview of the original texture, so you can see how chaotic it is:

Quality Comparison

If you zoom far enough out - you’ll start to see UV seams, this is not a virtual-texture tech issue, but rather the bad UVs of the original texture. Here’s what the model looks like in blender:


here’s just plain three.js (using @donmccurdy 's gltf viewer):

and here’s sketchfab:

Here’s virtual texture and gltf viewer side-by-side, VT on the right:

Random findings:

  • Interestingly, if I try to load the non-virtual-texture version - Chrome keeps crashing half the time for me. I guess very few things are optimized to render 16k textures.

  • Blender also gave up the ghost when I tried to bake this texture. So I ended up using GIMP :smiley:

10 Likes