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 / Help With Models (Collisions And Texturing)

Author
Message
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 22nd Feb 2005 04:35
I have downloaded some models. Then converted them to .X using 3DWin. I have a few problems.

1) When using the command

It seems to have a cuboid around the 8 extreme points of the object so I cannot walk inside or crawl underneath.

2) When I use

The object seems to lose all colouring.

Thanks in advance.
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 22nd Feb 2005 08:39 Edited at: 22nd Feb 2005 08:40
lol I'm kinda having the same trouble so i stopped messing with it.

1) When you use the...

If Object Collision(1,11)

...command it sets a box around the two objects and sees if they cross at all. I'll go try to figure out this one command you have to use and past again later with a better answer.

2) Can't help you there, I think its because the object has to be told to be colored or textured or...soemthing . Like i said I'm still working with it to so I might have the answer soon if noone else does it before I do.
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 22nd Feb 2005 09:01
Well what do you know...figured it out (kinda). Try using this.

Say your using a castle that has a gate. You load it up as a .x Object. Then you load up your character...I used the samari that came with DarkBASIC so I knew it had limbs.
You Loaded the castle up as Object 11 using the command...

Load Object "Filename",11

To turn on Perfect Collision for the castle you type this right after it and not in the Do/Loop command...

Set Object Collision On 11
Set Object Collision to Polygons 11

Then you load your Player object as 1

Load Object "Filename",1

Then If your character has animation and limbs...blah blah blah...you turn on its collision like so...

Set Object Collision 1
Set Object Collision to Boxes 1

once that is in there you should have your Collision Detection set and are ready for the If Object Collision(1,11). So your Code " should" look something like this...



Well...I still don't know about the color thing. If this doesn't work for you I'll try to help some more. Hope it wasn't to completed for ya.
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 23rd Feb 2005 02:10
Hmm i tryed that code and it works great for the parts that have limbs (the wheels of the lorry) but the front part doesnt have any limbs (i presume) so i can still walk through that. Do you know a good site where i can download fully limbed 3d models? I used 3dcafe.com for this model.
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 23rd Feb 2005 02:35
Nope sorry I havn't looked for any free models...I just downloaded a modeler so I could make my own. I guess you could try to edit the lorry or whatever your using yourself and add limbs. Whenever I get home (at school lol) I'll check out 3DCafe and look for the model your using if you tell me the filename or exactly where to get it. Oh well, till then I can't really do anything except hope the day goes by fast. (2 hours to go..yay.)
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 23rd Feb 2005 04:03
Nah don't worry about it I found a similar model which already has limbs. Thanks anyway
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 23rd Feb 2005 09:16
Lol. Ok...atleast you told me BEFORE i did any work .

Login to post a reply

Server time is: 2024-11-11 23:51:39
Your offset time is: 2024-11-11 23:51:39