Lack of tangents on billboards/chains.
Posted: Sat Dec 15, 2012 5:42 am
I may have mentioned this before, but I've run into it again.
You can't set normals or tangent vectors on billboards or billboard chains. This is a pain, because you need normals and tangents for some types of effects. You can sort of get a normal by assuming the billboard faces the camera (which might not be true if the billboard is oriented self, or the chain is at a sharp angle). But a tangent seems to be impossible. The only way I can think to possibly sneak a tangent in is via the colour parameter, but I already use that for colouring.
Why would I want a tangent on a billboard? I've got blood splats flying around, made of billboards and billboard chains. A specular highlight on those flying blood splats would look great, correctly lit to point to the spotlights, but I can't do normal mapping because there's no tangent vector.
Edit: Perhaps I can make a tangent from the UV coords, I'll see. Still no real normal, but using the view dir might be close enough.
You can't set normals or tangent vectors on billboards or billboard chains. This is a pain, because you need normals and tangents for some types of effects. You can sort of get a normal by assuming the billboard faces the camera (which might not be true if the billboard is oriented self, or the chain is at a sharp angle). But a tangent seems to be impossible. The only way I can think to possibly sneak a tangent in is via the colour parameter, but I already use that for colouring.
Why would I want a tangent on a billboard? I've got blood splats flying around, made of billboards and billboard chains. A specular highlight on those flying blood splats would look great, correctly lit to point to the spotlights, but I can't do normal mapping because there's no tangent vector.
Edit: Perhaps I can make a tangent from the UV coords, I'll see. Still no real normal, but using the view dir might be close enough.