Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Nov 23, 2017 9:27 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Aug 29, 2008 7:47 am 
Offline
Transport Empire Moderator
Transport Empire Moderator
User avatar

Joined: Fri Jan 10, 2003 12:21 pm
Posts: 2125
Location: Wroclaw, Poland / Katowice, Poland
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:
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.


Top
   
PostPosted: Thu Nov 13, 2008 5:58 pm 
Offline
Engineer
Engineer
User avatar

Joined: Mon Aug 27, 2007 6:46 pm
Posts: 97
Location: mapy.cz/?query=rajhrad
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!


Top
   
PostPosted: Thu Nov 13, 2008 8:17 pm 
Offline
Chief Executive
Chief Executive
User avatar

Joined: Mon Nov 15, 2004 7:46 pm
Posts: 643
Location: Berlin, Germany
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


Top
   
PostPosted: Sat Nov 22, 2008 11:09 pm 
Offline
Transport Empire Moderator
Transport Empire Moderator
User avatar

Joined: Fri Jan 10, 2003 12:21 pm
Posts: 2125
Location: Wroclaw, Poland / Katowice, Poland
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.