Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Endless procedural generated terrain.

ori
Registered User
Quote
2020-03-14 16:16:47

Hi, the game "PostCollapse" did procedural generated terrain, can anyone provide an example of how this was done. thanks.


Robo
Guest
Quote
2020-03-15 12:56:16

It was not made using CopperCube but done directly in C or was it C++, but anyway not in CC sorry.

This doesn't mean you cant generate some things like buildings and structures etc. Unsure how you would change the landscape with code though...if its even possible..

Maybe you could have a predefined list of landscapes setup and just randomly choose one to activate - or have separate load files with different landscape in each one and just run one of them.

A simpler solution probably would be to have a basic landscape and just move static mesh around to create hills etc...you can still walk on 3d meshes but there are a few differences compared to walking on landscapes like angle of ascent changes from memory...


just_in_case
Moderator
Quote
2020-03-18 05:45:28

I remember something like that has been done before by @jaimezegpi.... He used arrays and then use them to create a procedural horizontal and vertical generation of terrain...

But unfortunately he had shutdown his website... So the example has been lost for forever... ...

Maybe this was his post regarding the topic.... Luckily he posted the script code here on the forum....
Do have a look at it here. ..@Robo you might find this usefull for your space project...

[Url]https://www.ambiera.com/forum.php?t=4033[/utl]




Robo
Guest
Quote
2020-03-26 06:14:50

cheers 'just_in_case' - I am always looking out for new code I might be able to incorporate into my game.

This bit of code looks nice and can randomly allocate objects around the landscape...might work well for my alien landscapes...:)


douwedabbe
Registered User
Quote
2020-06-08 16:42:23

here is a derivative to that idea:

have arrays and then use them to create a procedural horizontal and vertical generation of terrain

https://www.ambiera.com/forum.ph...


pmax
Registered User
Quote
2020-06-08 17:05:52

some time ago I had created a script to upload images ( with PGM extension ) to create land on Coppercube here is the link.
https://ambiera.com/forum.php?t=...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact