max123 Posted November 8, 2016 Share Posted November 8, 2016 Hi, I wonder if it's possible at all to pre-bake shadows at runtime? I've got a scene that is generated by users. Position of items is thus unknown. I'd like to cast shadows from these items, but it's too costly CPU-wise. It would be really cool if one was able to run something like BABYLON.bakeGroundShadows(objectsList) which would create texture on the fly for the ground mesh (I'm aware that baking and creating textures for all meshes can max out GPU memory). Quote Link to comment Share on other sites More sharing options...
BitOfGold Posted November 8, 2016 Share Posted November 8, 2016 Hi! Is the ground self-shadowing? Only the list of meshes cast shadow on the ground, so no shadows on each other? Quote Link to comment Share on other sites More sharing options...
BitOfGold Posted November 8, 2016 Share Posted November 8, 2016 This thread is a possible solution. max123 and joshcamas 2 Quote Link to comment Share on other sites More sharing options...
max123 Posted November 8, 2016 Author Share Posted November 8, 2016 39 minutes ago, BitOfGold said: Hi! Is the ground self-shadowing? Only the list of meshes cast shadow on the ground, so no shadows on each other? Yep, pretty much. Just ground shadows. Quote Link to comment Share on other sites More sharing options...
max123 Posted November 8, 2016 Author Share Posted November 8, 2016 Awesome, @BitOfGold! Exactly what I'm after. joshcamas 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.