Giter Site home page Giter Site logo

baka632 / danmakufrostmaster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cotaku/danmakufrostmaster

1.0 1.0 0.0 106.53 MB

UWP开源弹幕引擎·寒霜弹幕使 ~

Home Page: http://blog.atelier39.org/release/1235.html

License: MIT License

C# 100.00%

danmakufrostmaster's Introduction

DanmakuFrostMaster

UWP开源弹幕引擎·寒霜弹幕使 ~

一个UWP上基于Win2D渲染API的开源弹幕解析和绘制引擎项目/An open-source project of danmaku parsing/rendering engine based on Win2D API on UWP

主要特性/Key Features

  • 高效GPU弹幕渲染/High-performance danmaku rendering on GPU
  • 强大而简洁的弹幕实时控制/Powerful and simplified real-time danmaku manipulation
  • 丰富的渲染效果/Rich rendering effects
  • 支持多层渲染/Support for multi-layered rendering
  • 快速项目集成/Quick integration to your project
  • 高可扩展性和可定制性/High scalability and customizability
  • 内置哔哩哔哩弹幕和字幕兼容/Built-in compatibility with Bilibili danmaku and subtitle
  • 内置ASS字幕大部分特性支持/Built-in support for major styles of ASS subtitle

快速开始/Quick Start

Prerequisite

Install Win2D from https://www.nuget.org/packages/Microsoft.Graphics.Win2D

Page.xaml

xmlns:canvas="using:Microsoft.Graphics.Canvas.UI.Xaml"

<canvas:CanvasAnimatedControl x:Name="_canvasDanmaku"/>

Page.xaml.cs

using Atelier39;
private DanmakuFrostMaster _danmakuController;
_danmakuController = new DanmakuFrostMaster(_canvasDanmaku);

_danmakuController.AddRealtimeDanmaku(danmakuItem, false);

List<DanmakuItem> danmakuList = BilibiliDanmakuXmlParser.GetDanmakuList(danmakuXml, null, true, out _, out _, out _);
_danmakuController.SetDanmakuList(danmakuList);

_danmakuController.UpdateTime((uint)playTime.TotalMilliseconds);

效果演示/Demo

Demo for real-time danmaku sending

demo1

Demo for Bilibili video (Video: BV1Js411o76u)

demo2-1

Demo for Bilibili mode7 danmaku (Video: BV1Js411o76u)

demo2-2

Demo for Bilibili CC subtitle (Video: BV1Ws411m7VY)

demo3

Demo for ASS subtitle (Video: ?)

demo4

danmakufrostmaster's People

Contributors

cotaku avatar

Stargazers

Media Explorer avatar

Watchers

Media Explorer 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.