mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-12 22:10:11 -05:00
deploy: 6dc18fc8dd
This commit is contained in:
Binary file not shown.
BIN
en/.doctrees/implementation/fast_spring_bone.doctree
Normal file
BIN
en/.doctrees/implementation/fast_spring_bone.doctree
Normal file
Binary file not shown.
Binary file not shown.
47
en/_sources/implementation/fast_spring_bone.md.txt
Normal file
47
en/_sources/implementation/fast_spring_bone.md.txt
Normal file
@@ -0,0 +1,47 @@
|
||||
# FastSpringBoneについて
|
||||
|
||||
## 概要
|
||||
UniVRMでは、DOTSを利用した高速なSpringBone実装である「FastSpringBone」を用意しています。
|
||||
|
||||
揺れ物の各房を並列処理・最適化することで1フレームあたりの処理時間を大幅に抑えます。
|
||||
|
||||
VRM0.x と VRM1.0 で、それぞれFastSpringBoneの立ち位置・実装が異なります。
|
||||
|
||||
## VRM 1.0 での FastSpringBone の概要
|
||||
VRM1.0ではFastSpringBoneが揺れものの標準実装です。
|
||||
|
||||
VRMのライフサイクルに紐付いて自動的に生成・破棄されます。
|
||||
|
||||
## VRM 0.x での FastSpringBone の概要
|
||||
VRM0.xでは後方互換性を保つため、デフォルトでは従来のDOTS実装でないSpringBoneで動作します。
|
||||
|
||||
VRM0.x向けのFastSpringBone実装は `VRM/Runtime/FastSpringBone` ディレクトリにあります。
|
||||
|
||||
## VRM 0.x での FastSpringBone の導入方法
|
||||
差し替えを行いたいタイミングで `FastSpringBoneReplacer.ReplaceAsync` を呼び出してください
|
||||
|
||||
これを明示的に呼ばなければ、従来のSpringBoneのまま動作します。
|
||||
|
||||
```cs
|
||||
using (var loader = new UniGLTF.ImporterContext(data))
|
||||
{
|
||||
var instance = await loader.LoadAsync();
|
||||
SetModel(instance);
|
||||
}
|
||||
FastSpringBoneReplacer.ReplaceAsync(instance.Root)
|
||||
|
||||
instance.EnableUpdateWhenOffscreen();
|
||||
instance.ShowMeshes();
|
||||
```
|
||||
|
||||
## Burstの導入について
|
||||
UniVRM に加えて Burst を別途導入すると、 FastSpringBone が Burst によって高速化されます。
|
||||
|
||||
Burst の導入方法は [こちら](https://docs.unity3d.com/ja/2019.4/Manual/upm-ui-install.html) をご参照ください。
|
||||
|
||||
## FastSpringBoneServiceについて
|
||||
FastSpringBone が実行されると、`FastSpringBone Service` GameObject が `DontDestroyOnLoad` で生成されます。
|
||||
|
||||
これは全 VRM の FastSpringBone を集め、バッファの構築や、 FastSpringBone の実行タイミングの制御などを行う GameObject です。
|
||||
|
||||
明示的に破棄を行いたい場合は `FastSpringBoneService.Free` を呼んでください。
|
||||
@@ -53,6 +53,7 @@ vrm0/firstperson
|
||||
implementation/runtime_resource_management
|
||||
implementation/texture_manipulation
|
||||
implementation/coordinate
|
||||
implementation/fast_spring_bone
|
||||
```
|
||||
|
||||
### Samples
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<script>window.MathJax = {"options": {"processHtmlClass": "tex2jax_process|mathjax_process|math|output_area"}}</script>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
<link rel="next" title="RuntimeLoad" href="../vrm1/vrm1_runtime_load.html" />
|
||||
<link rel="next" title="FastSpringBoneについて" href="fast_spring_bone.html" />
|
||||
<link rel="prev" title="Texture関連" href="texture_manipulation.html" />
|
||||
</head><body>
|
||||
<div class="related" role="navigation" aria-label="related navigation">
|
||||
@@ -27,7 +27,7 @@
|
||||
<a href="../genindex.html" title="General Index"
|
||||
accesskey="I">index</a></li>
|
||||
<li class="right" >
|
||||
<a href="../vrm1/vrm1_runtime_load.html" title="RuntimeLoad"
|
||||
<a href="fast_spring_bone.html" title="FastSpringBoneについて"
|
||||
accesskey="N">next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="texture_manipulation.html" title="Texture関連"
|
||||
@@ -174,8 +174,8 @@
|
||||
<p class="topless"><a href="texture_manipulation.html"
|
||||
title="previous chapter">Texture関連</a></p>
|
||||
<h4>Next topic</h4>
|
||||
<p class="topless"><a href="../vrm1/vrm1_runtime_load.html"
|
||||
title="next chapter">RuntimeLoad</a></p>
|
||||
<p class="topless"><a href="fast_spring_bone.html"
|
||||
title="next chapter">FastSpringBoneについて</a></p>
|
||||
<div role="note" aria-label="source link">
|
||||
<h3>This Page</h3>
|
||||
<ul class="this-page-menu">
|
||||
@@ -204,7 +204,7 @@
|
||||
<a href="../genindex.html" title="General Index"
|
||||
>index</a></li>
|
||||
<li class="right" >
|
||||
<a href="../vrm1/vrm1_runtime_load.html" title="RuntimeLoad"
|
||||
<a href="fast_spring_bone.html" title="FastSpringBoneについて"
|
||||
>next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="texture_manipulation.html" title="Texture関連"
|
||||
|
||||
163
en/implementation/fast_spring_bone.html
Normal file
163
en/implementation/fast_spring_bone.html
Normal file
@@ -0,0 +1,163 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
||||
|
||||
<title>FastSpringBoneについて — UniVRM Programming Document documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/nature.css" />
|
||||
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
|
||||
<script src="../_static/jquery.js"></script>
|
||||
<script src="../_static/underscore.js"></script>
|
||||
<script src="../_static/doctools.js"></script>
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
<link rel="next" title="RuntimeLoad" href="../vrm1/vrm1_runtime_load.html" />
|
||||
<link rel="prev" title="座標系の変換" href="coordinate.html" />
|
||||
</head><body>
|
||||
<div class="related" role="navigation" aria-label="related navigation">
|
||||
<h3>Navigation</h3>
|
||||
<ul>
|
||||
<li class="right" style="margin-right: 10px">
|
||||
<a href="../genindex.html" title="General Index"
|
||||
accesskey="I">index</a></li>
|
||||
<li class="right" >
|
||||
<a href="../vrm1/vrm1_runtime_load.html" title="RuntimeLoad"
|
||||
accesskey="N">next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="coordinate.html" title="座標系の変換"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">UniVRM Programming Document documentation</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">FastSpringBoneについて</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="document">
|
||||
<div class="documentwrapper">
|
||||
<div class="bodywrapper">
|
||||
<div class="body" role="main">
|
||||
|
||||
<section class="tex2jax_ignore mathjax_ignore" id="fastspringbone">
|
||||
<h1>FastSpringBoneについて<a class="headerlink" href="#fastspringbone" title="Permalink to this headline">¶</a></h1>
|
||||
<section id="id1">
|
||||
<h2>概要<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
|
||||
<p>UniVRMでは、DOTSを利用した高速なSpringBone実装である「FastSpringBone」を用意しています。</p>
|
||||
<p>揺れ物の各房を並列処理・最適化することで1フレームあたりの処理時間を大幅に抑えます。</p>
|
||||
<p>VRM0.x と VRM1.0 で、それぞれFastSpringBoneの立ち位置・実装が異なります。</p>
|
||||
</section>
|
||||
<section id="vrm-1-0-fastspringbone">
|
||||
<h2>VRM 1.0 での FastSpringBone の概要<a class="headerlink" href="#vrm-1-0-fastspringbone" title="Permalink to this headline">¶</a></h2>
|
||||
<p>VRM1.0ではFastSpringBoneが揺れものの標準実装です。</p>
|
||||
<p>VRMのライフサイクルに紐付いて自動的に生成・破棄されます。</p>
|
||||
</section>
|
||||
<section id="vrm-0-x-fastspringbone">
|
||||
<h2>VRM 0.x での FastSpringBone の概要<a class="headerlink" href="#vrm-0-x-fastspringbone" title="Permalink to this headline">¶</a></h2>
|
||||
<p>VRM0.xでは後方互換性を保つため、デフォルトでは従来のDOTS実装でないSpringBoneで動作します。</p>
|
||||
<p>VRM0.x向けのFastSpringBone実装は <code class="docutils literal notranslate"><span class="pre">VRM/Runtime/FastSpringBone</span></code> ディレクトリにあります。</p>
|
||||
</section>
|
||||
<section id="id2">
|
||||
<h2>VRM 0.x での FastSpringBone の導入方法<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
|
||||
<p>差し替えを行いたいタイミングで <code class="docutils literal notranslate"><span class="pre">FastSpringBoneReplacer.ReplaceAsync</span></code> を呼び出してください</p>
|
||||
<p>これを明示的に呼ばなければ、従来のSpringBoneのまま動作します。</p>
|
||||
<div class="highlight-cs notranslate"><div class="highlight"><pre><span></span>using (var loader = new UniGLTF.ImporterContext(data))
|
||||
{
|
||||
var instance = await loader.LoadAsync();
|
||||
SetModel(instance);
|
||||
}
|
||||
FastSpringBoneReplacer.ReplaceAsync(instance.Root)
|
||||
|
||||
instance.EnableUpdateWhenOffscreen();
|
||||
instance.ShowMeshes();
|
||||
</pre></div>
|
||||
</div>
|
||||
</section>
|
||||
<section id="burst">
|
||||
<h2>Burstの導入について<a class="headerlink" href="#burst" title="Permalink to this headline">¶</a></h2>
|
||||
<p>UniVRM に加えて Burst を別途導入すると、 FastSpringBone が Burst によって高速化されます。</p>
|
||||
<p>Burst の導入方法は <a class="reference external" href="https://docs.unity3d.com/ja/2019.4/Manual/upm-ui-install.html">こちら</a> をご参照ください。</p>
|
||||
</section>
|
||||
<section id="fastspringboneservice">
|
||||
<h2>FastSpringBoneServiceについて<a class="headerlink" href="#fastspringboneservice" title="Permalink to this headline">¶</a></h2>
|
||||
<p>FastSpringBone が実行されると、<code class="docutils literal notranslate"><span class="pre">FastSpringBone</span> <span class="pre">Service</span></code> GameObject が <code class="docutils literal notranslate"><span class="pre">DontDestroyOnLoad</span></code> で生成されます。</p>
|
||||
<p>これは全 VRM の FastSpringBone を集め、バッファの構築や、 FastSpringBone の実行タイミングの制御などを行う GameObject です。</p>
|
||||
<p>明示的に破棄を行いたい場合は <code class="docutils literal notranslate"><span class="pre">FastSpringBoneService.Free</span></code> を呼んでください。</p>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
||||
<div class="sphinxsidebarwrapper">
|
||||
<ul>
|
||||
<li><a href="../../ja/implementation/fast_spring_bone.html">日本語</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a href="../index.html">Table of Contents</a></h3>
|
||||
<ul>
|
||||
<li><a class="reference internal" href="#">FastSpringBoneについて</a><ul>
|
||||
<li><a class="reference internal" href="#id1">概要</a></li>
|
||||
<li><a class="reference internal" href="#vrm-1-0-fastspringbone">VRM 1.0 での FastSpringBone の概要</a></li>
|
||||
<li><a class="reference internal" href="#vrm-0-x-fastspringbone">VRM 0.x での FastSpringBone の概要</a></li>
|
||||
<li><a class="reference internal" href="#id2">VRM 0.x での FastSpringBone の導入方法</a></li>
|
||||
<li><a class="reference internal" href="#burst">Burstの導入について</a></li>
|
||||
<li><a class="reference internal" href="#fastspringboneservice">FastSpringBoneServiceについて</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h4>Previous topic</h4>
|
||||
<p class="topless"><a href="coordinate.html"
|
||||
title="previous chapter">座標系の変換</a></p>
|
||||
<h4>Next topic</h4>
|
||||
<p class="topless"><a href="../vrm1/vrm1_runtime_load.html"
|
||||
title="next chapter">RuntimeLoad</a></p>
|
||||
<div role="note" aria-label="source link">
|
||||
<h3>This Page</h3>
|
||||
<ul class="this-page-menu">
|
||||
<li><a href="../_sources/implementation/fast_spring_bone.md.txt"
|
||||
rel="nofollow">Show Source</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="searchbox" style="display: none" role="search">
|
||||
<h3 id="searchlabel">Quick search</h3>
|
||||
<div class="searchformwrapper">
|
||||
<form class="search" action="../search.html" method="get">
|
||||
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
|
||||
<input type="submit" value="Go" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script>$('#searchbox').show(0);</script>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
<div class="related" role="navigation" aria-label="related navigation">
|
||||
<h3>Navigation</h3>
|
||||
<ul>
|
||||
<li class="right" style="margin-right: 10px">
|
||||
<a href="../genindex.html" title="General Index"
|
||||
>index</a></li>
|
||||
<li class="right" >
|
||||
<a href="../vrm1/vrm1_runtime_load.html" title="RuntimeLoad"
|
||||
>next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="coordinate.html" title="座標系の変換"
|
||||
>previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">UniVRM Programming Document documentation</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">FastSpringBoneについて</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer" role="contentinfo">
|
||||
© Copyright 2021, VRM Consortium.
|
||||
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.2.0.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -97,6 +97,7 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="implementation/runtime_resource_management.html">Runtime のリソース管理について</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="implementation/texture_manipulation.html">Texture関連</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="implementation/coordinate.html">座標系の変換</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="implementation/fast_spring_bone.html">FastSpringBoneについて</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<section id="samples">
|
||||
|
||||
BIN
en/objects.inv
BIN
en/objects.inv
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -16,7 +16,7 @@
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
<link rel="next" title="🚧Humanoid" href="vrm1_get_humanoid.html" />
|
||||
<link rel="prev" title="座標系の変換" href="../implementation/coordinate.html" />
|
||||
<link rel="prev" title="FastSpringBoneについて" href="../implementation/fast_spring_bone.html" />
|
||||
</head><body>
|
||||
<div class="related" role="navigation" aria-label="related navigation">
|
||||
<h3>Navigation</h3>
|
||||
@@ -28,7 +28,7 @@
|
||||
<a href="vrm1_get_humanoid.html" title="🚧Humanoid"
|
||||
accesskey="N">next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="../implementation/coordinate.html" title="座標系の変換"
|
||||
<a href="../implementation/fast_spring_bone.html" title="FastSpringBoneについて"
|
||||
accesskey="P">previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">UniVRM Programming Document documentation</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">RuntimeLoad</a></li>
|
||||
@@ -107,8 +107,8 @@
|
||||
|
||||
|
||||
<h4>Previous topic</h4>
|
||||
<p class="topless"><a href="../implementation/coordinate.html"
|
||||
title="previous chapter">座標系の変換</a></p>
|
||||
<p class="topless"><a href="../implementation/fast_spring_bone.html"
|
||||
title="previous chapter">FastSpringBoneについて</a></p>
|
||||
<h4>Next topic</h4>
|
||||
<p class="topless"><a href="vrm1_get_humanoid.html"
|
||||
title="next chapter">🚧Humanoid</a></p>
|
||||
@@ -143,7 +143,7 @@
|
||||
<a href="vrm1_get_humanoid.html" title="🚧Humanoid"
|
||||
>next</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="../implementation/coordinate.html" title="座標系の変換"
|
||||
<a href="../implementation/fast_spring_bone.html" title="FastSpringBoneについて"
|
||||
>previous</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">UniVRM Programming Document documentation</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">RuntimeLoad</a></li>
|
||||
|
||||
Binary file not shown.
BIN
ja/.doctrees/implementation/fast_spring_bone.doctree
Normal file
BIN
ja/.doctrees/implementation/fast_spring_bone.doctree
Normal file
Binary file not shown.
Binary file not shown.
47
ja/_sources/implementation/fast_spring_bone.md.txt
Normal file
47
ja/_sources/implementation/fast_spring_bone.md.txt
Normal file
@@ -0,0 +1,47 @@
|
||||
# FastSpringBoneについて
|
||||
|
||||
## 概要
|
||||
UniVRMでは、DOTSを利用した高速なSpringBone実装である「FastSpringBone」を用意しています。
|
||||
|
||||
揺れ物の各房を並列処理・最適化することで1フレームあたりの処理時間を大幅に抑えます。
|
||||
|
||||
VRM0.x と VRM1.0 で、それぞれFastSpringBoneの立ち位置・実装が異なります。
|
||||
|
||||
## VRM 1.0 での FastSpringBone の概要
|
||||
VRM1.0ではFastSpringBoneが揺れものの標準実装です。
|
||||
|
||||
VRMのライフサイクルに紐付いて自動的に生成・破棄されます。
|
||||
|
||||
## VRM 0.x での FastSpringBone の概要
|
||||
VRM0.xでは後方互換性を保つため、デフォルトでは従来のDOTS実装でないSpringBoneで動作します。
|
||||
|
||||
VRM0.x向けのFastSpringBone実装は `VRM/Runtime/FastSpringBone` ディレクトリにあります。
|
||||
|
||||
## VRM 0.x での FastSpringBone の導入方法
|
||||
差し替えを行いたいタイミングで `FastSpringBoneReplacer.ReplaceAsync` を呼び出してください
|
||||
|
||||
これを明示的に呼ばなければ、従来のSpringBoneのまま動作します。
|
||||
|
||||
```cs
|
||||
using (var loader = new UniGLTF.ImporterContext(data))
|
||||
{
|
||||
var instance = await loader.LoadAsync();
|
||||
SetModel(instance);
|
||||
}
|
||||
FastSpringBoneReplacer.ReplaceAsync(instance.Root)
|
||||
|
||||
instance.EnableUpdateWhenOffscreen();
|
||||
instance.ShowMeshes();
|
||||
```
|
||||
|
||||
## Burstの導入について
|
||||
UniVRM に加えて Burst を別途導入すると、 FastSpringBone が Burst によって高速化されます。
|
||||
|
||||
Burst の導入方法は [こちら](https://docs.unity3d.com/ja/2019.4/Manual/upm-ui-install.html) をご参照ください。
|
||||
|
||||
## FastSpringBoneServiceについて
|
||||
FastSpringBone が実行されると、`FastSpringBone Service` GameObject が `DontDestroyOnLoad` で生成されます。
|
||||
|
||||
これは全 VRM の FastSpringBone を集め、バッファの構築や、 FastSpringBone の実行タイミングの制御などを行う GameObject です。
|
||||
|
||||
明示的に破棄を行いたい場合は `FastSpringBoneService.Free` を呼んでください。
|
||||
@@ -53,6 +53,7 @@ vrm0/firstperson
|
||||
implementation/runtime_resource_management
|
||||
implementation/texture_manipulation
|
||||
implementation/coordinate
|
||||
implementation/fast_spring_bone
|
||||
```
|
||||
|
||||
### Samples
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<script>window.MathJax = {"options": {"processHtmlClass": "tex2jax_process|mathjax_process|math|output_area"}}</script>
|
||||
<link rel="index" title="索引" href="../genindex.html" />
|
||||
<link rel="search" title="検索" href="../search.html" />
|
||||
<link rel="next" title="RuntimeLoad" href="../vrm1/vrm1_runtime_load.html" />
|
||||
<link rel="next" title="FastSpringBoneについて" href="fast_spring_bone.html" />
|
||||
<link rel="prev" title="Texture関連" href="texture_manipulation.html" />
|
||||
</head><body>
|
||||
<div class="related" role="navigation" aria-label="related navigation">
|
||||
@@ -28,7 +28,7 @@
|
||||
<a href="../genindex.html" title="総合索引"
|
||||
accesskey="I">索引</a></li>
|
||||
<li class="right" >
|
||||
<a href="../vrm1/vrm1_runtime_load.html" title="RuntimeLoad"
|
||||
<a href="fast_spring_bone.html" title="FastSpringBoneについて"
|
||||
accesskey="N">次へ</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="texture_manipulation.html" title="Texture関連"
|
||||
@@ -175,8 +175,8 @@
|
||||
<p class="topless"><a href="texture_manipulation.html"
|
||||
title="前の章へ">Texture関連</a></p>
|
||||
<h4>次のトピックへ</h4>
|
||||
<p class="topless"><a href="../vrm1/vrm1_runtime_load.html"
|
||||
title="次の章へ">RuntimeLoad</a></p>
|
||||
<p class="topless"><a href="fast_spring_bone.html"
|
||||
title="次の章へ">FastSpringBoneについて</a></p>
|
||||
<div role="note" aria-label="source link">
|
||||
<h3>このページ</h3>
|
||||
<ul class="this-page-menu">
|
||||
@@ -205,7 +205,7 @@
|
||||
<a href="../genindex.html" title="総合索引"
|
||||
>索引</a></li>
|
||||
<li class="right" >
|
||||
<a href="../vrm1/vrm1_runtime_load.html" title="RuntimeLoad"
|
||||
<a href="fast_spring_bone.html" title="FastSpringBoneについて"
|
||||
>次へ</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="texture_manipulation.html" title="Texture関連"
|
||||
|
||||
164
ja/implementation/fast_spring_bone.html
Normal file
164
ja/implementation/fast_spring_bone.html
Normal file
@@ -0,0 +1,164 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
||||
|
||||
<title>FastSpringBoneについて — UniVRM Programming Document ドキュメント</title>
|
||||
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../_static/nature.css" />
|
||||
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
|
||||
<script src="../_static/jquery.js"></script>
|
||||
<script src="../_static/underscore.js"></script>
|
||||
<script src="../_static/doctools.js"></script>
|
||||
<script src="../_static/translations.js"></script>
|
||||
<link rel="index" title="索引" href="../genindex.html" />
|
||||
<link rel="search" title="検索" href="../search.html" />
|
||||
<link rel="next" title="RuntimeLoad" href="../vrm1/vrm1_runtime_load.html" />
|
||||
<link rel="prev" title="座標系の変換" href="coordinate.html" />
|
||||
</head><body>
|
||||
<div class="related" role="navigation" aria-label="related navigation">
|
||||
<h3>ナビゲーション</h3>
|
||||
<ul>
|
||||
<li class="right" style="margin-right: 10px">
|
||||
<a href="../genindex.html" title="総合索引"
|
||||
accesskey="I">索引</a></li>
|
||||
<li class="right" >
|
||||
<a href="../vrm1/vrm1_runtime_load.html" title="RuntimeLoad"
|
||||
accesskey="N">次へ</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="coordinate.html" title="座標系の変換"
|
||||
accesskey="P">前へ</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">UniVRM Programming Document ドキュメント</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">FastSpringBoneについて</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="document">
|
||||
<div class="documentwrapper">
|
||||
<div class="bodywrapper">
|
||||
<div class="body" role="main">
|
||||
|
||||
<section class="tex2jax_ignore mathjax_ignore" id="fastspringbone">
|
||||
<h1>FastSpringBoneについて<a class="headerlink" href="#fastspringbone" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
||||
<section id="id1">
|
||||
<h2>概要<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
||||
<p>UniVRMでは、DOTSを利用した高速なSpringBone実装である「FastSpringBone」を用意しています。</p>
|
||||
<p>揺れ物の各房を並列処理・最適化することで1フレームあたりの処理時間を大幅に抑えます。</p>
|
||||
<p>VRM0.x と VRM1.0 で、それぞれFastSpringBoneの立ち位置・実装が異なります。</p>
|
||||
</section>
|
||||
<section id="vrm-1-0-fastspringbone">
|
||||
<h2>VRM 1.0 での FastSpringBone の概要<a class="headerlink" href="#vrm-1-0-fastspringbone" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
||||
<p>VRM1.0ではFastSpringBoneが揺れものの標準実装です。</p>
|
||||
<p>VRMのライフサイクルに紐付いて自動的に生成・破棄されます。</p>
|
||||
</section>
|
||||
<section id="vrm-0-x-fastspringbone">
|
||||
<h2>VRM 0.x での FastSpringBone の概要<a class="headerlink" href="#vrm-0-x-fastspringbone" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
||||
<p>VRM0.xでは後方互換性を保つため、デフォルトでは従来のDOTS実装でないSpringBoneで動作します。</p>
|
||||
<p>VRM0.x向けのFastSpringBone実装は <code class="docutils literal notranslate"><span class="pre">VRM/Runtime/FastSpringBone</span></code> ディレクトリにあります。</p>
|
||||
</section>
|
||||
<section id="id2">
|
||||
<h2>VRM 0.x での FastSpringBone の導入方法<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
||||
<p>差し替えを行いたいタイミングで <code class="docutils literal notranslate"><span class="pre">FastSpringBoneReplacer.ReplaceAsync</span></code> を呼び出してください</p>
|
||||
<p>これを明示的に呼ばなければ、従来のSpringBoneのまま動作します。</p>
|
||||
<div class="highlight-cs notranslate"><div class="highlight"><pre><span></span>using (var loader = new UniGLTF.ImporterContext(data))
|
||||
{
|
||||
var instance = await loader.LoadAsync();
|
||||
SetModel(instance);
|
||||
}
|
||||
FastSpringBoneReplacer.ReplaceAsync(instance.Root)
|
||||
|
||||
instance.EnableUpdateWhenOffscreen();
|
||||
instance.ShowMeshes();
|
||||
</pre></div>
|
||||
</div>
|
||||
</section>
|
||||
<section id="burst">
|
||||
<h2>Burstの導入について<a class="headerlink" href="#burst" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
||||
<p>UniVRM に加えて Burst を別途導入すると、 FastSpringBone が Burst によって高速化されます。</p>
|
||||
<p>Burst の導入方法は <a class="reference external" href="https://docs.unity3d.com/ja/2019.4/Manual/upm-ui-install.html">こちら</a> をご参照ください。</p>
|
||||
</section>
|
||||
<section id="fastspringboneservice">
|
||||
<h2>FastSpringBoneServiceについて<a class="headerlink" href="#fastspringboneservice" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
||||
<p>FastSpringBone が実行されると、<code class="docutils literal notranslate"><span class="pre">FastSpringBone</span> <span class="pre">Service</span></code> GameObject が <code class="docutils literal notranslate"><span class="pre">DontDestroyOnLoad</span></code> で生成されます。</p>
|
||||
<p>これは全 VRM の FastSpringBone を集め、バッファの構築や、 FastSpringBone の実行タイミングの制御などを行う GameObject です。</p>
|
||||
<p>明示的に破棄を行いたい場合は <code class="docutils literal notranslate"><span class="pre">FastSpringBoneService.Free</span></code> を呼んでください。</p>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
||||
<div class="sphinxsidebarwrapper">
|
||||
<ul>
|
||||
<li><a href="../../en/implementation/fast_spring_bone.html">English</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3><a href="../index.html">目次</a></h3>
|
||||
<ul>
|
||||
<li><a class="reference internal" href="#">FastSpringBoneについて</a><ul>
|
||||
<li><a class="reference internal" href="#id1">概要</a></li>
|
||||
<li><a class="reference internal" href="#vrm-1-0-fastspringbone">VRM 1.0 での FastSpringBone の概要</a></li>
|
||||
<li><a class="reference internal" href="#vrm-0-x-fastspringbone">VRM 0.x での FastSpringBone の概要</a></li>
|
||||
<li><a class="reference internal" href="#id2">VRM 0.x での FastSpringBone の導入方法</a></li>
|
||||
<li><a class="reference internal" href="#burst">Burstの導入について</a></li>
|
||||
<li><a class="reference internal" href="#fastspringboneservice">FastSpringBoneServiceについて</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h4>前のトピックへ</h4>
|
||||
<p class="topless"><a href="coordinate.html"
|
||||
title="前の章へ">座標系の変換</a></p>
|
||||
<h4>次のトピックへ</h4>
|
||||
<p class="topless"><a href="../vrm1/vrm1_runtime_load.html"
|
||||
title="次の章へ">RuntimeLoad</a></p>
|
||||
<div role="note" aria-label="source link">
|
||||
<h3>このページ</h3>
|
||||
<ul class="this-page-menu">
|
||||
<li><a href="../_sources/implementation/fast_spring_bone.md.txt"
|
||||
rel="nofollow">ソースコードを表示</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="searchbox" style="display: none" role="search">
|
||||
<h3 id="searchlabel">クイック検索</h3>
|
||||
<div class="searchformwrapper">
|
||||
<form class="search" action="../search.html" method="get">
|
||||
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
|
||||
<input type="submit" value="検索" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script>$('#searchbox').show(0);</script>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
<div class="related" role="navigation" aria-label="related navigation">
|
||||
<h3>ナビゲーション</h3>
|
||||
<ul>
|
||||
<li class="right" style="margin-right: 10px">
|
||||
<a href="../genindex.html" title="総合索引"
|
||||
>索引</a></li>
|
||||
<li class="right" >
|
||||
<a href="../vrm1/vrm1_runtime_load.html" title="RuntimeLoad"
|
||||
>次へ</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="coordinate.html" title="座標系の変換"
|
||||
>前へ</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">UniVRM Programming Document ドキュメント</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">FastSpringBoneについて</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="footer" role="contentinfo">
|
||||
© Copyright 2021, VRM Consortium.
|
||||
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.2.0.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -98,6 +98,7 @@
|
||||
<li class="toctree-l1"><a class="reference internal" href="implementation/runtime_resource_management.html">Runtime のリソース管理について</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="implementation/texture_manipulation.html">Texture関連</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="implementation/coordinate.html">座標系の変換</a></li>
|
||||
<li class="toctree-l1"><a class="reference internal" href="implementation/fast_spring_bone.html">FastSpringBoneについて</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<section id="samples">
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
# Project: UniVRM Programming Document
|
||||
# Version:
|
||||
# The remainder of this file is compressed using zlib.
|
||||
xڍ<EFBFBD><EFBFBD>n<EFBFBD>@<10><>~
|
||||
<1F><><EFBFBD>i<EFBFBD>r+j
|
||||
H<EFBFBD>T<EFBFBD>Wˉ<57><CB89>U<EFBFBD>k<EFBFBD>א<EFBFBD>HU!<21>(<28><><EFBFBD>-ATDB<05>B+f<1B><>x<04>^;q<12><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>7<EFBFBD>ݙ<EFBFBD><DD99><EFBFBD><EFBFBD><EFBFBD>r<EFBFBD><72><EFBFBD><EFBFBD>
|
||||
,<2C><><EFBFBD>b><3E><>i<EFBFBD>4<EFBFBD>[ӭ<>x}<7D><><EFBFBD>|
|
||||
<EFBFBD>n(qi`<60>JZ<4A>Q<EFBFBD><51><EFBFBD>/<2F><><EFBFBD><EFBFBD>KZ<4B>II<49><49>3ZiP<69><50><EFBFBD>SJ<53>X<><58><EFBFBD>R<EFBFBD>0<EFBFBD>0|Jd<4A><64><EFBFBD><EFBFBD>Z<EFBFBD><5A><EFBFBD><EFBFBD>xc|B<>NK<4E><4B><EFBFBD><18><><EFBFBD><EFBFBD>x<EFBFBD>Cf]<0B><>&Ʀ<>#";%<25>FA<46>M"<22><><EFBFBD><EFBFBD>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD>H٩<48><D9A9><EFBFBD><EFBFBD><12><>ΐ@ <03>ѡ<EFBFBD><D1A1>KTq<54>j<EFBFBD>.xۇ<78><DB87><1F>R<EFBFBD><52><EFBFBD><EFBFBD>G/?==<3D>2h<32><68>!*<2A>q<EFBFBD><71>Ǯ<03><><04>L`a<19><>xB<><42>V<EFBFBD><56>qV<71>W<EFBFBD><57><EFBFBD><EFBFBD>u<EFBFBD><75>/<2F>x<EFBFBD>{<7B><><17>\<0B>&<26>p<><70><EFBFBD>@2eKV<03>-yn<79><6E><EFBFBD><EFBFBD>\ =<3D><1A>*h<><68>V㰵<56><E3B0B5>VNi<4E><69>V<EFBFBD><56>ʧ<EFBFBD>z0<7A>I@<40>v<EFBFBD><76>xK!Ir^<5E>*<2A><><EFBFBD><EFBFBD>n<EFBFBD> <09>^<5E>8<EFBFBD>6\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>d<EFBFBD><64>-U<><55>E<EFBFBD>O"<22>PIhc<68><9 5Z=<3D><><EFBFBD><EFBFBD>Mr6<>-7٭<37>ӆ<EFBFBD>(<28>
|
||||
xڍ<EFBFBD>MO<EFBFBD>@<10><><EFBFBD>><3E><03>! <09><><EFBFBD><EFBFBD>H(|\-'^l<0B>k<EFBFBD><6B>6<EFBFBD>5<EFBFBD>Rq(UU<55>R$D<><44>**RE<52>B<0B><>Y<EFBFBD><59>[B<7F>^;v'<27>i<>y癉wg
|
||||
<EFBFBD>3sK<EFBFBD>,<2C><><EFBFBD>|<7C>WF<14>k<EFBFBD><6B><EFBFBD><EFBFBD>F<EFBFBD><46><EFBFBD>9pO<70>rEGդ<47><D5A4><17><><EFBFBD><EFBFBD><04>'<27><0B>}#<23><><EFBFBD>~<12> <20><>T<EFBFBD> ~K<><19>ۜՐ@<40>ghbh%T<19><><EFBFBD>~<7E><><1A>&<26><>cJ"<02><><EFBFBD>K|D<>5<EFBFBD><35>`ld2;"<22><13><>U7<55><37>R0<1D>U|<7C>))?<11><14>L@<40><>i(#`<60>*4<>x<EFBFBD>.F<><46><EFBFBD>w<><77>y<EFBFBD><79>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><>N<EFBFBD><4E>
|
||||
<EFBFBD>j#hU<68><55>@b<><62><EFBFBD><EFBFBD>@<40><>:0<><30><EFBFBD>q<EFBFBD><04>%<25>F<EFBFBD><46><EFBFBD>41V<31>W<EFBFBD><57><EFBFBD><EFBFBD>u<EFBFBD><75>k<EFBFBD>d<EFBFBD>}<7D>1<EFBFBD><31>m$ئ<><1A>P<EFBFBD>F?x<><78>J,Pu<50>g<>F<EFBFBD>g<EFBFBD>zB<7A>/H<>S<EFBFBD><53><EFBFBD>HՁ`:V <08>h<EFBFBD><68>o<EFBFBD>S<EFBFBD>Ok<><6B><0C><><EFBFBD>蛼<EFBFBD><E89BBC><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_?<3F>^<5E>c<EFBFBD>@<40>t4_<34><5F>H<EFBFBD><48>u<EFBFBD><75>"w{<7B><><EFBFBD><EFBFBD>\<5C><>CN<43><4E><EFBFBD>u<><75><EFBFBD>/[P<>D]<5D><1F><><EFBFBD>%<25>+<2B><>PJ<50><18>2<06><><EFBFBD>uR<75>$<24><><EFBFBD><EFBFBD><EFBFBD>,<2C>!S,mү/Ha<48><1B>q8<71><38>nc<6E>}<7D><><EFBFBD><EFBFBD><03>.W<><02><><EFBFBD>6<10><><EFBFBD> `<1A>uO<0E><><EFBFBD>}V<>{j<>ct3!<21><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>f2C!u*/5`H<>"<22> <20><>g<>Y<EFBFBD><59><EFBFBD><EFBFBD>齔+<2B>7<EFBFBD>o<EFBFBD><6F><EFBFBD><EFBFBD>]vyһ<79>F<EFBFBD>\n0<6E>˓N<CB93><4E>"<22><>=<3D><><EFBFBD><EFBFBD>N<EFBFBD><4E>ti<0E>vyҩނ<D2A9>36T<36>F&]t<><13><><0B><><EFBFBD><EFBFBD>i˾F<CBBE><46><EFBFBD><EFBFBD><0F>hw<68>ʃ<EFBFBD><CA83>z?t<01>tC$<24>tZ<74>A<EFBFBD><1D>7<EFBFBD><37>ZԻ<>nC<6E><01><>b Aq貀<71><E8B280><0E>;<3B><>J<0C>A<EFBFBD>)<29>t<08>E<EFBFBD><45><EFBFBD><<3C>b<EFBFBD><62><EFBFBD>hP<68><50>G<EFBFBD><47>qo<71>T<EFBFBD><54>AN
|
||||
File diff suppressed because one or more lines are too long
@@ -17,7 +17,7 @@
|
||||
<link rel="index" title="索引" href="../genindex.html" />
|
||||
<link rel="search" title="検索" href="../search.html" />
|
||||
<link rel="next" title="🚧Humanoid" href="vrm1_get_humanoid.html" />
|
||||
<link rel="prev" title="座標系の変換" href="../implementation/coordinate.html" />
|
||||
<link rel="prev" title="FastSpringBoneについて" href="../implementation/fast_spring_bone.html" />
|
||||
</head><body>
|
||||
<div class="related" role="navigation" aria-label="related navigation">
|
||||
<h3>ナビゲーション</h3>
|
||||
@@ -29,7 +29,7 @@
|
||||
<a href="vrm1_get_humanoid.html" title="🚧Humanoid"
|
||||
accesskey="N">次へ</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="../implementation/coordinate.html" title="座標系の変換"
|
||||
<a href="../implementation/fast_spring_bone.html" title="FastSpringBoneについて"
|
||||
accesskey="P">前へ</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">UniVRM Programming Document ドキュメント</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">RuntimeLoad</a></li>
|
||||
@@ -110,8 +110,8 @@
|
||||
|
||||
|
||||
<h4>前のトピックへ</h4>
|
||||
<p class="topless"><a href="../implementation/coordinate.html"
|
||||
title="前の章へ">座標系の変換</a></p>
|
||||
<p class="topless"><a href="../implementation/fast_spring_bone.html"
|
||||
title="前の章へ">FastSpringBoneについて</a></p>
|
||||
<h4>次のトピックへ</h4>
|
||||
<p class="topless"><a href="vrm1_get_humanoid.html"
|
||||
title="次の章へ">🚧Humanoid</a></p>
|
||||
@@ -146,7 +146,7 @@
|
||||
<a href="vrm1_get_humanoid.html" title="🚧Humanoid"
|
||||
>次へ</a> |</li>
|
||||
<li class="right" >
|
||||
<a href="../implementation/coordinate.html" title="座標系の変換"
|
||||
<a href="../implementation/fast_spring_bone.html" title="FastSpringBoneについて"
|
||||
>前へ</a> |</li>
|
||||
<li class="nav-item nav-item-0"><a href="../index.html">UniVRM Programming Document ドキュメント</a> »</li>
|
||||
<li class="nav-item nav-item-this"><a href="">RuntimeLoad</a></li>
|
||||
|
||||
Reference in New Issue
Block a user