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 / Object collision, .3ds

Author
Message
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 6th Jul 2004 20:35
I am having big problems with .3ds file collision. I have made a simple character model and a simple level model. the level is all one model and is of varying heights, both models are .3ds format. But for some reason the character model is colliding with the level model but sinking half way down. So you only see the torso and head of the character and not the legs, PLEASE HELP many hourse have been spent on trying to get them to even collide !
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 7th Jul 2004 00:51
well sry if this doesnt help but for the sinking, what you could do is position the player or character just a little above the model so he doesnt sink but for the collisions there are other threads that might help
P.S.a thread like mine for instance

Current Project:Quest for the Five Staffs of Draconia
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 7th Jul 2004 08:54
Thanks, although i am not sure how to do that , i am using the method of
I hope you understand 'coz i sure dont.
dj BlackDragon
21
Years of Service
User Offline
Joined: 23rd Sep 2003
Location: who knows
Posted: 7th Jul 2004 11:43
that wont work because posy=old posy would then be moving something.but again i am not sure.sorry.oh and one q. does it work?if not(which evidently it doesnt) then i dunno.but check either the code base or other threads like the one i made which helped oh and ill do a search in my prog file on my computer for some.
bye,
Ian

Current Project:Quest for the Five Staffs of Draconia
Doom weaver
20
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 7th Jul 2004 19:24
from what i understand, it is possible that your 3ds file is centred instead of positioned above Y0, so that its legs in the Y axis are in the negatives. Either edit the model so its feet are at 0 or in your code whenever teh object is repositioned add half the objects hieght to its current height.
I have had problems that sound similar to yours myself. Tell me if i helped...
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 7th Jul 2004 19:37
Thanks to both of you but i have tried that appraoch.However i tried it with the built in shapes in darkbsic and i still get the same problem, the sphere sinks halfwy through the cube. I am trying to put gravity on, i have made a constant force pushing the models y co-ord downwards maybe thats the problem? But i cant see how i can get the model to follow the uneaven path of the singualr level model without it.
Doom weaver
20
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 8th Jul 2004 23:02
the built in shapes are probably centred too... in most of my programs I have found I need a Y offset for my objects. Try playing around with the position of your model in the actual file, and if that doesn't work try offsetting it in code.
smartypants
21
Years of Service
User Offline
Joined: 27th Apr 2004
Location: At is computer
Posted: 9th Jul 2004 11:56
Quote: "if object hit(1,2)>0 then posy=old posy"
is old posy sposed to be 2 words or is it just a typeo (could be the problem).

King of the asked question
Nic
20
Years of Service
User Offline
Joined: 26th Jun 2004
Location:
Posted: 9th Jul 2004 20:33
Oh, Sorry about that it was a typo yes. could you tell me how to offset on the yaxis please.thanks
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 13th Jul 2004 14:09 Edited at: 13th Jul 2004 14:09
You could use our collision plugin for DBC. It's designed for complex collision against externally loaded models.

Site at:
http://www.nuclearglory.com/ngc.php

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 13th Jul 2004 15:19
I would also recommend that collision plugin. I use it and it works great. Like you I created a .3ds char model and a .3ds level. I used the plug in and it took care of all my collisions for me.

Login to post a reply

Server time is: 2025-05-26 00:24:57
Your offset time is: 2025-05-26 00:24:57