JCPalmer Posted July 10, 2017 Share Posted July 10, 2017 Hey, I was looking for a topic that I cannot seem to find. In 2017 for sure, I thought June, I was a scene in a topic where there was a character and a shadow on the "ground". You could not tell that there was even a ground plane. I am in the process of casting / receiving shadow, an do not anticipate a problem there, but cannot get the material to blend perfectly with the scene.clearColor. Anyone remember or know the topic? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted July 10, 2017 Share Posted July 10, 2017 Can not remember the topic either but I guess what you are looking for is the shadowOnlyMaterial from the materialsLibrary. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted July 10, 2017 Author Share Posted July 10, 2017 @Sebavan, thanks. I just tried this. did get an error when I have a lines mesh in the scene: This is a large amount of computer generated code for my implementation of Particle Hair which is implemented as a LinesMesh subclass. I panicked for a second since the plan is to release 3.0 very soon, then found the code line which caused it to get added to the render list and manually deleted it. Some aiming / polishing required, but works. I only bring this attention, as there is perhaps a way to defensively handle this. Quote Link to comment Share on other sites More sharing options...
jps0611 Posted August 25, 2017 Share Posted August 25, 2017 I'm struggling to get this working correctly with the 3.1 alpha. Still seeing: BJS - [00:59:47]: Babylon.js engine (v3.1-alpha) launched pen.js:47 Uncaught TypeError: BABYLON.ShadowOnlyMaterial is not a constructor at createScene (pen.js:47:21) at pen.js:82:13 Looks like I'm missing something obvious. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 25, 2017 Share Posted August 25, 2017 Did you add a reference to https://preview.babylonjs.com/materialsLibrary/babylon.shadowOnlyMaterial.min.js ? Quote Link to comment Share on other sites More sharing options...
jps0611 Posted August 25, 2017 Share Posted August 25, 2017 10 minutes ago, Deltakosh said: Did you add a reference to https://preview.babylonjs.com/materialsLibrary/babylon.shadowOnlyMaterial.min.js ? Derp! Yup that was it! Thank you kindly! GameMonetize 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.