tomer Posted February 12, 2018 Share Posted February 12, 2018 Hello, It looks like FurMaterial is compute intensive. 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) Thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2018 Share Posted February 12, 2018 Pinging @Luaacro also good reading about options: http://doc.babylonjs.com/extensions/fur julien-moreau 1 Quote Link to comment Share on other sites More sharing options...
tomer Posted February 12, 2018 Author Share Posted February 12, 2018 Thanks, already read it, looking for other options. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted February 12, 2018 Share Posted February 12, 2018 Might not be what you are looking for... but then again it may be? This would be the least intensive computation method. tomer, adam, meteoritool and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 12, 2018 Share Posted February 12, 2018 The furSpeed property at 0 would not remove the animation? I never try, but that seems to be the property that handles the animation furSpeed = 0; Or highLevelFur = false; There is no animation on this PG : https://www.babylonjs-playground.com/#EUCNP#6 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 12, 2018 Share Posted February 12, 2018 I understood from @Wingnut that this material is done with post-processing, so not sure animation has any time implications. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 12, 2018 Share Posted February 12, 2018 I said that? And you believed me? I wouldn't trust ANYTHING I ever said... to be correct. I think @JohnK is the expert on this one, all in all. JCPalmer and tomer 1 1 Quote Link to comment Share on other sites More sharing options...
tomer Posted February 13, 2018 Author Share Posted February 13, 2018 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: CPU can get much worse I'm using macbook pro mid 2014. Quote Link to comment Share on other sites More sharing options...
adam Posted February 13, 2018 Share Posted February 13, 2018 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. Quote Link to comment Share on other sites More sharing options...
JohnK Posted February 13, 2018 Share Posted February 13, 2018 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 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 13, 2018 Share Posted February 13, 2018 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. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 13, 2018 Share Posted February 13, 2018 That tool is webgl inspector. See Quote Link to comment Share on other sites More sharing options...
tomer Posted February 13, 2018 Author Share Posted February 13, 2018 @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 Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted February 23, 2018 Share Posted February 23, 2018 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 Quote Link to comment Share on other sites More sharing options...
tomer Posted February 25, 2018 Author Share Posted February 25, 2018 @Luaacro thanks! it will be awesome. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.