Sebavan Posted February 23, 2017 Share Posted February 23, 2017 http://www.babylonjs-playground.com/#1F17BQ#56 I tried to only reuse some of the standard stuff without custom shader :-) adam, JohnK, jerome and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Emil Posted February 24, 2017 Author Share Posted February 24, 2017 this is impressive. those sparkles are amazing @Sebavan Quote Link to comment Share on other sites More sharing options...
Emil Posted February 24, 2017 Author Share Posted February 24, 2017 @NasimiAsl very nice. about real inner reflection and ray refraction, can we do that in live render but limiting the bouncing effect for 2 or 1 and see how it looks like? that will be the very close to reality. and we have to take in consideration the index of refraction of the diamond material, 2.417 The reason why I wanted that is that modifying the parameters of the diamond(depth, crown angle, pavilion angle), will impact the sparkle. But with fake approach, all the diamonds will look the same no matter if you stretch that diamond like a pencil or flatten like a pie. Not in reality. So that is the whole point if you can do that. But not sure how will be possible in live render... thanks again @NasimiAsl Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted February 24, 2017 Share Posted February 24, 2017 this is a big project for webgl @Emil InnerReflect = (inner face reflection ) most be calculate with a face y face and it is like you make all diamond inner Face like mirror and you most be make texture of that and mix all face textures in a cube map and replace that with that mask ( http://i.imgur.com/QxxS3VP.jpg) it is not just shader stuff more physics stuff and we have restriction about reflection read this : so maybe opengl can do that in this time 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.