From: Fabien C. <fab...@go...> - 2009-06-22 15:00:27
|
Hi thanks! Could try to put back the code instruction by instruction and look where it fails? Fabien On Mon, Jun 22, 2009 at 16:14, Steve Ingamells<ste...@te...> wrote: > Hi Mike, Fabien, > > Further to this, I tried replacing the shader file with a basic one with > just the lines: > > void main() > { > gl_Position = ftransform(); > } > which I understand to be about the minimum that it can be. > > On the one hand, Stellarium does not crash when it starts and it appears to > compile and link the shader. > > On the other, when Stellarium starts, the atmosphere view seems to be all or > nothing - it seems to depend on where on the screen the horizon is (I am > using perspective view) and is either all white or black with no stars > visible, and an occasional white bar along the top right of the screen > > The fps now seems to be about what I normally get - 15-20 > > If I make the shader file anything less than that above the system loads but > is very slow - 2-3 fps... > > Hope this helps! > > Steve > > ________________________________ > From: Steve Ingamells [mailto:ste...@te...] > Sent: Sunday, June 21, 2009 7:32 PM > To: 'Stellarium developers public mailing list' > Subject: [Stellarium-pubdevel] ***SPAM(-1.4)*** RE: ***SPAM(-1.4)*** > RE:Shader fortone conversion > > 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:lon...@ho...] > Sent: Sunday, June 21, 2009 2:57 AM > To: ste...@li... > 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: ste...@te... >> To: ste...@li... >> 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. > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source Bridge > conference! > Portland, OR, June 17-19. Two days of sessions, one day of unconference: > $250. > Need another reason to go? 24-hour hacker lounge. Register today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > Stellarium-pubdevel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > > |