Zelevation feature request.

New releases and general discussions.

Post » Wed Apr 20, 2011 11:21 pm

im currently working on an iso game and i'd like to use the zbuffer in order to help with 3d sorting, only problem is that i can only do this by playing with an objects Z elevation, which will also have scaling effects on the object due to the perspective transformations the 3d zelevation in construct causes. i know its late for a feature request, but i would really appreciate it if someone who can play around with the source could create an option to turn off scaling effects, so that zelevation wont distort images/graphics etc, only change their level in the zbuffer for sorting purposes.

i've tried using small z values and playing with everything but its ultimately futile, i can't really fight the projection perfectly, and its not the most elegant of solutions.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Wed Apr 20, 2011 11:25 pm

why not just use zorder though? just for simplicities sake?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Apr 20, 2011 11:52 pm

because it just doesn't work well simply for iso sorting unless you make it super complex, and even then you're limited. turning off the projection matrix and faking it works way better in my case, and with events to counteract all the projection like i finally managed it looks flawless, it would be so much simpler to just turn it off.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Thu Apr 21, 2011 1:03 am

put it on the feature tracker, I or one of the other guys'll have a look at it at some point.
it's one of those features that might not make sense to anyone but the requester. Maybe a more generalized form would be useful, like an option to change the scaling factor. I've wanted to mess around with scaling factor before for other purposes. its not called scaling factor... I would have to look up the name for it, focal length, field of view...something...point is decrease the scaling of distance objects. if it were adjustable you could decrease it to 0 to get your desired effect, but it would be more generally useful. I think it's also related, to zoom. As of now, I think 3d camera zoom is the equivalent of 3d camera trucking, which it shouldn't be, technically. Zoom should just increase the size of the image, and decrease the field of view, whereas actual movement in the z of a camera should do what it does now when you zoom, which changes the perspective relation of objects in your field of view. I haven't tested it in a while though. I could be wrong about the way construct zooms, and possibly the terminology as well
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu Apr 21, 2011 1:33 am

I can think of a ton of other uses, card games, menus etc. Although set z index would make more sense, minus the nightmare of what happens to the other indices obviously.

Edit:
Then again z height is way different than z order when dealing with distortmaps. :P
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Thu Apr 21, 2011 3:56 am

This would be awesome feature to have, would help immensely.
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Post » Thu Apr 21, 2011 4:20 am



we need.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Thu Apr 21, 2011 4:28 am

Whoa. How - er, never mind, don't bother explaining, I doubt I'd understand. :/
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Thu Apr 21, 2011 5:26 am

i counteracted the effects of the projection matrix with x,y,width,height, but that causes problems because it's not at all a perfect and needs to be tweaked like crazy in order to work properly. the ability to control the amplitude of the projection matrix's effects on z-elevations would be great.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sat Apr 23, 2011 1:13 am

Can you just use hundreds of layers to do this?
B
134
S
65
G
16
Posts: 1,766
Reputation: 19,190

Next

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest