Texture filled polygons

New releases and general discussions.

Post » Thu May 21, 2009 1:45 pm

It would be nice to have the possibility to draw textured polygons in canvases, or just in the layer manually..

Isn't it a nice feature?
B
2
S
1
G
3
Posts: 193
Reputation: 1,486

Post » Thu May 21, 2009 3:41 pm

What would you use it for? Doesn't mesh distortion do something a bit like that?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Thu May 21, 2009 3:55 pm

No, because I have to load meshes, and I want to make a polygonal textured map directly on a layer.. Meshes are totally another thing.. And with textured polygons you can also make collision detection.. Also there are many uses we can make with polygons, and textured polygons..

For example see this game:
[url:2iu90sca]http://www.soldat.pl/en/[/url:2iu90sca]

It uses textured polygons for everything in the maps.. And the result is also very nice to see, don't you think?

Game developers would find a very useful and interesting feature the possibility to draw texture polygons directly on the layer, and also at runtime via events!
B
2
S
1
G
3
Posts: 193
Reputation: 1,486

Post » Thu May 21, 2009 4:39 pm

Looks like you can pretty much do that with sprites, they're made out of two polygons anyway...
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Thu May 21, 2009 5:20 pm

:( .. Yeah, but it's not the same thing as i'm saying.. You cannot make textured polygonal maps in Construct..
B
2
S
1
G
3
Posts: 193
Reputation: 1,486

Post » Thu May 21, 2009 5:54 pm

Its doable, just not in the way you want to do it.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Thu May 21, 2009 5:57 pm

And what's the right way?
B
2
S
1
G
3
Posts: 193
Reputation: 1,486

Post » Thu May 21, 2009 6:06 pm

Till 0.99's stable I'd go with distort map, and dummy objects for collision detection.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Thu May 21, 2009 6:11 pm

You could do something like this:



Make yourself a tileset. With a modular tileset like this, you could make just about any shaped terrain you wanted easily by snapping the pieces to the layout grid and rotating them as needed. Use the tileset for your collisions. Changing them around for level testing would be fairly simple.

Then when your design is in place, and your level plays how you want, grab some screenshots and stick them in the mesh editor as a template. Then tweak your meshes so they fit over your tiles, save the meshes, and place them in your levels over the tileset pieces.

Edit: ARGH, newt beat me to it :x
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu May 21, 2009 6:40 pm

Yeah like Deadeye said, you could even use the templates to make up the distort map by using imagepoints placed on the dummies.
Btw this gives you the ability to make deformable terrain in real time.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests