jnsmalm / pixi3d

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

Cannot read properties of undefined (reading 'lights') #130

Closed zz201276 closed 1 year ago

zz201276 commented 1 year ago

Copy the code of the example and find that it does not work. Downloading the example directly still does not work, and the same error is prompted.

image

1663831429941

jnsmalm commented 1 year ago

How did you copy the code?

For me it works by doing:

  1. git clone https://github.com/jnsmalm/pixi3d-sandbox.git
  2. cd pixi3d-sandbox
  3. npm install
  4. npm start
zz201276 commented 1 year ago

According to the process you said, I tried it again and ran the custom-geometry demo, which returned me a new error,I'm not quite sure why this is

image

jnsmalm commented 1 year ago

Sorry, I have no idea actually. Does "create-pixi3d-app work for you?" https://github.com/jnsmalm/pixi3d#getting-started