Jump to content

Search the Community

Showing results for tags 'blurpostprocess'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hiya all. Just joined up here- seems like a fantastic community, great stuff. Learning a lot from you guys. In this previous Q&A (thanks guys) there was a discussion about adjusting a "fade" post process after its creation, via scene.registerBeforeRender(function(){}); Here's the afore mentioned code snippet for where the post process gets created. var fadeLevel = 1; var postProcess_fade = new BABYLON.PostProcess("Fade", "fade", ["fadeLevel"], null, 1.0, camera); postProcess_fade.onApply = (effect) => { effect.setFloat("fadeLevel", fadeLevel); }; Lets say I wanted to do the same on other post processes such as a horizontal Blur (increasing blur on a certain event for example). I sorta tried doing a similar thing.... var kernel=50; var postProcess_Blur = new BABYLON.BlurPostProcess("Horizontal blur",new BABYLON.Vector2(1.0,0.0), ["kernel"], 1, camera); postProcess_Blur.onApply = (effect) => { effect.setFloat("kernel", kernel); }; ...the scene / canvas all initialises ok, but it's drawing a black frame. Not sure if its because of some difference with the blur post process in particular? https://doc.babylonjs.com/classes/3.0/blurpostprocess says the parameter name is "kernel". Thanks v much for any insights or assistance. *edit: link to playground https://www.babylonjs-playground.com/#K9NTY4#6 *edit: solved https://www.babylonjs-playground.com/#K9NTY4#7
×
×
  • Create New...