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
1 Answer
Reset to default 7To 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
评论列表(0条)