# z-elevation size

### » Sat Dec 04, 2010 8:34 pm

Quick question:
At what rate dose an object change size as it changes z-elevation in construct?
B
6
S
2
G
5
Posts: 249
Reputation: 2,323

### » Sat Dec 04, 2010 11:35 pm

After a few minutes of experimentation it would seem that with an "Eye Distance" setting of 500 that a sprite with ZElevation of 250 will appear twice the size it is when it's ZElevation of 0.
B
100
S
38
G
134
Posts: 5,556
Reputation: 85,325

### » Sun Dec 05, 2010 5:06 am

thank you.

I'm trying to have the camera zoom out at the same rate as the object grows, thus making it look as if the objects not changing size.

I've never used ZElevation before. it looked like it could make things simpler

if it had a direct 1-pixel to 1-ZElevation ratio:Set (xy)Zoom: 100/(object.ZElevation+100)/100 would work.
but it sounds like the growth is relative to the camera location itself. if thats the case it looks like i need to make a custom z-elevation like thing..
B
6
S
2
G
5
Posts: 249
Reputation: 2,323

### » Sun Dec 05, 2010 4:25 pm

check that. if anybody is having a similar problem:
Set (xy)Zoom: 100/((object.ZElevation+X)/100/5)

X= whatever hight you want the camera to be from the object.
100 is basically on top of the object
200 is further away ext...

it works fine.
B
6
S
2
G
5
Posts: 249
Reputation: 2,323

### » Sun Dec 05, 2010 6:19 pm

Well you have to take into account that this is a 3d representation, so there is an offset from the camera. The closer the camera is the smaller the offset.
B
178
S
50
G
206
Posts: 8,686
Reputation: 127,715

### » Sun Dec 05, 2010 7:17 pm

the offset is what i think is so cools about the Z Elevation thing as apposed to just changing the objects size.
as long as the camera is locked onto the object changing z elevations there don't seem to be any problems with the offset of the object.
B
6
S
2
G
5
Posts: 249
Reputation: 2,323