Skip to main content
gamedev.net
🔒 Locked

Grow :: procedural generator

Started by eppo 22 replies 7.9k views
Original Post
eppo
eppo
Content (terrain, buildings, foliage) generated with my procedural tools.

I wanted to simplify my game's collision system at run time by using only a single type of collision shape, namely convex hulls. Because manual hull construction puts a lot more pressure on the content generation side, I've tried to automate the process as much as possible. All tools now create a convex representation in addition to their main geometric output (see video).

Grow library

Click here to view the iotd
Pthalicus
Pthalicus

Wow, this is seriously impressive work, how long have you been developing Grow?

Keep up the amazing work. :)

Saving the world, one semi-colon at a time.
jbadams
jbadams

Really cool!

- Jason Astle-Adams
eppo
eppo

Thank you for your comments.

Also note the short loading times in the video; the main scene is loaded in the time it takes to fade out the opening menu.

CaseyHardman
CaseyHardman

It looks fantastic!

https://x.com/Casey_Hardman
CC Ricers
CC Ricers

Looks very nice. I like that you made this publicly available. But I can't get it to work. Running PHP 5.3.3 on WAMP.

I tried to run the main script or the other scripts, and I get this error on gen/gen.php:

Parse error: syntax error, unexpected '[' in ... \gen\gen.php on line 21

It doesn't seem to like this array element: stream("lxosaver", $options)["data"]

B_old
B_old

Very nice looking!

Do you have more information on the rendering engine?

eppo
eppo
I checked the above error, and apparently dereferencing an array returned by a function, 'a()[]', is only supported in PHP >= 5.4. Sorry about that.
These are the dev-tools as I use them myself. I've found it's very well possible to set up a custom tool chain without a graphical interface to support it. It's not the most intuitive way to have to modify tool arguments in a script file, but it allows you to focus purely on the algorithmic implementation. Especially scripting languages are very useful to serve as a 'programmable interface'. e.g. instead of spending a month writing a full blown curve editor, I can get away with a simple spline class: $options["tree_roll"] = new Spline(0.2, 0.5, 0.4);
kubera
kubera

Super!

kubera
kubera

I have seen a few Activison's games for children (Bee Movie, etc.)

This game would be better...

Cromulent
Cromulent

Very impressive graphics. Good job.

Giallanon
Giallanon

You should use <?PHP instead of <? for better compatibility

Hodgman
Hodgman

Neat tools. If you're interested in getting some more users, then better documentation of how to use the tools outside of your PHP management system would be welcome wink.png

CC Ricers
CC Ricers

eppo, thanks for checking out the error. Looks like I'll upgrade my PHP just to use this, it looks like a real timesaver for making levels. I also second Giallanon's suggestion on the opening tags. <? is less safe and not as likely that all server configs will support it. Fortunately I caught this and changed all the tags.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.