Quantcast
Channel: Pixi.js Latest Topics
Browsing all 3980 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Create sprite using base64?

Hi, I was wondering if there is a way to create sprites using base64 encoding rather than loading an image from a URL?  The reason being is I store my images within mongodb and would prefer to keep it...

View Article


Image may be NSFW.
Clik here to view.

Ray, Beam and Lightning Effects

Ahoy! For those of us who played games quite a bit (most of us, no doubt), we've seen plenty of (chain) lightning effects (example screenshot in the spoilers). Now, even though I've seen such effects...

View Article


Loader.once('complete'... responds only after all asset are loaded

I have been trying to add a loading screen to my game. I know that I need to use .on('progress') and .once('complete') handlers. I run following code for loading an asset batch;...

View Article

Image may be NSFW.
Clik here to view.

How I can simulate css property 'background-size: cover'?

I make a sprite with large texture (1920x1080) in the scene with size 1200x900, set anchor 0.5 and set position to center of the scene.Of course part of the sprite go out from scene. How I can repeat...

View Article

When sprite.width != sprite.height,can i draw circle in sprite

i create a sprite,and set it width != height;i create graphics as the sprite children,but if i user graphics.drawCircle draw circle,it will draw Ellipse; code : <!DOCTYPE html> <html...

View Article


Shader draw issue

Hello, I'm having trouble making my pixi app draw some DisplayObject (I think the issue is related to this) with a Shader. The shader/filter itself works fine, but if I move the DisplayObject it's...

View Article

How on earth do I change the color of text?

var name_text = new PIXI.Text(name);name_text.style.font = "bold 10px arial";name_text.style.align = "center";this.imageContainer.addChild(name_text);  How do I change the color  ! aaa  

View Article

Filter with depth map

I have a situation where I need to apply calculations based on a map for my sprite. Currently I have sprite with filter calculating the results. The problem is that the vTextureCoords are in...

View Article


Image may be NSFW.
Clik here to view.

How to drawPolygon twice for poor man shadow effect?

Good evening, with pixi.js v3 I was using the following code to draw a shadow underneath a polygon (here full source code of Score.js): this.filters = [ new PIXI.filters.DropShadowFilter() ];...

View Article


Image may be NSFW.
Clik here to view.

Issue trying to create stage that fills browser window

I am trying to create a stage which fills the browser window; as well as a window.onresize handler which resizes the renderer (and underlying canvas) to the new window size. Unfortunately it seems...

View Article

Image may be NSFW.
Clik here to view.

How use Pixi with filter Pixilate?

Hi all!  I make the first steps with the Pixi and I need help. I want to take a picture from canvas and applied to the image Pixelate filter (as here...

View Article

how can i load from image raw-data(binary data)

hi... i wanna save image data like guild flag on server(it will be db). but i don't know how read binary data from basetexture and how save to basetexture from raw-data(binara data) please give me...

View Article

Interaction locations don't change if container moves

o/ I'm working on a project where I want containers to be clickable;  They are, because I'm creating a sprite covering the group that has interactive true. But when I move the container of the items...

View Article


Quick Question

Does pixi have a line tool?

View Article

Page Flip of Sprite

Hi, How can I do a page flip effect in a Sprite?  example: http://jsfiddle.net/kmturley/GGea5/1/  

View Article


PIXI GreyFilter

Hello everyone! Is there Grey filter in the latest version of pixi.js? I found these only:   http://pixijs.github.io/pixi-filters/examples/  

View Article

Right way to manage stage size for web and mobile

I need to have a single code for web and mobile client. I wrote something lie this:   var renderer; var stage; window.onload = function() { var w = screen.width; var h = screen.height; stage = new...

View Article


Audio Loading Issue using Pixijs

Hi all of you!,          Could anybody give me the solution while loading audio in safari browser issue as following.     these are the audio files in local drive GET...

View Article

Sprite interactivity with alpha channel from png

Just wondering are there any solutions to ignore zero alpha channel on png images for mouse events. I make sprite from image with complex form and transparent area on it. And when I make it...

View Article

Can't display video

Hi, I'm having some issues trying to load and display an MP4 video in a sprite, which also need to loop endlessly. I'm using the loader class in order to be sure that the video is loaded. The video is...

View Article
Browsing all 3980 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>