Git Product home page Git Product logo

Comments (7)

maxkrieger avatar maxkrieger commented on June 7, 2024

Hmm, I'll look into this. The latest aframe branch has custom shaders which are probably which'll be used for this module once it's released.

from aframe-draw-component.

meta-meta avatar meta-meta commented on June 7, 2024

I just ran into this. To fix it, in createCanvas:

change

this.el.object3D.material = new THREE.MeshBasicMaterial();
this.el.object3D.material.map = this.texture;

to

this.el.object3D.children[0].material = new THREE.MeshBasicMaterial();
this.el.object3D.children[0].material.map = this.texture;

from aframe-draw-component.

maxkrieger avatar maxkrieger commented on June 7, 2024

I'll take care of this tomorrow, thanks!

On Fri, Mar 18, 2016 at 4:54 PM, Paul M. Christian <[email protected]

wrote:

I just ran into this. To fix it, in createCanvas:

change

this.el.object3D.material = new THREE.MeshBasicMaterial();
this.el.object3D.material.map = this.texture;

to

this.el.object3D.children[0].material = new THREE.MeshBasicMaterial();
this.el.object3D.children[0].material.map = this.texture;


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#4 (comment)

from aframe-draw-component.

maxkrieger avatar maxkrieger commented on June 7, 2024

This solution isn't backwards compatible, so I made a quick and dirty if...else.

Should be solved in 1.4.0, let me know how it goes.

from aframe-draw-component.

RSpace avatar RSpace commented on June 7, 2024

I've tried to get this component to work with A-Frame 0.2.0, but it doesn't work.

This example just renders a white cube with A-Frame 0.2.0 and version 1.4.0 of this component:

    <a-scene>
      <a-sky color="blue"></a-sky>
      <a-entity position="0 1 0" geometry="primitive: box" draw="width: 256; height: 256" square="text: Hello">
      </a-entity>
    </a-scene>

from aframe-draw-component.

maxkrieger avatar maxkrieger commented on June 7, 2024

@RSpace this should be fixed in 1.5.0.

from aframe-draw-component.

maltekosian avatar maltekosian commented on June 7, 2024

I tried it with the latest branch of aframe.io 0.3.0 and it works fine for me. Though i|ve to admit one should use the complete example code of the repository, not the short hints giving snippets of the repository page.
And .. i've a question: is there an issue if one is using html-component, too? I seams to me as a normal draw component is running into a permanent loop than. I can show you some example code, if you want.

from aframe-draw-component.

Related Issues (6)

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.