Re: [Maya2osg-users] Winding again!
Status: Alpha
Brought to you by:
jtaibo
From: Javier T. <jav...@gm...> - 2011-10-18 19:36:42
|
On Tue, Oct 18, 2011 at 6:26 PM, Jean-Sébastien Guay < jea...@cm...> wrote: > Hi guys, > > I think I found the case where winding will affect surfaces. > > An object scaled by -1 will have its normals inverted and winding will > be inverted too. Maya sets the "opposite" mode on this. It makes it look > OK in Maya. If, in the plugin, I set "flip normals if surface mode is > opposite", then the plugin will invert the normals (* -1) but the > winding will still be wrong, so they will be culled by CULL_FACE even > though lighting is correct. > I don't remember why is this "flip normals if surface mode is opposite" option required. Probably Peter explained it to me some time ago, but I don't remember. It was supposed to work automatically in FFP as well as in GLSL mode. Peter can you throw some light here? -- Javier Taibo |