please_dont_crash
Automotive
- Apr 21, 2020
- 25
I'm not really sure how to approach this.
My goal is to end up with a solid volume that matches an object's shadow, given an object and a location in space that represents a point light source.
Imagine a complex object, like a pineapple. Define a point above and to the side of the pineapple. This point represents a light source. How would I be able to create a solid object that matches the space encompassed by the pineapple's 3D shadow? In other words, not just the projected curve of the shadow's outline on the ground, but the actual volume of space that is not lit? Conversely, I could instead ask how to get the 3D object that represents all areas lit by the light, excluding those in shadow.
I have a feeling this is tricky and would require several intermediate steps, but I have no idea how to approach this.
Thank you!
My goal is to end up with a solid volume that matches an object's shadow, given an object and a location in space that represents a point light source.
Imagine a complex object, like a pineapple. Define a point above and to the side of the pineapple. This point represents a light source. How would I be able to create a solid object that matches the space encompassed by the pineapple's 3D shadow? In other words, not just the projected curve of the shadow's outline on the ground, but the actual volume of space that is not lit? Conversely, I could instead ask how to get the 3D object that represents all areas lit by the light, excluding those in shadow.
I have a feeling this is tricky and would require several intermediate steps, but I have no idea how to approach this.
Thank you!