rdzar Posted July 18, 2017 Share Posted July 18, 2017 I'm not sure if this is intended or it just isn't able to, but the GridMaterial currently doesn't seem to support shadows. I've tried different methods, but with no luck. Using an example of the BabylonJS shadow tutorial moving the ground into a grid shows this problem clearly;https://www.babylonjs-playground.com/#Y5IZCF#2 It would be awesome if the GridMaterial could support this as it provides a efficient way to render a high scale grid performance wise. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 18, 2017 Share Posted July 18, 2017 Hello So far this is not supported. Adding @Sebavan who was planning to work on GridMaterial rdzar 1 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted July 19, 2017 Share Posted July 19, 2017 As there is no notion of lights in the shader by design shadows would be weird as well. You can duplicate your mesh and add a ShadowOnly material on the dupplicate to simulate the effect :-) rdzar 1 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted July 20, 2017 Share Posted July 20, 2017 maybe custom material can help https://www.babylonjs-playground.com/#Y5IZCF#3 @rdzar @Sebavan you can put grid material shader in custommaterial diffuse method for have gird material with shadow Wingnut, Pryme8 and rdzar 3 Quote Link to comment Share on other sites More sharing options...
rdzar Posted July 20, 2017 Author Share Posted July 20, 2017 Wow thanks honestly didn't think of that at all! Awesome! NasimiAsl 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 21, 2017 Share Posted July 21, 2017 @NasimiAsl: As usual this is impressive. I was wondering if we could have a comprehensive documentation of custom material on doc.babylonjs.com ? NasimiAsl 1 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted July 21, 2017 Share Posted July 21, 2017 i almost finish it but after the last changes i need append some fixed variable for use so we can complete that as soon and yes i wanna add doc.babylonjs.com too GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted July 21, 2017 Share Posted July 21, 2017 3 hours ago, Deltakosh said: @NasimiAsl: As usual this is impressive. I was wondering if we could have a comprehensive documentation of custom material on doc.babylonjs.com ? @Deltakosh You are SO mean. Naz: "Here, this way works, too. Sebavan, you can borrow this for official grid material usage." DK: "Could we have detailed docs?" Naz: "You want me to teach how shaders work, in English?" (Naz searches frantically for some sleeping pills to O.D. -on.) hehe Just kidding, of course, but I don't think Naz anticipated the 40 tons of added workload. Were you wearing a hard-hat, Naz? DK can drop big rocks. Here's a little secret... "This material is created with shaders. For more information, learn about shaders." There's your "comprehensive documentation". ahhh haha. I guess I should ask... SHOULD our current gridMaterial be scrapped, for Naz's method (to get shadows working better?) *shrug* Then maybe Sebavan and Naz can get together and Sebavan can help do the docs for the new system? (Did Sebavan create current gridMaterial?) All in all, I hate to make Naz write English docs... something that could feel like a HUGE HASSLE to him. I think, if there is ANYTHING Naz could use help-with, its writing docs. He certainly contributes plenty of other cool things. What is your language, Naz? Farsi? I can learn it in a few months, right? Problem is... speaking "shader" is a foreign language in itself. Farsi shader talk... wow... that could be a serious challenge. Wingy being goofy, ignore at will. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 21, 2017 Share Posted July 21, 2017 You could probably review his documentation? My ask was more about the overall custom material which is cool but I'm afraid people won't use it without a doc filled with samples. You can live without it of course Wingnut 1 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted July 22, 2017 Share Posted July 22, 2017 don't press me hard let i do it ,i try make English docs ( i never make farsi Docs for this ) ( i use my friend help that write better than me ) and why we always talk with each other in your mind wing Wingnut 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.