GithubHelp home page GithubHelp logo

mingguys / gpu-scanline-path-rendering Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mochimazui/gpu-scanline-path-rendering

0.0 1.0 0.0 356 KB

License: MIT License

C++ 53.74% Cuda 36.76% C 6.94% Objective-C 0.01% Ruby 0.65% GLSL 1.90%

gpu-scanline-path-rendering's Introduction

Efficient GPU Path Rendering Using Scanline Rasterization

SIGGRAPH Asia 2016 project.

Please download code together with dependency and test data from http://gaps-zju.org/pathrendering/

Pre-built Binary

./x64/release/gpu-scanline.exe. Tested on 64 bit Windows 10. Copy to ./working_directory to run.
Built with Visual Studio 2013 and CUDA 7.5.
Requires a NVIDIA graphics card with CUDA sm_50 and OpenGL 4.5 support.

Right button: move.
Mouse wheel: scale.
Left button: draw.

Build Dependency

  • Visual Studio 2013/2015
  • CUDA 7.5/8.0, lower versions may work as well.
  • Thrust

Open source code and pre-built binaries included in /3rd

Libraries are built on a 64-bit Windows 10 system with Visual Studio 2013. You may need to download or build these libraries on your own system.


Other included open source code


Code generator used

Build

Open in Visual Studio.
Check if "Properties -> CUDA C/C++ -> Device -> Code Generation" matches your device.
Then build.

Run

  • Start in Visual Studio: set "Debugging -> Working Directory" to $(SolutionDir)working_directory.
  • Start in explorer or command line: copy exe file to working_directory, or create shortcut.

The program loads ./vg_default.cfg by default. Run with --help or check cmd files in working directory for more detail.

Data

RVG files in ./input/rvg from MPVG.
Works on SVG files with a subset of features (see the paper for details).

Driver Issue

At the time we release the code, we are using driver 368.81, and everything runs well.

We found the behavior of gl_SampleMask in GLSL has changed since NVIDIA driver version 368.22. While the old behaviour was inconsistent with OpenGL standard, we assume it was a driver bug, or a result of incorrect graphics card configuration. Using drivers earlier than this version may get incorrect rendering results.

gpu-scanline-path-rendering's People

Contributors

mochimazui avatar

Watchers

 avatar

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.