简体   繁体   English

如何在fabric.js中创建3D预览

[英]How do I create 3D preview in fabric.js

I have a web application to customize products. 我有一个Web应用程序来定制产品。 I'm using fabric.js, It's working good. 我正在使用fabric.js,效果很好。 Now i'm looking for 3D Preview link http://printio.ru/mugs/new . 现在,我正在寻找3D预览链接http://printio.ru/mugs/new I don't know how to implement on my application. 我不知道如何在我的应用程序上实现。 Please help me with suggestions and examples. 请帮助我提供建议和示例。 Thanks in advance. 提前致谢。

There is no 3d support in fabricjs. fabricjs中没有3d支持。 you can anyway explore the three.js library and get a webgl 3d image of your object. 无论如何,您都可以浏览three.js库并获取对象的webgl 3d图像。

This object will be represented on a canvas element backed by three.js. 该对象将在three.js支持的canvas元素上表示。

once you set up this, you can display that canvas element, considering it as a fabric.Image element. 设置好之后,您可以显示该canvas元素,并将其视为fabric.Image元素。

if you need yo to apply custom artwork on the 3d object what you can do is work on three.js and use the interactivity of fabric.js to create the textures for it. 如果您需要在3d对象上应用自定义图稿,则可以在three.js上工作,并使用fabric.js的交互性为其创建纹理。

Is difficult to be more technical, i think that regarding fabricjs those are all the options you have. 很难更熟练地使用技术,我认为关于fabricjs,这些就是您拥有的所有选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM