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.

3 Dimensional Chat / Collision detection with Terrain

Author
Message
Melael Darkfury
21
Years of Service
User Offline
Joined: 29th Mar 2004
Location: UK
Posted: 13th Apr 2004 19:34
Is it possible to check for collision between an object (.x model) and terrain which I have built with make terrain? Otherwise maybe I should play with matrices or maybe make the level as a .x or BSP.

I want to fly my little helicopter around some islands and pick up people and or cargo, if it helps to know what I am up to.

I don't expect (or even want!) someone to write any code for me . Just after some advice to point me in the right direction, as there is a bewildering number of options to choose from.

What type of map would be easiest to add water to? Geoscape seems to have an option for water (I only have the demo so far), but when I exported my map to use within DBPro the water had gone. How can I create water between my islands? How can I check for collision with water seperately from land? This would be so I could sink the chopper and have a splash noise, rather than leaving a wreck (maybe) on land and having a crash noise.

Any tips please?

Thanks in advance.
HyTech Designs Sam
21
Years of Service
User Offline
Joined: 20th Nov 2003
Location: Canada
Posted: 13th Apr 2004 20:30 Edited at: 13th Apr 2004 20:32
I could be wrong but I believe there is a collision with terrain command, look in the command help file under world commands (I'd check but Im on the wrong computer).

edit:
I didn't read the whole post, for the water separate from ground, you could make two terrains, one the ground then the other one the water and have two different collision detections, one for water one for ground.

Melael Darkfury
21
Years of Service
User Offline
Joined: 29th Mar 2004
Location: UK
Posted: 14th Apr 2004 16:38
Thanks for trying to help, I can't see a terrain collision command in the world section of commands, I did look there before posting and reviewing them I still have no luck. Unless BSP collisions work on them, which I do not think they do after some testing, but I might be wrong...?

Cheers,
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 14th Apr 2004 18:12
Water is easy. Just make a plain and texture it with a water texture. Don't forget to scale the texture (or it will be blurred).

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
HyTech Designs Sam
21
Years of Service
User Offline
Joined: 20th Nov 2003
Location: Canada
Posted: 14th Apr 2004 20:44
you could try this:
x= object position x(player)
y= object position y(player)
z= object position z(player)

terrianheight= GET TERRAIN HEIGHT (terrain,x,z)

if y<terrainheight then crash the helicopter

of course you'd have to change the veriables and the commands after the if statement.

Hope it works (it should ),
Sam

Melael Darkfury
21
Years of Service
User Offline
Joined: 29th Mar 2004
Location: UK
Posted: 15th Apr 2004 23:33
Thanks again. I created a second matrix and filled it with a water coloured texture and ghosted it and that looks pretty good. I need to get my textures so they look more seamless though, it tends to show up the tile pattern at the moment. Plainer tiles should help that I think.

I was thinking terrain height would be no good if I run into cliffs etc, but I could always check height with an offset around the centre of my model I guess. I fear that might turn out to be tricky but maybe thats the only way if there is no collision checking I can do with a matrix.

Cheers

Login to post a reply

Server time is: 2025-06-28 15:25:12
Your offset time is: 2025-06-28 15:25:12