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.

The 20 Line Challenge / Matrix AutoWalls

Author
Message
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 3rd Jul 2003 22:54
This is a program I have been trying to write for ages. It creates a wall from many planes, and makes it follow a matrixes height using mesh manipulation with memblocks and other trigonometry maths. A full explanation of the code is in the code , and special thanks goes to Andrew, Chiwawa and TheDarthster for helping me undrestand memblocks and mesh manipulation !!!

I'm guessing it is DBC only, since DBPro has a different way of dealing with memblocks, I think....
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
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 3rd Jul 2003 22:56
... oh, and space bar, control and the arrow keys are move around.

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
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 4th Jul 2003 02:10
cool

but set camera rotation ZYX PLZ!!!
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 4th Jul 2003 10:59 Edited at: 4th Jul 2003 11:00
its the great wall of hamish!!! hehehehe good stuff

hi guys
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 4th Jul 2003 19:00 Edited at: 4th Jul 2003 19:01
Why set camera rotation xyz? It doesn't make any difference, I,m using the turn and pitch camera commands, and anyway the moving around is just so you can see the wall, the main thing in my code was meant to be the function. It would probably be most useful for random landscapes where you want a wall.

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
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 4th Jul 2003 19:21
Dosen't work in DBPro

"All programmers are playwrites and all computers are lousy actors" -Anon
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 4th Jul 2003 19:38
it can also be used to make tunnels if you set the end flag to 2!!

hi guys
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 4th Jul 2003 20:00 Edited at: 4th Jul 2003 20:01
Yeah, it can. Any number apart from 1 leaves the ends off. Andrew, I'm trying to upload an .exe but my ftp software wont log on and the one on the tripod website is not going anywhere. The exe is a bit different, as you can't alter the values in the code, but it is still only 19 lines (2 more than last time).

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
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 4th Jul 2003 20:18 Edited at: 4th Jul 2003 20:25
Its finally on my site, although that editing thing on the tripod homepage really screwed the projects page up.

On the projects page at the bottom on my site.

http://members.lycos.co.uk/dbasic

Oh, and I know if you make the walls bigger than 5*10 then a=gaps appear, just search for +0.1 and replace it with a bigger value. I should probably change that so it does it automatically.

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
The Wendigo
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 4th Jul 2003 22:54
Dang, won't work for me cuz I don't have dark matter

Current Projects: Game Spawn 85%, mini BSP maker 50%, Height Mapper with many features 75%, Space Tactical (Like BC300AD) 15%.
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 4th Jul 2003 23:39 Edited at: 4th Jul 2003 23:42
I was sure you could get the upgrade from the db website, and besides I have a compiled version on my website.

edit

yeah, you can. Memblocks were added in v1.10, and v1.13 is on the site.

http://www.darkbasic.com/upgrade.php?f=v113

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

Login to post a reply

Server time is: 2024-03-28 23:00:47
Your offset time is: 2024-03-28 23:00:47