Huaxu's Next Top Model
So I've been working on something for the past few months, and today it finally gets to see the light of day. Well, technically that happened yesterday after I asked for feedback on the dev build, and it breached containment almost immediately. 1 Since the cat's already out of the bag and people have been begging for it to come back, I spent the last day squashing the biggest bugs so you can all enjoy it right here on the main site instead.
So without further ado:
It's Huaxu

download
Yay, I finally get to view the site's namesake in 3D! And it's not just Huaxu, most models in the game are ready to be explored on their respective construct, CUB, weapon, and (brand new!) enemy wiki pages!
The viewer comes with all their animations, game-state toggles, and even a playground mode where you can mess with all the (face) morph sliders Kuro baked into the models. Specifically, the viewer includes:
- Every in-game model variant, such as
fight(with combat animations) andmenu(in the character viewer, or as your assistant). Some models even have extra variants used for specific gamemodes! - Body part toggles (not automated yet, so you can toggle them manually for now)
- Animation layers (for example the normal animation set, a switched form set, or Babylonia animations)
- Playback controls to change animation speed, scrub through the timeline, or step frame-by-frame
- Double-clicking (or double-tapping) anywhere on a model to focus and rotate the camera around that exact spot
- A screenshot button that captures with a transparent background
- Every skin for every character
- Chibis, complete with their face animations
Okay, but why?
Because I wanted to!
Kuro Games publishes some character models on Aplaybox, but plenty of models are missing there. More importantly, none of them are animated and the raw models out of the box look nothing like they do in-game! There's @JaredNyts' PGR Shader on the Omatsuri Discord server if you want them looking right in Blender, but I'm betting plenty of people (me included) don't know Blender well enough to set that up.
So I set out to replicate the in-game rendering myself, and do it on the web so everybody can use it, no big deal. How hard could it be? In and out, 20-minute adventure, right?
A 20-minute very long adventure later
The only way to learn is by playing, and the only way to begin is by beginning. Step one was building a pipeline to extract the models: walking Unity prefabs, finding every material, all the springs (hair, skirt, and jiggle physics), face morphs, and shader parameters. Just collect them all, shove them into a model format, done deal. 2 And don't forget the animations! There are so many of them that the animation files alone are bigger than all the models put together! To keep your browser from downloading hundreds of megabytes just to open a character, the animations are split into individual clips that load on demand, with a bunch more optimization tricks thrown in to keep the downloads snappy.
After that, I built a Three.js-based renderer to actually bring the models to life. Fun fact: PGR uses a lot of shaders, and those shaders do some serious heavy lifting. I recently came across a great video from Vertex Arcade, who breaks down a lot of the effects Kuro uses far better than I ever could. Too late to save me, but a good watch nevertheless!
To give you an idea, here's a rundown of the shaders I implemented:
- Outlines
- Cel shading
- Face shadows
- Rimlights
- Matcap
- Zone colors
- Hair stencil
- Flowing emission
- Sparkles
- Effects / Character Effects (water/fire effects)
- Crystal Parallax
- Fur
Every single one had to be reverse-engineered from the game and rebuilt in the viewer so everything looked the part! Of course, I also had to fight a bunch of other things along the way, like reimplementing the Unity render queue, spring physics, bloom, and color grading, all while squashing many, many, MANY bugs of my own pesky creation. 3 And not to forget, squeezing in enough performance optimizations that it wouldn't toast my own laptop (4K on an iGPU ðŸ˜), and hopefully not yours either!
And sometimes you spend hours chasing a bug that isn't actually a bug.
Take Dante's Born animation, where his hair clips straight into his head.
Sounds like a massive bug, right?
Nope, that's intentional so his hair doesn't clip out of his hat (which we don't render... yet)!
The monsters in the closet
It doesn't take long to notice that not everything is in the viewer right now. I left some of the harder problems behind so I could actually ship the viewer today, rather than months from now. Most of what's missing comes down to one thing: PGR's combat system.
"Huh?" I hear you think. "What does the combat system have to do with a model viewer?" The answer is everything.
What spawns particles and effects? The combat system. Sound effects? The combat system. How do body parts get hidden and shown mid-animation? Yep. Holding a weapon? You guessed it, the combat system is involved.
The combat system isn't solely responsible for all of these, but trying to support them without it leaves a lot of animations feeling broken. I'd much rather ship a missing feature than a broken one. Don't get me wrong, I fully intend to get it working eventually. It'll just take some time, and I'm taking a small break from 3D models first if you don't mind.
What's next?
Next up, I'm shifting focus back to story reader improvements: popular requests like tracking which chapters you've read, showing word counts per chapter, and adding a reading order for everyone. 4 Or if you have other ideas, drop them in the Huaxu Discord server, I read every single suggestion!
Enjoy playing around!
~ nova
- blacknovatech
- [email protected]
- @huaxu.app
- @blacknovatech
Footnotes
- If only you knew they were sitting there for weeks. ↩
- All model glbs are downloadable through https://assets.huaxu.app/browse/models/! Animations and shaders not included, though. ↩
- For example, I spent 2 days chasing an emission bug that turned out to just be missing color grading and a LUT. :( ↩
- Maybe another side quest to faithfully reproduce the game's VN reader in Huaxu? ↩