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 models more efficiently

Author
Message
Allanon Shadeslayer
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location:
Posted: 18th Jan 2007 04:28
Ok, here\'s how I normally load models into my program: I just put the x file model into my program folder then i type
and it works! now I have DarkMATTER 2 and I can do the same thing. But my question is, can I load the object without having to put it into the project folder?
if so, please give me an example that works.

Ty!

I don't suffer from laziness... I enjoy every minute of it!
Cookyzue
20
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Who Cares?!
Posted: 18th Jan 2007 04:56 Edited at: 18th Jan 2007 04:58
right click on the file and copy th location, then paste it into your load object code. I wouldn't call that more efficient though. It actually causes a problem when you make an exe of the game and expect other people to play it that dont have a c drive or whatever. In that case its better to keep it within a folder in your project folder. I think thats what you mean anyway. Good luck


edit: like this(assuming you have DBPro and Windows Xp)



MCK Games
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 18th Jan 2007 06:48
a neat way also is to create a media folder within your projects master folder

---------------------------------------
MASTER FOLDER

media folder - models - music - graphics

dba file
dbpro file
bak file
---------------------------------------

if you also make sub folders in the media folder
eg:

MEDIA

[models]
[music]
[audio]
[grahpics]
[misc]

and place the content in those areas, you know in a heartbeat where to place it

eg:

load object "media/models/mymodel.x",1
load music "media/music/mysong.mp3",1

that makes managing the media a lot easier and as Cookyzue as has suggested when you compile your game and want to share it, all the files you used are in the media folder, which means not having to find them all across your computer as well as missing some during the build process.

It also makes it very easy to see how much media data there is by simply right clicking the media folder and seeing the size.

Allanon Shadeslayer
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location:
Posted: 18th Jan 2007 16:34
Ty very much!

I don't suffer from laziness... I enjoy every minute of it!

Login to post a reply

Server time is: 2024-09-25 15:16:14
Your offset time is: 2024-09-25 15:16:14