Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

local effect = require( "kernel_filter_example_blur_gaussian_gl" ) = nil
Started by FearTec Mar 17 2015 05:55 AM

No replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

FearTec

[GLOBAL: userInfoPane.html]
FearTec
  • Contributor

  • 218 posts
  • Corona SDK

Hello

 

I was using the code below to blur the background when I displayed a menu over the top of the screen.

 

It was working before 2576 but now any calls to effect report nil??

-- Start of Project
local effect = require( "kernel_filter_example_blur_gaussian_gl" )
graphics.defineEffect( effect )

local kernel = {};kernel.language = "glsl";

-- Add Image
imgBackground = display.newImage( "images/bg/iphone5/bg-iphone5-portrait@2.png" )
--etc

-- Add Blur
   if imgBackground ~= nil then
        imgBackground.fill.effect = "filter.exampleBlurGaussian"
        imgBackground.fill.effect.horizontal.blurSize = 8
        imgBackground.fill.effect.vertical.blurSize = 8
    end

-- Remove Blur
   if imgBackground ~= nil then
        imgBackground.fill.effect = "filter.none"
   end

I am running 2581 (and the code is not working on iOS 8.1 on an iPhone 6 plus.

 

Ideas?




[topic_controls]
[/topic_controls]