filter.blurGaussian crashes DP2.
[lua]
local bkgd = display.newRect(10, 10, 10, 10) – Tried with png, and jpg, 100% crash
bkgd.fill.effect = “filter.blurGaussian”
[/lua]
filter.blurGaussian crashes DP2.
[lua]
local bkgd = display.newRect(10, 10, 10, 10) – Tried with png, and jpg, 100% crash
bkgd.fill.effect = “filter.blurGaussian”
[/lua]
I was unable to reproduce the crash in build 126 for Mac. Which platform are you currently testing on?
both newRect and newImage look like they are working correctly.
image = display.newImage(“1.jpg”,display.contentCenterX,display.contentCenterY,true)
image.fill.effect = “filter.blurGaussian”
Hi Bryan, this was way back in DP2. Does not crash anymore.
I’m having problem seeing the different levels of blur however. Is this the correct syntax?
[lua]local object = display.newImageRect(“test.jpg”, 200, 200)
object.fill.effect = “filter.blurGaussian”
local amount = 10
object.fill.effect.horizontal.radius = amount
object.fill.effect.vertical.radius = amount
[/lua]
The blurGaussian implementation changed to include a ‘blurSize’ and a ‘sigma’ that can be set to allow for a better quality blur. The range allowed for both values is 2-512
object.fill.effect.horizontal.blurSize
object.fill.effect.horizontal.sigma
object.fill.effect.vertical.blurSize
object.fill.effect.vertical.sigma
I was unable to reproduce the crash in build 126 for Mac. Which platform are you currently testing on?
both newRect and newImage look like they are working correctly.
image = display.newImage(“1.jpg”,display.contentCenterX,display.contentCenterY,true)
image.fill.effect = “filter.blurGaussian”
Hi Bryan, this was way back in DP2. Does not crash anymore.
I’m having problem seeing the different levels of blur however. Is this the correct syntax?
[lua]local object = display.newImageRect(“test.jpg”, 200, 200)
object.fill.effect = “filter.blurGaussian”
local amount = 10
object.fill.effect.horizontal.radius = amount
object.fill.effect.vertical.radius = amount
[/lua]
The blurGaussian implementation changed to include a ‘blurSize’ and a ‘sigma’ that can be set to allow for a better quality blur. The range allowed for both values is 2-512
object.fill.effect.horizontal.blurSize
object.fill.effect.horizontal.sigma
object.fill.effect.vertical.blurSize
object.fill.effect.vertical.sigma
Where’s the updated documentation?
On http://docs.coronalabs.com/guide/graphics/effects.html still lists radius as parameter.
@PXL We’re in the process of updating the documents. Thanks for pointing that out. The proper parameters are listed here in the above post for blurGaussian.
Where’s the updated documentation?
On http://docs.coronalabs.com/guide/graphics/effects.html still lists radius as parameter.
@PXL We’re in the process of updating the documents. Thanks for pointing that out. The proper parameters are listed here in the above post for blurGaussian.