Walter, like the translucent glass effect, but...

…the video in the blog post seems to highlight the lack of variable blurring in the blur filter.

I think this is most notable because Apple don’t actually darken their container, they simply make it extremely blurred, giving the effect of frosted glass (though much nicer than an airplane toilet window!)

Yea, I used our simplest blur. We have other blurs that let you dial up the blur radius. I should have used that.

I’ve just tried putting the code from the blog post into a main.lua and using my own image, but I get this:

2013-09-21 08:12:17.301 Corona Simulator[2274:707]     Version: 3.0.0 2013-09-21 08:12:17.301 Corona Simulator[2274:707]     Build: 2013.82 2013-09-21 08:12:17.543 Corona Simulator[2274:707] The file sandbox for this project is located at the following folder:     (/Users/eudoxus/Library/Application Support/Corona Simulator/BlurTest-D3A9F3ECD4E5DD644843A0590D76459A) 2013-09-21 08:12:17.604 Corona Simulator[2274:707] 1 2013-09-21 08:12:17.605 Corona Simulator[2274:707] 2 capture bounds in content units: x: 0 y: 0 w: 640 h: 1136 capture bounds in pixels: x: 0 y: 0 w: 640 h: 1136 2013-09-21 08:12:17.608 Corona Simulator[2274:707] 3 2013-09-21 08:12:17.609 Corona Simulator[2274:707] 4 2013-09-21 08:12:17.610 Corona Simulator[2274:707] 5 2013-09-21 08:12:17.610 Corona Simulator[2274:707] 6 2013-09-21 08:12:17.611 Corona Simulator[2274:707] 7 2013-09-21 08:12:17.612 Corona Simulator[2274:707] win /Applications/CoronaSDK2/Corona Terminal: line 9:  2274 Segmentation fault: 11  "$path/Corona Simulator.app/Contents/MacOS/Corona Simulator" $\* logout [Process completed]  

[Process completed]

Here’s the code as I have it now:

-- Create container and position at bottom of screen local initialH = 30 local finalH = 430 local container = display.newContainer( display.contentWidth, initialH ) container:translate( display.contentCenterX, display.contentHeight ) print(1) -- Ensure container grows from the bottom, not the middle container.anchorY = 1 container.anchorChildren = false print(2) local screenShot = display.captureScreen() -- crashes here print(3) screenShot.fill.effect = "filter.blur" screenShot.anchorY = 1 container:insert( screenShot ) print(4) -- Grow the container height transition.to( container, { height=finalH, time=600, transition=easing.outQuad }) print(5) -- Step 2: Darken the overlay with a translucent rectangle local overlay = display.newRect( 0, 0, display.contentWidth, display.contentHeight ) overlay.anchorY = 1 overlay:setFillColor( 0.5, 0.5 ) container:insert( overlay ) print(6) -- Step 3: Add image of control center buttons local control = display.newImageRect( "Home.png", 320, 430 ) control.y = -initialH control.anchorY = 0 container:insert( control ) print(7) -- Pin the controls to the top of the container, as it grows transition.to( control, { y=-finalH, time=600, transition=easing.outQuad }) print("win")

Strange that it crashes after executing the last line, even though it appears to be line 15 which causes the crash.

Yea, I forgot to mention that the latest Alpha has a couple of bugs with display.capture.

We are going to have separate daily builds for graphics 2.0 soon so you can get updates faster.

REALLY looking forward to Gfx2.0 daily builds!

Yea, I used our simplest blur. We have other blurs that let you dial up the blur radius. I should have used that.

I’ve just tried putting the code from the blog post into a main.lua and using my own image, but I get this:

2013-09-21 08:12:17.301 Corona Simulator[2274:707]     Version: 3.0.0 2013-09-21 08:12:17.301 Corona Simulator[2274:707]     Build: 2013.82 2013-09-21 08:12:17.543 Corona Simulator[2274:707] The file sandbox for this project is located at the following folder:     (/Users/eudoxus/Library/Application Support/Corona Simulator/BlurTest-D3A9F3ECD4E5DD644843A0590D76459A) 2013-09-21 08:12:17.604 Corona Simulator[2274:707] 1 2013-09-21 08:12:17.605 Corona Simulator[2274:707] 2 capture bounds in content units: x: 0 y: 0 w: 640 h: 1136 capture bounds in pixels: x: 0 y: 0 w: 640 h: 1136 2013-09-21 08:12:17.608 Corona Simulator[2274:707] 3 2013-09-21 08:12:17.609 Corona Simulator[2274:707] 4 2013-09-21 08:12:17.610 Corona Simulator[2274:707] 5 2013-09-21 08:12:17.610 Corona Simulator[2274:707] 6 2013-09-21 08:12:17.611 Corona Simulator[2274:707] 7 2013-09-21 08:12:17.612 Corona Simulator[2274:707] win /Applications/CoronaSDK2/Corona Terminal: line 9:  2274 Segmentation fault: 11  "$path/Corona Simulator.app/Contents/MacOS/Corona Simulator" $\* logout [Process completed]  

[Process completed]

Here’s the code as I have it now:

-- Create container and position at bottom of screen local initialH = 30 local finalH = 430 local container = display.newContainer( display.contentWidth, initialH ) container:translate( display.contentCenterX, display.contentHeight ) print(1) -- Ensure container grows from the bottom, not the middle container.anchorY = 1 container.anchorChildren = false print(2) local screenShot = display.captureScreen() -- crashes here print(3) screenShot.fill.effect = "filter.blur" screenShot.anchorY = 1 container:insert( screenShot ) print(4) -- Grow the container height transition.to( container, { height=finalH, time=600, transition=easing.outQuad }) print(5) -- Step 2: Darken the overlay with a translucent rectangle local overlay = display.newRect( 0, 0, display.contentWidth, display.contentHeight ) overlay.anchorY = 1 overlay:setFillColor( 0.5, 0.5 ) container:insert( overlay ) print(6) -- Step 3: Add image of control center buttons local control = display.newImageRect( "Home.png", 320, 430 ) control.y = -initialH control.anchorY = 0 container:insert( control ) print(7) -- Pin the controls to the top of the container, as it grows transition.to( control, { y=-finalH, time=600, transition=easing.outQuad }) print("win")

Strange that it crashes after executing the last line, even though it appears to be line 15 which causes the crash.

Yea, I forgot to mention that the latest Alpha has a couple of bugs with display.capture.

We are going to have separate daily builds for graphics 2.0 soon so you can get updates faster.

REALLY looking forward to Gfx2.0 daily builds!