Quote: "Hi, am new to DbPro and we made a obj file.
Can someone tell me how to put that in darkbasic?
From the beginning to load till the end when it exit..."
export the object, or convert it to the directX .x format. Then to load the model use:
sync on
load object "your object's name",indexnumber
do
sync
loop
the code assumes the model is in your project's folder. the Index number is a number which you will later use to reference (or talk about) the model. consider it to be the model's name within the program. ex:
object position X(indexnumber)
this would return (or tell you) the object's X coordinate in 3D space, so you need to tell it which object you are talking about in a way the compiler can understand. the object can use any index number you wish as long as the number isn't already assigned to an object.