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 / Easier way of importing .x files

Author
Message
Doom
20
Years of Service
User Offline
Joined: 31st Jan 2005
Location: Canada
Posted: 23rd Mar 2006 05:00
hmmmm, i made a matrix. read the tutorials etc. i know how to do the most basic things. now i need to know how to place a .x file on the map once ive preloaded it with the load command and its in my projects folder. thanks.

--director of BRUNCO STARTS academy/School of tech
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Mar 2006 05:33
load object "tree.x", 1
position object 1, x,y,z

doesn't get any easier


Doom
20
Years of Service
User Offline
Joined: 31st Jan 2005
Location: Canada
Posted: 25th Mar 2006 04:56
Are you sure? because when i tried that. it didnt appear. is there a way to print Cordinates on screen? using the print command... like i know its there but what is the command/var?

--director of BRUNCO STARTS academy/School of tech
BENOJ
19
Years of Service
User Offline
Joined: 17th Mar 2006
Location: UK
Posted: 25th Mar 2006 12:03
i think this will work:



abit fatal1ty an8 sli mobo, ati raedon 1800 XT, 1.5GB RAM
250GB SATA HDD, AMD Athlon 64 x2 4200 (overclocked further)
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 25th Mar 2006 14:31
print camera position x()
print camera position y()
print camera position z()

or
print object position x(object number here)
print object position y(object number here)
print object position z(object number here)

[/center]
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 25th Mar 2006 23:53
You'd have to say str$

This will work better in a do loop:

text 0,0,str$(object position x(OBJ))+","+str$(object position y(OBJ))+","+str$(object position z(OBJ))

That's display the coordinates on screen like this:
5,6,2

Login to post a reply

Server time is: 2025-05-23 21:41:32
Your offset time is: 2025-05-23 21:41:32