Comments (6)
谢谢反馈,是我忘记导出model-ply
了,现在已经修复了,你可以重新安装一下。
from vue-3d-model.
哈哈。谢谢大哥了!
from vue-3d-model.
大哥。在麻烦一下。我主要使用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.
还有ply对于格式有要求吗,ascii,或者2进制?还有纯点云数据可以显示么?还是 只能显示网格?谢谢
from vue-3d-model.
这个报错是你代码的问题
<model-ply src="bun_zipper.ply" :rotation="rotation"></model-ply>
这里表示你将一个变量rotation
传入,但是从你下面的代码来看,实际上没有这个变量。你需要把:rotation="rotation"
去掉
ascII和二进制格式都支持
update:
我看了下,是因为我示例代码里多写了这个,我晚点改掉
from vue-3d-model.
haha ,谢谢了。我以为这个属性是ply的标签属性,谢谢你的解答啦。谢谢!
from vue-3d-model.
Related Issues (20)
- 您好,请教一个问题,这个插件支持uni-app吗?我用HBuildX编译器,用vue2,建立的是uni-app项目,我是新手,请多包涵,非常感谢
- rotation值改变了xyz3轴,但是模型没转动呀
- 页面使用scale缩放时,会导致模型错位,无法正确的选中模型目标区域,麻烦老哥重视一下这个问题 HOT 1
- 如何限制最大能放大多少 或者最小能放小至多少
- .stp格式的文件展示不了
- 反复渲染gltf 3D 会导致ios中浏览器崩溃刷新 是什么问题?
- obj类型可以添加背景颜色吗 HOT 4
- 请问一下支持重置回刚刚加载的model吗?
- 引入组件后报错 HOT 8
- fbx贴图怎么加载 HOT 1
- 限制3d模型缩放
- 使用vue3出现TypeError: Cannot read properties of undefined (reading 'extend')问题,如何解决? HOT 12
- 如何取消点击场景后出现的黑色边框
- OBJ & MTL problem
- 请问下,通过鼠标拖拽模型后,然后通过 rotation 属性控制他们之间是什么关系?
- 模型文件较大导致页面卡死该如何处理? HOT 1
- 单独加载OBJ 文件可以,同时OBJ & MTL显示空白
- Nothing comes up!
- 能否加载多个模型? HOT 2
- 【求助】怎么在大数据界面,点击模型弹窗显示详情
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-3d-model.