So, on this moment I have the following:
\_W=display.contentWidth \_H=display.contentHeight local background = display.newRect(\_W/2,\_H/2,\_W, \_H) background:setFillColor(0.6, 0.6, 0.8) --object we want to be with shadow local ball = display.newImage('30\_3@2x.png', \_W/2, \_H/2) local size = 10 -- shadow object local ballshadow = display.newImage( '30\_3@2x.png', \_W/2 - size+5, \_H/2 + size-5) ballshadow:setFillColor(0)--it fills our obj with black colour not touching the background of the image --here's a trick for fill.effect, we just make shadow-image's canvas bigger local r = display.newRect( ballshadow.x, ballshadow.y, ballshadow.width\*2, ballshadow.height\*2 ) r:setFillColor(0, 0) --take black obj with extended canvas into the group local g = display.newGroup() g:insert(r) g:insert(ballshadow) --turn a groupObj into a displayObj local c = display.capture( g ) --apply blur filter and set alpha c.fill.effect = "filter.blurGaussian" c.fill.effect.horizontal.blurSize = 10 c.fill.effect.horizontal.sigma = 128 c.fill.effect.vertical.blurSize = 10 c.fill.effect.vertical.sigma = 128 c.alpha = 0.7 c.x = ballshadow.x c.y = ballshadow.y display.remove( ballshadow ) c:toBack() background:toBack()
BUT:
Corona windows simulator shows neither object nor it’s shadow
Android app shows only the object
Corona mac simulator shows everything perthectly
Xcode ios simulator shows only the object
I wanna ask Corona labs: What the heck is going on???
