Not all demos work???????

Archives Forums/Linux Discussion/Not all demos work???????

jondecker76(Posted 2007) [#1]
I'm running BMX on Ubuntu 6.10

The problem I am having is that some demos work, some don't.. The ones that don't all have similar error messages:
Building glblurr
Compiling:glblurr.bmx
flat assembler version 1.64
3 passes, 27982 bytes.
Linking:glblurr.debug
Executing:glblurr.debug
/usr/bin/ld:warning: libstdc++.so.6, needed by /usr/lib/libGLU.so, may conflict with libstdc++.so.5
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 144(GLX)
Minor opcode of failed request: 5(X_GLXMakeCurrent)
Serial number of failed request: 57
Current serial number in output stream: 57

Process complete



Any idea what is going on??

thanks,
Jon


LarsG(Posted 2007) [#2]
maybe you could try to reinstall the GL/GLX/GLU packages needed for BMax?!?
I really don't know if it will help or not, but I'm guessing it's worth a shot..


QuietBloke(Posted 2007) [#3]
Im running Ubuntu 6.10 and the few demo's I tried all worked fine for me.

What one(s) dont work ?.. I can see if they work for me when I get home tonight


jondecker76(Posted 2007) [#4]
glblurr for one, and a ton of others...

I did find that they will work if i get rid of the flags for Depth and Hertz on the graphics calls - I.e. changing Graphics 640,480,32 to Graphics 640,480 got them to run.. Now i'm just trying to figure out why this is happening...


QuietBloke(Posted 2007) [#5]
Well.. Im afraid I have no idea what your problem can be.. I just tried glblurr and it worked fine for me.

sounds almost ike your graphics card/driver cannot do 32bit depth.. does it work if you change it to 24 ?

sorry I cant be of more help other than the code does work in Linux on other machines. Hopefully someone else with some more knowhow may be able to help.

Id be interested to find out what the problem is.


jondecker76(Posted 2007) [#6]
I've emailed support with no reply as of yet.

My graphics card is fairly up to date (geforce 6200 256mb), as well as my system (P4 2.8ghz, 2GB Ram, 640GB HD) running Ubuntu 6.10. I've run syncmods and rebuilt all modules. I am also running the latest NVidia binary drivers (9647).

I've tried with 16,24, and 32 bit depths and all give the same error.. But leaving the depth blank on the Graphics call and all runs as it should.

It would be nice to hear something from Blitz Research on this, i'd really like it to work properly.

thanks,
Jon


QuietBloke(Posted 2007) [#7]
Thats even stranger.. I have an nVidia card too.. cant remember off he top of my head which one.. its 256Mb and I dont know which revision either.. Im not very Linux savey... I just installed Automatix and got it to install the nVidia driver as well as everything else I wanted ( codecs, Firefox + plugins etc )

I hope someone can help you out... it sucks when stuff doesnt work for no apparent reason.. its why over many years I kept getting put off by Linux.. Ubuntu is the first one that actually worked for me without having for search the web and faff about for days to get my sound and graphics to work properly.


RiK(Posted 2007) [#8]
On my Mac I've seen a few apps that failed at the Graphics() setup because they tried to force the refresh rate, or to check that the driver supported 60Hz when checking graphics modes..

I'm using an X850XT driving a 23" Apple Cinema Display and the refresh for all available modes reports 0Hz.

Maybe it's a similar issue on your card?

Try running this:
Print "Available graphics modes:"

For mode:TGraphicsMode=EachIn GraphicsModes()

	Print mode.width+","+mode.height+","+mode.depth+","+mode.hertz

Next


On here I'll get the following output:

Available graphics modes:
1920,1200,16,0
1920,1200,32,0
960,600,16,0
960,600,32,0
640,480,16,0
640,480,32,0
640,480,16,0
640,480,32,0
800,600,16,0
800,600,32,0
800,600,16,0
800,600,32,0
800,500,16,0
800,500,32,0
1024,768,16,0
1024,768,32,0
1024,768,16,0
1024,768,32,0
1024,640,16,0
1024,640,32,0
1280,960,16,0
1280,960,32,0
1280,960,16,0
1280,960,32,0
1280,800,16,0
1280,800,32,0
1344,1008,16,0
1344,1008,32,0
1344,840,16,0
1344,840,32,0
1600,1200,16,0
1600,1200,32,0
1600,1000,16,0
1600,1000,32,0

Process complete



jondecker76(Posted 2007) [#9]
Rik -

Your code helped open my eyes - it looks like the problem is related to my dual-screen setup (nvidia twinview), as only one resolution is listed: (i don't know why i didn't think of this already)

Available graphics modes:
2560,1024,24,75



So would this be a BlitzMax bug? All other games etc I've tried have no problem setting up graphics modes on a twinview setup!


D4NM4N(Posted 2007) [#10]
I had one like this when i first tried it-

First make sure youve got all the libs as described in the bmax setup guide.

then,

in terminal, if you type:
glxinfo | grep direct

you should see:
direct rendering: yes

if not then theres a problem with your driver or xorg.conf
on my nvidia i had to disable all the dri stuff and just load glx, then it worked.

(that was what my problem was)


skidracer(Posted 2007) [#11]
Is the twinview driver packaged with ubuntu6.1?

If BlitzMax were to select fullscreen fallbacks based on scaling the viewport to the closest one available thats a pretty intense resolution to go to!

The fullscreen driver in bmax also needs to cope gracefully with no resolutions (commonly XF86 based vidmode stuff is not supported on linux).

The code that needs some attentions begins at line243 in glgraphics.mod/glgraphics.linux.c. There is already a second attempt added in the code to match the resolution ignoring depth so hopefully old problem on 32/24 bit specific drivers (ati=24 nvidia=32 i think) is thing of the past.

Also some of the GL demos may still not be correctly specifying graphics features such as GRAPHICS_DEPTHBUFFER, if they are using the flags option for GLGraphics command, some drivers i think have depth by default even if you don't explicitly ask for it.