New 3D Model Viewer

So as some people are aware I wrote a local 3D model viewer called WhiteoutFlakes. I now have made the whole viewer recompile into WebAssembly and set up a UI to be used the same way as the hive's current viewer. The source code can be found Here

Screenshot 2026-05-27 143321.webp


Screenshot 2026-05-27 143403.webp


Screenshot 2026-05-27 144534.webp


Key features:
  • Modern design.
  • Full Warcraft 3 Classic support: all materials, particle emitters system, ribbon emitters, lights, cameras, etc.
  • Pixel accurate precision; the shaders are based in reverse engineering of Warcraft 3 Reforged actual shaders.
  • Full support for Reforged models, from version 800 to 1200.
  • Support for PopcornFX emulation.
  • Written in C++20, compiled into WebAssembly.
Right now this is the most I can do, it's up to Ralle to decide if he wants to use it.
 
View attachment 595436
Failed to execute 'createTexture' on 'GPUDevice': Use of the 'bc1-rgba-unorm-srgb' texture format requires the 'texture-compression-bc' feature to be enabled on [Device].

Chrome 149.0.7827.114 (mobile)

Idk if mobile is supported now, but I have this.
Hmn, do you know which phone and GPU do you have? It feels like a Mali phone or iPhone.

Currently only Qualcomm Adreno has been tested.
 
Hmn, do you know which phone and GPU do you have? It feels like a Mali phone or iPhone.

Currently only Qualcomm Adreno has been tested.
Xiaomi redmi note 10s
Mali-G76 MP4


incorrect rendering layers with Transparent mode:
1781815654853.webp


Outer ring must be like this:
1781815706911.webp


wtf it merged comments...
 
Its simply changing layer's Alpha.
As far as I know, Transparent mode formula is:

f(C,L) = L.A > 0.75 ? C*(1 - L.A) + L*L.A : C

C - Background
L - Layer
A - Alpha
ok I fixed that (and the inherited billboarding being broken). I updated the package, so likely when Rallöe updates the site again, he'll update the package.

Next update fixes:

  • Transparency to Blend upgrade, preserves alpha cut thresshold.
  • Billboarding is now properly inherited.

1782208695362.webp

  • Rotations are applied to billboarding properly.
  • Priority Plane, particles and geosets are all ordered correctly. Objects are also ordered by distance from camera.
(fixed spheres rotating and particles rendering in front)

1782208762514.webp

in Classic all textures and color inputs are now treated in gamma space instead of converting to linear (fixes coloring):
1782209005152.webp

- Improved Cornflakes pkb emulation.

Reforged Hero glow now renders properly:
1782209165321.webp
 
Back
Top