2D Perspective Transform

New releases and general discussions.

Post » Wed Feb 18, 2009 9:20 am

Helo,
I cant wait for the release of Consctruct.
Anyway, for sprite object, i see Skew X,Y option.

Could you (Scirra) please add 2D Perspective Transform? where you can set horizontal % (or pixels) and vertical % (or pixels) ? The transform takes precedence over rotation.

As Consctruct is 2D game creator, I'm going to use the 2D Perspective Transform to make the top down sprite a 3D illusion.

Perhaps plugins?

Barnas
B
1
G
3
Posts: 6
Reputation: 837

Post » Wed Feb 18, 2009 12:53 pm

Have you tried the 3D Box object?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Feb 18, 2009 2:02 pm

I'd definitely like to see perspective transform added to the sprite features, especially since the 3D box object doesn't support animated textures :)
B
2
S
1
G
5
Posts: 59
Reputation: 1,518

Post » Wed Feb 18, 2009 2:46 pm

[quote="BenH":2y3kvy6y].....especially since the 3D box object doesn't support animated textures :)[/quote:2y3kvy6y]
Or rotating layers.
B
2
S
1
G
3
Posts: 105
Reputation: 1,310

Post » Wed Feb 18, 2009 5:46 pm

if you need it urgent, you could achieve a perspective transformation by using the math to influence the distort map of the sprite (transforming the grid that the sprite is drawn upon).

that could be a hassle, though. i wouldn't know, i only understand half of that wikipedia article :P
B
2
S
2
G
4
Posts: 171
Reputation: 1,792

Post » Thu Feb 19, 2009 6:31 am

dkdoom: not urgent, since Construct is not even released yet :) I'll wait til the public release 1.0 with full documentation. Besides i'm not very good at programming nor do I know how to integrate to Construct's Sprite object instant call procedure. Though I had looked at the plugin SDK tutorial and other perspective transformation algorithm. I just thought perhaps someone with programming skills will do it better.

Ashley: 3D box doesn't suit my usage. Say I'm making and rts game like yours, how can we apply 3D box to the tank to make perspective? as the tank is not box rather a complex shape.

With the perspective transformation and bit of skills we could possibly make 2.5D game like Starcraft... hopefully :D Anyway, my initial engine was created using Gamemaker Pro 7.0

I'm working on a space sci-fi rpg rts sim more like combination of Star Trek Armada + Starflight + Starcraft. Later would like use real 3D engine for better visual. Well now is out of hobby.

The idea is space exploration where you can land to planet that has lifeforms, plants, and civilizations. One can collect raw materials, or capture lifeforms + plants, trade, and using research of captured lifeforms to make other things, etc. And perhaps a bit of sims inside the spaceship where one can manage where to put the engine, living quarter, etc.

Well jst a beginning.... Hell I would love to show Construct is da best engine .. :)

Correction of the original post: Rotation should take precedence over perspective transform :D

Barnas
B
1
G
3
Posts: 6
Reputation: 837

Post » Thu Feb 19, 2009 7:12 am

Why not just change the sprite to show different animations for different angles?
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Thu Feb 19, 2009 7:30 am

newt: yes tried that before. but then you will have at least 36 sprites for each ship without animations. 36 sprites for missiles ? etc etc... Even so, the rotation is not very smooth yet. With perspective people will only need to create 1 top down sprite like always. Besides it is Construct vision to make game creation easy. I want to make sprite creation for modding later easy.. :)

Also: using diff sprites for each angle would the defeat the purpose of Construct having rotation / angle option rite. I'd like to use full potential of Construct though. Make things easier not more difficult.

Actually I have two version engines created with Gamemaker Pro 7.0; the 2.5D one with 36 sprites each ship (3D) and the 3D illusion using Perspective Transform.

Also, i wonder if there's LAN support? Space exploration that can be play 4 persons, independently then together.. would sound good... dont they?
B
1
G
3
Posts: 6
Reputation: 837

Post » Thu Feb 19, 2009 9:01 am

Wow Gamemaker Pro 7.0, can't argue with that.

Any way, joking aside, have you tried it with Construct? I've gotten away with it using only 8.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Thu Feb 19, 2009 9:26 am

[quote="barnabas2009":1hatp6yv]With perspective people will only need to create 1 top down sprite like always. [/quote:1hatp6yv]
and how do you want to cheat perspective using only one sprite, huh?
distortion of flat sprite will not give it more depth or 3d look
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests