Hi Mike,
 
I edited the Atmosphere constructor in stellarium\src\modules\Atmosphere.cpp as follows:
 
Atmosphere::Atmosphere(void) :viewport(0,0,0,0),skyResolutionY(44), posGrid(NULL), colorGrid(NULL), indices(NULL),
        averageLuminance(0.f), eclipseFactor(1.), lightPollutionLuminance(0), useShader(false)
{
 setFadeDuration(3.f);
 if (GLEE_VERSION_2_0)
 {
  useShader=true;
 }

 // turn off shaders completely

 useShader=false;
 
 if (useShader)
 {
  qDebug() << "Use vertex shader for atmosphere rendering.";
  QString filePath;
....
 
which ensures that it will disable shaders even if the OpenGL version is 2.
 
I suppose there may be a way to disable OpenGL 2 support in the graphics drivers but I don't know of one. Or it may be possible to create a shader file that does absolutely nothing (about which I have absolutely no idea), which would at least mean no messing about with the innards of Stellarium!
 
Hope this helps.
 
Best,
Steve
 


From: Lone Hiker [mailto:lone_hiker@hotmail.com]
Sent: Sunday, June 21, 2009 2:57 AM
To: stellarium-pubdevel@lists.sourceforge.net
Subject: Re: [Stellarium-pubdevel] ***SPAM(-1.4)*** RE: Shader fortone conversion

Hi Steve,

Exactly how do you disable shaders when compiling? Where does the 'useShader=false' flag go?

I'm having a different issue with the shader when trying to change the night sky color and I'd like to disable it until Fabien or someone else can address my post.

Mike


> From: steve.ingamells@tesco.net
> To: stellarium-pubdevel@lists.sourceforge.net
> Date: Tue, 16 Jun 2009 18:59:18 +0100
> Subject: [Stellarium-pubdevel] ***SPAM(-1.4)*** RE: Shader for tone conversion
>
> Hi Fabien,
>
> I have just got back into Stellarium stuff and built revision 4705 for
> Windows (XP Pro SP3) and although my laptop's graphics card claims to be
> OpenGL 2.0 compliant, it crashes on startup just after logging that it will
> use shaders. Recompiling with useShader=false makes it work fine.
>
> Hardware is a Dell latitude D810 with ATI Radeon 300X (64MB). I have the
> latest drivers from Dell. I don't have any other supposedly OpenGL-2.0
> hardware with which to test, unfortunately.
>
> If there's any further info that would help, please let me know.
>
> Best regards,
> Steve Ingamells

Bing™ brings you maps, menus, and reviews organized in one place. Try it now.