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.

Author
Message
Toilet Freak
21
Years of Service
User Offline
Joined: 16th Dec 2002
Location: Australia
Posted: 26th Mar 2003 08:12
When you make a level(map) in 3ds max and convert to .x to use in a game(instead of a matrix), how do you get your character to "walk" on it. I've heard of a slide collision plugin that lets you do it but I can't find it, (I thought it was called Dark Collisions but I couldn't find it.)

I really just want to know how to get something to walk on another object(level/map).
Just pretend you didn't see it
GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 26th Mar 2003 16:36
The Easy Way to do it is this

Position Object ?,Object Position X(?),Get Ground Height(1,Object Position X(?),Object Position Z(?))+#,Object Position Z(?)

Just Replace The ? with the number of the object you want to walk on the matrix and if the perosn is walking in or above the matrix replace the # with the distance between the characters feet and the matrix[If your character is below the matrix by 3 units replace the # with 3]

If you wan't your character to look like he/she is walking and not standing, you will have to add a walking animation to the character modle then type in loop object ? above the main code for the game.

GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 26th Mar 2003 16:46
Oh, sorry... i misread your post, what you can do however is make an array...

Dim LandHeight#([Width],[Height])

Fill in all the info on the heights at certan places...

LandHeight#(5,3)=3

or whatever....That would take a while...
then in the game try...

Position Object ?,Object Position X(?),LandHeight#(Int(Object Position X(?)/some#),int(Object Position Z(?)/some#)),Object Position Z(?)

...well...i wish you luck

Toilet Freak
21
Years of Service
User Offline
Joined: 16th Dec 2002
Location: Australia
Posted: 27th Mar 2003 04:59
Is there a different way, eg)a plugin that does that for you.

Just pretend you didn't see it
Danmatsuma
21
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 27th Mar 2003 06:18
There's something out there that will conform a matrix to a 3d object, then you can make the matrix invisible and use get ground height. Don't ask me where to find it tho'
Try searching "matrix conform utility" or something like that

ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.
Toilet Freak
21
Years of Service
User Offline
Joined: 16th Dec 2002
Location: Australia
Posted: 28th Mar 2003 05:02
ok, thanks

Just pretend you didn't see it
Toilet Freak
21
Years of Service
User Offline
Joined: 16th Dec 2002
Location: Australia
Posted: 28th Mar 2003 05:03
I can't find it

Just pretend you didn't see it
Kensupen
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: United States
Posted: 28th Mar 2003 11:42 Edited at: 28th Mar 2003 11:59
If you are using DBPro, you can use intersect object.

Let's just say these are your variables:
px#=player object position x
pz#=player object position z

The "land.3ds" object's number is 1

I'm writing this on the fly, and not testing it in DBPro, but use the help files to fix any errors.

height#=100000-intersect object(1,px#,100000,pz#,px#,-100000,pz#)
position object player,px#,height#,pz#

This "should" return the height of the land at the player's current X and Z positions. I could make a quick demo if you have problems.

-Kensupen
Kensupen
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location: United States
Posted: 28th Mar 2003 12:11
I decided to do this demo anyways, just to see how good it works. It kinda makes the terrain commands obselete if you have a modeling program.

I've included a compiled EXE, DBPro source and the LAND.X model I made.

Download it here: 1.4MB
http://dakoren.home.attbi.com/XHeight.zip

-Kensupen
RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 29th Mar 2003 02:43
hy i was gonna send to same post !
Thanks ! ur demo was really helpful , but i got just one question
the command :
"height#=100000-intersect object(1,px#,100000,pz#,px#,-100000,pz#)
position object player,px#,height#,pz# "
will work on all the maps the same ?? not matter how the ground looks like !
lets say i have a big mountin , it doesnt matter ??? , just type the command on every map i got ! ?

RisTar
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 29th Mar 2003 02:47
o ! and another question ! how can i make that the model coldnt walk out the map , that the model will stay only in the map , and will not be able to walk out to the "BLUE SCREEN" like in ur code ?

Login to post a reply

Server time is: 2024-04-24 10:17:05
Your offset time is: 2024-04-24 10:17:05