TSStatic lets sunlight shine through
by C. David Belt · in Technical Issues · 06/28/2005 (10:59 am) · 10 replies
How do I prevent being able to see the sun through a TSStatic object?
#2
06/28/2005 (3:21 pm)
I have a collision mesh around the shape. The collision mesh itself is transparent.
#3
06/28/2005 (3:41 pm)
Show me a picture of your collision mesh.
#4
06/28/2005 (3:50 pm)
I am not sure how to post a picture here. I have emailed it to you. The mesh surrounds the a visible object with the same shape.
#5
06/28/2005 (3:53 pm)
Oh.. so that's why i was getting the sun shining thru my houses.. i wasn't using a convex collsion mesh...
#6

You could just wrap the whole shape in a box for the collision mesh but if you want it to look better you are going to need to use multiple collision meshes (remember: you are limited to 8). Something like this would work:

Something else to keep in mind is that each collision mesh should generally have no more than 20 polygons.
06/28/2005 (4:58 pm)
Your collision mesh is far from convex. Just eyeballing the image I can see a lot of concave edges:
You could just wrap the whole shape in a box for the collision mesh but if you want it to look better you are going to need to use multiple collision meshes (remember: you are limited to 8). Something like this would work:

Something else to keep in mind is that each collision mesh should generally have no more than 20 polygons.
#7
06/28/2005 (5:34 pm)
Is that 8 per mesh or 8 total?
#8
06/28/2005 (5:37 pm)
8 collision meshes per model
#9
06/29/2005 (12:10 am)
So, are you saying that sunlight will shine through an object if the collision mesh has ANY concavity to it?
#10
06/29/2005 (12:12 am)
Correct
Associate Matt Fairfax
PopCap