These are chat archives for pixijs/pixi.js

25th
Jan 2018
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 08:09
I can explain whats pivot.
position in global coords is the same point as pivot in local
its not the same as in CSS
to emulate css you have to make two containers, upper with global coords and bottom with position=pivot=your_rotation_point
There are no demos or examples about it. There are some answers on forums, there's an explanation of camera "position+scale+pivot" combo , and there's math.
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 08:17
@jiyinyiyong pixijs/pixi.js#583 is that yours? Ok, you understood it :)
@R_Talon_twitter
Jan 25 2018 09:13
Ey!! @ivanpopelyshev What happend with the lights? Is in another branch? why? The lights are amazing!! :D
The last modification was 3 years ago :(
Should I use this?
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 09:36
@finscn fork has the lights
no, but there's hope that ill make lights plugin with pixi-layers
at least i started http://pixijs.io/examples/#/layers/lighting.js , and with same tricks as in https://github.com/gameofbombs/pixi-heaven its possible to make new lights plugin
@R_Talon_twitter
Jan 25 2018 10:33
There is a problem with the finscn's library. The method "interactive" PIXI.Sprite is "undefined"
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 10:34
make an issue for him :)
@R_Talon_twitter
Jan 25 2018 10:34
good idea :D
I am not used to make issues :D
You are welcome to travel to Spain :D
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 11:16
awesome! Now I need to get Shengen visa and plan the pixi-related trip
@R_Talon_twitter
Jan 25 2018 11:17
:D ^^
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 11:20
its sad that i need gb visa to visit london in same trip
@R_Talon_twitter
Jan 25 2018 11:21
You need many things hahahahaha
I continued to fight. with pixi and lights (O.o)
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 11:23
you can make custom renderer with same approach as in pixi-plugin-example OR pixi-heaven
do you use typescript?
@R_Talon_twitter
Jan 25 2018 11:23
nop, javascript es6
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 11:24
then you can take pixi-plugin-example , remove all glsify stuff from it, make just simple js files
copy the sources, use with your build tools
add extra textures to sprite (normals)
i think comparing @finscn and vanilla pixi is good idea too
@R_Talon_twitter
Jan 25 2018 11:30
yes, the finscn's project is very good
but I have problem with his pixi.js ( interactive, buttonMode are missing )
@R_Talon_twitter
Jan 25 2018 11:37
Don't worry, I'm learning to make plugins and include lights in my projects
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 11:44
do you use slack?
@R_Talon_twitter
Jan 25 2018 11:44
nop
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 11:45
ok, when you decide to start, i can get you an invite to pixi Slack, and there's an easy way to get to Phaser team slack, if you want
@R_Talon_twitter
Jan 25 2018 11:48
Yes, is a good Idea!
Ivan Popelyshev
@ivanpopelyshev
Jan 25 2018 11:49
just tell me your email in pm and ill send an invite
@R_Talon_twitter
Jan 25 2018 11:49
I used Phaser for make a simple videogame ( gamejam )
yes
Jon
@jiyinyiyong
Jan 25 2018 15:18
@ivanpopelyshev thanks anyway, took me long time to figure it out...