jdurrant Posted March 18, 2015 Share Posted March 18, 2015 I've been looking into sprites. This tutorial was very helpful: https://github.com/BabylonJS/Babylon.js/wiki/08-Sprites . I was able to add grass to my forest scene: I have a few follow-up questions. 1) Is it now possible for sprites to cast shadows? This post suggested it was in the works: http://www.html5gamedevs.com/topic/4810-sprite-and-its-shadow-is-it-possible-at-moment/ 2) I'm even more curious to know if sprites can receive shadows. I experimented with this a bit and wasn't able to get it to work. Is it even possible? 3) Sprites always face the camera. That's good for a lot of applications, but in some cases I'd like to restrict that rotation to the y axis. For example, grass generally points upward. Using sprites makes the grass look parallel to the ground when looking down on it from above. 4) Assuming 2) and 3) are not currently possible, one work-around would be to create a bunch of instanced planes with transparent textures. Assuming I didn't worry about things like rotating relative to the camera, would that solution be much slower than using sprites? In other words, I'm wondering if there's some special optimization in the sprite code that would make it render faster than a simple set of many instanced planes. Thanks! Wingnut 1 Quote Link to comment Share on other sites More sharing options...
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.