GithubHelp home page GithubHelp logo

scenevr / htmltexture-component Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 14.0 774 KB

Aframe component for using html as a texture, powered by html2canvas

Home Page: https://scenevr.github.io/htmltexture-component/

License: MIT License

JavaScript 100.00%

htmltexture-component's Introduction

SceneVR

Build Status Download count js-semistandard-style

The scene server loads scene files in .html format and listens for clients on a websocket connection. Any connected client gets a streamed version of the world sent to them. You can write scripts in javascript using <script /> tags in your scenefile to provide interactivity to connected clients.

SceneVR uses A-Frame as markup for scenes:

<a-scene>
  <a-box position="1 2 3" material="color: blue"></a-box>
</a-scene>

Contact [email protected]. Follow development at @scenevr.

License

MIT License.

Screenshot

Screenshot

htmltexture-component's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

htmltexture-component's Issues

Not displaying HTML text?

I have this installed with:

<script src="https://rawgit.com/scenevr/htmltexture-component/master/dist/aframe-htmltexture-component.js"></script>

And then copied your "Goodbye" code from the examples:

<a-assets><div id="goodbye"><center>1</center></div></a-assets><a-entity geometry="primitive: box" position="3 1 -4" draw="width: 64; height: 64;"htmltexture="asset: #goodbye"></a-entity>

But the text isn't appearing, any idea what's going on?

Example for transparent background

I am sorry I am new to the canvas world.
May I know if I can make the canvas background transparent?
It currently has white background which I want it to be transparent.

Thanks for great component to Aframe.

Existing sites

I see that you can put crafted html in this component, but what about existing sites? Say I wanted a web surface of an actual live website. Is that possible by adding something like a src attribute?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.