jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
752 stars 43 forks source link

Migration to pixijs v7 #138

Closed cqh963852 closed 1 year ago

cqh963852 commented 1 year ago

https://github.com/pixijs/pixijs/wiki/v7-Migration-Guide#-other-changes

AbstractBatchRenderer and BatchPluginFactory has been removed. Either extends BatchRenderer or use

And roadmap migration to pixijs v7?

jnsmalm commented 1 year ago

Yes, I'm working on it, should be ready soon.

jnsmalm commented 1 year ago

Pixi3D 2.0, with support for PixiJS v7 is now available. Please let me know if you have any issues.

jnsmalm commented 1 year ago

Also check the change log as there are breaking changes. https://github.com/jnsmalm/pixi3d/blob/develop/CHANGELOG.md

cqh963852 commented 1 year ago

Can we add a readme for pixi3d/pixi7

Should import like this.

import * as PIXI3D from "pixi3d/pixi7";
jnsmalm commented 1 year ago

I already added this in the README, is it not enough?

If PixiJS v5 or v6 is used, import from pixi3d i.e. import { Model } from "pixi3d". If PixiJS v7 is used, instead import from pixi3d/pixi7 i.e. import { Model } from "pixi3d/pixi7".

cqh963852 commented 1 year ago

I already added this in the README, is it not enough?

If PixiJS v5 or v6 is used, import from pixi3d i.e. import { Model } from "pixi3d". If PixiJS v7 is used, instead import from pixi3d/pixi7 i.e. import { Model } from "pixi3d/pixi7".

Sorry, I missed that. Thanks a lot.