three.js:渲染具有自定义纹理的3d文本 [英] three.js: rendering 3d text with custom texture

查看:122
本文介绍了three.js:渲染具有自定义纹理的3d文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直想知道是否可以将加载的图像作为纹理对3d文本进行蒙皮处理?我知道您可以使用多维数据集和其他多维数据集来完成此操作,因为大多数示例都向教程展示了如何执行此操作.

我尝试用3映射它.从路径定向的ImageUtils.loadTexture,但是我得到的是一些透明对象.我想知道如何使用相同的概念,例如:

 CubeGeometry(width, height, depth, widthSegments, heightSegments, depthSegments, listofmaterials) 

TextGeometry( text, {parameters} )开始在TextGeometry中为

.

我们可能必须使用 https://github的每一面都这样做.com/mrdoob/three.js/issues/1318 作为指南.

解决方案

下面是一个示例3D文本,其中应用了纹理:

http://stemkoski.github.io/Three.js/Text3D- Textures.html

希望有帮助!

I've been wondering is it possible to do skinning to the 3d text with loaded images as texture? I knew you could do it with cubes and others since most of the sample were showing tutorials how to do it.

What did I tried was map it with THREE. ImageUtils.loadTexture directed from the path but what did i get is some transparency object. I wonder how to use the same concept such as:

 CubeGeometry(width, height, depth, widthSegments, heightSegments, depthSegments, listofmaterials) 

in TextGeometry since TextGeometry( text, {parameters} ).

It might be possible we have to do it for every sides using https://github.com/mrdoob/three.js/issues/1318 as guidelines.

解决方案

Here is an example of 3D text with a texture applied:

http://stemkoski.github.io/Three.js/Text3D-Textures.html

Hope it helps!

这篇关于three.js:渲染具有自定义纹理的3d文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