|
Post by zephni on Nov 29, 2021 13:00:16 GMT
I have the latest version of ProCamera2D but I'm having some trouble with the Rooms plugin regarding zooming. As seen below if starting on zoom scale "1" that's fine, then going into "room1" at scale "0.7" this will zoom in, which for some reason I was expecting it to work the other way around and zoom out if the scale was lower. But anyway, going into "room2" where the scale is "1.3" nothing changes atall, it doesn't "zoom out", and the same applies even when going straight from scale "1" to scale "1.3":
I looked into the Rooms code and just made a small adjustment to see if it just wasn't triggering, and it turned out it wasn't triggering atall because it wasn't meeting any of the conditions. I temporarly added in this else if that checks if the room zoom scale is greater than the cameraSizeForRoom and now the zooming out triggers, but it looks all glitchy as it zooms out further than the target and the snaps to the new zoom scale, but just feels a bit buggy.
Finally, the "scale to fit" option works for zooming out, so is it not possible to have a specified scale for the zoom option here? Or am I missing something really obvious? Thanks in advance for any help
|
|
|
Post by Luís Pedro Fonseca on Dec 4, 2021 9:08:20 GMT
zephni Thanks for the report. Did you try this on the included demo scene? Did you get the same results?
|
|
|
Post by zephni on Dec 5, 2021 11:30:04 GMT
Very sorry, it seems I was trying to "zoom out" but on one of the axis it was hitting a boundary inside the room which was causing the "problem", but I realise this is by design. I did try to come back and delete my message here but I couldn't figure out how
|
|