Perspective suggestion

0 favourites
  • 7 posts
  • 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?

    <img src="http://s8.postimage.org/6r93rs73p/Suggestion.png" border="0" />

    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.

  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Nah. You can't distort the mesh yet.

    We need a plugin for it :)

  • 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 it�s like remapping x and y coordinates. Some pics to exemplify:

    <img src="http://s16.postimage.org/u726s7fmd/Example1.png" border="0" />

    <img src="http://s16.postimage.org/cv1u6rm51/Example2.png" border="0" />

  • 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.

  • 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.

  • I really hope we get sprite distortion eventually though. I loved it in cc.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)