add particle emission from right hand
This commit is contained in:
parent
533ee9c14a
commit
9d23608998
11 changed files with 5211 additions and 23 deletions
|
@ -58,6 +58,7 @@
|
|||
<ItemGroup>
|
||||
<Compile Include="Assets\Scenes\Examples\Composition\script\BallMapping.cs" />
|
||||
<Compile Include="Assets\Scenes\Examples\Composition\script\RmsAnalyzer.cs" />
|
||||
<Compile Include="Assets\Scenes\Examples\KinectSkeleton\script\RightHandFire.cs" />
|
||||
<Compile Include="Assets\Scenes\Examples\KinectSkeleton\script\RightHandMarker.cs" />
|
||||
<Compile Include="Assets\Scenes\Examples\KinectSkeleton\script\Skeleton.cs" />
|
||||
<Compile Include="Assets\Scenes\Examples\LevelThreshold\script\ConstructionColumnBehaviour.cs" />
|
||||
|
|
|
@ -8,9 +8,9 @@ Material:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: IRPanel
|
||||
m_Shader: {fileID: -6465566751694194690, guid: ab1500b418a77404a9a159988c31409e,
|
||||
m_Shader: {fileID: -6465566751694194690, guid: 3fda0757d38aed64983cb6a38f936c8d,
|
||||
type: 3}
|
||||
m_ShaderKeywords: _NORMALMAP_TANGENT_SPACE
|
||||
m_ShaderKeywords: _ALBEDOCONTRIBUTION _NORMALMAP_TANGENT_SPACE
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
|
@ -23,6 +23,13 @@ Material:
|
|||
- TransparentDepthPrepass
|
||||
- TransparentDepthPostpass
|
||||
- TransparentBackface
|
||||
- DBufferMesh_M
|
||||
- DBufferMesh_AO
|
||||
- DBufferMesh_MAO
|
||||
- Mesh_Emissive
|
||||
- DBufferMesh_MS
|
||||
- DBufferMesh_AOS
|
||||
- DBufferMesh_MAOS
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
|
@ -90,6 +97,10 @@ Material:
|
|||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DistortionVectorMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
|
@ -126,6 +137,10 @@ Material:
|
|||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MyTexture:
|
||||
m_Texture: {fileID: 2800000, guid: 965d36ee5de48ea459184ffdd20071a1, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _NormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
|
@ -228,6 +243,7 @@ Material:
|
|||
- _AORemapMin: 0
|
||||
- _ATDistance: 1
|
||||
- _AlbedoAffectEmissive: 0
|
||||
- _AlbedoMode: 1
|
||||
- _AlphaCutoff: 0.5
|
||||
- _AlphaCutoffEnable: 0
|
||||
- _AlphaCutoffPostpass: 0.5
|
||||
|
@ -249,9 +265,15 @@ Material:
|
|||
- _CarPaint2_FlakeTiling: 1
|
||||
- _CarPaint2_LobeCount: 0
|
||||
- _CoatMask: 0
|
||||
- _ColorMask: 15
|
||||
- _CullMode: 2
|
||||
- _CullModeForward: 2
|
||||
- _Cutoff: 0.5
|
||||
- _DecalBlend: 0.5
|
||||
- _DecalMaskMapBlueScale: 1
|
||||
- _DecalMeshDepthBias: 0
|
||||
- _DecalStencilRef: 8
|
||||
- _DecalStencilWriteMask: 8
|
||||
- _DepthOffsetEnable: 0
|
||||
- _DetailAlbedoScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
|
@ -279,7 +301,9 @@ Material:
|
|||
- _DistortionVectorScale: 2
|
||||
- _DoubleSidedEnable: 0
|
||||
- _DoubleSidedNormalMode: 1
|
||||
- _DrawOrder: 0
|
||||
- _DstBlend: 0
|
||||
- _Emissive: 0
|
||||
- _EmissiveColorMode: 1
|
||||
- _EmissiveExposureWeight: 1
|
||||
- _EmissiveIntensity: 1
|
||||
|
@ -309,11 +333,18 @@ Material:
|
|||
- _IridescenceMask: 1
|
||||
- _IridescenceThickness: 1
|
||||
- _LinkDetailsWithBase: 0
|
||||
- _MaskBlendMode: 4
|
||||
- _MaskBlendSrc: 1
|
||||
- _MaskmapAO: 0
|
||||
- _MaskmapMetal: 0
|
||||
- _MaskmapSmoothness: 1
|
||||
- _MaterialID: 1
|
||||
- _MaterialTilingU: 1
|
||||
- _MaterialTilingV: 1
|
||||
- _Metallic: 0
|
||||
- _MetallicScale: 1
|
||||
- _Mode: 0
|
||||
- _NormalBlendSrc: 0
|
||||
- _NormalMapSpace: 0
|
||||
- _NormalScale: 1
|
||||
- _OcclusionStrength: 1
|
||||
|
@ -338,6 +369,10 @@ Material:
|
|||
- _SpecularAAThreshold: 0.2
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _Stencil: 0
|
||||
- _StencilComp: 8
|
||||
- _StencilOp: 0
|
||||
- _StencilReadMask: 255
|
||||
- _StencilRef: 2
|
||||
- _StencilRefDepth: 0
|
||||
- _StencilRefDistortionVec: 64
|
||||
|
@ -348,6 +383,7 @@ Material:
|
|||
- _StencilWriteMaskDistortionVec: 64
|
||||
- _StencilWriteMaskGBuffer: 51
|
||||
- _StencilWriteMaskMV: 176
|
||||
- _Strength: 0.2
|
||||
- _SubsurfaceMask: 1
|
||||
- _SupportDecals: 1
|
||||
- _SurfaceType: 0
|
||||
|
@ -368,6 +404,7 @@ Material:
|
|||
- _UVSec: 0
|
||||
- _UseEmissiveIntensity: 0
|
||||
- _UseShadowThreshold: 0
|
||||
- _UseUIAlphaClip: 0
|
||||
- _ZTestDepthEqualForOpaque: 3
|
||||
- _ZTestGBuffer: 4
|
||||
- _ZTestModeDistortion: 4
|
||||
|
@ -389,6 +426,7 @@ Material:
|
|||
- _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0}
|
||||
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissiveColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _EmissiveColorHDR: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _EmissiveColorLDR: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _InvPrimScale: {r: 1, g: 1, b: 0, a: 0}
|
||||
- _IridescenceThicknessRemap: {r: 0, g: 1, b: 0, a: 0}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3fda0757d38aed64983cb6a38f936c8d
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c59bb863e3a33f146beb84897d3b7255
|
||||
VisualEffectImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -168,7 +168,7 @@ MonoBehaviour:
|
|||
skeletonDataReceived:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 479263792}
|
||||
- m_Target: {fileID: 839221375}
|
||||
m_MethodName: OnSkeletonDataReceived
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
|
@ -179,7 +179,7 @@ MonoBehaviour:
|
|||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
- m_Target: {fileID: 839221375}
|
||||
- m_Target: {fileID: 479263792}
|
||||
m_MethodName: OnSkeletonDataReceived
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
|
@ -199,12 +199,13 @@ Transform:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 238320194}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 839221371}
|
||||
- {fileID: 583502374}
|
||||
- {fileID: 479263793}
|
||||
- {fileID: 1806371279}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -224,7 +225,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!114 &479263792
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -339,7 +340,7 @@ Transform:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 583502370}
|
||||
m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
|
||||
m_LocalPosition: {x: -12.72, y: 0, z: 22.9}
|
||||
m_LocalPosition: {x: -25, y: 10, z: 22.9}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 238320196}
|
||||
|
@ -424,7 +425,7 @@ MeshFilter:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 839221370}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!114 &839221374
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -434,7 +435,7 @@ MonoBehaviour:
|
|||
m_GameObject: {fileID: 839221370}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c728061aa76161440af080a260af7610, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: 8988bed3c73b4ed6bd0e7838efada721, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &839221375
|
||||
|
@ -465,6 +466,144 @@ MonoBehaviour:
|
|||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
- m_Target: {fileID: 1806371280}
|
||||
m_MethodName: OnJointDataReceived
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!1 &1806371276
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1806371279}
|
||||
- component: {fileID: 1806371278}
|
||||
- component: {fileID: 1806371277}
|
||||
- component: {fileID: 1806371280}
|
||||
m_Layer: 0
|
||||
m_Name: Emiiter
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!2083052967 &1806371277
|
||||
VisualEffect:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1806371276}
|
||||
m_Enabled: 1
|
||||
m_Asset: {fileID: 8926484042661614526, guid: c59bb863e3a33f146beb84897d3b7255, type: 3}
|
||||
m_StartSeed: 0
|
||||
m_ResetSeedOnPlay: 1
|
||||
m_PropertySheet:
|
||||
m_Float:
|
||||
m_Array: []
|
||||
m_Vector2f:
|
||||
m_Array: []
|
||||
m_Vector3f:
|
||||
m_Array:
|
||||
- m_Value: {x: 0, y: 0, z: 0}
|
||||
m_Name: RightHandVector
|
||||
m_Overridden: 1
|
||||
- m_Value: {x: 0, y: 0, z: 0}
|
||||
m_Name: EmissionVector
|
||||
m_Overridden: 1
|
||||
- m_Value: {x: 0, y: 0, z: 0}
|
||||
m_Name: SourcePoisiotn
|
||||
m_Overridden: 1
|
||||
m_Vector4f:
|
||||
m_Array: []
|
||||
m_Uint:
|
||||
m_Array: []
|
||||
m_Int:
|
||||
m_Array: []
|
||||
m_Matrix4x4f:
|
||||
m_Array: []
|
||||
m_AnimationCurve:
|
||||
m_Array: []
|
||||
m_Gradient:
|
||||
m_Array: []
|
||||
m_NamedObject:
|
||||
m_Array: []
|
||||
m_Bool:
|
||||
m_Array: []
|
||||
--- !u!73398921 &1806371278
|
||||
VFXRenderer:
|
||||
m_ObjectHideFlags: 2
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1806371276}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 0
|
||||
m_LightProbeUsage: 0
|
||||
m_ReflectionProbeUsage: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!4 &1806371279
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1806371276}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 238320196}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1806371280
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1806371276}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c728061aa76161440af080a260af7610, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
visualEffect: {fileID: 1806371277}
|
||||
--- !u!1 &1931119204
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -543,7 +682,7 @@ Transform:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1931119204}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.Experimental.VFX;
|
||||
|
||||
namespace cylvester
|
||||
{
|
||||
public class RightHandFire : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private VisualEffect visualEffect;
|
||||
|
||||
private Vector3 previousPosition_;
|
||||
private float previousCallback_;
|
||||
|
||||
public void OnJointDataReceived(Windows.Kinect.Joint joint)
|
||||
{
|
||||
var newPosition = new Vector3(joint.Position.X * 10f, joint.Position.Y * 10f, joint.Position.Z * 10f);
|
||||
var delta = newPosition - previousPosition_;
|
||||
|
||||
var vector = delta/(Time.time - previousCallback_);
|
||||
previousCallback_ = Time.time;
|
||||
previousPosition_ = newPosition;
|
||||
|
||||
visualEffect.SetVector3("EmissionVector", vector);
|
||||
visualEffect.SetVector3("SourcePosition", newPosition);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c728061aa76161440af080a260af7610
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,12 +1,14 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
|
||||
namespace cylvester
|
||||
{
|
||||
public class RightHandMarker : MonoBehaviour
|
||||
{
|
||||
private float previousCallback_;
|
||||
|
||||
public void OnJointDataReceived(Windows.Kinect.Joint joint)
|
||||
{
|
||||
transform.position = new Vector3(joint.Position.X * 10f, joint.Position.Y * 10f, joint.Position.Z * 10f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,11 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c728061aa76161440af080a260af7610
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
fileFormatVersion: 2
|
||||
guid: 8988bed3c73b4ed6bd0e7838efada721
|
||||
timeCreated: 1572797873
|
Loading…
Reference in a new issue