question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not even get started

See original GitHub issue

Hello! I am trying to load the drone demo, but no luck so far. I am using pixi 5.3.9 and this code does not seem to work. Unfortunately I can’t update pixi to v6, because the project is huge and this will take days and days.

`app.loader.add(“assets/buster_drone/scene.gltf”)

app.loader.load((loader, resources) => { let model = app.stage.addChild( PIXI3D.Model.from(resources[“assets/buster_drone/scene.gltf”].gltf)) })`

the property gltf is always undefined (it is even missing, because the resource is of type Resource). I noticed that there is a static method for loading gltf from array, but I did not try this yet. I guess I should load the bin or the model file there?

Thanks for your time.

Edit. I just tried the 3d cube code. It does not work for me too. Idk what’s wrong since Mesh3D extends DisplayObject. image

Maybe I am missing some npm package?

Edit2: The cube works with a hack. I cast the cube to any, then to DisplayObject and the code compiles and runs.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jnsmalmcommented, Aug 23, 2021

The cube works with a hack. I cast the cube to any, then to DisplayObject and the code compiles and runs.

I looked closer at this specific error you are getting and unfortunately it’s because of an error in PixiJS types (in matrix) before v6.0. Two options:

  • Use // @ts-ignore above that line which caused the error.
  • Do casting let mesh = app.stage.addChild(<DisplayObject><unknown>Mesh3D.createCube())
0reactions
djlastnightcommented, Aug 23, 2021

You are great! Thank you again. It was pleasure to meet you. Closing this.

Kind regards, Ivan

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't Get Started? Can't Catch Up?
Six ways to get going on that project you've been avoiding.
Read more >
Can't start a task even though it's really important?
The most common reasons are: fear of failure, feeling overwhelmed, fear of success, and lack of motivation.
Read more >
What is the meaning of "Don't even get me started on
Typically, "Don't even get me started on~" means that someone feels very strongly about a certain topic, and when someone brings it up,...
Read more >
Don't Get Me Started | Idioms Online
We say “don't get me started” when someone brings up a topic about which we have a lot to say and are passionate...
Read more >
What does the phrase 'Don't get me started' mean?
It means, “I have very strong feelings on this topic, so strong that if you let me get started talking about it you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found