3d transformations

For questions about using Classic.

Post » Tue Jul 05, 2011 10:38 pm

Can somebody give me a few references on how to apply a side view or pitch/yaw to a regular sprite distortmap?
Im aiming for some type of perspective view that can be rotated.
Image Image
B
163
S
48
G
99
Posts: 7,440
Reputation: 71,502

Post » Tue Jul 05, 2011 11:20 pm

Trying to make a game like "fez"?
B
3
S
1
G
1
Posts: 17
Reputation: 759

Post » Tue Jul 05, 2011 11:35 pm

Nothing that extravagant, no 3d collisions, or z height changing for characters, just a simple iso type view for terrain, or buildings.
Image Image
B
163
S
48
G
99
Posts: 7,440
Reputation: 71,502

Post » Tue Jul 05, 2011 11:44 pm

this is literaly meant to be used for an first person adventure game. shame i too never could wrap my head around it.
Then again - if Newt has problems with this - then I wont even come near by
B
16
S
5
G
4
Posts: 211
Reputation: 3,767

Post » Tue Jul 05, 2011 11:52 pm

Its not that bad really. I have my z heights via a height map, all I need are some expressions to move that around a bit. All I found so far is stuff about using matrices... not that easy to plug into Construct.
Image Image
B
163
S
48
G
99
Posts: 7,440
Reputation: 71,502

Post » Wed Jul 06, 2011 5:58 am

you need to define an origin, and rotate each point around that origin in xyz space, rotating the points additively in 3 steps. roll, rotations applied on YZ plane, then pitch on those rolled coords applied as a rotation on the XY plane, then yaw applied on those coords as a rotation on the XZ plane. theres no real "right way" but this is how i usually go about it for euler angle style rotation
B
53
S
7
G
6
Posts: 1,948
Reputation: 7,641

Post » Wed Jul 06, 2011 9:07 am

I found this page pretty helpful, I think it shows how to do what you want (in both equation and matrix form).
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
88
S
29
G
13
Posts: 2,098
Reputation: 15,171

Post » Wed Jul 06, 2011 10:36 pm

Thanks Jayjay I'll give it a go.
Image Image
B
163
S
48
G
99
Posts: 7,440
Reputation: 71,502


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests