Sign in to follow this  
Martaver

Scaling Transformation & Lighting Problem

Recommended Posts

Martaver    122
For some reason, when I apply a scaling transformation to my scene geometry, its lighting gets proportionally dimmed... So a scaling transformation of 5, 5, 5 will result in pretty dark geometry. Seems to occur in all Software, Hardware, PureHardware modes. I have a feeling that I'm missing something fundamental in T&L here, can anyone explain to me what's going on? Thanks

Share this post


Link to post
Share on other sites
Aldenar    378
Your normals are probably scaled too with the given transform, have you tried setting the D3DRS_NORMALIZENORMALS render state to TRUE? It should do the trick.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this