royibernthal Posted April 25, 2018 Share Posted April 25, 2018 Here's a PG of the shader: https://www.babylonjs-playground.com/#DMLMIP#10 On an old laptop (Lenovo G770) it works fine. Graphics Card: AMD Radeon 6600M and 6700M Series https://www.dropbox.com/s/pm1nrxx59xuftl7/VID_20180425_052419.mp4?dl=0 On my new PC, it looks like there's a bug. Graphics Card: NVIDIA GeForce GTX 1060 6GB Quote Link to comment Share on other sites More sharing options...
Sebavan Posted April 25, 2018 Share Posted April 25, 2018 This playground uses a custom shader and not one provided by BJS could you confirm the issue with standard or pbr materials ? Quote Link to comment Share on other sites More sharing options...
royibernthal Posted April 25, 2018 Author Share Posted April 25, 2018 Yes it does use a custom shader, I didn't encounter this problem with any built in bjs post process. 2 hours ago, Sebavan said: could you confirm the issue with standard or pbr materials ? I'm not sure how to do that, can you walk me through it? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted April 25, 2018 Share Posted April 25, 2018 Ok thanks, at least it is not an internal issue in BJS but in the custom shader only. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2018 Share Posted April 25, 2018 It seems to be a bug in your own shader. What if you use regular material instead of your shader? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 25, 2018 Share Posted April 25, 2018 Actually after checking it more it seems that your shader does not contain code to support bones Quote Link to comment Share on other sites More sharing options...
royibernthal Posted April 26, 2018 Author Share Posted April 26, 2018 Can that shader utilize bjs internal bones shader algorithm or does it have to add support for bones from scratch? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2018 Share Posted April 26, 2018 Nope it can reference bones like stdmaterial or pbrmaterial do (not trivial though) look at all examples in the material library: https://github.com/BabylonJS/Babylon.js/blob/master/materialsLibrary/src/simple/simple.vertex.fx#L18 Quote Link to comment Share on other sites More sharing options...
royibernthal Posted April 26, 2018 Author Share Posted April 26, 2018 I see, would you consider it a considerable amount of work to add bones support to that custom shader? (not that I'm asking you to, just curious) Quote Link to comment Share on other sites More sharing options...
Guest Posted April 26, 2018 Share Posted April 26, 2018 not at all. As long as you copy/paste from the simple material I referenced it is one hour work (a bit of shader and an a bit of js code for the material) royibernthal 1 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.