GBear Posted August 1, 2017 Share Posted August 1, 2017 hi. can i control render area? i wanna draw only inside red line. outside do not wanna draw .. how can i control it?. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 1, 2017 Share Posted August 1, 2017 in that case , its "filterArea", please look at the example code: https://github.com/pixijs/pixi-filters/blob/master/examples/index.html#L328 If you need only displacement and that kind of stuff, I'm making custom solution at https://github.com/pixijs/pixi-projection , that wont require filters to do displacements. For now it supports only simple 2d projections, displacements will be added later. Quote Link to comment Share on other sites More sharing options...
GBear Posted August 2, 2017 Author Share Posted August 2, 2017 @ivan.popelyshev hi ivan. pixi-projection looks good.. i will check to use that functions ... my purpose is only draw inside area that have full drawing Parent Container <- Bottom Image(1280x720) <- Fish (100, 100) x 10 in 1280 x 720 in this case i wanna draw some of part(200x200) only for some time if it can't not control by container, all of part on renderable area is ok.. thx.. 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.