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 / bumpy matrix

Author
Message
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 9th Apr 2006 14:34
if i add "hills" to my matrix (a standard matrix made by make matrix command) and use the get ground height command it gives really unsmooth movement (i am the camera in a fps), does anyone have any advice on how to make the "climbing" effects smoother or how to make a better landscape that will give off smoother hills.

at the moment what seems to happen is that the camera doesn't start going up/down hills until after it is right on top of them (i.e. not quite early enough)

p.s. i am using randomize matrix to create the hills but at the moment i am forced to use a really low value (<10) because otherwise the problem is too noticable.

life's one big game
spec= 1.6ghz, 512mb ram, 128mb gpu, directx 9.0c, dbpro and classic
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 10th Apr 2006 14:54
Im pretty sure increasing the tile count on the matrix would help solve this, but then that would also increase the lag itself. I havent used matrices very much so I cant be of much help.

Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 10th Apr 2006 17:07
Have you repositioned the matrix at all? I find that doing that doesn't update the matrix height stuff and it still acts as if it were at 0,0,0 O.o

Giving us your code would help too

FunkyStickmen: Battle of the Races (1%)
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 10th Apr 2006 18:43
true, i forgot about adding my code, i will do asap

but at the moment i have kinda "solved" my own problem, i'm using a heightmap and i added an invisible cube infront of me (a step infront) so i could use it's value for 'get ground height()' that way u actually climb the hill before u get to it.... only problem is that now some of the hills don't register as hills and i walk straight through them, lol.

life's one big game
spec= 1.6ghz, 512mb ram, 128mb gpu, directx 9.0c, dbpro and classic
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 10th Apr 2006 19:40
Quote: "Have you repositioned the matrix at all? I find that doing that doesn't update the matrix height stuff and it still acts as if it were at 0,0,0 O.o"


Set the matrix height coords then nuse update matrix

Theme park simulator wip

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th Apr 2006 19:44 Edited at: 10th Apr 2006 19:44
Sounds like you're probably not calling update matrix

Randomize matrix makes very pointy landscapes, you should smooth the matrix out.




smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 10th Apr 2006 21:41
that's an amazing little piece of code u got there phaelax, can u explain ur function 'smooth_matrix' abit please?

life's one big game
spec= 2ghz, 1gb ram, 512mb gpu, directx 9.0c, dbpro and classic
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th Apr 2006 01:19
it smooths by averaging the points around each point.


Login to post a reply

Server time is: 2024-11-12 07:40:42
Your offset time is: 2024-11-12 07:40:42