A collection of filters for use with the Starling AS3 framework.
The master
branch contains filters for use with Starling 2.0
.
For Starling 1.x
, use filters from archive
branch.
A collection of filters for use with the Starling AS3 framework.
A collection of filters for use with the Starling AS3 framework.
The master
branch contains filters for use with Starling 2.0
.
For Starling 1.x
, use filters from archive
branch.
I am trying to create a flashlight that moves around my Sprite, but when I change the x or y properties, the flashlight effect disappear. Creating the filter with x or y not equal to zero also does not render...
public class Game extends Sprite {
...
var flash:FlashlightFilter = new FlashlightFilter(0,0,45);
this.filter = flash;
...
[Starling] Context ready. Display Driver: DirectX11 (Baseline Extended)
Tested with SDK AIR 28.0.0 or SDK Flex 4.6.0, AIR 3.1 with same results...
Hi, small issue with NewsprintFilter : line 74 should be this._angle = value;
Hi Devon,
I was wondering if this filter will be compatible with the new release V2 of Starling ?
All the best!
Hi Devon
First things first: Your filters really, really rock! Thanks a lot for sharing! :)
I played around with the PixelateFilter and stumbled across a strange behavior: When I use the PixelateFilter in combination with a clipRect, I get a transparent gap on the left/upper side. The size of the gap equals pixelSize set in the filter.
Here's some code to reproduce. It results in a 3 pixel (filter.pixelSize - clipRect.x
) gap on the left side.
// clipped sprite
var box:Sprite = new Sprite();
box.clipRect = new Rectangle(1, 0, 40, 40); // set y to 1 for 'upper gap'
addChild(box);
// adding image to clipped sprite
var img:Image = new Image(myTexture);
img.filter = new PixelateFilter(4);
box.addChild(img);
As I do not have a clue of AGAL, I'm really helpless with this one… Do you have any idea?
Thanks, René
On mobile (tested on android sm-t700 and Nexus 7, iOS iPad mini 2), the noise filter create line artifact that are almost horizontal (slightly tilt up on the right).
Context3DProfile.BASELINE, SDK 1.8.
Any clue?
Hi there!
I got into an error I really don't understand and I thought I'd ask here! The thing is that I'm using a SineFilter on a 64x64 image on my game and it just goes fine when playing on a 1x textures device (non-retina), but when I try to do exactly the same with a 2x device (128x128 image) the Context3D crashes showing the following error:
Error #3753: Rectangle or cube textures require textures sampling to be set to clamp.
at flash.display3D::Context3D/drawTriangles()
I don't quite understand the error because it's actually using the same texture size but only on a 2x device (this happens even on the pc simulator).
Hope you can help me with this! And thank you by the way for such nice Filters you have made!
Greetings, mr Wolfgang.
I'm trying to apply GodRays filter to stage, sprites, images: no effects, the only reaction is on changing .exposure property. DisplayObject is just becoming more dark/illuminated. Maybe you're familiar with this situation.
[Starling] Display Driver: OpenGL (Baseline Extended), Starling version is 1.6. Tried to launch with Flash Player 12, 13 and 15.
quite old tread
invert a ClipRect (cut hole in object) but...
have a same issue and can't find RectMaskFilter.as class or is it renaimed?
Just wanted to let you know that the filters don't seem to work anymore in latest Starling 1.6. Just seems like a shame for everyone who wants to use them. :) Great work btw.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.