Giter Site home page Giter Site logo

ply格式不能显示 about vue-3d-model HOT 6 CLOSED

hujiulong avatar hujiulong commented on May 19, 2024
ply格式不能显示

from vue-3d-model.

Comments (6)

hujiulong avatar hujiulong commented on May 19, 2024

谢谢反馈,是我忘记导出model-ply了,现在已经修复了,你可以重新安装一下。

from vue-3d-model.

jingxa avatar jingxa commented on May 19, 2024

哈哈。谢谢大哥了!

from vue-3d-model.

jingxa avatar jingxa commented on May 19, 2024

大哥。在麻烦一下。我主要使用script来使用,但是你的js好像还是不能用。。

<body>
    <div id="app">
        <model-ply src="bun_zipper.ply" :rotation="rotation"></model-ply>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script src="vue-3d-model.min.js"></script>
    <script>
        new Vue({
            el: '#app'
        })
    </script>
</body>
vue:6 ReferenceError: rotation is not defined
    at Rt.eval (eval at Tn (vue:6), <anonymous>:2:107)
    at Rt.t._render (vue:6)
    at Rt.r (vue:6)
    at Kr.get (vue:6)
    at new Kr (vue:6)
    at vue:6
    at Rt.$mount (vue:6)
    at Rt.$mount (vue:6)
    at Rt.t._init (vue:6)
    at new Rt (vue:6)

我使用其他的obj.stl都可以显示。。。

from vue-3d-model.

jingxa avatar jingxa commented on May 19, 2024

还有ply对于格式有要求吗,ascii,或者2进制?还有纯点云数据可以显示么?还是 只能显示网格?谢谢

from vue-3d-model.

hujiulong avatar hujiulong commented on May 19, 2024

这个报错是你代码的问题

<model-ply src="bun_zipper.ply" :rotation="rotation"></model-ply>

这里表示你将一个变量rotation传入,但是从你下面的代码来看,实际上没有这个变量。你需要把:rotation="rotation"去掉

ascII和二进制格式都支持

update:
我看了下,是因为我示例代码里多写了这个,我晚点改掉

from vue-3d-model.

jingxa avatar jingxa commented on May 19, 2024

haha ,谢谢了。我以为这个属性是ply的标签属性,谢谢你的解答啦。谢谢!

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.