mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 20:08:53 -05:00
@@ -4,8 +4,8 @@ namespace UniGLTF
|
||||
public static partial class UniGLTFVersion
|
||||
{
|
||||
public const int MAJOR = 2;
|
||||
public const int MINOR = 43;
|
||||
public const int MINOR = 44;
|
||||
public const int PATCH = 0;
|
||||
public const string VERSION = "2.43.0";
|
||||
public const string VERSION = "2.44.0";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace UniGLTF.GltfViewer
|
||||
#if UNITY_STANDALONE_WIN
|
||||
return VRMShaders.PathObject.FromFullPath(FileDialogForWindows.FileDialog(title, extensions));
|
||||
#else
|
||||
Debug.LogWarning("Non-Windows runtime file dialogs are not yet implemented.");
|
||||
UnityEngine.Debug.LogWarning("Non-Windows runtime file dialogs are not yet implemented.");
|
||||
return default;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.vrmc.gltf",
|
||||
"version": "0.107.0",
|
||||
"version": "0.108.0",
|
||||
"displayName": "UniGLTF",
|
||||
"description": "GLTF importer and exporter",
|
||||
"unity": "2019.4",
|
||||
@@ -11,7 +11,7 @@
|
||||
"name": "VRM Consortium"
|
||||
},
|
||||
"dependencies": {
|
||||
"com.vrmc.vrmshaders": "0.107.0",
|
||||
"com.vrmc.vrmshaders": "0.108.0",
|
||||
"com.unity.modules.animation": "1.0.0"
|
||||
},
|
||||
"samples": [
|
||||
|
||||
@@ -4,8 +4,8 @@ namespace VRM
|
||||
public static partial class VRMVersion
|
||||
{
|
||||
public const int MAJOR = 0;
|
||||
public const int MINOR = 107;
|
||||
public const int MINOR = 108;
|
||||
public const int PATCH = 0;
|
||||
public const string VERSION = "0.107.0";
|
||||
public const string VERSION = "0.108.0";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,11 +332,11 @@ namespace VRM.SimpleViewer
|
||||
{
|
||||
if (useUrp)
|
||||
{
|
||||
return new GltfUrpMaterialDescriptorGenerator();
|
||||
return new UrpGltfMaterialDescriptorGenerator();
|
||||
}
|
||||
else
|
||||
{
|
||||
return new GltfMaterialDescriptorGenerator();
|
||||
return new BuiltInGltfMaterialDescriptorGenerator();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -344,11 +344,11 @@ namespace VRM.SimpleViewer
|
||||
{
|
||||
if (useUrp)
|
||||
{
|
||||
return new VRM.VRMUrpMaterialDescriptorGenerator(vrm);
|
||||
return new VRM.UrpVrmMaterialDescriptorGenerator(vrm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return new VRM.VRMMaterialDescriptorGenerator(vrm);
|
||||
return new VRM.BuiltInVrmMaterialDescriptorGenerator(vrm);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.vrmc.univrm",
|
||||
"version": "0.107.0",
|
||||
"version": "0.108.0",
|
||||
"displayName": "VRM",
|
||||
"description": "VRM importer",
|
||||
"unity": "2019.4",
|
||||
@@ -14,8 +14,8 @@
|
||||
"name": "VRM Consortium"
|
||||
},
|
||||
"dependencies": {
|
||||
"com.vrmc.vrmshaders": "0.107.0",
|
||||
"com.vrmc.gltf": "0.107.0",
|
||||
"com.vrmc.vrmshaders": "0.108.0",
|
||||
"com.vrmc.gltf": "0.108.0",
|
||||
"com.unity.ugui": "1.0.0"
|
||||
},
|
||||
"samples": [
|
||||
|
||||
@@ -126,7 +126,6 @@ namespace UniVRM10.VRM10Viewer
|
||||
/// <summary>
|
||||
/// from v0.104
|
||||
/// </summary>
|
||||
/// <param name="src"></param>
|
||||
public void UpdateControlRigImplicit(Animator src)
|
||||
{
|
||||
var dst = m_controller.GetComponent<Animator>();
|
||||
@@ -159,6 +158,40 @@ namespace UniVRM10.VRM10Viewer
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// from v0.108
|
||||
/// </summary>
|
||||
public void UpdateControlRigImplicit(UniHumanoid.Humanoid src)
|
||||
{
|
||||
var dst = m_controller.GetComponent<Animator>();
|
||||
|
||||
foreach (HumanBodyBones bone in CachedEnum.GetValues<HumanBodyBones>())
|
||||
{
|
||||
if (bone == HumanBodyBones.LastBone)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var boneTransform = dst.GetBoneTransform(bone);
|
||||
if (boneTransform == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var bvhBone = src.GetBoneTransform(bone);
|
||||
if (bvhBone != null)
|
||||
{
|
||||
// set normalized pose
|
||||
boneTransform.localRotation = bvhBone.localRotation;
|
||||
if (bone == HumanBodyBones.Hips)
|
||||
{
|
||||
// TODO: hips position scaling ?
|
||||
boneTransform.localPosition = bvhBone.localPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void TPoseControlRig()
|
||||
{
|
||||
var controlRig = m_controller.Runtime.ControlRig;
|
||||
|
||||
@@ -297,11 +297,11 @@ namespace UniVRM10.VRM10Viewer
|
||||
{
|
||||
if (useUrp)
|
||||
{
|
||||
return new Vrm10UrpMaterialDescriptorGenerator();
|
||||
return new UrpVrm10MaterialDescriptorGenerator();
|
||||
}
|
||||
else
|
||||
{
|
||||
return new Vrm10MaterialDescriptorGenerator();
|
||||
return new BuiltInVrm10MaterialDescriptorGenerator();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,11 +309,11 @@ namespace UniVRM10.VRM10Viewer
|
||||
{
|
||||
if (useUrp)
|
||||
{
|
||||
return new GltfUrpMaterialDescriptorGenerator();
|
||||
return new UrpGltfMaterialDescriptorGenerator();
|
||||
}
|
||||
else
|
||||
{
|
||||
return new GltfMaterialDescriptorGenerator();
|
||||
return new BuiltInGltfMaterialDescriptorGenerator();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.vrmc.vrm",
|
||||
"version": "0.107.0",
|
||||
"version": "0.108.0",
|
||||
"displayName": "VRM-1.0",
|
||||
"description": "VRM-1.0 importer",
|
||||
"unity": "2019.4",
|
||||
@@ -14,8 +14,8 @@
|
||||
"name": "VRM Consortium"
|
||||
},
|
||||
"dependencies": {
|
||||
"com.vrmc.vrmshaders": "0.107.0",
|
||||
"com.vrmc.gltf": "0.107.0"
|
||||
"com.vrmc.vrmshaders": "0.108.0",
|
||||
"com.vrmc.gltf": "0.108.0"
|
||||
},
|
||||
"samples": [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.vrmc.vrmshaders",
|
||||
"version": "0.107.0",
|
||||
"version": "0.108.0",
|
||||
"displayName": "VRM Shaders",
|
||||
"description": "VRM Shaders",
|
||||
"unity": "2019.4",
|
||||
|
||||
Reference in New Issue
Block a user