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 3ds files and navigating around a 3ds object

Author
Message
Trurl
20
Years of Service
User Offline
Joined: 24th Jun 2004
Location: States
Posted: 25th Jun 2004 05:02
My question is how to deal with displaying objects. Specifically, I need to know how to display 3ds files. I have taken the sample code that comes with DB pro (the shooter with the aliens) and loaded my 3ds object into the BSP world. I noticed that just my 3ds object would not load itself. I figured that I would use the example code because the camera and the game are already set.

My 3d objects appear in the sky but only are shaded black. I need to know the proper way to load 3ds files and how to create a world that the user can navigate the 3ds object. I have read through a lot of the object commands and found something called polygon collision. Will this make it so that a camera can navigate my 3ds models? Anything on how to load 3ds will help.

Thanks,
Bishop
21
Years of Service
User Offline
Joined: 18th Dec 2002
Location: In my favorite chair...
Posted: 25th Jun 2004 10:09
well it would really help if u showed ure implemation code.....if ure object is way up in the sky, try repositioning it with less y value.....if its all black, it may be because its too far away to see the texture or ure object is messed up...


cheers,
Bish

"When you were born, you cried and the world rejoiced. Live so when you die, the world cries and you rejoice."

You see my avatar? I made that ninja!!
Trurl
20
Years of Service
User Offline
Joined: 24th Jun 2004
Location: States
Posted: 26th Jun 2004 08:44
This is the added source code to the “Making a simple FPS Game� that comes with DB Pro. This is after loading my object.

My objects don’t have collision and appear black in color. How do I texture them and make them solid.
Trurl
20
Years of Service
User Offline
Joined: 24th Jun 2004
Location: States
Posted: 26th Jun 2004 08:45
242 rem Setup sky model
243 set object SkyObj, 1,0, 0, 0, 0, 0, 0
244 scale object SkyObj, 20, 20, 20
245 rem set object MaxObj, 1, 1,1, 1, 1, 0,1
246 scale object MaxObj, 20, 20, 20
247 position object MaxObj, 0, -35, 0
248 set object collision on MaxObj
249 set object collision to polygons MaxObj

Login to post a reply

Server time is: 2024-09-22 14:21:42
Your offset time is: 2024-09-22 14:21:42