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 3D objects to screen

Author
Message
Kalktar
20
Years of Service
User Offline
Joined: 14th Jul 2004
Location:
Posted: 25th Jul 2004 05:01
Hi all ! I have more questions. I'm working on 3D objects and having a hard time getting them to the screen. I think I must have misunderstood something. Heres what I'm trying to do. I use TrueSpace and I'd like to load one of my models in DBpro and put it on the screen "Just a simple test to see what they look like after they have been converted to .X or .3DS files". I'm not sure where to locate the 3D file or how I load the file into DBpro "from my reading it's highly recommended all media should be located in the DB project folder" so how would the LOAD OBJECT Syntax read if I create a subfolder "MEDIA" in the project folder? Do I have to do somthing to make a link within DBpro to this folder?

Thanks
Kalk
Soy Cocktail
20
Years of Service
User Offline
Joined: 23rd Dec 2003
Location:
Posted: 25th Jul 2004 05:26 Edited at: 25th Jul 2004 05:29
you call the load object command with 2 argument 1. the filepath and 2 the object number. you can use the set dir command with the path of your media folder and then just type the filename instead of the pathname as well

ex:
load object "Crogram FilesDark Basic SoftwareDark Basic ProfessionalProjectstestobj.x",1
ex2:
set dir "Crogram FilesDark Basic SoftwareDark Basic ProfessionalProjects"
load object "testobj.x",1

then to get your object to show and be able to move around it
sync on : sync rate 40
create camera 1
do
control camera using arrowkeys 1,1,1
sync
loop

Aku Soku Zan
Wicked Immedate Slay
Slay Evil Immedately
Kalktar
20
Years of Service
User Offline
Joined: 14th Jul 2004
Location:
Posted: 25th Jul 2004 12:37
Thank you Johnny! I played around using your suggestions and finally got .x models to come up in DBpro. .3ds models locked my system up terrible. With the .x model I've lost all my textures, its a grey blob! lol. I'm not very familiar with the .x model format. Got any suggestions on reading materials? So I can try to figure out how to restore the textures?

Kalk
bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 26th Jul 2004 00:13
Put textures in the same folder as the model
Kalktar
20
Years of Service
User Offline
Joined: 14th Jul 2004
Location:
Posted: 26th Jul 2004 11:23
Got more questions ! So progress has been slow but I have figured out how to get .x files into DBpro and stumbled on the aminmation commands as well "really really cool stuff".
I'm still confused about the .x file format, my only 3d modeling experience has been with TrueSpace(TS)"Native file format is .Cob"
Ok so TS will convert .cob files into .x easily enough whats confusing me is the textures. They disappear in DBpro when I load the .x file. If I load up the .x file in TS it looks fine. I must be missing a step. Do I have to tell DBpro how to retrieve the textures? and if so how do I do this?
Bibz1st mentioned putting textures in with the folder' is this the step I've forgotten?
I sure could use some explanations

I hate to be so much trouble but I want to learn
Thanks
Kalk
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Jul 2004 22:22
You probably need to place a copy of the textures into the same folder as the model.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 27th Jul 2004 02:45
IanM & bibz1st are both right. i got a .x model and the skin is in the same folder as the model.

so say the .x was in "My Game\Media" then the skin/texture will have to be in "My Game\Media" aswell. If it was an .mdl file then te texture is saved into the file hence the large size.
Kalktar
20
Years of Service
User Offline
Joined: 14th Jul 2004
Location:
Posted: 27th Jul 2004 02:49
Bingo yeppers you were correct. Had to hunt down the textures place them in a fold with the model and bingo it came write up in DBpro. I didnt have to tell DB a thing which is cool cause I use several textures with my models. Was conserned about that 32 limit within DB.

Special thanks to Bibz1st and IanM for the responses. I feel silly cause it was so simple, but am very thankful for the help.

Thanks Kalk

Login to post a reply

Server time is: 2024-11-11 18:06:25
Your offset time is: 2024-11-11 18:06:25