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 / Easy to use Matrix Landscape creation

Author
Message
enderleit
19
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 26th Sep 2010 23:24 Edited at: 5th Oct 2010 14:53
Hello again,

Hope it's ok that I post this here, since it didn't seem to fit the Program Announcement or the Snippets sections...

I was fiddling around trying to easily make some nice Landscapes, and I came up with these handy functions.

Basically it lets you easily create a Matrix Landscape with a HeightMap and a Texture.



Instructions are in the source files.

I have also included this in my UFC utility collection which includes all sorts of helpful utility functions. You can find the UFC collection under the WIP section.

Comments are welcome.

EDIT: Fixed a bug which caused the Texture to be applied incorrectly. The Download has been updated.

- enderleit
enderleit
19
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 26th Sep 2010 23:27
And here's a quick screenshot...

- enderleit
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 26th Sep 2010 23:46
Looks good from the pic, although rather old school(with all the rounded hills and such). I am unsure if this is a matrix editable by matrix commands, or a terrain? It could be either by the screen shot. I assume matrix, but could be wrong.

http://s6.bitefight.org/c.php?uid=103081
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 26th Sep 2010 23:59
cool, can i use it on my latest project?

Who the hell is General Failure? And why is he trying to read my hard disk?

My software never has bugs. It just develops random features.
enderleit
19
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 27th Sep 2010 00:05 Edited at: 27th Sep 2010 00:08
Feel free to use it any way you like.

EDIT: And yes, it is a Matrix, not a Terrain.

EDIT2: Btw, the hills don't need to be so rounded, it all depends on how you draw the HeightMap. For this one I used a smooth brush, which is why it is so rounded.

- enderleit
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 27th Sep 2010 00:52
Cool I might make a map editor for this, ill let u know if I do

Who the hell is General Failure? And why is he trying to read my hard disk?

My software never has bugs. It just develops random features.
enderleit
19
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 28th Sep 2010 17:52
You might want to re-download. I have fixed a bug in the code that caused the Texture to be applied wrong. The download in the top post has been updated with the new version.

- enderleit
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 8th Oct 2010 05:49
ok

Login to post a reply

Server time is: 2026-07-22 03:51:50
Your offset time is: 2026-07-22 03:51:50