jnsmalm / pixi3d

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

Is there a use case for pixi v7? The following code will not work properly in v7 #193

Closed mtsee closed 6 months ago

mtsee commented 8 months ago

Is there a use case for pixi v7? The following code will not work properly in v7


const app = new PIXI.Application({ background: '#000', resizeTo: window });
const camera = new PIXI3D.Camera(app.renderer);
  const control = new PIXI3D.CameraOrbitControl(app.view, camera);
  control.distance = 3.5;
  control.angles.x = 8;

  const pic3d = PIXI3D.Mesh3D.createCube();
  // pic3d.position.set(0, 0, 0);
  const container3d = new PIXI3D.Container3D();
  container3d.addChild(pic3d);
  app.stage.addChild(container3d);
jnsmalm commented 8 months ago

Which version of PixiJS did you test with?