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 / DBC: Help With Matrix Height and Walking Around

Author
Message
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 17th Feb 2005 08:36
Some of you may remember me but i quit programming and forgot everything lol..Teaching myself back over again is kinda easy but I need some help with This...



What I need to know is how to set the camera to, while your walking, not to fall below the matrix height.

Thanks in advance.
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 17th Feb 2005 10:06 Edited at: 17th Feb 2005 10:06
theres lots of posts on this , i just replied to one yesterday, but heres the code to do that:



Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 18th Feb 2005 08:33
Hmm....for some reason that still doesn't work. Lol. Instead of getting the matrix height and making that the height of the camera +X it just gets the height of the ground like so far ahead or behind me and follows that so i still fall through. I'll try to figure this out, any ideas so I dont have to work my poor little brain to much. lol
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 18th Feb 2005 09:14
I fixed the problem....FLAT MATRIX lol. Yeah I decided not to work with it yet till I understand the code more.
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 18th Feb 2005 09:16
lol, k, glad u figured it out, i guess it doesnt work in DBC, it really for DBP

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 18th Feb 2005 10:28
There is a way to get it but I think the way you showed...like you said...is in DBPro (to cheap to buy pro ) anyway..i have another problem look at this new code



I cant figure out how to get him to turn around so he walks forward instead of backwards. This is my last post for the night (Bed for school ) Anyway ill take my Manual to school with me and try to find different ways to work it out when i get back. But if any of you nice people wanna help I'll make them let me use the net at school to check the posts. A little help with this and when I finish ill start asking about monsters walking around lol.

Once again thanks in advance for any help I might get.
Clueless
20
Years of Service
User Offline
Joined: 16th Feb 2004
Location: Corbin, KY, USA
Posted: 18th Feb 2005 10:43
@Ragnarok:

If you move the matrix, the information returned by the ground height function DOES NOT "move" along with it. Many (like me) prefer to reposition the matrix so that the center is at 0,0. If you have to shift it, say 5000 units in the X and Z directions to do that for a 10,000 unit matrix, then your ground height values will be off by 5000 units. You'll need to adjust the X and Z values to the GROUND HEIGHT function by 5000 as well.
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 18th Feb 2005 10:45 Edited at: 18th Feb 2005 10:46
But I'm Still a Big noobie but i know alot about graphing which is pretty much the matrix X Y Z stuff so i made sure not to confuse myself and not use those commands. Surly it wouldn't be something that is automatically done is it?

EDIT: oops I lied I'm not in bed yet lol, just a little longer (programming is addictive)
bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 19th Feb 2005 19:34 Edited at: 19th Feb 2005 19:39
Rem get new camera position and store in cZ# and cX#
cZ# = Newzvalue(Z#,aY#-180,100)
cX# = Newxvalue(X#,aY#-180,100)

Rem find the height of the ground at cameras position and use this
Rem to reposition the camera height
cY# = GET GROUND HEIGHT(cX#,cZ#)

Rem position camera
Position Camera cX#,cY#+100,cZ#.

R.E facing the wrong way,
after loading your character you need to
YROTATE OBJECT 10,180.0
FIX OBJECT PIVOT 10
Ragnarok89
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location: Look behind you! Ahhhh!~
Posted: 19th Feb 2005 22:20
Hmmm I proabably should have done that lol. Instead I just changed the aY#-180 to aY#+360 and changed the way the up and down buttons made the object go lol. O well Ill just leave it like that for now.

Login to post a reply

Server time is: 2024-11-11 23:52:56
Your offset time is: 2024-11-11 23:52:56