tywang2006 Posted February 22, 2017 Share Posted February 22, 2017 Hi guys, is there any way to do rotationX, rotationY or rotationY for displayObject in pixijs, should we do it manually in updateTransform. I don't need camera, just simple rotationX Thanks Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 22, 2017 Share Posted February 22, 2017 There's a hardcore fork : https://gameofbombs.github.io/pixi-bin/index.html?s=flip&f=cards.js&title=Cards But you need something simple, I believe @finscn knows what to do, he had it somewhere Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 22, 2017 Share Posted February 22, 2017 Also, you can make your own Transform class that'll do it, just copy PIXI.TransformStatic or PIXI.Transform and add X/Y rotation, then assign new transform to the object you want to rotate If you don't have enough experience, may be I can make simple plugin for it? Why do you need that thing, for paper-pixi game? Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted February 22, 2017 Author Share Posted February 22, 2017 6 minutes ago, ivan.popelyshev said: Also, you can make your own Transform class that'll do it, just copy PIXI.TransformStatic or PIXI.Transform and add X/Y rotation, then assign new transform to the object you want to rotate If you don't have enough experience, may be I can make simple plugin for it? Why do you need that thing, for paper-pixi game? I want to do some fake 3d game with pixijs, because it is the best of the best. if you can make a simple plugin for it, I will appericate it:) Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 22, 2017 Share Posted February 22, 2017 How fake are we talking about? do you have references? Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted February 22, 2017 Author Share Posted February 22, 2017 1 minute ago, ivan.popelyshev said: How fake are we talking about? do you have references? just something like this picture, set an angle to the object just like rotation. you can do rotationX that means it is rotated around x axis. same to rotationY(maybe Z, but i think do X/Y firstly) Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 22, 2017 Share Posted February 22, 2017 So, perspective or no perspective? Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted February 22, 2017 Author Share Posted February 22, 2017 14 minutes ago, ivan.popelyshev said: So, perspective or no perspective? I dont really need perspectiv. but if perspective can be added, it will be better:) Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted February 23, 2017 Author Share Posted February 23, 2017 20 hours ago, ivan.popelyshev said: So, perspective or no perspective? any good news Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 23, 2017 Share Posted February 23, 2017 1 hour ago, tywang2006 said: any good news no, i dont know when i'll have spare time. I'm summoning @finscn here.. Quote Link to comment Share on other sites More sharing options...
tywang2006 Posted February 23, 2017 Author Share Posted February 23, 2017 4 minutes ago, ivan.popelyshev said: no, i dont know when i'll have spare time. I'm summoning @finscn here.. I might it myself firstly for my own project.:) let me know you have done something then we might discuss later man. Quote Link to comment Share on other sites More sharing options...
Goon Posted February 28, 2017 Share Posted February 28, 2017 Hi there, I'm looking for something like this as well. I want to create the running game with a background as below: https://drive.google.com/file/d/0BxTkkXaW5-6rSmpTd21iRmNtODQ/view?usp=sharing Any suggestions of how to do it with Pixi? I'm stuck with create animation of the walls... it would be great to use some 3d transformation here. Many thanks, Quote Link to comment Share on other sites More sharing options...
Owlfinger Posted June 29, 2017 Share Posted June 29, 2017 A little late to this chat, but for what it's worth you may want to have a look at Papervision, the original 3D extension of the Flash 2D stage. It worked well (looking at Ivan's card demo above, reminds me of this I did around 2010 with Papervision and Flash), and should give you some ideas for how to skew/distort objects in Pixi for a faux-3D effect... Goon 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 29, 2017 Share Posted June 29, 2017 Not late, this chat exists two years through a number of topics in forum, also issues in pixijs github. There is an issue like that right now: https://github.com/pixijs/pixi.js/issues/4116 Best solution for vanilla pixi v4 is https://github.com/finscn/pixi.js/tree/master/src/morerenderers/perspective , you can just copy it. The solution will be implemented both in 1) official pixi-v5 https://github.com/pixijs/pixi.js/tree/next , demos: http://dev.goodboydigital.com/client/goodboy/geometry/examples/index.html#/mesh/triangle-color.js 2) my new fork https://github.com/gameofbombs/gobi , no demos yetfaux-3d can be also achieved with mesh, either standart PIXI.mesh.Plane either https://github.com/pixijs/pixi.js/pull/3842 which i hope to merge in v5. Goon and OSUblake 2 Quote Link to comment Share on other sites More sharing options...
Goon Posted June 29, 2017 Share Posted June 29, 2017 38 minutes ago, Owlfinger said: A little late to this chat, but for what it's worth you may want to have a look at Papervision, the original 3D extension of the Flash 2D stage. It worked well (looking at Ivan's card demo above, reminds me of this I did around 2010 with Papervision and Flash), and should give you some ideas for how to skew/distort objects in Pixi for a faux-3D effect... Thanks for that, but I decided to use ThreeJS instead ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
insig Posted July 11, 2017 Share Posted July 11, 2017 Is there any live demo from finscn's work? Or plugin distribution? I need simple perspective of table for my PIXI game but Im not sure what solution will be the best. 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.