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 Discussion / Get ground height?

Author
Message
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 9th Jun 2004 16:10
I was just working on a small program to check for the matrix under the player, and found a problem with the get ground height command. It only works for the first matrix, but all the others, the height is set on 0. Can someone please help?



.........what's the point of reading this?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 9th Jun 2004 16:31 Edited at: 9th Jun 2004 16:32
Holy Macrol mate, Don't use that many matricies. I'm surprised your computer doesn't catch on fire with all the processing that DBC needs to do with that snippet.

See my post about Speed Tips as to why not to use matricies.
( http://darkbasicpro.thegamecreators.com/?m=forum_view&t=32948&b=10 )

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 10th Jun 2004 00:07
there must be an error in your code since several people have used multiple matrixes with no problem, unless the sheer number of them is the problem..never used that many myself, 2 or 3 at the most normaly...maybe 5 or 6 for something like that.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 10th Jun 2004 07:33
hey, dont misunderstand. im only gonna have 9 loaded at any time, im working on a big, big, big world (for my rpg) so ill need a lot of them - probably like 250x250 of them. All the heights and stuff will be loaded from different files if you get close to another matrix. Even now-on my geforce2, its really fast, so please, does anyone know whats wrong with get ground height?
Jess- ill check out you're post right now.

.........what's the point of reading this?
NathanF
21
Years of Service
User Offline
Joined: 24th Mar 2004
Location:
Posted: 10th Jun 2004 08:21
never mind, i just solved it.
Looked at your speed tips JessTicular, some good info there. I might as well change it to a .x world - i'd get lightmapping support as well as speed And i can even use this code to position the sections (ill cut it up and load it when necessary). Thanks people


.........what's the point of reading this?

Login to post a reply

Server time is: 2025-05-25 07:25:17
Your offset time is: 2025-05-25 07:25:17