PerlinScape (now with source)

Post your Construct-made creations!

Post » Sat Nov 28, 2009 11:37 pm

I was excited about the Perlin Noise plugin when it was announced, but couldn't really make up my mind what to do with it. Because of some topdown prototyping and the example Newt posted in the plugin thread, I came across making this little thing:




PerlinScape 0.4 with source


So you can randomly generate those little landscapes and automatically create a pseudo 3D view of it. Not a big deal, but I was pleased enough with myself to share this here. :P
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Sun Nov 29, 2009 12:57 am

Looks cool. I must admit I am curious as to how your doing the textures. :D
hehe Tell us how that's done, and I'll tell ya how to generate a collision mask.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sun Nov 29, 2009 6:01 pm

i you post a cap ill show you how to mount it on a sphere to make a populous style planet :P
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Mon Nov 30, 2009 2:30 pm

Newt I can tell you the secret :P It's just a lot of objects together :P
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Mon Nov 30, 2009 3:26 pm

Ahh well, I figured it was staggered sprites, but I was hoping it wasn't.... kinda.
I mean its possible to do the same thing with much smaller sprites stretched, and tiled with u, and v.
I just haven't figured out how to do that correctly. :P
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Mon Nov 30, 2009 9:23 pm

[quote="newt":s1d0lv9m]Ahh well, I figured it was staggered sprites, but I was hoping it wasn't.... kinda.
I mean its possible to do the same thing with much smaller sprites stretched, and tiled with u, and v. I just haven't figured out how to do that correctly. :P[/quote:s1d0lv9m]

Yes, the terrain is made out of three different 64x64 sprites and the water out of two. I'll add some more textures and will probably go for the generic mountains with snow on top for this example too.

[quote="QuaziGNRLnose":s1d0lv9m]i you post a cap ill show you how to mount it on a sphere to make a populous style planet :P[/quote:s1d0lv9m]

I was wondering about creating planets like this. Some spheric warping math or something? I'll release the source soon so maybe you can give it a whirl then. 8)

I updated the link in the first post with another improved version. The heightmap is working correctly now with the light and I added some sort of fake lightmap, at least I like to call it that. It's a bit glitchy in certain situations, due to the way I did it and the fact that Construct isn't a 3D engine, but it gives you a better 3D feel overall imo.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Wed Dec 16, 2009 6:14 pm

This is amazing!!! could to give .cap for this one? Really want to know how did you do it!
B
4
S
1
G
3
Posts: 85
Reputation: 1,234

Post » Wed Dec 16, 2009 9:26 pm

[quote="PixelRebirth":6b2lgthj]I was wondering about creating planets like this. Some spheric warping math or something?[/quote:6b2lgthj]
I've been working on that, but I ran into some issues with the lack of object space, so it means you can't rotate the object... still maybe there's a way around it (I see two but havent implemented them yet)

So from a flat object, apply heightmap plus effect as you are now, then try applying a warp with a spherical distortion, then apply my clip to disk shader, and you'd have a planet :D
clip to disk (unfinished) effect, goes nutz if object is not axis-aligned --> [url:6b2lgthj]http://www.scirra.com/forum/viewtopic.php?f=7&t=5210[/url:6b2lgthj]

I've been thinking of rolling all of that into a single "planetize" effect, to get correct lighting in there. But yeah, I'm supposed to be doing something else right now.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Mon Feb 01, 2010 10:49 am

I almost forgot about this. But since I intended to share the source for this, well here it is:

PerlinScape 0.4 with source

It's a bit messy and you can probably tell I made this up while I was creating it. It was my playground with the Perlin Noise plugin and mesh distortion after all. Originally I intended to tidy it up, probably starting over from scratch with a clean commented cap. But for now you'll have to live with this.

I quickly added a slider for Z elevation in there and the ability to enter the seed manually. The source was also saved in 0.99.82 and uses the Perlin Noise plugin (obviously) and the True Greyscale effect. Both you should be able to find here on the forum of course.

Oh and you guys... what about making pretty planets out of such landscapes now? :P
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Thu Feb 24, 2011 6:30 pm

[quote:3e3fgvi7]The source was also saved in 0.99.82 and uses the Perlin Noise plugin (obviously) and the True Greyscale effect. Both you should be able to find here on the forum of course.
[/quote:3e3fgvi7]

I know this is an old post but I really wanna check this out, except that I cannot find the True Greyscale effect. The search only turns up this thread.
B
2
S
1
G
1
Posts: 20
Reputation: 640

Next

Return to Your Creations

Who is online

Users browsing this forum: No registered users and 0 guests