Coder Social home page Coder Social logo

gdx-tinyvg's People

Contributors

actions-user avatar frosty-j avatar lyze237 avatar raeleus avatar

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

Watchers

 avatar

gdx-tinyvg's Issues

Feature Request: Minimal SVG/TVG viewer

Amazing project. It would be nice if you could write a minimal app to load and display SVG and TVG files (SVG is converted to TVG before display). Maybe add a few render settings one can tweak and see the changes on the fly. Maybe also some transformations. The release could come bundled with a few .svg and .tvg files (part of the .jar). At startup one of those example files could be loaded at random.

Mark a tvg as dirty instead of recomputing all positions every draw call

Currently we recalculate all positions based on the tvgs position and viewport every frame.

This is obviously "slow", therefore we should implement a "dirty" system, where the tvg keeps track if something changed (position, scale, line width scale, viewport) and updates itself once instead of every frame.

Gamma possibly incorrect

I'd like to test more graphics but have only semi-successfully converted the one as of yet. Compared with TVG's SDK renderer, there are holes in the thonk and it's much paler than it should be.

GIMP (SVG) tvg-render (TVG) gdx-TinyVG (TVG)

Original SVG, TVG(T) and converted SVG: pirate.zip

Gradients display incorrectly with `CpuSpriteBatch`

When using the CpuSpriteBatch or any other variant of it, gradients are displayed incorrectly.
This is how looks like with normal SpriteBatch:
immagine

This is with CpuSpriteBatch:
immagine
The second color looks disappeared. There might be problems while calculating gradient positions from the Batch.

Thanks ;)

Render to TextureRegion

Add an option to render to a texture region via a framebuffer.

This means we need to draw the tvg only once and then draw the framebuffer instead.

Calculate polygon triangles manually

ShapeDrawer spends half the time in computeTriangles. So we should do that manually once instead of letting ShapeDrawer calculate it every time.
idea64_dD5Bgt76Gz

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.