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.

DarkBASIC Professional Discussion / Problem loading any 3d file

Author
Message
Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 28th Apr 2010 04:02
I'm trying to load various 3d files (.dbo exported from 3dws and a .x exported from 3ds max), however when I import it, it doesn't display all the surfaces correctly and makes some invisible, I don't know why this is happening. I'm hoping it's something easily solvable. I've attached a screenie and heres my code:


(in case its not clear in the screen shot, the pistols surfaces are transparent and various surfaces on the map are also invisible)

any help would be great. thanks in advance =)
Visigoth
21
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 28th Apr 2010 07:56 Edited at: 28th Apr 2010 07:56
invisible surfaces are usually caused by normals facing the wrong way.
Might be better if you posted the model.
Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 28th Apr 2010 15:32
Well I've checked all the normals, and the model displays fine in DarkGDK

Anyway, I've uploaded the map model if you want to check it.
Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 28th Apr 2010 19:16
FIXED. I changed "set camera range 1, 0, 15000" to "set camera range 1, 1, 15000"
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 28th Apr 2010 20:39
@PlanetaryFunk

In that dbo you sended to forum, is just the 3d object but not the texture.

cheers.

I'm not a grumpy grandpa
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 29th Apr 2010 03:07
I have a question... Where did you find the plugin to export .X files from 3ds Max? I've been having difficulties tracking one down...

Login to post a reply

Server time is: 2026-07-26 04:28:02
Your offset time is: 2026-07-26 04:28:02