Sign in to follow this  
tomer

Simple furMaterial

Recommended Posts

Thank you all :)

@Pryme8 Thanks for that! will check it out.

@Dad72 Thanks, I've tried furSpeed=0 but it doesn't work for me, so I'm using a high number for furSpeed, there is still animation but you can hardly see it, I think it's better now but still not sure, will also check it out.

@JCPalmer not sure about post processing but get into this playground get closer to the fur, open chrome's task manager and you'll see:

5a82c1f36bdef_ScreenShot2018-02-13at12_42_35.png.870f12b7abce7b53658b4bf48f4fcbd2.png

CPU can get much worse :)

I'm using macbook pro mid 2014.

Share this post


Link to post
Share on other sites
21 hours ago, Pryme8 said:

Might not be what you are looking for... but then again it may be?

This would be the least intensive computation method. 

 

You could probably get a good result using this technique with SPS and depth sorting.  

The new parenting feature in SPS might be useful for long hair.

 

Share this post


Link to post
Share on other sites
On 2/12/2018 at 2:57 PM, tomer said:

Is there any way to make it less compute intensive? perhaps disable the animation? (I don't need the animation any way just the effect)

It you do not need the animation then would the lower level mode not suit you? Note number of segments increased to "thin" fur

https://www.babylonjs-playground.com/#2322Y7#20

cpupg.jpg.d6a61990114ef35131bac8d9e9e79e9f.jpg

 

Share this post


Link to post
Share on other sites

This Chrome report tells you nothing.  I ran Firefox profiling for about 20 secs on the scene, without the editor showing.  Are you showing the editor?.  The highest BJS call amount was 1.17% of the total cpu consumed.  Looking at the Windows resource manager, I was show about 10% utilization for Firefox. 

GPU may be another matter, but your premise that fur consumes great CPU is not re-producable.  To check on gpu, I think you have to use a tool like @Sebavan's tool.

furPerf.jpg.6e61df1b950704259d0bbb560b328a0e.jpg

Share this post


Link to post
Share on other sites

@JCPalmer Cool, you're right, testing for CPU intensiveness with chrome's task manager is superficial and not accurate at all, I just used it as an indicator but on second thought not sure I should have.

Anyway, I'm trying both @Pryme8 method and highLevelFur = false now.

Thank you all :)

Share this post


Link to post
Share on other sites

Hey @tomer, removing the animation would not save the performances. Anyway I can add an option to deactivate because maybe you don't want animations just by setting a boolean :)

For the performances, I read a lot about fur computation in video games to get it rendered fast and it looked like we did not have enough tools/technologies for Web for instance (but really soon)!

Now with WebGL 2, maybe there are new way to compute fur using maybe geometry shaders. Will try to take a look again :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.