How do I simulate 3D perspective with scrolling?

Get help using Construct 2

Post » Thu Mar 24, 2016 1:07 pm

Hi,

I'm puzzled how to recreate a sort of this effect
https://thecreatorsproject-images.vice.com/content-images/contentimage/no-slug/a6f224a3a81e7e139a4de96259a413e6.jpg

To make a pseudo-perspective terrain with 2D "flat" element on the ground that "stand up" giving a nice pseudo-3D effect.

With a quad deformation (with mode7 or with Gigatroneffect) I achieved that
Image

(attached capx with .fx file http://risingstorage.blob.core.windows. ... ective.zip )

But as you can see I have difficulty to set the Size and X position of "stand" object :
http://risingstorage.blob.core.windows. ... index.html

How I can do that? Maybe in a totally different way?
Luca ConTato [RisingPixel]
Image
B
22
S
8
G
2
Posts: 118
Reputation: 2,911

Post » Thu Mar 24, 2016 1:49 pm

try this plugin, [Plugin]Board
B
78
S
23
G
69
Posts: 1,354
Reputation: 44,027

Post » Thu Mar 24, 2016 3:48 pm

gamecorpstudio wrote:try this plugin, [Plugin]Board


I don't have problem with cell/board movement (the movement isn't anyhow "tileable") but I have problem with visualization of this
Luca ConTato [RisingPixel]
Image
B
22
S
8
G
2
Posts: 118
Reputation: 2,911

Post » Thu Mar 24, 2016 4:48 pm

tatogame wrote:
gamecorpstudio wrote:try this plugin, [Plugin]Board


I don't have problem with cell/board movement (the movement isn't anyhow "tileable") but I have problem with visualization of this



oh now i seen the Gigatron platformer so you want that pseudo effect that shows the edge on surtain distance and angle?


or im not sure what you mean.... the doctor game you showed as example is an isometric game... if you want to add a scale based on distance you could simply do that by comparing the main player camera position.... or distance between the main player and the position of the enemy/npc etc... but i doubt is what you are looking for. Hope i dont sound to stupid lol... maybe you are thinking at the effect in a too complicated way then actual is?
B
78
S
23
G
69
Posts: 1,354
Reputation: 44,027

Post » Fri Mar 25, 2016 3:07 am

Could you just use the Y position on screen to subtract from the size, and speed it's allowed to move?

The higher up the further back it would appear. It shouldn't be hard, but may take a lot of tweaking to match your chosen background.
B
242
S
63
G
33
Posts: 903
Reputation: 40,756

Post » Fri Mar 25, 2016 7:54 am

it's basically a perspective transform, but it can be tricky to get it to match an effect by just tweaking. For the mode7 effect there's a capx that has the math worked out but it's not too pretty.

A approximation would be to take a snapshot of just the ground with the effect applied. Measure the width in the middle and at the top. Then taking an object's y position you can calculate the scale with:

Scale=lerp(widthtop/widthmid, 1, y/240)

Or instead of 240, half the screen height.
B
94
S
33
G
118
Posts: 5,396
Reputation: 75,853

Post » Fri Mar 25, 2016 9:02 am

tatogame wrote:Hi,

I'm puzzled how to recreate a sort of this effect
https://thecreatorsproject-images.vice.com/content-images/contentimage/no-slug/a6f224a3a81e7e139a4de96259a413e6.jpg

To make a pseudo-perspective terrain with 2D "flat" element on the ground that "stand up" giving a nice pseudo-3D effect.

With a quad deformation (with mode7 or with Gigatroneffect) I achieved that
Image

(attached capx with .fx file http://risingstorage.blob.core.windows. ... ective.zip )

But as you can see I have difficulty to set the Size and X position of "stand" object :
http://risingstorage.blob.core.windows. ... index.html

How I can do that? Maybe in a totally different way?

@tatogame
Why don't you use 2d PlatformerFx .. I like master Rojohound (maths formula ) but here no formula is needed.
Take a look : http://gigatron3k.free.fr/html5/C2/3dsi ... ation.capx
Gl fx disabled on editor, 2d platformer fx was used on perspective layer.. Depth param set to 1...
you ill understand quickly, all object are moved in persperctive layer...
B
69
S
24
G
29
Posts: 829
Reputation: 22,751


Return to How do I....?

Who is online

Users browsing this forum: ounound and 16 guests