Vousk-prod. Posted September 6, 2015 Share Posted September 6, 2015 Hey community ! It's quite easy to do a matte shadow object with standard material using a baked shadow texture in opacityTexture slot, but with realtime shadow I have no clue how to do such a thing.The idea is to have an "invisible" object receiving realtime shadows and displaying only those shadows (with proper alpha against objects behind it). Is there a way to do that ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 8, 2015 Share Posted September 8, 2015 HUm not for now...what kind of use case? Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted September 8, 2015 Author Share Posted September 8, 2015 Since BJS is not simply a game engine but a true HTML5 3D engine, we have to think "web pages" instead of "games in a canvas". Matte shadows would give the abilty to put a 3D objects above any background of an HTML page, with proper realtime shadow projected onto that page. Use cases are only limited by imagination Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 8, 2015 Share Posted September 8, 2015 Technically this is pretty easy to add a boolean to define that an object has to only be rendered in shadowmaps did you try to add a mesh to a shadowGenerator renderlist and mak it as visibility = 0? Ok no I understand your ask you want an object to only receive shadows and nothing else right? Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted September 8, 2015 Author Share Posted September 8, 2015 With visibility=0 the object is not visible at all (neither the received shadows that are projected on it, of course). Yes, what I want is exactly what you've just understood : an object receiving (and displaying) only shadows. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 8, 2015 Share Posted September 8, 2015 This means a specific material...like a MatteShadowsMaterial...interesting for sure:) 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.