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 / crash whenever object loaded

Author
Message
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 31st Mar 2011 03:27
I'm trying to load an object into my program and i'm using newtons, but everytime I try to run it, it crashes once the program starts. I'm not quite sure if its newtons are DBP. I've compiled the program and it compiles perfectly, but fails on startup

tiresius
23
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 31st Mar 2011 04:08
You're not giving any information. What does the crash look like? Do you get a popup error? If you don't load the object, does it run? What do you do with the object in Newton (tree collision, convex hull, etc.) ?


A 3D marble platformer using Newton physics.
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 31st Mar 2011 04:13
ok. it tells me that the dbp executable has stopped working and i'm using a cylinder for collision. the model is an alien spaceship, but i wanted it to think the ship has a flat bottom, so i'm using a cylinder. it runs without the object if i replace it with an actual cylinder. A picture of the crash is attached.

tiresius
23
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 31st Mar 2011 04:23
Can you just load the object in a regular ol' DBPro program, without Newton? Perhaps post some code and the model.


A 3D marble platformer using Newton physics.
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 31st Mar 2011 04:31 Edited at: 31st Mar 2011 07:21
i'll try. hold on.




EDIT:
i also have a question regarding newton setup. when i create a dbpro cylinder and a newton cylinder. the newton cylinder is side ways while the dbpro cylinder is straight up and down. so the physics aren't applying right to the physical shape. what can i do to fix this. i don't know how to rotate to fit the dbpro cylinder, and when i set the dbpro object to rotate, newton recorrects it. i figured it would just keep an offset.

Booma
17
Years of Service
User Offline
Joined: 29th Mar 2009
Location:
Posted: 31st Mar 2011 10:33 Edited at: 31st Mar 2011 10:36
Try to convert your object from .3ds format to .x or .dbo
pictionaryjr
17
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 1st Apr 2011 03:52
that worked oddly enough, but i don't know why

Login to post a reply

Server time is: 2026-07-11 14:56:53
Your offset time is: 2026-07-11 14:56:53