Hey everyone,
To support sharing the daily scan challenges mentioned on Monday, I've built a WebGL 2 model viewer using Unity 2022 URP. The goal for this application is to allow viewers to quickly showcase the quality of work within the Unity engine rather than through renders.
I have included a link to a desktop build as well, as I'm facing challenges with WebGL's limitations, especially with 8k scans resulting in larger texture file sizes. In the future I will be exploring the use of addressables to load "packages" during runtime rather than including them in the WebGL 2 player.
Initially, I used a geometry shader for the wireframe, but due to WebGL limitations, I developed a new wireframe shader using Barycentric coordinates that are applied at runtime to each model.
I've optimized the application for WebGL to achieve higher rendering quality and overall, I'm pleased with the new and improved WebGL 2 code. This application should also be mobile-friendly if you want to check it out on your phone. This is an early alpha version, and its usefulness is still up to the audience to decide so any feedback is much appreciated!
Windows Desktop Application:
https://drive.google.com/file/d/1iEijPttSl9NXuEd0mf2dw_Q-pn0Pt_sV/view?usp=drive_link
This is just a more fun way of viewing the models that will be coming over the next few weeks. Stay tuned for more!
-Jason