minib3d demos not working

BlitzMax Forums/MiniB3D Module/minib3d demos not working

Matt(Posted 2008) [#1]
I'm very new to Blitz in many ways, so, I may be missing something here. However, I open up one of the demos (say, bird) and it compiles perfect. Once the screen loads, I see FPS, but the rest of the screen is black. I've tried all the demos, and they all work the same. Any ideas?

Thanks.

Matt


Matt(Posted 2008) [#2]
BTW - I'm on a Macbook Pro with leopard.


ima747(Posted 2008) [#3]
Do you have anything running in the background? try restarting to make sure everything is quit.


Matt(Posted 2008) [#4]
Yup, I just restarted and the same thing happened. Here's the compiler output:

Building .BirdDemo
Compiling:bbtype.bmx
Compiling:bbvkey.bmx
Compiling:cfuncs.cpp
Compiling:ccol.cpp
Compiling:minib3d.bmx
Compiling:.BirdDemo.bmx
Linking:.BirdDemo
Executing:.BirdDemo

Process complete


smilertoo(Posted 2008) [#5]
i had to change drivers to get these things to work. xp32


.rIKmAN.(Posted 2008) [#6]
I am having this exact problem (reported in thread "What graphics cards have trouble with minib3d").

I am using a NVidia XFX 7950GT AGP with the latest official XFX drivers.

Smilertoo - what drivers did you have to change to?
Any other than XFX ones for me dont install the card properly in device manager.


smilertoo(Posted 2008) [#7]
im using 169.21 now.


Matt(Posted 2008) [#8]
Yea, unfortunately, the Apple ATI drivers don't make a difference for me.


.rIKmAN.(Posted 2008) [#9]
If I try and use any of the official nvidia drivers (or even the omega drivers) then my card doesnt install properly.

Only the XFX drivers work properly :(


taumel(Posted 2008) [#10]
Happened on a MacMini (OSX 10.4.11, ATI9200, PPC) some time ago:

Downloaded i guess the latest version, decompressed it, doubleclicked it, got an error message which told me that i have to reinstall BlitzMax, out of curiosity but without beeing convinced that this would be the solution i did that, so the whole thing from downloading the appropriate files (by the way the package under the 1.26 ppc version is broken), reinstalled, rebuild docs, updated the base installation, updated bmk, rebuild the files, retried and got the same error message as before that i need to reinstall BlitzMax...


Matt(Posted 2008) [#11]
so, that didn't work for you then? I have an intel mac, however.


.rIKmAN.(Posted 2008) [#12]

i had to change drivers to get these things to work. xp32
im using 169.21 now.



I just installed the 169.21 drivers and I still get a black screen with just the FPS text in the top left corner.

ie. Camerapick.bmx still reports the data in the output window but black screen and FPS text in top left.

Any ideas?


taumel(Posted 2008) [#13]
@Matt
Nope it wasn't running...


.rIKmAN.(Posted 2008) [#14]
Ok guys Klepto`s minib3d seems to work for me.
If I replace the include with klepto`s in the code other demos seem to work too.


Matt(Posted 2008) [#15]
rikman,

I'll have to give that a try right now and let you know.


.rIKmAN.(Posted 2008) [#16]
My above post was a bit vague.
Basically install Klepto`s Exctended MiniB3D, rebuild mods etc etc.

Then even code from MiniB3D Standard seems to work if I just change "Import sidesign.minib3d" to "Import klepto.minib3d"..... weird.


Dreamora(Posted 2008) [#17]
sounds like one of the default "enables" isn't really liked by your system ...


Matt(Posted 2008) [#18]
rikman,

I'm pretty confused about what you mean. basically, I downloaded Klepto's extended minib3d and extracted it to a directory. Then, I copied the "demos" and "examples" directories from the normal version into the klepto dir.

From here, I'm trying to compile/rebuild minib3d.mod/miniB3D.bmx and I get:
"Module does not match commandline module"

Any ideas?


klepto2(Posted 2008) [#19]
you have to create a new mod folder:
eg yorBMaxPath/mod/klepto.mod

in this path you have to copy the minib3d.mod folder of the extended version. After this step you have to rebuild klepto.minib3d
Open commandline --> change dir to your BMax/bin dir and enter : bmk makemods -a klepto.minib3d


Matt(Posted 2008) [#20]
Thanks Klepto,

Is any of this documented anywhere? I checked out the "readme" and also www.minib3d.com and didn't find this anywhere. I'm extremely new to blitz, so that would have explained a lot.


Matt(Posted 2008) [#21]
I get this:
Compiling:minib3d.bmx
Compile Error: Can't find interface for module 'brl.maxgui'

Edit: I found this URL and am trying that right now

http://www.blitzmax.com/Community/posts.php?topic=74186#828739


Matt(Posted 2008) [#22]
Great, that worked perfectly. I compiled the mod perfectly and I can now run all the demos. You guys are awesome.


.rIKmAN.(Posted 2008) [#23]
Good stuff! :)


Brucey(Posted 2008) [#24]
So does this mean I need to use Klepto's module on Mac then for everything to work as expected?

Apart from the bird-demo (which crashes immediately), they all seem to work fine on the standard minib3d.
What does Klepto's do different internally than the standard minib3d?

Simon, I haven't had time to trace the crash yet... but I can if it'll help.


Manromen(Posted 2008) [#25]
Hello,

i have a macbook (intel core2duo)

i have no problem with the firepaint3d and flag demo.
But i get an application crash with the bird demo.

(i'm using minib3d as module version v0452)

compiling seems normal:

Building BirdDemo
Compiling:bbtype.bmx
Compiling:bbvkey.bmx
Compiling:BirdDemo.bmx
Linking:BirdDemo.debug
Executing:BirdDemo.debug

Process complete


if the demo starts it crashes with this details:



if i don't use debug mode it says:
Building BirdDemo
Compiling:bbtype.bmx
Compiling:bbvkey.bmx
Compiling:BirdDemo.bmx
Linking:BirdDemo
Executing:BirdDemo
SIGNAL: 10
Process complete


and don't starts the app.

I hope that helps :-)


Brucey(Posted 2008) [#26]
Don't worry. It crashes for me too :-)


klepto2(Posted 2008) [#27]
COuld you track it down on which line it crashes? Maybe adding a debugstop right at the beginning and then step through until it crashes?


Brucey(Posted 2008) [#28]
Here we are :-)

TMesh.bmx
			If new_surf.vbo_enabled=True Then glGenBuffers(6,new_surf.vbo_id)

If I comment it out, it works.

Interestingly, this is what caused crashing issues in an older version.
Wasn't there a different function to call instead?


simonh(Posted 2008) [#29]
That needs to be glGenBuffersARB. Must have missed it before. Darn!


Manromen(Posted 2008) [#30]
Yeah glGenBuffersARB fixed it for me too. Thanks alot!


Dreamora(Posted 2008) [#31]
the world of with and without ARB ^^
Thanks for the fix simonh