[Experimental] AlternativeHairPhysics

Plugins + Scripts [Experimental] AlternativeHairPhysics

Download [<1 MB]

Stopper

Invaluable member
Featured Contributor
Joined
Dec 7, 2022
Messages
375
Solutions
1
Reactions
4,970
Stopper submitted a new resource:

AlternativeHairPhysics - A replacement hair engine

So this was originally intended to replace VAM's hair physics, but I ended up starting with a new renderer and figured the community might want to play with it.

It's far from a finished product - basically just a tech demo, but I thought it was pretty cool.

The original intent was to improve hair smoothness through sub-division, but that exploded the polygon count and tanked performance. So instead we draw simple flat cards based on VAM's hair geometry and a custom fragment shader does...

Read more about this resource...
 
If a character's hair preset includes 7 hair items, do I need to configure and save each one individually, and then reload them all?It seems like the settings reset when I switch to the next hair in the hair group.Thank you as always for such an awesome plugin!
 
if this can fix vam hair issue when scaling person will be god tier
If you're talking about the physics explosion when you scale then maybe, but only when (if?) I actually get to the original purpose of replacing the hair simulator.

If a character's hair preset includes 7 hair items, do I need to configure and save each one individually, and then reload them all?It seems like the settings reset when I switch to the next hair in the hair group.Thank you as always for such an awesome plugin!
In the current version, yes. It's not a hard fix to apply it to all hairs, I just haven't done it yet.
 
Stopper updated [Experimental] AlternativeHairPhysics with a new update entry:

New Render Model

I've built a new render mode - Compute. Impostor rendered hairs on a bunch of transparent 'cards', which VAM rasterized pixel by pixel even though they were mostly transparent. Compute instead has one card, which is rasterized manually.

The end result is a huge improvement in FPS - better than stock VAM hair even at max settings (at least for me). The downside is bugs. Lots of bugs.

Read the rest of this update entry...
 
So the physic is now applied to "card" instead of single hair? will it add better lightning speculars? now hair specular only work on "outside" of hairs and the hairs that are viewable but from inner place(eg near neck for front view) are dull and boring like light do not go there.

Ok, so ive tested it and when i choose Compute as render it do not show hair at all (one hair only on atom) if i choose Impostor, hair occur but look terrible( all setting default as plugin sugest, my CPU go 100% and coolers work as helicopters ( normaly i work with around 8pieces of hairs on 64/32 curve/density and cooler work normaly :) so it seem that there is some problems with FPS which it should go higher rather than lower ;D
 
Last edited:
So the physic is now applied to "card" instead of single hair? will it add better lightning speculars? now hair specular only work on "outside" of hairs and the hairs that are viewable but from inner place(eg near neck for front view) are dull and boring like light do not go there.

Ok, so ive tested it and when i choose Compute as render it do not show hair at all (one hair only on atom) if i choose Impostor, hair occur but look terrible( all setting default as plugin sugest, my CPU go 100% and coolers work as helicopters ( normaly i work with around 8pieces of hairs on 64/32 curve/density and cooler work normaly :) so it seem that there is some problems with FPS which it should go higher rather than lower ;D
The Compute mode bypasses Unity's regular rendering pipeline, so there's bound to be some issues.

What GPU are you running? Can you also try version 2 to see if that helps? I reshuffled some things in v3 to free up buffers for better AA.
 
Is this meant to work in VR?
I added the plugin to a person atom and my headset (Dream Air) started to lag, I dropped to maybe 10fps, and one screen (right eye) started flickering. I removed the plugin and everything went back to normal.

Maybe someone else has used this plugin successfully in VR, and it's just some issue on my end?
 
Is this meant to work in VR?
I added the plugin to a person atom and my headset (Dream Air) started to lag, I dropped to maybe 10fps, and one screen (right eye) started flickering. I removed the plugin and everything went back to normal.

Maybe someone else has used this plugin successfully in VR, and it's just some issue on my end?
No, it's not you. This uses some uncommon rendering techniques so making VR work will take some effort. I do have a headset to test with and it's on the list, though.
 
Stopper updated [Experimental] AlternativeHairPhysics with a new update entry:

Better perf - a few fixes

  • I tore out the Impostor render mode. It's Compute-only now as that seems to be the better long-term bet
  • Tweaks to the k-buffer that should result in significantly better performance at K=4 (default)
  • Immediately ate into the perf improvement with some occlusion fixes, but should still be a net win
  • Added sliders for tip curl, which is meant to break up the unnatural smoothness of the hair


View attachment 618595

Read the rest of this update entry...
 
Stopper updated [Experimental] AlternativeHairPhysics with a new update entry:

Geometry changes - Various fixes

I've revamped how spread and alignment works. The various spread sliders were removed. There are now four primary controls:
  • Root and tip radius - the spread at the root/tip
  • Root and tip skin alignment - how much the root/tip follows the skin

Before, sub-hairs were always rendered radially outward from the main simulated hair strand. This meant that hair that flat against the skin (left) would render like macaroni that didn't follow the skin at all(middle). Now you can...

Read the rest of this update entry...
 
Back
Top Bottom