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 ImageImage
B
169
S
50
G
169
Posts: 8,291
Reputation: 108,226

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 ImageImage
B
169
S
50
G
169
Posts: 8,291
Reputation: 108,226

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,777

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 ImageImage
B
169
S
50
G
169
Posts: 8,291
Reputation: 108,226

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
77
S
13
G
8
Posts: 1,973
Reputation: 9,891

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! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
41
G
17
Posts: 2,204
Reputation: 19,545

Post » Wed Jul 06, 2011 10:36 pm

Thanks Jayjay I'll give it a go.
Image ImageImage
B
169
S
50
G
169
Posts: 8,291
Reputation: 108,226


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest