Giter Site home page Giter Site logo

Comments (5)

hujiulong avatar hujiulong commented on May 19, 2024

这应该是解析模型出错了,换别的模型试试,确认下是不是模型的问题

from vue-3d-model.

djymike avatar djymike commented on May 19, 2024

模型没问题,有可能是路径的问题,换成json模型的时候,报错Can't parse ~assets/scene.json. Unexpected token < in JSON at position 0,
json文件放在assets文件夹下,vue组件文件放在与assets同级的components文件夹下,我的webpack路径设置'assets': path.resolve(__dirname, '../src/assets'),
所以文件的路径应该怎么写?

from vue-3d-model.

hujiulong avatar hujiulong commented on May 19, 2024

@djymike 模型应该放在static目录里,它不需要webpack去处理

from vue-3d-model.

djymike avatar djymike commented on May 19, 2024

可以了,感谢!

from vue-3d-model.

heyouquan avatar heyouquan commented on May 19, 2024

可以了,感谢!

想问一下你解决问题后的放置模型的static目录是怎么设置的呢?

from vue-3d-model.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.