Why is the level not clipped?

Discussion and feedback on Construct 2

Post » Tue Jun 05, 2012 12:10 am

I've just read through the manual to understand what the different fullscreen modes do. I am just a little bemused at the behaviour of "On (crop mode)". I get that it increases the view of game instead of scaling. What I don't get is why it expands beyond the bounds of the layout. I see no reason to even bother with a layout size in this instance where I can render objects outside the layout. My expectation was that it would clip around the layout based on the specified size (so things outside the level aren't visible). Is this a bug?
B
7
Posts: 24
Reputation: 590

Post » Tue Jun 05, 2012 1:17 am

It is really designed for when the layout is larger than the window size. Otherwise, why not just turn off fullscreen in browser if you want it to clip?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Jun 05, 2012 11:03 am

Well, the difference is that the view expands but not beyond the frame boundaries. Why would I want it to expand beyond the frame boundaries? If I turn off full screen there is no expansion at all.
B
7
Posts: 24
Reputation: 590

Post » Tue Jun 05, 2012 11:10 am

Increase your window size and keep the non-fullscreen in browser setting if your layout is smaller than your browser window size and you do not want to scale.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Jun 05, 2012 12:38 pm

So I can dynamically resize the window based on the browser width/height? Yeah sure I can do that, but it's not really the point though. I don't have a logical explanation for the expansion beyond the frame size. Who would possibly want this? That's the question.

Or rather I should say, sure keep the canvas at full screen in the browser (which makes sense), just don't render outside the bounds of the current frame. Align vertical/horizontal centre when the frame is smaller than the size of the canvas.mcduck2012-06-05 12:42:25
B
7
Posts: 24
Reputation: 590

Post » Wed Jun 06, 2012 1:56 pm

I think very few people actually use the crop mode, because the scale modes (especially with aspect ratio preserving) are much more useful.

The opposite question is: why should crop mode limit the view to the size of the layout? The intent of crop mode is that the viewport size is simply exactly the same as the window size, so there is always one pixel in the layout for one pixel on the screen with no extra scaling or cropping applied so you can handle screen sizing yourself with your own logic. I think if it automatically cropped anything it wouldn't be achieving this goal.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,508

Post » Wed Jun 06, 2012 6:52 pm

Why should crop mode limit the view to the size of the layout?

Well ok I should probably make myself more clear. No view mode should render outside the layout in my opinion. Give me a good example of where anybody would want to render outside the frame, and I might reconsider asking for an option to turn it on/off.

You know we have to support a whole ton of screen sizes, but what
happens when I want to render say, a max 640 x 480 area on 1920 x 1080
screen. I start to see everything that lives outside the frame, which
is not desired in any case. So first of all, crop mode is not fit for
purpose in this case. However, when I play on a 320 x 480 mobile
device, the crop behaviour works perfectly.

If you can't understand why I don't just upscale, you clearly never worked with a pixel artist.

All I am saying is that expanding beyond the limit of the frame isn't
useful to anyone and it makes sense to clip to the frame size, because
displays can be larger than the frame.

Moreover, assuming it were useful to render outside the frame, the behaviour of objects outside the frame area is inconsistent with objects in side the frame area. Suppose I have a single sprite that is scrolling to the right. If I move the sprite down too far outside the frame it stops scrolling. Its still rendered. I'm rendering inactive objects.

I just don't expect anything to render outside the frame ever. This area is where visually bad stuff can happen. That's the whole point of the frame is it not? You can also be more efficient with rendering by doing this (assuming construct applies any sort of basic spatial querying).

The notion of "crop mode" is still valid if you don't render contents outside the frame.


Who wants to rely on a screen size being smaller than some arbitrary
size? I'd rather not rely on the screen size being smaller than the
frame, but I want the crop behaviour on screens which are smaller than
the frame size. I can't imagine anybody wanting the current behaviour.
B
7
Posts: 24
Reputation: 590

Post » Fri Jun 08, 2012 9:07 pm

Is this not reason enough to expect an update on it?
B
7
Posts: 24
Reputation: 590

Post » Fri Jun 08, 2012 9:42 pm

o.o i didn't understand anything :) put some pictures
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Fri Jun 08, 2012 10:31 pm

Tutorial supporting multiple screen sizes.
Sounds like you're looking for the scale mode in fullscreen.

Not indicated in this tutorial but you now have access to also "letterbox scale" and "Letterbox integer scale" which do render only the size of the project window size.

Also the fact that more of the layout can be rendered is there to deal with wide screens when the project's size is planned for 4:3 ratio.

New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Next

Return to Construct 2 General

Who is online

Users browsing this forum: spy84 and 4 guests