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 / HOW To : Make matrix with a height map?

Author
Message
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 17th Jan 2003 11:09
how to make a matrix using a height map? is it possible?
there seems to be an example in the infinite terrain project in dbpro, but whether im not smart enuff or its too complicated for me to understand..eitherways im not smart enuff though:p
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 17th Jan 2003 12:14
u could use a 2dimension array to store each x and z tile vertice location and then refeed that back in for a solution.

CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 17th Jan 2003 17:21
could you explain clearly please? the example code was very confusing already and maybe you can make things easier for me

haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 17th Jan 2003 19:55
heres some code that could help, note you will need a bitmap, though i'd expect you already have one



Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 17th Jan 2003 23:08
I made something like that a while ago, it's in the code snippets section. People didn't like it though.
haggisman
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 18th Jan 2003 16:48
lol i got a bit bored so i ended up doing some more work on the matrix. I had a go at normalizing and it looks allright though my code is a little hard to understand.



Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 18th Jan 2003 16:59
DBNet has a tutorial on making a matrix from a bmp heightmap:

www.darkbasic.net

Visit [url]www.lightning-systems.co.uk[/url] :: [url]www.realgametools.net/forums[/url]
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 18th Jan 2003 17:00
(continuing) That was for making a matrix from heightmap, if you want to make a terrain have a look at the world command set - in particular make terrain.

Visit [url]www.lightning-systems.co.uk[/url] :: [url]www.realgametools.net/forums[/url]
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 19th Jan 2003 12:25
well im not sure if these codes are working for all of you, but they didnt work for me with my own heightmap which i made with bryce 5..
why so?

CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 19th Jan 2003 12:44
nevermind i managed to make it work now
thanks to those dbnet site, to anyone else interested in this topic, the link to the tutorial is:
http://www.darkbasic.net/modules.php?name=News&file=article&sid=58

Login to post a reply

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