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.

Newcomers DBPro Corner / How to put in a obj file in DbPro?

Author
Message
mrnuub
17
Years of Service
User Offline
Joined: 19th Nov 2007
Location:
Posted: 19th Nov 2007 09:45
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...


Thx in advance
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Nov 2007 13:25
You can't use obj files. Convert it in your modelling application to a .X file.

revenant chaos
Valued Member
17
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 24th Nov 2007 19:00 Edited at: 24th Nov 2007 19:01
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:

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:

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.

Login to post a reply

Server time is: 2024-11-25 09:30:20
Your offset time is: 2024-11-25 09:30:20