Olivier Tournaire wrote:
> Hi,
> 
> 2009/3/6 Dirk Reiners 
> <[email protected] 
> <mailto:[email protected]>>
> 
>     Marcus Lindblom wrote:
>      >
>      > Not automatically, AFAIK. If your gemoetry is discrete triangles,
>     just
>      > swap two indices in each. If it's tristips/fans, it might be
>     trickier,
> 
>     Or, if you only care about lighting and not culling you can just
>     invert the
>     elements of the NormalProperty. Yeah, it's ugly, but it's quick. ;)
> 
> 
> This is exactly what I want ! How can I do that ?

Loop over each element in Geometry::getNormals() and multiply by -1.

Cheers,
/Marcus


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to