[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] GLSL Texturing example ? (and ctypes...?)



Quoting Alex Holkner <aholkner@xxxxxxxxxxxxxx>:


> >
> I'm assuming you still had glUseProgram in there ;-)  I suppose if you 
> don't set the value of a uniform parameter it defaults to zero anyway 
> (first texture unit), so yeah, cool.
> 

Yeah, that sounds right.


> >Also - when the teapot spins round and presents either the handle or the
> spout
> >close to the viewplane (the spout gets clipped), there is noticeable
> slowdown.
> >  
> >
> I don't get that.. pretty consistent 700 FPS at all angles.  I'm on a 
> 6600 GT with 1.0-9625 beta driver.
> 

Hmmm.  I'll have to put some clocking stuff in.

> This has 90 degree FOV...
>     gluPerspective(90.0, width/float(height), 1.0, 100.0)
> 
> I think most FPS's use around 60 degrees, see if you like that better.

Ah! Ok that's that one explained! :)


> >All that's for later on, this is under glX on Fedora Core 3 with a Quadra
> and
> >the latest Nvidia drivers - any strangeness could be due to _anything_ at
> this
> >stage, so I wont put the cart before the horse just yet.  I'm just really
> glad
> >to have it running!
> >  
> >
> Don't know what a Quadra is (Quadro?).  nvidia drivers will emulate 

D'oh, Quadro, yes!


> anything in software if your hardware doesn't support it.  That would be 
> the case if you're getting framerates less than 100 on this demo.  Might 
> want to also check that you're actually loading the nvidia driver, not 
> the open source one, or (worse) Mesa.  Fedora can be a bit finicky about 
> this in my experience.
> 

Ooooh yeah.

I have a glreport.py that I cooked up and it appears I'm getting all the goodies.
The nvidia driver installed nicely and seems to have replaced all the right
.so's and updated the LD' hints properly.

Quoting its output:

$ py glreport.py
GLEW Version: 1.3.4
GL_VENDOR:   NVIDIA Corporation
GL_RENDERER: Quadro NVS 285/PCI/SSE2
GL_VERSION:  2.0.2 NVIDIA 87.74

...and then a lonnnng list of extensions.

So, dunno what the slowdown is, but by default I blame Fedora for everything and
thats usually right :)

> Alex.

Spheres!
Jon


--------------------------------------------------------------------
Come and visit Web Prophets Website at http://www.webprophets.net.au