well, I somehow got a color and a shade, not quite sure how and I just discovered the help files that came with the installation!!!!!!!!!!! (a week later) Well I cant be the only idiot out there, C'mon guys raise yer hands if u were 1 2. I m gonna include my code so I can still get the ambient help in here, cuz I still want to shade and textue my objects the way I import them. Just so you know I wouldnt run the movement commands , im still strugling with getting any collisions correct but I work on this day and night. Heres my pertinent updated code
dbLoadImage ( "texture.jpg", 1 );//////////Terrain color texture
dbLoadImage ( "lava.bmp", 2 ,0);
dbLoadImage ( "newmap.jpg",3);
// the first step in creating a terrain
dbSetupTerrain ( );
dbMakeObjectTerrain ( 1 );
dbSetTerrainHeightMap ( 1, "haze.jpg" );
dbSetTerrainScale ( 1, 5.0f, 2.0f, 5.0f );
dbSetTerrainLight ( 1, -.25f, .44f, -0.25f, 1.f, 1.0f, 1.0f, 1.0f ); //the last parameter is overall influence originally set to .5
dbSetTerrainTexture ( 1, 1, 2 );
dbBuildTerrain ( 1 );
dbPositionObject (1,-2500,0,-2000);/////////////////////////terrain
dbSetObjectTexture ( 1, 3, 2 );
dbSetObjectCollisionOff ( 1 );
float oheight = dbGetTerrainGroundHeight (1, dbObjectPositionX (11 ), dbObjectPositionZ(11));
float fHeight = dbGetTerrainGroundHeight ( 1, dbCameraPositionX ( ), dbCameraPositionZ ( ));
// with the terrain in place we can now load a skybox
dbLoadObject ( "skybox2.x", 2 );
dbSetObjectLight ( 2, 0 );/////////////////////////////////////skybox
dbSetObjectTexture(2, 3, 2);
dbScaleObject ( 2, 10000.0f, 10000.0f, 10000.0f );
dbLoadObject ( "ghook.x",4);
//dbPositionObject (4, dbObjectPositionX(11), oheight + 40,dbObjectPositionY (11) ); /////////////////////ghook
dbSetObjectTexture(4, 3, 2);
dbScaleObject (4, 10,10,10);
dbSetObjectLight (4,1);
dbFixObjectPivot ( 4) ;
/////////////////////////////////////////dbSetReflectionShadingOn (4 ) ;
dbSetObjectCull (8,1);
dbLoadObject ( "tower.x.x",8);
//dbConvertObjectFVF ( 8, 0x600 ) ;
dbSetObjectTexture(8, 0, 3, 3);
dbPositionObject (8, -450, 478,-450); /////////////////////tower
dbScaleObject (8, 4000,4000,4000);
dbSetObjectLight (8,1);
dbSetObjectAmbient ( 8, 1 );
dbSetDetailMappingOn ( 8, 3 ) ;
//dbSetBumpMappingOn ( 8, 3 ) ;
dbRotateObject (8,0, 40,0);
dbScrollObjectTexture( 8,1,60);
dbScaleObjectTexture(9,500,100 );
dbSetObjectSpecularPower ( 8, 75) ;//75=red 45= black 60=b
//dbSetLightMappingOn ( 8,3 );
dbSetObjectEmissive ( 8, 13 );
dbSetObjectFilter ( 8, 2 );
dbSetVertexShaderOn ( 8,1 ) ;
dbSetObjectCollisionToSpheres (8) ;
dbSetObjectCull (8,1);
dbSetObjectRadius ( 8, 1) ;
dbCreatePixelShaderFromFile ( 1, "tower2.x" ) ;
//dbSetShadowShadingOn (9 ) ; //no noticeable effect
dbSetDetailMappingOn ( 9, 2 );
dbLoadObject ( "tower2.x",9);
//dbSetObjectTexture(8, 1, 3, 3);
dbPositionObject (9, -450, 478,800); /////////////////////tower2
dbScaleObject (9, 4000,4000,4000);
dbSetObjectEmissive ( 9, 13 );
dbSetObjectLight (9,1);
dbSetObjectAmbient ( 9, 1 );
//dbSetBumpMappingOn ( 8, 3 ) ;
dbRotateObject (9,0, 40,0);
dbSetObjectCull (9,1);
dbSetObjectSpecularPower ( 9, 10 ) ;
dbSetVertexShaderOn ( 9 ,1 );
dbSetObjectCollisionToSpheres ( 9) ;
dbSetObjectRadius ( 9, 1) ;
dbLoadObject ("Colonel-X.x", 11 );
dbPositionObject (11, -850, oheight ,-850);
dbSetObjectLight (11, 0);
dbLoopObject ( 11, 210, 234 );/////////////////////////////////colonel x
dbSetObjectSpeed ( 11, 150 );
dbScaleObject (11, 60.0f, 60.0f, 60.0f);
//dbSetObjectRadius ( 11, 15 ) ;
dbAutomaticObjectCollision ( 11, 0, 1 ) ;
dbSetObjectInterpolation ( 11, 12 ) ;
dbSetObjectRadius ( 11, 10 ) ;
dbSetCameraRange ( 1.0f, 30000.0f );
dbPositionCamera ( 0 ,oheight+ 45, 0 );////////camera settings
dbSetCameraToObjectOrientation (11);
//dbAutomaticCameraCollision (0, 1, 0 );
float Turnangle= dbWrapValue(0);
float walk; /////////////////////////////////////////maths and music
float speedo;
dbLoadMusic ("strawberry.mp3", 1);
while ( LoopGDK ( ) )
If you're not livin', you're already dead!