These are chat archives for pixijs/pixi.js

11th
Sep 2018
gapipro
@gapipro
Sep 11 2018 09:04
@ivanpopelyshev I am trying to figure out how resource loader (sprite.json in my case) determines when to load @0.5x size vs full size?
Ivan Popelyshev
@ivanpopelyshev
Sep 11 2018 09:09
ugh
it doesnt know when to load @0.5x or ful
"Texture.fromLoader" can deduce by filename which resolution is it
gapipro
@gapipro
Sep 11 2018 09:09
so it can't really switch on the fly between them?
Ivan Popelyshev
@ivanpopelyshev
Sep 11 2018 09:09
no, you have to do it yourself
gapipro
@gapipro
Sep 11 2018 09:10
got it
Ivan Popelyshev
@ivanpopelyshev
Sep 11 2018 09:10
and on-fly that will be a big problem
if you look at "pixi-compressed-textures" plugin, there is a way to automatically determine filename by current resolution
gapipro
@gapipro
Sep 11 2018 09:10
full reload most probably =)
Ivan Popelyshev
@ivanpopelyshev
Sep 11 2018 09:10
but most people do it themselves
yeah, better full-reload
gapipro
@gapipro
Sep 11 2018 09:10
cool ty
Justin
@jusdes19_gitlab
Sep 11 2018 19:14

hey @ivanpopelyshev just wondering if you would be able to shed some light on my situation with pixi-lights?

I'm wondering if there's a way to add a sprite to my scene without an accompanying normal map. The problem I'm having right now is that when I do so, that sprite shows up semi-transparent.

Ivan Popelyshev
@ivanpopelyshev
Sep 11 2018 19:16
yeah
you have to put it on background
before "black" layer
render common sprites, render BLACK layer , that makes all lighted elements black
then render lights over it, they sum up
in first example there's no "black" layer
in second (with drag drop stuff) it exists, you see the thing with "tint=0"
Justin
@jusdes19_gitlab
Sep 11 2018 23:13
ah ok thanks! I'll take a look at those examples again.