Path: news.mathworks.com!not-for-mail
From: "Chaos" <rothko.fan@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: problem with surface lighting (OpenGL)
Date: Sun, 19 Apr 2009 11:17:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <gsf17e$8cs$1@fred.mathworks.com>
References: <gs77e9$fbj$1@fred.mathworks.com>
Reply-To: "Chaos" <rothko.fan@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1240139822 8604 172.30.248.37 (19 Apr 2009 11:17:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 19 Apr 2009 11:17:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 293962
Xref: news.mathworks.com comp.soft-sys.matlab:533820


"Andres" <rantore@werb.deNoRs> wrote in message
> 
> So is there any good explanation for why fig. 2 looks so different from fig. 4?
> And hopefully even a workaround?
> Thanks for your thoughts
> Andres
\

i have found so many bugs in the opengl implementation, it's a running joke in these parts.  we have the latest screaming ATI cards and have to dumb them down to other renderers.

there is a kluge of a work around we've found, if you setup how things 'should' look even though on screen they look wrong, modify your graphic call to turn off the "Visibility" and write directly to disk in a tif or whatever.  we got lucky and the images on disk are correct even when display is wrong. i did a complete manual mode and it works.

no thanks to anyone on this forum.

plot_set=figure('Units','pixels','Position',iPos,...
  'OuterPosition',oPos,'InvertHardCopy', 'off',...
  'ActivePositionProperty','OuterPosition','Visible','off',...
  'Renderer','OpenGl','RendererMode','manual','doubleBuffer','off',...
  'MenuBar','none','NextPlot','replacechildren','ToolBar','none',...
  'Color',[0.2 0.6 0.9],'DefaultAxesXColor',[.85  .85  0],'DefaultAxesYColor',[.85  .85  0],...
  'PaperOrientation', 'portrait','PaperPositionMode','auto',...
  'DefaultAxesXMinorGrid','on','DefaultAxesYMinorGrid','off','DefaultAxesTickDir','in',...
  'DefaultAxesXMinorTick','on','DefaultAxesMinorGridLineStyle',':','DefaultLineLineStyle','-');