When I generated my first tree and loaded it into Dark GDK it gave this problem [See Screenshot].
The Code is
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSetDisplayMode ( 1024, 600, 32 );
dbSetWindowOff();
dbMaximizeWindow();
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadObject("media/Atomiser.x",10);
dbRotateObject(10,-90,0,0);
dbPositionObject(10,10,-15,20);
dbLockObjectOn(10);
dbSetImageColorKey ( 255, 0, 255 );
dbLoadImage ( "media/crosshair.bmp", 1 );
dbSprite ( 1, 482, 290, 1 );
dbLoadObject("media/trees/mossy_tree_1a.x",301);
dbPositionObject(301,100,0,100);
dbScaleObject ( 301, 200, 200, 200 );
dbPositionCamera ( 434, 42, -517 );
while ( LoopGDK ( ) )
{
dbMakeMatrix(4,300,300,20,20);
dbSync ( );
dbControlCameraUsingArrowKeys ( 0, 5.0f, 2.0f );
}
return;
}
Any help or advise would be highly appreciated, thank you
EDIT: Actually I need an object image transparency or something familiar, funny is that I know how to do this in DarkBasic pro, but have no idea how to in D-GDK :p
Michel Cilissen - CiliSoft Software Solutions
michel@techblog24.com - http://www.cilisoft.tk