PDA

View Full Version : Negative scale and normal flipping!



{MSX}
25-03-2005, 08:45 PM
Hi!
I've this problem: when i set the scale (on a single coordinate) of a mesh to a negative value, i have all normals flipped so that i see the wrong side of each face.
I wanted negative scale to mirror for a coordinate to mirror the mesh. I see Blender do this, but it's normals stay correct :P
What can i do about this?
Thanks

This is another message that should really go to a needed "3D Theory forum" :P

Clootie
26-03-2005, 08:34 PM
To me it seems normals are not related to effect you are seeing. It's the culling behaviour you are seeing. As you probably should know face visibility is determined by the order of vertices (clockwise walked face is visible), so flipping all vertices around single plane (your scale matrix) will change it.
:idea: Quick fix is to change cull mode from CULL_CW to CULL_CCW.

{MSX}
27-03-2005, 08:41 AM
:idea: Quick fix is to change cull mode from CULL_CW to CULL_CCW.

Umm ok, i think i'll have some problems implementing this..
You're right, it's not about normals, but about culling..

I have to think of a smart way to do this :)

Thanks a lot!

{MSX}
27-03-2005, 09:40 AM
ok, i did it :)
It wasn't that hard.. Glory to me! :)