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 Discussion / .X and .3DS object management

Author
Message
Varegue
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location:
Posted: 28th Dec 2003 11:54


I use (standard) DarkBasic.

I insert 3D objects on matrix from .x or .3ds files.
It is very easy to manage object collision functions in case of trees, artifacts,...
But I also wish to insert complete buildings.
In case of buidings, for exameple a bridge, the collision function is the same as for other objects except when "walking" on the bridge.
In a same manner, if the object is a building, the collision function has to be managed as for standard objects, but it also must be possible to walk on stairs and floors.

Has anyone got a solution for this question ?

I think un easy way to solve it would be to put a small transparent matrix on the bridge.
the (bridge) object collision management would not change and it would therefore be possible to walk on the bridge.
This method would also be operational even if there was a slope; in that case the matrix whould follow the same angle as the slope, but would be limited in case of stairs.

Is there a way to (partly) wrap a 3D object with a matrix, or rather to create a matrix wrappind a .x or .3Ds object ?
If that was poosible, it would offer a simple and smart solution.
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 28th Dec 2003 12:01
there is code for that in the codebase, although a better way would be to use collision boxes, in dbpro you could use intersect object and have a simple solution to your problem. i think hamish mchaggis wrote a function which does the same as intersect object, that would be much more flexible in my opinion.


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 29th Dec 2003 07:45
Here is a matrix moulder for objects.

But, I don't think that would solve your problem... Try getting the Nuclear Glory dll ( Who also make the afore mentioned matrix moulder ), It has helped alot of people, because it has what you are looking for, and alot more...

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-22 09:16:28
Your offset time is: 2025-05-22 09:16:28