Perspective suggestion

Discussion and feedback on Construct 2

Post » Tue Oct 23, 2012 1:56 pm

Since Construct2 is a 2D Development Environment, I thought it could do some tricks to give the illusion of 3D. We already have layers that when given different speeds simulates perspective, but what about image wrapping? Wound't it be nice if it could be done? My suggestion although goes a little bit further not only picture wrapping, but "Wrapping Planes".

Explanation:

Lets say you already have a hand-drawn background with some perspective you want to add sprites over it and want the sprites to get small and as they go deeper in the background or move slowly as they get away from POV point. Something like a Perspective ShaderEffect applied to a plane!

What do you think?




Example: In the previous image the plane would be the "TEXT" thing (invisible during runtime) and the sprite would get smaller as it walk deep in the plane and would walk slower also.
B
11
S
3
G
5
Posts: 19
Reputation: 3,639

Post » Tue Oct 23, 2012 7:41 pm

If I'm understanding this right then can't you already do this?

If you run an event every tick, or even just when the player moves, to check the x/y pos of the sprite and then scale it based on that position you will have an effect like the above no?
B
14
S
3
G
5
Posts: 41
Reputation: 3,490

Post » Tue Oct 23, 2012 8:29 pm

Nah. You can't distort the mesh yet.

We need a plugin for it :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Tue Oct 23, 2012 9:05 pm

Well let me try to explain it better :P the implementation idea its like applying distortion properties to a layer and everything inside that layer
is distorted accordingly. This way the background layer is intact (like I said for example it is hand-drawn and already has perspective) but the layer where the sprites go is not linear its like remapping x and y coordinates. Some pics to exemplify:




B
11
S
3
G
5
Posts: 19
Reputation: 3,639

Post » Tue Oct 23, 2012 9:26 pm

Html5 is not built to do that. However as dsarchy said you can scale the moving object, and Css3, as well as webgl can do some distorts.
It will be a while before that's available though, and it wont be available on all browsers, and mobile devices.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Tue Oct 23, 2012 9:29 pm

That's what distorting mesh does. Remap X/Y texture coordinates. Currently there is no support for it, someone would have to get their hands and even legs dirty writing a plugin. Seeing that Construct 2 has three different graphical engines - 2D context, 3D WebGL and of course the edittime renderer - there'd be a LOT of work, especially considering the canvas 2d context isn't equally supported across all browsers (some features are more or less implemented) and that the edittime renderer is pretty limited in what you can do with it.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Tue Oct 23, 2012 11:46 pm

I really hope we get sprite distortion eventually though. I loved it in cc.Arima2012-10-23 23:47:06
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432


Return to Construct 2 General

Who is online

Users browsing this forum: Colludium, Psychokiller1888 and 7 guests