Need help to get MiniB3D to work

BlitzMax Forums/BlitzMax Beginners Area/Need help to get MiniB3D to work

PowerPC603(Posted 2010) [#1]
Hi guys,

I've been searching for a good 3D engine and I wanna use MiniB3D (v053).

But I can't get it to work.

The first problem was that the zip-file that I downloaded had duplicate filenames in every directory.
For every directory, there was a file with exactly the same name and they're all 0 byte files.
I managed to unzip it all manually, without all those 0 byte files.

Then I placed the sidesign.mod directory in the C:\BlitzMax\mod folder.
I've also installed MinGW 5.1.4 and added MinGW's bin folder to the path-list in windows.

But the IDE won't let me build the modules.
It's greyed out and even pressing CTRL+D doesn't work (nothing happens).
I've even rebooted my computer, but it still doesn't work.

Can someone help me with this?

In case this is needed (the directory-structure):
[code]
C:\BlitzMax\mod\brl.mod
C:\BlitzMax\mod\pub.mod
C:\BlitzMax\mod\sidesign.mod

C:\BlitzMax\mod\sidesign.mod\minib3d.bmx
C:\BlitzMax\mod\sidesign.mod\inc
C:\BlitzMax\mod\sidesign.mod\inc\BoxSphere.bmx
C:\BlitzMax\mod\sidesign.mod\inc\collision.cpp
C:\BlitzMax\mod\sidesign.mod\inc\collision.h
C:\BlitzMax\mod\sidesign.mod\inc\data.bmx
C:\BlitzMax\mod\sidesign.mod\inc\functions.bmx
C:\BlitzMax\mod\sidesign.mod\inc\geom.cpp
C:\BlitzMax\mod\sidesign.mod\inc\geom.h
C:\BlitzMax\mod\sidesign.mod\inc\misc.cpp
C:\BlitzMax\mod\sidesign.mod\inc\std.cpp
C:\BlitzMax\mod\sidesign.mod\inc\std.h
C:\BlitzMax\mod\sidesign.mod\inc\TAnimation.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TBlitz2D.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TBone.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TBrush.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TCamera.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TCollisions.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TColTree.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TDebug.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TEntity.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TGlobal.bmx
C:\BlitzMax\mod\sidesign.mod\inc\THardwareInfo.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TLight.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TMatrix.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TMesh.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TModel.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TPick.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TPivot.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TQuaternion.bmx
C:\BlitzMax\mod\sidesign.mod\inc\tree.cpp
C:\BlitzMax\mod\sidesign.mod\inc\tree.h
C:\BlitzMax\mod\sidesign.mod\inc\TSprite.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TSurface.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TTexture.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TUtility.bmx
C:\BlitzMax\mod\sidesign.mod\inc\TVector.bmx
C:\BlitzMax\mod\sidesign.mod\inc\unoptimised.bmx
C:\BlitzMax\mod\sidesign.mod\inc\.bmx
C:\BlitzMax\mod\sidesign.mod\inc\.bmx\collision.cpp.debug.macos.ppc.o
The rest are all .o files in this directory


PowerPC603(Posted 2010) [#2]
I tried the BirdDemo that came with minib3d.
It couldn't find minib3d.

Then I tried to put the "minib3d.bmx" and the "inc" folder in the birddemo folder, that worked. The demo ran fine, but took a while to compile.
And when I compile the demo again, BMax recompiles all those .cpp files in the minib3d's inc-folder.

But I cannot use it as a mod.
BlitzMax just doesn't see the mod "sidesign.mod", with minib3d inside.

I even tried to copy the minib3d.mod folder to the pub.mod folder, that doesn't work either.


PowerPC603(Posted 2010) [#3]
After a bit of searching, I found out that not only the "path" environment variable needs C:\MinGW\bin, but I also needed to create a new system environment variable: MinGW = C:\MinGW.

Now my modules are compiling (the "Build modules" isn't grey anymore) and BMax compiled the minib3d mod too.

Now all I need to do is wait until compiling is complete, then test it.


PowerPC603(Posted 2010) [#4]
BMax compiled both the debug and release versions of the minib3d mod, but it doesn't use the mod when I try the demo.

I'm not using Framework, so BMax should include all mods in the demo, right?

The error I get when trying the demo, is that "Graphics3D" is an unknown command (Identifier "Graphics3D" not found).


PowerPC603(Posted 2010) [#5]
Found the answer, finally. BMax only uses mods in the brl and pub directories automatically. Using other modules, you need to import them explicitly.

I'll have to use:

Import sidesign.minib3d

at the top of the bird-demo.

Now it works.