• Stars
    star
    189
  • Rank 197,241 (Top 5 %)
  • Language
    C#
  • License
    Other
  • Created almost 2 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

UnityBVA

A 3D cross-platform format for Unity
一个跨平台的3D格式,适用于虚拟人项目 [中文文档]
UnityBVA技术交流群

Overview

Watch the video

Watch the video

Watch the video

BVA is a GLTF-based, cross-platform format that store 3D data and far more than that. The format can be supported by many tools such as various game engines, Babylon.js, Maya, Blender. The 3D data is stored in standard gltf scheme, other infomation that BVA provides were totally extended by Extension & Extra ,thus it doesn't break the gltf-standard, and this will continue as tradition, to make it can be opened directly by Windows 3D Viewer, Babylon.js, mainstream modeling software etc.

Any tools that support gltf will also support viewing or editing the 3D part data of BVA.

Technically, it can also store any kind of data, like Multi-Media, animation clips, Custom data, even scripting. At present, it can be used as broadcast resources in the live broadcast, avatars for games or social applications, especially in VR, scenes that need avatars, such as virtual conferences, and tools that can develop virtual 3D video production similar to MMD, virtual idols, etc. Anything related to virtual world and UGC.

Furthermore, it might helps you create metaverse-like game like Roblox easily after integretion of user scripting, which was already on our roadmap.

Installing BVA

System Requirements

  • Unity 2020.3 or later, preferred version - 2021.3 LTS

Installation

  1. Unity Package Manager , add following manually
UPM package UPM url
"com.bilibili.bva": "https://github.com/bilibili/UnityBVA.git?path=/Assets/BVA"
"com.bilibili.bvavrmhotfix": "https://github.com/bilibili/UnityBVA.git?path=/Packages/com.BVA.vrmHotfix"
"com.vrmc.gltf": "https://github.com/vrm-c/UniVRM.git?path=/Assets/UniGLTF#v0.102.0"
"com.vrmc.univrm": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM#v0.102.0"
"com.vrmc.vrmshaders": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRMShaders#v0.102.0"
"jp.lilium.toongraph": "https://github.com/bilibili/UnityBVA.git?path=/Packages/jp.lilium.toongraph"

or copy text into Packages/manifest.json

// manifest.json
{
  "dependencies": {
    ///
    "com.bilibili.bva": "https://github.com/bilibili/UnityBVA.git?path=/Assets/BVA",
    "com.bilibili.bvavrmhotfix": "https://github.com/bilibili/UnityBVA.git?path=/Packages/com.BVA.vrmHotfix",
    "com.vrmc.gltf": "https://github.com/vrm-c/UniVRM.git?path=/Assets/UniGLTF#v0.102.0",
    "com.vrmc.univrm": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRM#v0.102.0",
    "com.vrmc.vrmshaders": "https://github.com/vrm-c/UniVRM.git?path=/Assets/VRMShaders#v0.102.0",
    "jp.lilium.toongraph": "https://github.com/bilibili/UnityBVA.git?path=/Packages/jp.lilium.toongraph",
    ///
  }
}
  1. Clone repository - git clone https://github.com/bilibili/UnityBVA.git

Build Target

  • Standalone (Windows10 testified, Mac or Linux should also be OK)
  • Android(vulkan or gles3.0 and linear texture must be supported)
  • iOS 10 or later
  • WebGL (works fine on Unity 2021 later, not tested)

Sample Build Requirements

All examples are located in Assets/BVA/Samples

  • Windows10 or later
  • MacOS
  • Android or iOS (only scene WebLoad is currently available, OpenFileDialog support standalone platform only)

Find more information Get Start

Important Notice :

  • Except WebLoad sample, other samples are using FileDialog(SFB), on Windows , it use WinForm namespace, so it will build fail on IL2CPP compile, make sure using Mono to pass compile.
  • ManagerScriptStriping should disable, I18N.CKJ has no reference, but GetEncoding rely on it.
  • Shader Stripping : you should not strip Post Processing Variants.
  • WebLoad could build success on Android & iOS.

