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 / Loading your own 3d models into dbpro?

Author
Message
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 13th Jul 2010 11:01 Edited at: 13th Jul 2010 11:07
I use blender for modeling (I suck but I want to test)
What do I have to save the files as to load them?
What code do I use to load the models into 3d space?
How do I position a camera to view it? or to follow it?
And do I have to save the models to a specific folder to load them into the game? or can I save anywhere and just use something like load object player.x??
Thanks, free beer to whoever helps!

I want coke, not Pepsi!
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 13th Jul 2010 11:37 Edited at: 13th Jul 2010 20:37
DBP supports many model formats, some better than others. Prefered formats are .X and .DBO (both are available as export options from Blender I believe)

This code will help you



In my example, I'm assuming you have the model and textures inside a folder called "files" inside your project folder. You can have them anywhere, but it's best to use a folder inside the project folder.

Hope that helps a little

>Edit<
Stupid typo's again :/

KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 13th Jul 2010 20:02
Quote: "Prefered formats are .X and .DBP"


That last one would be .DBO

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 13th Jul 2010 20:38
@KISTech:
Apparantly my old eyes aren't what they used to be, thats the 2nd time in as many weeks I've made a silly mistake like that. Thanks for pointing it out

CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 13th Jul 2010 20:47
Thanks ProF I will try that. How do you add/make texture for your object?

I want coke, not Pepsi!
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 13th Jul 2010 21:12
Quote: "Apparently my old eyes aren't what they used to be,"


Do what I do. Go to the drug store and find the reading glasses display. Then get the strongest magnification that they have.

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 14th Jul 2010 11:30
Well, most modelling software saves the model and the texture, so all you have to do is load the model and it all loads in together.

You can do it manually tho, look up "Load image" and "texture object" in the help files

LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 14th Jul 2010 15:46
Quote: "so all you have to do is load the model and it all loads in together."


It is worth mentioning that you need to have the model and the texture(s) in the same folder, so DBP can 'find' them.

Kistech: brought a smile to my face.


Login to post a reply

Server time is: 2024-09-28 20:29:43
Your offset time is: 2024-09-28 20:29:43