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

React Fiber Renderer

I created a very early, very alpha React renderer for PIXI. There's some other projects out there but I wanted to start from scratch. You can get it at https://github.com/dakom/react-pixi-renderer...

View Article


Image may be NSFW.
Clik here to view.

an efficient way to have large grid background

new to pixi here So I needed simple background grid and i did it just by adding lines next to each other like this: for (var i=0; i<40; i++) { var vertical = new PIXI.Graphics()...

View Article


Performance issue with alpha transition off sprite

Hi everyone, first post here, but quite an active reader. I'm working with PIXI.js for about a year. Right now I have the issue that the framerate of my game drop drastically when I fade in a sprite...

View Article

Caching output of sprite with filter applied

Hey Guys, Running in to a scenario where I'm using an expensive shader applied to a large background sprite. The background doesn't get updated once the shader is applied, and it would be great if I...

View Article

Image may be NSFW.
Clik here to view.

Can't figure out how to use filters

My goal is to make palette-applying filter. I have grayscale sprite where colors are set on equal distances (eg. 0, 0.33, 0.66, 1) and palette as 4x1 pixel texture. Idea is taking red channel from...

View Article


Adding child to sprite distorts childs dimensions & location.

I posted on stackoverflow cause it is the default location where I ask programming issues. I thought I'd also post here. If that goes against the rules or something I'll be happy to be notified about...

View Article

Image may be NSFW.
Clik here to view.

what is the best way to add bunch of images

Hello, So I need to add like 500 images and this is How I'm doing it: class CreateP extends PIXI.Container { constructor(id, x, y, width, height) { super() this.id = id this.bla =...

View Article

pixels() returns only 0

Hello, I'm currently working on some small project with pixi but with more complex shapes. Now I wanted to look at the image data of my sprites but the pixel values are all 0. I searched on google and...

View Article


Image may be NSFW.
Clik here to view.

Can I access not premultiply color from renderer's shader

I'm using pixi.js ver 4.8.2. I want access not premultiply color from renderer's shader in pixi.js application. I set transparent is 'notMultiplied' , but I can olny access premultipilied rgb color......

View Article


Canvas looks blurry when fullscreen

Hello everyone! I have problem when enter fullscreen on device with pixelRatio >1. Canvas looks blurry. E.g. when physic width of display is 1280 and pixelratio = 2, browser use 640px. When not...

View Article

shader toy shader to pixi filter

Hiya! I was wondering f there are any tricks to modifying this shader toy snippet to work in pixie filter...   https://www.shadertoy.com/view/4s2GRR     //Inspired by...

View Article

Degraded PIXI.Text performance in iOS 12.0.1

Has anyone else noticed highly degraded performance when using a large number of PIXI.Text objects after updating to iOS 12 on iPad? I'm talking about 100+ objects, which is a huge number of text...

View Article

Moving bunch of sprites with good performance

So I have bunch of sprites (couple of hundreds) with various positions and I need to move every one of the sprites to a same specific location. now I can just update their position one by one but the...

View Article


Splitscreen game in Pixi?

Trying to figure out how to make a simple split screen game. I've tried to do it with pixi-viewport, but it seems you have to add all the elements to the viewport in order to render it. I'm not even...

View Article

How to trigger both click events on two overlap objects

hi there, I have two overlap sprites both are interactive, how can I trigger both of their click Event?

View Article


antialias only for a container

Hello, is there a way to have only children of a certain container/sprite with antialias active, not all the renderer?

View Article

How to increase resolution of PIXI.view on mobile devices?

Hi everyone! I making the game with pixi.js on mobile devices. I create a application: var app = new PIXI.Application( { width: document.documentElement.clientWidth, height:...

View Article


Image may be NSFW.
Clik here to view.

Understanding pixi-particles

Hello everyone. I have a few questions related to a project I'm working on and there's one area I keep getting stopped up on and I can't seem to wrap my head around it. I'll be sharing code for it,...

View Article

Multiple textures from the same URL

Hey guys! I have a bunch of SVGs which I'm trying to render. I do basic PIXI.Texture.fromImage(url, undefined, undefined, 1); for that. It creates a texture from `url` without any scaling (100%). It...

View Article

Adaptive playback

TL;DR - How can I programmatically detect slow / choppy animation? My company uses pixi.js to create animations for digital signage (screens in waiting rooms, train stations, airports, billboards,...

View Article
Browsing all 3978 articles
Browse latest View live


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