Manuals

Samples

Working with UnityBVA SDK

As a 3D gltf compatible file format, BVA capable of constructing scene regardless of the Engine's version, build target platform, which ease your pain of creating the Apps that involve user-creation-contents (also known as UGC). After all, creating such a format is not a piece of cake. A complete toolchain takes even more efforts.

Features

We believe that UGC will overwhelm the whole industry in the next decade and everybody will be encouraged to devote their effort on building the metaverse, let go out of imagination and creativity.

Uniform role model specification, provide a standard for facial & motion capture to better fit the model, and it can also be applied to VR games that need an Avatar, a single file can provide cinematic movement, the dressup system for role, scene, lighting, multimedia, all these content pack in a file and no additional attached configuration required, and it is cross-platform as well as version compatibility, You don't have to use a particular version of the engine.(AssetBundle has this problem)

It comes with a very efficient dynamic bone system that supports parallel computing, by utilizing Unity’s Job System and Burst compiler to create efficient code. (Automatic-DynamicBone by OneYoungMan)

  • Export Avatar & Scene (editor full ability & runtime partial ability)
  • Import VRM & MMD model as Prefab in Editor
  • Runtime Load Avatar & Scene
  • Runtime Load VRM & MMD model
  • Collider & Camera & Light
  • Avatar
  • Cubemap Texture(vertical & horizontal & panorama 360)
  • Skybox(6 sided textures & cubemap)
  • Lightmap
  • Text Mesh
  • Decal Projector
  • Audio (wav & ogg format)
  • VidioPlayer (URL only)
  • Face & Motion Capture Compatible(BlendshapeMixer)
  • LookAt (eye follwing a target)
  • AutoBlink (auto blink eyes)
  • Reflection Probe(Custom Texture & Realtime)
  • Generic Transform & Blendshape Animation, Humanoid Avatar Animation
  • DynamicBone Physics
  • PostProcess (Volume component in Universal RP)
  • Custom Material Import & Export Code Generation
  • Component Code Generation (No nested structure)
  • RenderSetting

Third-Party Tools

Welcome pull request, add your tools here.

  • VRM2BVA - Convert VRM to BVA command line tool

Third-Party Cited

Forked from another open source repository , but some modifications may have been made. thanks the following open source projects

DracoUnity

https://github.com/atteneder/DracoUnity

License

Copyright (c) 2019 Andreas Atteneder, All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use files in this repository except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Third party notice

Builds upon and includes builds of Google's Draco 3D data compression library (released under the terms of Apache License 2.0).

NAudio

https://github.com/naudio/NAudio

LiliumToonGraph

https://github.com/you-ri/LiliumToonGraph

UniVRM

https://github.com/vrm-c/UniVRM

UniHumanoid

https://github.com/ousttrue/UniHumanoid

KtxUnity

https://github.com/atteneder/KtxUnity

UnityGLTF

https://github.com/KhronosGroup/UnityGLTF

NaughtyAttributes

https://github.com/dbrizov/NaughtyAttributes

UnityPMXRuntimeLoader

https://github.com/hobosore/UnityPMXRuntimeLoader

unity-wrapper-vorbis

https://github.com/khindemit/unity-wrapper-vorbis

shader-variant-explorer

https://github.com/needle-tools/shader-variant-explorer

UnityIngameDebugConsole

https://github.com/yasirkula/UnityIngameDebugConsole

Samples Assets

https://github.com/KhronosGroup/Vulkan-Samples-Assets https://github.com/KhronosGroup/glTF-Asset-Generator

Useful commercial resources

  • Animation Converter Convert animation clips (*.anim) between all 3 animation types (humanoid ⇆ generic ⇆ legacy).

License

Apache License, Version 2.0

More Repositories

1

ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
C
32,047
star
2

flv.js

