Jump to content

[Share] 3D with Pixi


TheTrope
 Share

Recommended Posts

Hi,

 

I'm here to share my IUT project : Make 3D with Pixi.js

So okay, it's stupid cause Pixi.js is a 2D framework. But maybe you need to have some simple 3D models. :D

(For example, 3D cards animations in a 2D game, or 3D rotation of images, titles etc). I'm not sure if it's really usefull. And the code is very dirty and it should exist some ways to optimise it)

 

The documentation that talk about the way we did it is in a .pdf but it's in french. (But there is a lot of images)

 

Zip file : in attached files

 

Demo : http://ks3355883.kimsufi.com/3DPixi/projet.html

 

If you have any questions, i'll be glad to answer them.

 

Thanks to NeantLibre for his help.

3DPixi.zip

Link to comment
Share on other sites

  • 2 weeks later...

This looks great! Reminds me of old Flash style 3d like Papervision.

 

I have a project that needs this kind of functionality so I'll try it out soon.

 

Some questions:

- Have you made any support for mouse/touch events?

- Does the code support both canvas/web-gl renderer?

- Have you tested the code with PIXI 2.x?

 

/David

Link to comment
Share on other sites

Hi !

Yes the principle is the same as Papervision or Away3D.

 

I'll continue this when i'll have some time, i need to implement an automatic z-index of the faces computed by their distance. It's will be fast cause getDistance is already defined.

 

-No events are available for the moment, this project is mainly a base to help others devellopers who want to implement this kind of functionality.

-It can support both renderer. But canvas renderer will lag with a lot of quads. Anyway, for best performances, you just have to make a pre-render in a web worker.

-Hum it should work with pixi 2.x, because the updateTransform who changed with the new release was totally rewritten .

Link to comment
Share on other sites

  • 1 month later...

Hi again, just tested your code with the latest version of pixi and it seems like the rotations doesn't work correctly. Here is your scene with a newer version of pixi:
http://www.playwithmotion.com/pixi3d/projet.html

 

It seems like the scewing is working correctly but, the rotation is ignored?

 

I think I will go with a different solution for the current project, but thought you might want to know about the issue...

 

/David

Link to comment
Share on other sites

  • 1 year later...

Yes, but I need use three js, because there is a few models where I need to show in 3D and with pixi it could be difficult ... There is only problem with PIXI I found, because canvas is too big, but how I can improve performance of that? 

 

And sorry for slovak language but that editor will be in slovak

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...