Exca Posted September 25, 2017 Share Posted September 25, 2017 I have a situation where I have about 200 sprites to which I need to change hues. Is the best way for this to create a custom renderer with default sprite shader replaced with custom one changing the hue? Another option would be to use filters, but I think that might be pretty slow? Canvas support is not needed and I cannot cache those as they have spritesheet animations -> would require lots of memory. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 25, 2017 Share Posted September 25, 2017 You are lucky! Just a week ago I implemented https://github.com/gameofbombs/pixi-heaven as an example of color-changing plugin. it adds "black" tint. In your case, formulas will be different, Sorry for TS Quote Link to comment Share on other sites More sharing options...
Exca Posted September 25, 2017 Author Share Posted September 25, 2017 TS is good I use haxe mainly and TS -> Haxe is much nicer to port than what js -> Haxe is. Have to check that out. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 25, 2017 Share Posted September 25, 2017 You can start your own Haxe-based plugin for that kind of things, I believe you have different prerequirements for the project, so the best way is to CTRL+C parts of my plugins you need into your personal haxe pixi lib. I'm going to add more useful things in heaven later Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 25, 2017 Share Posted September 25, 2017 Don't forget to share it later! I forgot, did we invite you to pixi slack? Do you use slack for projects? Quote Link to comment Share on other sites More sharing options...
Exca Posted September 25, 2017 Author Share Posted September 25, 2017 I cannot share the haxe code directly, but I'll see about making a pure js solution afterwards. Havent got an invite and yeah, I use slack, so invite would be ok. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 25, 2017 Share Posted September 25, 2017 6 minutes ago, Exca said: I cannot share the haxe code directly, but I'll see about making a pure js solution afterwards. never mind then, I know how to rotate hue anyway, I can add it in my plugin. 6 minutes ago, Exca said: Havent got an invite and yeah, I use slack, so invite would be ok. Sending... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.