javascript - How can I render HTML in A-Frame? - Stack Overflow

How can I render or display plain HTML markup as a texture in A-Frame?I want to do something like:<!

How can I render or display plain HTML markup as a texture in A-Frame?

I want to do something like:

<!-- language-all: lang-html -->
<a-scene>
  <div>HELLO WORLD</div>
</a-scene>

How can I render or display plain HTML markup as a texture in A-Frame?

I want to do something like:

<!-- language-all: lang-html -->
<a-scene>
  <div>HELLO WORLD</div>
</a-scene>
Share Improve this question edited Mar 30, 2016 at 23:56 ngokevin asked Mar 30, 2016 at 22:33 ngokevinngokevin 13.2k5 gold badges44 silver badges88 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

To render HTML as a texture in A-Frame, it is not as easy as dropping HTML into <a-scene>.

Solutions involve painting to a <canvas> and using the canvas as texture onto 3D meshes. The A-Frame munity has shared some ponents for this:

  • HTML Texture Component
  • Draw Component
  • DOM to Screenshot

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744845649a4596819.html

相关推荐

  • javascript - How can I render HTML in A-Frame? - Stack Overflow

    How can I render or display plain HTML markup as a texture in A-Frame?I want to do something like:<!

    2天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信