Hi all,
here is an utility, a .prg file which has a PROCESS called make_3dit ( )
That PROCESS allows you to use: file, graph, x, y, z, angle and size on Bennu 3D just like in Bennu 2D, so you don't have to be care about the weird Bennu 3D syntax.
Here is an example of a process that uses 3dit and moves, rotate, scale, advance and change graph using LOCAL variables only:
PROCESS dummy ( )
BEGIN
make_3dit ( );
file = load_model ( "model/ogre/ogre.md2" );
graph = load_texture ( "model/ogre/ogre001.pcx" );
LOOP
// Moving test along x,y,z axis
IF ( key ( _Q ) )
x++;
ELSEIF ( key ( _E ) )
x--;
END
IF ( key ( _R ) )
y++;
ELSEIF ( key ( _F ) )
y--;
END
IF ( key ( _Z ) )
z++;
ELSEIF ( key ( _X ) )
z--;
END
// Rotation test along y axis
IF ( key ( _A ) )
angle -= 1000;
ELSEIF ( key ( _D ) )
angle += 1000;
END
// Resize test along x,y,z (uniform)
IF ( key ( _C ) )
size++;
ELSEIF ( key ( _V ) )
size--;
END
// Advance test
IF ( key ( _W ) )
advance3d ( 4 );
ELSEIF ( key ( _S ) )
advance3d ( -4 );
END
// Change texture test
IF ( key ( _1 ) )
graph = load_texture ( "model/ogre/ogre001.pcx" );
ELSEIF ( key ( _2 ) )
graph = load_texture ( "model/ogre/ogre002.pcx" );
ELSEIF ( key ( _3 ) )
graph = load_texture ( "model/ogre/ogre003.pcx" );
END
FRAME;
END
END
And here you can download the sample, it includes all Bennu 3D dlls, bgdc, bgdi, with last versions, a RunWin.bat launcher, all ready to compile, run, even modify it:
DOWNLOAD:
http://trinit.es/DescargaDirecta/Bennu3D/3Dit/3Dit%200.0.0.zipSo enjoy!