I see what you are now talking about.
This code produces the problem as you describe:
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage("grass_1.png",1);
//dbLoadImage("grass_2.png",2);//new red version of grass
dbMakeObjectPlain(1,10,10);
dbMakeObjectPlain(2,10,10);
dbMakeObjectPlain(3,10,10);
dbTextureObject(1,1);
dbTextureObject(2,2);
dbTextureObject(3,1);
dbSetObjectTransparency(1,1);
dbSetObjectTransparency(2,1);
dbSetObjectTransparency(3,1);
// Added a bit more sideways displacement for clarity of viewing.
dbPositionObject(1,10,0,0);
dbPositionObject(2,5,0,5);
dbPositionObject(3,0,0,10);
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Now using the advice that IanM suggested (transparency mode 4 or 6), at least for me the problem is gone. Here is the modified code:
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage("grass_1.png",1);
//dbLoadImage("grass_2.png",2);//new red version of grass
dbMakeObjectPlain(1,10,10);
dbMakeObjectPlain(2,10,10);
dbMakeObjectPlain(3,10,10);
dbTextureObject(1,1);
dbTextureObject(2,2);
dbTextureObject(3,1);
dbSetObjectTransparency(1,4); // now using transparency mode 4
dbSetObjectTransparency(2,4); // now using transparency mode 4
dbSetObjectTransparency(3,4); // now using transparency mode 4
// Added a bit more sideways displacement for clarity of viewing.
dbPositionObject(1,10,0,0);
dbPositionObject(2,5,0,5);
dbPositionObject(3,0,0,10);
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage("grass_1.png",1);
//dbLoadImage("grass_2.png",2);//new red version of grass
dbMakeObjectPlain(1,10,10);
dbMakeObjectPlain(2,10,10);
dbMakeObjectPlain(3,10,10);
dbTextureObject(1,1);
dbTextureObject(2,2);
dbTextureObject(3,1);
dbSetObjectTransparency(1,6); // now using transparency mode 6
dbSetObjectTransparency(2,6); // now using transparency mode 6
dbSetObjectTransparency(3,6); // now using transparency mode 6
// Added a bit more sideways displacement for clarity of viewing.
dbPositionObject(1,10,0,0);
dbPositionObject(2,5,0,5);
dbPositionObject(3,0,0,10);
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Are you sure these modes do not work for you????