Yep. Just as BB said.
What model maker do you have on your computer? Try this:
1) Start your model maker
2) Make a simple object in your model maker (cube, cylinder, cone, plain)
3) Go to "File" and click on "export".
4) Somewhere you will see an option called "Direct X" or ".x" or something with an "x".
5) Export it in that format and call it "object.x"
6) Close your model maker
7) Open DarkBasic, create a new project folder "model_test"
8) Save your code in that folder as "model_test.dba"folder
9) Make sure the model you exported is in the same folder as your code
9) Use this code:
rem setup screen
sync on
sync rate 60
backdrop on
color backdrop 0
hide mouse
rem load object
load object "object.x",1
rem main loop
do
rem user info
text 0,0,"Use up and down arrow key to zoom"
text 0,20,"Use mouse to view"
text 0,40,"Distance : "+str$(dist#)
text 0,60,"Height : "+str$(height#)
text 0,80,"Angle : "+str$(angle#)
rem control camera
angle#=wrapvalue(angle#+mousemovex()/2)
inc height#,mousemovey()/2
if upkey()=1 then dec dist#,2
if downkey()=1 then inc dist#,2
set camera to follow 0,0,0,angle#,dist#,height#,10,0
point camera 0,0,0
rem refresh screen
sync
rem end of main loop
loop
rem end
end
And see if you can see the model.
For music and sound look at these commands:
load music
loop music
load sound
loop sound
set sound speed
set sound volume
music supports mp3, wma, xm and midi files (And something else I forgot)
sound supports mp3, and wav, and probably more...
Textures:
load bitmap
delete bitmap
load image
get image
delete image
texture object
scale object texture
supports bmp, png, jpg
These are just very basic commands.
TheComet
Make the path of your enemies easier with Waypoint Pro!