Giter Site home page Giter Site logo

aframe-svgfile-component's People

Contributors

eoramrio avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

aframe-svgfile-component's Issues

browser file

Could you put up a complete .js we can include using just a <script> tag? (with the RegisterComponent and the threejs require()'s included). many thanks

add support for lines

Currently all paths are assumed to be closed and rendered as polygons. Would be better to check the "fill" attribute of the path and in the case that the path is not filled, it is a line, then we can use:
https://github.com/andreasplesch/aframe-meshline-component

to render lines, with line thickness (since webgl doesn't support line thickness).

This component doesn't support curves. So we'd need to look for "C", "c", "A", etc, in the SVG path and if we find these, interpolate to line segments. This can be done by putting the SVG curve into a new Three.CubicBezierCurve, then using Three.Curve.getSpacedPoints to interpolate into line segments that can be fed into aframe-meshline. Alternatively, this logic could be added to meshline, so that meshline can accept "C" commands in its path instead of just linear segments (see suggestion andreasplesch/aframe-meshline-component#8)

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.