sorry for double posting, the site is TOO slow that i can't edit my post.
i found out 2 ways to do it:
1-
dbMakeObjectCube ( 1, 20 );
dbSetAlphaMappingOn ( 1, alpha );
2-
dbMakeObjectCube ( 1, 20 );
dbSetObjectTransparency ( 1, 1 )
dbLoadImage ( alpha_channeled_image, 5 );
dbTextureObject ( 1, 5 );
so i think if you use the second way, you can make all the object's texture images alpha channeled and then load the object and use dbSetObjectTransparency()
edit: tested and it works:
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn();
dbSyncRate ( 60 );
dbColorBackdrop ( dbRGB ( 0, 0, 0 ) );
dbLoadObject ( "Box.X", 1 );
while ( LoopGDK() )
{
if ( dbKeyState ( 30 ) )
::dbSetObjectTransparency ( 1, 2 );
else
::dbSetObjectTransparency ( 1, 0 );
dbSync();
}
}
media: http://filebeam.com/2eb2e3d55264e8340769c927b1d3daec
extract it in the project's directory.
press A in the application and see what happens