Im cannot get a texture's color to show on a X model (picture attached) made with plant-life when I also use tree party. I have been able to texture other X models (a animated character) with no problem.
I even tried to load the plant-life model into blender and resave it again and it still had the same problem. I also changed all the texture and object ID numbers in tree party with no change.
Here is a simple example that shows the problem.
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple 3D project that uses Dark GDK
// it can be used as a starting point in making your own 3D games
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
#include "Treeparty.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
// in this application we are going to create some 3D objects
// and position them on screen
// when starting a Dark GDK program it is useful to set global
// application properties, we begin by turning the sync rate on,
// this means we control when the screen is updated, we also set
// the maximum rate to 60 which means the maximum frame rate will
// be set at 60 frames per second
tpInit(); // Tree Party
dbSyncOn ( );
dbSyncRate ( 60 );
// move our camera back so we can view the objects
dbPositionCamera ( 10, 10, -20 );
dbLoadObject( "plant.x", 1 );
dbScaleObject(1, 12, 12,12); // Scale to 2x's the original size
dbSetObjectTransparency(1, 4); // This looks best - ranges 0 thru 6 - we're using 4...
dbShowObject(1);
// now we come to our main loop, we call LoopGDK so some internal
// work can be carried out by the GDK
while ( LoopGDK ( ) )
{
tpUpdate ( 0 );
// display some text on screen
dbText ( 0, 0, "Use the up and down arrow keys to move the camera" );
// move the camera forwards
if ( dbUpKey ( ) )
dbMoveCamera ( 1 );
// move the camera backwards
if ( dbDownKey ( ) )
dbMoveCamera ( -1 );
// here we make a call to update the contents of the screen
dbSync ( );
}
// and now everything is ready to return back to Windows
return;
}