unable to create graphics mode?

Blitz3D Forums/Blitz3D Beginners Area/unable to create graphics mode?

Kirkkaf13(Posted 2010) [#1]
Hi all,

When ever I try to run my program without debug enabled I get this error, any ideas why?

OneHitWonder


Drak(Posted 2010) [#2]
What are you trying to set your graphics mode to? A little more information is necessary.


Kirkkaf13(Posted 2010) [#3]
I have just changed my graphics windows size from [800, 600] to [640, 480] did I get the error because my computer did not support that size?

OneHitWonder.


Ross C(Posted 2010) [#4]
I would seriously doubt it... Are you loading any textures? If so, comment them out and see what happens. I've seen some strange errors in different OS's whereby, if you didn't set the flags you want to load textures/sprites with, it would trigger a strange error.


GfK(Posted 2010) [#5]
I have just changed my graphics windows size from [800, 600] to [640, 480] did I get the error because my computer did not support that size?
Which of those sizes is giving the error?

I've yet to see any hardware that doesn't support 800x600 at all. 640x480... maybe.

800x600 is the de facto standard for the default resolution in casual games so there might be problems on the horizon if hardware is appearing that doesn't support it.


Kirkkaf13(Posted 2010) [#6]
It works fine with 640X480, I was only loading the built in cube, just didn't work with 800X600.

OneHitWonder


GfK(Posted 2010) [#7]
Are you using a netbook or something that only supports stupid resolutions?


Warner(Posted 2010) [#8]
When you omit the 'windowmode' parameter, with debug enabled, windowed mode is chosen. Without debug, it tries to run fullscreen. I think 640x480 fullscreen is somehow not supported. Use the GFXModeExists command to determine which modes your card can handle.


Kirkkaf13(Posted 2010) [#9]
@Warner

640x480 works it's 800x600 that I have a problem with.

@GfK

No, it was tested on a "work" computer, works on my home computer though.

OneHitWonder.


Warner(Posted 2010) [#10]
Still, use GFXModeExists to determine what modes your graphic card supports:
Print "scanning.."
For i = 0 To 4096
For j = 0 To 4096
For bt = 0 To 32 Step 8
	If GfxModeExists(i, j, bt) Then Print "supported: " + i + "x" + j + "x" + bt
Next
Next
Next
Print "done. press any key.."
WaitKey
End



Kirkkaf13(Posted 2010) [#11]
@Warner

Thanks alot.

OneHitWonder


Drak(Posted 2010) [#12]

Are you using a netbook or something that only supports stupid resolutions?



I love it! For some reason that question made me laugh.