View topic - ATI lua draw point bug



All times are UTC + 1 hour


Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: ATI lua draw point bug
PostPosted: 13 Sep 2010, 21:11 

Joined: 30 Jan 2007, 15:23
I never wanted to have an ATI cause of OpenGL issues I can read all over the forum. As I got a great deal, I finaly bought a 5870 and here is the result :
Attachment:
ATIvsOGL.jpg [133.91 KiB]
Downloaded 1 time


I first disabled clouds and shorewaves to avoid instant crashing. And then this is what I get with smooth scroll and widget redrawing minimap. Transparency looks to fail.

Tried catalyst 10.9, 10.8, 10.7, 10.4, atihacks (dunnow what this does) but it's a no go.

What can I do except waiting for drivers that work and fail along versions ?

Summary :

- Lua using GL_POINT is failing in this way
- The size you define doesn't work, it's always the same size drawn
- A C++ hellogl app gave me good results with Gl_POINTS. The point size worked

Maybe something brakes the LUA GL context and always give the same point size. But this only happens with my ATI. Weird


Last edited by Masure on 17 Oct 2010, 15:37, edited 3 times in total.

Top
 Offline Profile  
 
 Post subject: Re: ATI 2D lua draw bug
PostPosted: 13 Sep 2010, 21:38 
User avatar

Joined: 13 Sep 2010, 21:33
Workaround: Disable Red Minimap

After the game started, those start points will be removed and with them those huge bubbles. That aint nice actually, but tbh i never had use for the benefits of Red Minimap anyway, so *I* can live with it. If you can is up to you ofc.


Top
 Offline Profile  
 
 Post subject: Re: ATI 2D lua draw bug
PostPosted: 13 Sep 2010, 21:41 

Joined: 30 Jan 2007, 15:23
"don't play spring" would have been the same


Top
 Offline Profile  
 
 Post subject: Re: ATI 2D lua draw bug
PostPosted: 13 Sep 2010, 21:54 
User avatar

Joined: 13 Sep 2010, 21:33
not happy? cant live without red minimap? well, maybe try the rage in 3d bugfix presented at http://www.youtube.com/watch?v=qQURVhEaZhs...


Top
 Offline Profile  
 
 Post subject: Re: ATI 2D lua draw bug
PostPosted: 13 Sep 2010, 22:31 
Redacted
User avatar

Joined: 11 Jul 2007, 16:47
lol the ipad keyboard is still showing when it's bent and the glass is totally totally cracked


Top
 Offline Profile  
 
 Post subject: Re: ATI 2D lua draw bug
PostPosted: 14 Sep 2010, 17:53 

Joined: 30 Jan 2007, 15:23
GL_POINTS fails as it doesn't take glPointSize into account.

Code:
function widget:GetInfo()
  return {
    name      = "ATI pointsize Fail",
    desc      = "ATI pointsize Fail",
    author    = "Masure",
    date      = "2010 Sept 14",
    license   = "GNU GPL, v2 or later",
    layer     = 1,     --  after the normal widgets
    enabled   = false  --  loaded by default?
  }
end

local GL_POINTS   = GL.POINTS

local glBeginEnd  = gl.BeginEnd
local glColor     = gl.Color
local glPointSize = gl.PointSize
local glVertex    = gl.Vertex

function widget:DrawScreen()
   glPointSize(10)
   glColor({1,1,0} )
   glBeginEnd(GL_POINTS, glVertex, 100, 100)
end


I tried different point sizes but the point is always the same. Moreover, if I disable smoothpoint in springsettings, my whole screen is filled by the point.


Top
 Offline Profile  
 
PostPosted: 15 Sep 2010, 12:52 

Joined: 30 Jan 2007, 15:23
These tests were made on WIN7 64 and catalyst 10.8.

Tested with Win XP 32 and catalyst 10.8 and the point size is now always 1px whatever io try.


Top
 Offline Profile  
 
PostPosted: 15 Sep 2010, 16:17 

Joined: 30 Jan 2007, 15:23
It seems it has to do with GL_SMOOTH_POINT_SIZE_RANGE but not sure.


Top
 Offline Profile  
 
PostPosted: 15 Sep 2010, 19:47 

Joined: 30 Jan 2007, 15:23
I tried GL_POINTS in an "hello gl" project and it displays points with the right size. It should have something to do with spring.


Top
 Offline Profile  
 
PostPosted: 03 Nov 2010, 12:44 
Server Owner & Developer
User avatar

Joined: 19 May 2006, 18:13
Location: Brno, Czech rep., EU, Terra, Sol, Orion arm, Milky way, Virgo supercluster
Can anyone comment on this? Why it works outside spring?


Top
 Offline Profile  
 
PostPosted: 03 Nov 2010, 12:54 
Spring Developer

Joined: 08 Oct 2006, 15:58
Three possibilities:

1) ATI drivers require a very-specific-and-probably-undocumented GL state for GL_POINTS and Spring does not set all of it to ATI's wishes (glhf finding out which part and where), while Nvidia drivers are less strict
2) There is a bug in Spring that is being masked by (all of) Nvidia's drivers while ATI's strictly follow the GL specifications and trip over it
3) ATI drivers are bugged

One of these has greater precedent than the others.


Top
 Offline Profile  
 
PostPosted: 03 Nov 2010, 13:47 
Server Owner & Developer
User avatar

Joined: 19 May 2006, 18:13
Location: Brno, Czech rep., EU, Terra, Sol, Orion arm, Milky way, Virgo supercluster
Well for me it stopped working on one of 0.82 releases, before that it worked fine (I didn't change drivers).

I don't dispute its driver bug, but perhaps there is something that can be done to avoid it.


Top
 Offline Profile  
 
PostPosted: 03 Nov 2010, 13:50 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
i guess, if you have ATI, you could try to set the different states before the code that draws the points, or try to find documentation that says how the state has to be to draw points.


Top
 Offline Profile  
 
PostPosted: 03 Nov 2010, 13:52 

Joined: 30 Jan 2007, 15:23
http://forums.sketchucation.com/viewtop ... 80&t=26548

Related ?


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.