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 / 3D object help!

Author
Message
Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 28th Jan 2008 19:24
When i load a 3D object it say "runtime Error 7018 - could not load 3D object at line 14".
Here is the code

The "car.x" is in the same file as "new.dbpro".

What is a good FREE 3D modeling tool?

P.S. i use the Trial Version of darkbasic pro and i use the Trial Version of AC3D.
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 28th Jan 2008 23:05
Usually when I get that error it is because the .x file is corrupt and won't work. Have you tried it with a different .x file?

Also, are you sure that you have set the path correctly? i.e. is the "car.x" file in the 'new' folder?

I made up a folder, saved your code to it, saved a car .x file there, reset the path to it and it worked fine.

While I only used it briefly, Wings 3D is used by many and its free. If you search I'm sure you will find many threads about it. Blender is free too, but I only use it sparingly. IMO it has a much higher learning curve than Wings.

LB
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 29th Jan 2008 01:42 Edited at: 29th Jan 2008 01:42
you don't need to set the directory, but I don't think that's the cause of your problem. The directory defaults to the project's folder.


Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 29th Jan 2008 02:47
Thanks, i will try Wings 3D .
Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 31st Jan 2008 04:27
So AC3D does not work with darkbasic pro, because i used the Trial Version of AC3D to get "car.x".
Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 4th Feb 2008 04:57
i made a file called "ball.3ds" with the Trial Version of AC3D but when i loaded it my computer crashed ?

it did the "new.exe has encountered a problem and needs to close."

whats happining?

Thanks
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 4th Feb 2008 05:30
I'm pretty sure that quite a while back there were problems with 3DS files and DBPro so support for them was dropped for a while.

As the trial version of DBP isn't updated like the retail version, couldn't the problem be down to the trial version being well out of date?

TDK_Man

Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 5th Feb 2008 03:38
so how do i load a 3D object then?
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 5th Feb 2008 09:01
Save the model as a .X file (or convert it from a 3DS file afterwards).

That's assuming I'm correct about the trial version being the culprit...

TDK_Man

Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 5th Feb 2008 17:46
how do you convert it from a .3DS file to a .x?

Thanks
Seboolek
16
Years of Service
User Offline
Joined: 2nd Oct 2007
Location: POLAND
Posted: 5th Feb 2008 19:11
Hmm you need a 3dsmax and plugin PandaX. I Use this.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 5th Feb 2008 19:41
I just wrote this 3DS to .X model converter for you in DB Classic!

Download here (700K).

Let me know if you have any problems with it.

TDK_Man

Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 5th Feb 2008 19:56
It still says "runtime Error 7018 - could not load 3D object at line 14"

I used Wings 3D to make the file cube.3ds then use your 3DSConv.EXE to convert. in the .x file it just has
"xof 0302txt 0064
Header {
1;
0;
1;
}"
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 5th Feb 2008 20:28
Quote: "could not load 3D object at line 14"


Line 14 of the converter is the line which actually loads the new .X file off disk after it has been converted. The error number is a general 'I don't know what happened' error message.

It should not be necessary for the full version of DBP, but can you confirm that:

a) the textures are in the same folder as both the DBA file and the model. [Edit] Just noticed on re-reading you've confirmed this.

b) the textures used are either bmp or jpg files

c) their names are in the old DOS 8.3 filename format and

d) You don't use SET DIR or any other current directory commands as already pointed out.

Failing that, can you post the original non-working 3DS file for us to look at? At least we could then check to see if it loads in the latest full version of DBP.

TDK_Man

Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 5th Feb 2008 20:45
I don't use textures.

I attached the cube.3ds file.

Attachments

Login to view attachments
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 5th Feb 2008 22:37
The file you attached gave me the same error you got when I attempted to load it into DBP (I have the full version). It acted like it was loading into Milkshape but nothing showed up. It also would not load at all into 3D Canvas. It seems there must be something wrong with the file itself.

DBP can be picky about .3ds files, but if it won't even load into other modeling programs than the integrity of the file is questionable.

LB
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Feb 2008 01:22
Agreed - I get 'Bad Data Format' when trying to load it into TrueSpace.

TDK_Man

Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 6th Feb 2008 04:04
so what do i do ?
i made i with 3d wings, ang it loades in to wings 3d, but not DBP?
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Feb 2008 04:41
Although I've never seen Wings 3D before, I just downloaded and installed it.

I loaded the Cube.3ds file you attached in the earlier post and then saved it as a .X file.

I then wrote a quick program to load and display it in both DBC and DBPro and they both worked perfectly.

The answer is therefore (assuming of course that there's nothing wrong with your trial version of DBP) that your conversion process screwed up the cube and you should have saved it as a .X file from Wings 3D in the first place!

Cube.3DS, Cube.X, (both saved by W3D) and DBC/DBP code in attached zip.

TDK_Man

Attachments

Login to view attachments
Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 6th Feb 2008 18:30
it works, but when i try saved it as a .x it does not work it the cube .x it have


can you show me how you did it.

thanks
Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 6th Feb 2008 19:56
i found it thank you guys so so much .
Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 7th Feb 2008 00:52
in the full version does it have the DarkBASIC logo in the botom right?

And do you have to have the original darkbasics to buy DarkBASIC Professional?
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 7th Feb 2008 01:36
Quote: "in the full version does it have the DarkBASIC logo in the botom right?
"

No.

Quote: "And do you have to have the original darkbasics to buy DarkBASIC Professional? "

No, you don't have to own DBC in order to get DBP.

LB
Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 7th Feb 2008 01:54
Thanks, so it only has the logo in the trial version.
Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 7th Feb 2008 01:57
For racing games how do you get the camera to stay behind the car?

Thanks
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 7th Feb 2008 04:19
Funny that you would ask that. I was looking at some code earlier that Attila posted that could get you started. The link is here:
http://forum.thegamecreators.com/?m=forum_view&t=123369&b=7

Go to Attila's second code snippet. It should give you a good foundation to work from.

LB
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 7th Feb 2008 06:53
And a short while ago I answered the same problem in the thread only three (at the time of writing) below this one!

"Camera Problems"

TDK_Man

Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 7th Feb 2008 18:22
Thank you
Mr Penguin99
16
Years of Service
User Offline
Joined: 23rd Jan 2008
Location:
Posted: 7th Feb 2008 21:15
how do you make it were the car does not move forward on the screen when you press up
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 7th Feb 2008 21:25 Edited at: 7th Feb 2008 21:27
Forever adding new questions on the end of this thread every time you get stuck will make it go on for ever - especially if they are on such elementary subjects.

I suggest you look at the examples which come with Dark Basic, read the forums (using search) and follow some tutorials for very basic questions like these.

The help files for example have example programs for each command to show how they are used.

We are happy to help with problems you have, provided you attempt to solve them yourself first.

TDK_Man

calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 19th Feb 2008 15:30
Quote: "So AC3D does not work with darkbasic pro, because i used the Trial Version of AC3D to get "car.x". "


Objection! It works for me fine - make sure you optimise surfaces, optimise vertices, triangulate all polies and reduce to a sensible number of surfaces and vertices (less than about 16000s 8000v).

I have, however, had a problem recently where an object that I made on AC3D loads into my computer, but not on my friend's laptop.

The optomist's right, The pessimist's right.
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 20th Feb 2008 06:33
Here's a couple more modeling tools:

Blender - Free, open source:

http://www.blender.org/

Silo - Awesome for modeling, though it only exports for 30 days, then a purchase is required.

http://www.nevercenter.com/

Hope those help

Login to post a reply

Server time is: 2024-09-27 10:29:29
Your offset time is: 2024-09-27 10:29:29