Does phaserjs support 3d at all
Asked Answered
R

4

13

I would like to know if it phaser.io supports 3d even a little. I have no plans to build a 3d game but would like my main character to have 3d animations...like flip.

Or even better make orthographic game which is more to my taste.

I have tried google search and have found no indication of that it supports 3d. But pixijs, what it's based on does use webgl.

At least even if 2d can i make it 2d.5 or something

Remex answered 15/3, 2014 at 1:12 Comment(1)
Phaser/Pixi are pretty much 2D only. They use WebGL for fast graphics performance. You might be able to do an ortho game with Phaser and suggest some "3D" effects with tricks like parallax scrolling, shadows, pre-rendered sprite animations, draw order, etc. Check the forums on html5gamedevs.com, it's a community with mostly Phaser/Pixi devs.Mucoprotein
P
15

No, phaser is almost strictly a 2D game engine. Sorry.

If you do plan to make a 3D game I would suggest bablyon.js (http://www.babylonjs.com/) which obviously is slightly more complex than phaser but still supports 3D.

Poucher answered 24/7, 2014 at 17:51 Comment(0)
C
2

No, both Phaser 2 and Phaser 3 do not include any "real" 3d elements and there are no signs that they will be added soon or ever.

However, the creator of Phaser published the Phaser 3D class in the April 2019 Phaser Backer Examples (for patreons only) which allows to easily integrate some 3d elements from three.js.

There is also an example how to integrate three.js inside Phaser 3 in the official Phaser 3 examples.

In the past few weeks I have developed a 3D objects and physics extension for Phaser 3. You will find it at enable3d.io.

Cordiecordier answered 5/1, 2020 at 15:2 Comment(2)
If you promote a product or service and are affiliated with it you need to disclose it.Oberland
also this is more of a comment not an answer3d
A
1

In addition to the excellent BabylonJS framework, here is a curated list of awesome game development tools, platforms, frameworks, engines on GitHub https://github.com/ellisonleao/magictools

PhaserJS-3 does have a 3D camera / perspective camera too.

Alectryomancy answered 7/1, 2019 at 0:21 Comment(0)
T
1

For anybody, looking there is "now" an option with an plugin, here an article highlighting this fact: https://phaser.io/news/2020/04/enable3d.

Of course since the plugin can be used standalone, phaser is not really needed. Here the link to the project page: https://enable3d.io/.
I haven't tried it yet, but since it is the most promising option, I will have to testdrive it soon.

Transfinite answered 2/1, 2022 at 9:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.