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 Professional Discussion / get ground height

Author
Message
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 29th Jan 2003 16:17
Is is possible that get ground height returns wrong values while shifting the matrix?
If yes, is there any solution?
"If you can't make it good
make it look good."
Bill Gates
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Jan 2003 20:32
Someone on RGT posted this problem - however I ran his test code and it worked fine on all the machines I ran it on. Maybe this is a graphics card or DirectX issue.

NOBODY has a forum name as stupid as Darth Shader. I do.
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 29th Jan 2003 21:19
I have a GeForce4 Ti 4400.
That's why I don't think it's the graphics card.
I've provided a link with the case I'm talking about.

www.thequest03.de/temp.zip

Just move for-,backwards by using the mousekeys.
The height is calculated with "get ground height".

"If you can't make it good
make it look good."
Bill Gates
Richard Davey
Retired Moderator
23
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 29th Jan 2003 21:25
I don't believe it's a graphics card issue at all - there is no way it should change the return values from a function. I'll check your code out on my system and see what I get, it's most likely a bug or coding error (same thing, no? )

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 29th Jan 2003 21:31
Hmmm...the link above is only the compiled exe.

The code is here:



"If you can't make it good
make it look good."
Bill Gates
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Jan 2003 23:56
Hmm... in the above code the Get Ground Height value always seems to return what appears to be a correct value.

NOBODY has a forum name as stupid as Darth Shader. I do.
haggisman
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 30th Jan 2003 00:09
It works for me sometimes and others not... Maybe its just me, though the above snippet doesn't work.

Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 30th Jan 2003 00:14
Its rather random for me too...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 30th Jan 2003 08:11
I don't like random working .
But for me it works the first two tiles then no more.

"If you can't make it good
make it look good."
Bill Gates
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 30th Jan 2003 08:27
btw: The code IS compilable when you first load the temp.zip with the material.

"If you can't make it good
make it look good."
Bill Gates
D Man
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Germany
Posted: 30th Jan 2003 18:59
Nobody has a solution?

"If you can't make it good
make it look good."
Bill Gates
dave63
22
Years of Service
User Offline
Joined: 27th Jan 2003
Location:
Posted: 30th Jan 2003 19:42
I had been using DB Lite and started a project that had a chase view of character with mouse controlled looking, where the camera rotates from just beyond the object. I used get ground height to detect the ramdomized terrain under the object and the camera to keep the camera from going under ground upon looking up. This worked fine, then I downloaded the DBPro trial and copied the code over. The character/object now floats all over! lol I don't have the code with me know as I'm at work, but will get it posted when I get back home.

Login to post a reply

Server time is: 2025-05-17 14:05:23
Your offset time is: 2025-05-17 14:05:23