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.

Code Snippets / [unknown adjective] matrix, a bit as randomize matrix, but better :)

Author
Message
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 4th Aug 2003 17:19
randomize matrix doesn't give a very good result, there may be a very high hill next to a very small one, and only few people like it ^^
with my system, you can randomize your matrix a bit slower, but I think it works better. if you want to change the maximal height, just modify "c = rnd(255)"
"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 5th Aug 2003 10:57
bloody hell that looks pretty! good job

I have a website!!!
So go there: http://www.freewebs.com/darkb/index.htm
on second thought you probably shouldn't
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 5th Aug 2003 15:57
That's really clever!

"All programmers are playwrites and all computers are lousy actors" -Anon
UnderLord
20
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 5th Aug 2003 21:32
yeah it did nothing for me im using DBC

http://www.freewebs.com/independant
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 5th Aug 2003 23:43
the board does say dbp snippets only though underlord, although it should work in classic i think

I have a website!!!
So go there: http://www.freewebs.com/darkb/index.htm
on second thought you probably shouldn't
stora
20
Years of Service
User Offline
Joined: 4th Aug 2003
Location: United Kingdom
Posted: 6th Aug 2003 00:52
I get a runtime error ....matrix too large 10000 polygons in DBC

UnderLord
20
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 6th Aug 2003 06:25
oh so it does red_eye i dident read that oh well most of the code i get off this board works for DBC too =P

http://www.freewebs.com/independant
keeblerElf
20
Years of Service
User Offline
Joined: 11th Jun 2003
Location: United States
Posted: 6th Aug 2003 06:26
Awesome

Live life and play video games
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 6th Aug 2003 13:32
Here's a version that works with DBC
if you want to use it in your game, you have to set the display mode X,Y,32 when you're drawing the bitmap 1
it's slower in DBC because of the 2d drawing commands

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
stora
20
Years of Service
User Offline
Joined: 4th Aug 2003
Location: United Kingdom
Posted: 6th Aug 2003 21:29
Quote: "Here's a version that works with DBC
if you want to use it in your game, you have to set the display mode X,Y,32 when you're drawing the bitmap 1
it's slower in DBC because of the 2d drawing commands"


Wow, thanks for the version that runs with DBC

UnderLord
20
Years of Service
User Offline
Joined: 2nd Aug 2003
Location:
Posted: 7th Aug 2003 05:29
yeah i don't see anything but youe text i see no code

http://www.freewebs.com/independant
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Aug 2003 10:49
click the source code button under his post. its really easy then.

AzureZeal
20
Years of Service
User Offline
Joined: 10th May 2003
Location:
Posted: 7th Aug 2003 12:03
Wohoo this is great stuff! I was thinking of doing something like this for my matrix editor. Ill be sure and give you due credit for such a inspiring demonstration

Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 7th Aug 2003 19:06


"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
Damokles
20
Years of Service
User Offline
Joined: 28th May 2003
Location: Belgium
Posted: 7th Aug 2003 21:01
Désolé, but the only thing I saw, when I tried it with DBC, was a flat matrix, not like your screenshot.

"Begin at the beginning, and go on till you come to the end: then stop." - Lewis Carroll
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 7th Aug 2003 21:38
Same here.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
stora
20
Years of Service
User Offline
Joined: 4th Aug 2003
Location: United Kingdom
Posted: 7th Aug 2003 23:01
Quote: "Désolé, but the only thing I saw, when I tried it with DBC, was a flat matrix, not like your screenshot.
"


Let the program run a while longer.
If you have a slower PC, you will see a flat matrix, but after a few mins you should see nice smooth hills.

better rad than bad
haXor
20
Years of Service
User Offline
Joined: 12th May 2003
Location: United States
Posted: 8th Aug 2003 02:40
omg that is just beautiful, thats all i can say.

Sup Kids
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 8th Aug 2003 13:13
Stora is right : with DBC it is very slow ; I need 31 seconds before the matrix is finished and you see only a flat matrix before that...
it's because of the command point => it's very slow because DBC doesn't like the 2d

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 8th Aug 2003 16:02
Using Attreid's code its very easy to make a realistic looking world very simply, all this screenie is, is one matrix 2 objects and 3 images!

or
http://homepage.ntlworld.com/kay.pierce/hills.jpg
if the link doesn't work

I have a website!!!
So go there: http://www.freewebs.com/darkb/index.htm
on second thought you probably shouldn't
Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 8th Aug 2003 20:55
I'm making a system similare to morrowind's world with this snippet...
this project is called "Worlds builder" ^_^
just give a few informations, and the program build a whole world ^^

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 8th Aug 2003 21:06
cool, that matrix there now has a house on it, made in cart shop

I have a website!!!
So go there: http://www.freewebs.com/darkb/index.htm
on second thought you probably shouldn't
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 10th Aug 2003 08:30
Nice, although on my system, after adding SYNC ON, viewing the whole matrix I ran at around 17 FPS :-s

Specs

Athlon 2600+ XP
2.08 GHz
64MB nVidia GeForce 4 MX
512 MB Ram
120 Gig HD

But other than that nice

RPGamer

Current Project: Eternal Destiny
Porting all files to my new computer

Login to post a reply

Server time is: 2024-04-19 15:38:19
Your offset time is: 2024-04-19 15:38:19