Polygonal Mesh Terrain in v0.99

Post your own tutorials, guides and demos.

Post » Thu May 21, 2009 9:55 pm

This is in response to this thread.

[attachment=0:qpxjmg81]PolyMesh Level.zip[/attachment:qpxjmg81]



I know it looks a little stretchy and sloppy, but it's just a proof of concept, and represents only an hour's work in total. With some tweaking and proper texture creation you could make some really good looking maps.


Here's how I did it...

First, I made my level with some tiles:


I took a couple of screenshots of the layout so I could have some reference images. Then I opened up the Mesh Editor tool that comes with v0.99.

I added the screenshots to the mesh editor on the lower layer so I could line up my mesh properly, like so:


It's better to use the Load Image button in the Mesh Editor itself, that way your mesh will be properly sized for the sprite when you export it. If you edit the teapot sprite in the .cap to use the sprite you're making the mesh for, then your mesh will be the wrong size. I learned that the hard way, after making the top peninsula part (you can see it's not aligned pixel-perfect like the lower ground area if you run it with the background tiles visible).

After editing the mesh I saved the mesh file and loaded it into my level. I did have to place the sprites by hand to line them up correctly, but I'm sure someone will think of some clever way to automate that process.

Also, I believe you could probably conserve VRAM by using instances of the same sprite and assigning different meshes to each instance based on a private variable.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu May 21, 2009 10:26 pm

verrrry nice :D

i was going to, however time is suddenly a very hot commodity
B
2
G
3
Posts: 36
Reputation: 922

Post » Fri May 22, 2009 9:35 am

This is very impressive, congrats :).
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Fri May 22, 2009 7:53 pm

Thanks guys :)
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat May 23, 2009 3:31 pm

Cool and the gang!
But where can I find the Mesh Editor tool in 0.99?
B
33
S
15
G
6
Posts: 242
Reputation: 4,343

Post » Sat May 23, 2009 3:37 pm

In the Tools subdirectory.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat May 23, 2009 3:46 pm

The Tools subdirectory of the install path. (edit: ninja'd)
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 3 guests