Its not big but ive made a some stars using photoshop elements 5 and then going along with the tutorials ive managed to put the stars in a skybox from the media folder in tutorials etc and then using keyboard and mouse control the camera like a space ship hehe. How do you make a skysphere cos you xan actualy see like a square when in side the box. The folders i have used are. I made a seperate folder in the progects folder and named it media and and then i put the following in. i put the skybox2 in from the tutorial "game level" then i made my own stars using elements5 and placed 1 bmp file in the same folder as the skybox. Then i copied the bmp file 6 times just like in the Game Level tutorial. So here is the code what i did.
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
// switch to the media directory, load our world
// and turn lighting off
SetCurrentDirectory ( "media" );
dbLoadImage ( "2.bmp", 1 );
dbSetObjectLight ( 1, 0 );
// load a model for our sky
dbLoadObject ( "skybox2.x", 2 );
dbSetObjectLight ( 2, 0 );
dbSetObjectTexture ( 2, 3, 2 );
dbScaleObject ( 2, 5000, 5000, 5000 );
// position the camera
dbPositionCamera ( 434, 42, 000 );
// camera variables
float fCameraAngleX = 0.0f;
float fCameraAngleY = 0.0f;
// our main loop
while ( LoopGDK ( ) )
{
// move the camera using the arrow keys
dbControlCameraUsingArrowKeys ( 0, 5.0f, 0.3f );
// create a rotation axis based on mouse movement
fCameraAngleX = dbWrapValue ( fCameraAngleX + dbMouseMoveY ( ) * 0.4f );
fCameraAngleY = dbWrapValue ( fCameraAngleY + dbMouseMoveX ( ) * 0.4f );
// rotate camera
dbXRotateCamera ( fCameraAngleX );
dbYRotateCamera ( fCameraAngleY );
// update the screen
dbSync ( );
}
// return back to windows
return;
}
What im wanting to no is how do you make a skysphere?. thanks and thanks for any help.
A,B,C er line