HTML5 FLV Player
JavaScript
22,695
star
3

DanmakuFlameMaster

Android开源弹幕引擎·烈焰弹幕使 ~
Java
9,490
star
4

ailab

Python
5,450
star
5

MagicaSakura

MagicaSakura 是 Android 多主题框架。~ is an Android multi theme library which supporting both daily colorful theme and night theme.
Java
3,544
star
6

boxing

Android multi-media selector based on MVP mode.
Java
3,193
star
7

overlord

Overlord是哔哩哔哩基于Go语言编写的memcache和redis&cluster的代理及集群管理功能,致力于提供自动化高可用的缓存服务解决方案。
Go
2,187
star
8

gengine

Go
1,867
star
9

discovery

A registry for resilient mid-tier load balancing and failover.
Go
1,764
star
10

vim-vide

Lightest vimrc, while strong enough. 最轻的vim配置,却足够强!
Vim Script
781
star
11

drawee-text-view

Simple drawee spannable text view based on Fresco
Java
764
star
12

join-us

大B站需要更多的小伙伴~ ( ゜- ゜)つロ 乾杯~
702
star
13

LastOrder-Dota2

Dota2 AI bot
Python
399
star
14

NativeBitmapFactory

DFM jni
C++
320
star
15

jni4android

JNI Generater for Android
C
305
star
16

BRouter

Kotlin
301
star
17

biliobs

C++
240
star
18

quiche

C++
191
star
19

kratos-demo

a project that use kratos
Go
188
star
20

bas

Bilibili Animation Script
HTML
187
star
21

apk-channelization

[不支持v2签名]Android多渠道输出脚本
Python
147
star
22

libyuv

mirror of https://chromium.googlesource.com/external/libyuv/
C++
147
star
23

BurstLinker

🚀 A simple GIF encoder for Android.
C++
131
star
24

xpref

A SharedPreferences' wrapper that truly supported sharing data across multi-process
Kotlin
85
star
25

soundtouch

SoundTouch library compiled for ijkplayer/Android http://www.surina.net/soundtouch/sourcecode.html
C++
80
star
26

mahimahi

C++
76
star
27

muzei-bilibili

Muzei 插件,bilibili 壁纸源
Java
71
star
28

vlc-android-macbuild

Deprecated, official site is recommended http://git.videolan.org
Java
70
star
29

LastOrder

StarCraft AI bot
C++
61
star
30

vlc-ports-android

fork of git://git.videolan.org/vlc-ports/android.git
C++
56
star
31

bbip

Bilibili High Performance IP Resolve Library
C++
55
star
32

oresty

Lua
52
star
33

SMGo

Shang-Mi cipher library. Constant-time implementation of SM2 and SM4.
Go
40
star
34

bilibili.github.io

35
star
35

adaptation

too painful to work with PagerAdapter
Java
32
star
36

vlc

fork of git://git.videolan.org/vlc.git
C
30
star
37

openssl

mirror of https://www.openssl.org
C
29
star
38

twirp

twirp rpc
Go
26
star
39

ci-ijk-ffmpeg-ios

Prebuilt FFmpeg for ijkplayer on iOS
Shell
18
star
40

abtest

A layered experiment framework for C++/java/go
15
star
41

flvbind

A tools to combine multiple flv file to a single flv file.
C
13
star
42

uptool

JavaScript
12
star
43

gas-preprocessor

personal fork of git://git.libav.org/gas-preprocessor.git
Perl
12
star
44

nginx_quic_module

C
12
star
45

jmp_logpipe

A tool for jumper analyize log and send the command to remove UDP server for aduit. And this tool will denied for lszrz protocol to prevent a large log for storage.
C
10
star
46

nginx_quic_stack

C++
10
star
47

ci-ijk-ffmpeg-android

Continuous integration for ijkplayer on Android
8
star
48

vim

B站Vim会所
6
star
49

arrange-play

Java
5
star
50

bilibili_wtm

Python
1
star