(completed) Task: Perlin Generator

Discussions related to programming Transport Empire.

Moderator: Transport Empire Moderators

Post Reply
User avatar
uzurpator
Transport Empire Moderator
Transport Empire Moderator
Posts: 2134
Joined: 10 Jan 2003 12:21
Location: Wroclaw, Poland / Katowice, Poland

(completed) Task: Perlin Generator

Post by uzurpator » 29 Aug 2008 07:47

Greetings, to you, dearest of all my friends ;)

There is a task at hand, code wise. The perlin noise generator I use, stored in the gridArray.h. gridArray.c themes.h and themes.c needs a rewrite. Current one is adapted from TTD new terrain generator, it is slow, old, written in c and, worst of all, leaks memory like mad :>.

so I need something like this:

Code: Select all

class perlin_gen
{
double getNoise2d(x,y);
};
Libraries, rest of the interface etc is a decision for you to take.
All art and vehicle stats I authored for TT and derivatives are as of now PUBLIC DOMAIN! Use as you see fit
Just say NO to the TT fan-art sprite licensing madness. Public domain your art as well.

User avatar
An00biS
Engineer
Engineer
Posts: 97
Joined: 27 Aug 2007 18:46
Location: mapy.cz/?query=rajhrad
Contact:

Re: Task: Perlin Generator

Post by An00biS » 13 Nov 2008 17:58

Hey.

I think this is what you're looking for http://farao.czweb.org/download/perlin.exe. It belongs to an article at http://farao.czweb.org/perlin.htm, but it's in czech. There is no copyright notice anywhere on the page, and there are a lot of programs to download, so I guess the author won't mind us to use it.

Edit: I forgot to say, the download is a self-extracting archive with sources, not an app.
[Update Aug 2013] FlexRails track buiding demo coming soon!

User avatar
prissi
Chief Executive
Chief Executive
Posts: 645
Joined: 15 Nov 2004 19:46
Location: Berlin, Germany
Contact:

Re: Task: Perlin Generator

Post by prissi » 13 Nov 2008 20:17

You could use the one from simutrans, it is C code in C++ (since for a perlin generator there is no use for C++ in a mathematical formula ... ) http://downloads.sourceforge.net/simutr ... -100-0.zip

file simtools.cc, called from simworld.cc
I like to look at great maps and see how things flow. A little like a finished model railway, but it is evolving and actually never finished. http://www.simutrans.com

User avatar
uzurpator
Transport Empire Moderator
Transport Empire Moderator
Posts: 2134
Joined: 10 Jan 2003 12:21
Location: Wroclaw, Poland / Katowice, Poland

Re: Task: Perlin Generator

Post by uzurpator » 22 Nov 2008 23:09

Thanks for the thumbs up. Ill look into it shortly :)

EDIT: I played abit with simutrans generator, and settle for it for now.
All art and vehicle stats I authored for TT and derivatives are as of now PUBLIC DOMAIN! Use as you see fit
Just say NO to the TT fan-art sprite licensing madness. Public domain your art as well.

Post Reply

Return to “Transport Empire Coding”

Who is online

Users browsing this forum: No registered users and 1 guest