简体   繁体   中英

How do I create 3D preview in fabric.js

I have a web application to customize products. I'm using fabric.js, It's working good. Now i'm looking for 3D Preview link 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. you can anyway explore the three.js library and get a webgl 3d image of your object.

This object will be represented on a canvas element backed by three.js.

once you set up this, you can display that canvas element, considering it as a fabric.Image element.

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.

Is difficult to be more technical, i think that regarding fabricjs those are all the options you have.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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