.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   OT: Anyone want to help me with a small basic program? (http://forum.shrapnelgames.com/showthread.php?t=12486)

narf poit chez BOOM July 15th, 2004 10:49 PM

OT: Anyone want to help me with a small basic program?
 
Every other programmer in the world seems to be able to make a terrian generater. So did I. Except their's don't look like a spike pit trap after 200 uses. http://forum.shrapnelgames.com/image...s/rolleyes.gif I'm not entirely sure of what the finished product of what I'm doing is supposed to look like, but I'm pretty sure it's not that. Help?

Suicide Junkie July 15th, 2004 10:52 PM

Re: OT: Anyone want to help me with a small basic program?
 
What are the details of the project?

narf poit chez BOOM July 15th, 2004 11:02 PM

Re: OT: Anyone want to help me with a small basic program?
 
Details? Um...I set every point on the heightmap to -1 to differenciate between points set and points not set. then I put random heights on the heightmap from 0,0 to currently 32,32 using a for/next loop and stepping by half the map size, so 9 height points. The program then is supposed to step accross the map at half intervals, check to see if the current point is at -1, if it is, take the average of all points at the current step distance x,y or both away that aren't at -1, then input the average into it's current square. Once it completes a map, it divides both distances it's stepping by by /2 and goes again until it's done the map at 1,1 intervals. Want the source code?

[ July 15, 2004, 22:04: Message edited by: narf poit chez BOOM ]

Gandalf Parker July 15th, 2004 11:11 PM

Re: OT: Anyone want to help me with a small basic program?
 
Your logic sounds ok. You are getting results that are too extreme? Before I offer too much help did you mean "basic program" or a "BASIC program" (is it programmed in ansi basic?)

[ July 15, 2004, 22:12: Message edited by: Gandalf Parker ]

narf poit chez BOOM July 15th, 2004 11:14 PM

Re: OT: Anyone want to help me with a small basic program?
 
DarkBASIC, actually. www.darkbasicpro.com

What I'm getting is spikes all over.

Gandalf Parker July 15th, 2004 11:28 PM

Re: OT: Anyone want to help me with a small basic program?
 
I think thats pretty compatable with mine (I use a linux basic). Send me the code if you want.

What you should be doing is placing 9 heights, then placing the hieghts midway between them (with some slight random variation for texture), then mid between those, etc etc etc until you have the terrain done. Walking across the screen would be harder Id think.

Gandalf Parker July 15th, 2004 11:30 PM

Re: OT: Anyone want to help me with a small basic program?
 
by the way, I think its referred to as "fractal terrain". http://www.gameprogrammer.com/fractal.html#intro
is that what you were working on?

Ed Kolis July 15th, 2004 11:31 PM

Re: OT: Anyone want to help me with a small basic program?
 
People actually still program in BASIC? http://forum.shrapnelgames.com/images/icons/shock.gif

(and I'm not talking Visual Basic, that's diverged so far from BASIC it's not really BASIC anymore http://forum.shrapnelgames.com/images/icons/icon12.gif )

narf poit chez BOOM July 15th, 2004 11:37 PM

Re: OT: Anyone want to help me with a small basic program?
 
I thought that's what I was doing?

Yeah, fractal. Well, semi-fractal, I think.

I bought a 3d space flight combat game made with darkbasic, not even the proffesional Version that had better nebulea than freespace 2 and the best evasive ai I have ever seen in a flight sim. The screenshots page: http://starwraith3dgames.home.att.net/gallery.htm

Not sure if it'd run in your compiler, there's specialized commands. But there's a 30 day demo.

Project file: http://www3.telus.net/funnybnz/WalkDemo.dbpro
Code file: http://www3.telus.net/funnybnz/WalkDemo.dba

[ July 15, 2004, 22:45: Message edited by: narf poit chez BOOM ]

DarkAnt July 15th, 2004 11:55 PM

Re: OT: Anyone want to help me with a small basic program?
 
wow, that is really nice. thanks for the link


All times are GMT -4. The time now is 08:16 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.