Three.js - technique for turning a transparent PNG into a 3D “card” with the geometry of the transparency

六眼飞鱼酱① 提交于 2019-12-23 15:06:27

问题


The goal is to turn any transparent PNG into a 3D card with a slight thickness and the geometry of the image minus transparency. For example, I'd like to take an image like this one: http://findicons.com/files/icons/730/soft/128/user_male.png and turn it into a card object with a slight thickness. However, the card should not be rectangular - its edges should follow the shape of the transparency in the image.

Is there any simple procedural way to accomplish this on any given PNG?

Thanks.

来源:https://stackoverflow.com/questions/23439339/three-js-technique-for-turning-a-transparent-png-into-a-3d-card-with-the-geo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!