Path: news.mathworks.com!not-for-mail
From: "Michael Garrity" <mgarrity@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: problem with surface lighting (OpenGL)
Date: Fri, 17 Apr 2009 10:04:52 -0400
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <gsa2a5$jja$1@fred.mathworks.com>
References: <gs77e9$fbj$1@fred.mathworks.com>
Reply-To: "Michael Garrity" <mgarrity@mathworks.com>
NNTP-Posting-Host: garritym.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1239977093 20074 144.212.107.121 (17 Apr 2009 14:04:53 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 17 Apr 2009 14:04:53 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:533520


>"Andres" <rantore@werb.deNoRs> wrote in message news:gs77e9$fbj$1@fred.mathworks.com...
> Dear all,
> please compare the surface lighting of the following four plots:
>

Sorry, there's a bug in the opengl renderer that's causing it to
use the wrong normals. It uses the vertex normals instead of
the face normals in this case. If you switch your renderer to
zbuffer instead of opengl, you'll get the correct lighting in this
case.

    Mike Garrity
    The MathWorks