I would like to know what 3d files does DB Pro support ? (.3ds and .x only ? ) and how can I get them ? Convert them from .obj for example. I did searched on google and I downloaded a full bunch of crap trial version programs that didn't do anything and fail converters ... I really need to know how can I load these 3d objects.
What converter do I need ? What is the format I need to convert it ? What other rules apply ? Pretty desperate..done everything I could so far :/
Here is a link to the .obj I am currently trying to load in-game ( not made by me ) : http://filebeam.com/4cf0bc5c5457a8ea21c3a15b106e4469
This is the code I am using ( standard from DB tuts ) :
Sync On
Sync Rate 30
Hide Mouse
autocam off
Backdrop on
Set camera range 1,5000
Fog on
Fog distance 4000
Fog color RGB(128,128,128)
Color Backdrop RGB(128,128,128)
Rem make matrix
Make matrix 1,10000,10000,20,20
Rem texture matrix
Load image "grass09.bmp",1
Prepare matrix texture 1,1,1,1
Fill matrix 1,0,1
rem Randomize the matrix
randomize matrix 1,125
rem Load object
Load object "idle.x",2
Loop object 2
position object 2,5000,Get Ground Height(1,5000,5500),5500
Rem Main loop
Do
set cursor 0,0
print X#
print Y#
print Z#
Rem Store Object angle
CameraAngleY# = Camera angle Y()
Rem Control input for camera
If Upkey()=1
XTest# = Newxvalue(X#,CameraAngleY#,20)
ZTest# = Newzvalue(Z#,CameraAngleY#,20)
If XTest#>0 and XTest#<10000 and ZTest#>0 and ZTest#<10000
Move camera 10
Endif
Endif
If Leftkey()=1 then Yrotate Camera Wrapvalue(CameraAngleY#-5)
If Rightkey()=1 then Yrotate Camera Wrapvalue(CameraAngleY#+5)
X# = Camera position X()
Z# = Camera position Z()
Y# = Get ground height(1,X#,Z#)
Position Camera X#,Y#+35,Z#
Rem Refresh Screen
Sync
Loop
Thanks in advance!
P.S : Ignore file names in the code as I change them to what they need to be . It's just the raw code found at http://developer.thegamecreators.com/?f=t01/3d_tutorial_12.