Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Help i new

Author
Message
alblilittlest 13
21
Years of Service
User Offline
Joined: 15th Apr 2004
Location: WISCONSIN
Posted: 17th Apr 2004 03:37
i just got DB about 2 months ago and now i want 3D. i work with lightwave some one told me to get a directX exporter and now i want to know how to use it. can anyone help.
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 17th Apr 2004 11:09
Basically, just export your 3d file to .x and use LOAD OBJECT "myobject.x", 1 or something like it and your 3d file will appear on screen at position 0,0,0. You can manipulate it and the camera from there.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html
alblilittlest 13
21
Years of Service
User Offline
Joined: 15th Apr 2004
Location: WISCONSIN
Posted: 18th Apr 2004 00:26
it doesn't work.
comando 300
21
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 18th Apr 2004 01:40 Edited at: 18th Apr 2004 01:40
and make sure the 3D object is the project's folder

CURRENT PROJECT: RETRO PAC-MAN
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 18th Apr 2004 13:56
step by step

you should have a file you saved from your modeler with a name you gave it like "battlecar.x"

make a new project in the editor called test, then save it, this will give you a folder called test you can place your scource and exe in.

in the test file type the lines

sync on:sync rate 0
load object "battlecar.x",1
do
turn object left 1,1
sync
loop

where "battlecar.x" is replaced with the name of your models file (but leave the quotes around the name)

open your project folder in the darkbasic folder (inside the projects folder)

copy your "battlecar.x" file to this folder

compile and run the code, you should have your model rotating in the middle of the screen.

if you applied textures to the model then they will need to be in the same folder too, otherwise it will just come up off white.

if you have the file in another folder then you can change the name to a path like this

load object "C:\program files\modeler\models\battlecar.x",1

which gives you an absolute path from drive C, or relative from where you are, eg

load object "models\combat\battlecar.x",1

will look for the folder models in your project folder, then the folder combat inside that, and then the file, hope that helps.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
alblilittlest 13
21
Years of Service
User Offline
Joined: 15th Apr 2004
Location: WISCONSIN
Posted: 19th Apr 2004 07:09
i got it to work the solution is posted on
http://darkbasic.thegamecreators.com/?m=forum_view&t=29968&b=1

Login to post a reply

Server time is: 2025-05-30 12:18:58
Your offset time is: 2025-05-30 12:18:58