z-elevation size

For questions about using Classic.

Post » 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

Post » 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
79
S
24
G
54
Posts: 4,749
Reputation: 40,761

Post » 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

Post » 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

Post » 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.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » 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


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests