989onan bot (talk | contribs) Automated: update 'StencilComparison' description,'StencilOperation' description,'StencilID' description,'StencilWriteMask' description,'StencilReadMask' description,'RenderQueue' description,'BlendMode' description,'Sidedness' description,'ZWrite' description,'ZTest' description,'OffsetFactor' description,'OffsetUnits' description, |
add info I hope is correct |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
{{Infobox Component | {{Infobox Component | ||
|Image=DepthProjectionMaterialComponent.png | |Image=DepthProjectionMaterialComponent.png | ||
|Name=Depth Projection Material | |Name=Depth Projection Material | ||
}} | }} | ||
The '''DepthProjectionMaterial''' is commonly used when importing depth videos and acts as a material that displaces vertices in 3D. | |||
<!--T:2--> | <!--T:2--> | ||
Line 13: | Line 12: | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}} | |HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}} | ||
|_shader|{{RootFieldType|AssetRef`1|[[Type:Shader|Shader]]}}|TypeAdv1=true| | |_shader|{{RootFieldType|AssetRef`1|[[Type:Shader|Shader]]}}|TypeAdv1=true| Internal. | ||
|Color|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv2=true| | |Color|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv2=true| The surface color texture of the material. | ||
|Depth|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv3=true| | |Depth|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv3=true| the texture used to displace vertices based on intensity. | ||
|DepthEncoding|DepthEncoding| | |DepthEncoding|DepthEncoding| How the depth data is encoded into <code>Depth</code> | ||
|ColorTextureOffset|Float2| | |ColorTextureOffset|Float2| the texture uv offset of <code>Color</code>. | ||
|ColorTextureScale|Float2| | |ColorTextureScale|Float2| the texture uv scale of <code>Color</code>. | ||
|DepthTextureOffset|Float2| | |DepthTextureOffset|Float2| the texture uv offset of <code>Depth</code>. | ||
|DepthTextureScale|Float2| | |DepthTextureScale|Float2| the texture uv scale of <code>Depth</code>. | ||
|DepthFrom|Float| | |DepthFrom|Float| the minimum depth distance. | ||
|DepthTo|Float| | |DepthTo|Float| the maximum depth distance. | ||
|FieldOfView|Float2| | |FieldOfView|Float2| the field of view of the <code>Depth</code> data. | ||
|NearClip|Float| | |NearClip|Float| the near clip of the <code>Depth</code> data. | ||
|FarClip|Float| | |FarClip|Float| the far clip of the <code>Depth</code> data. | ||
|DiscardThreshold|Float| | |DiscardThreshold|Float| how strong the depth data can be till its cut off. | ||
|DiscardOffset|Float| | |DiscardOffset|Float| how much to offset the <code>DiscardThreshold</code>. | ||
|BlendMode|BlendMode|{{Template:Material_BlendMode_Desc}} | |BlendMode|BlendMode| {{Template:Material_BlendMode_Desc}} | ||
|ZWrite|ZWrite|{{Template:Material_ZWrite_Desc}} | |ZWrite|ZWrite|{{Template:Material_ZWrite_Desc}} | ||
}} | }} | ||
Line 38: | Line 37: | ||
<!--T:4--> | <!--T:4--> | ||
== Examples == | == Examples == | ||
{{stub}} | |||
<!--T:5--> | <!--T:5--> | ||
== | == See Also == | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Depth Projection Material]] | [[Category:Components{{#translation:}}|Depth Projection Material]] | ||
[[Category:Materials:Unlit{{#translation:}}|Depth Projection Material]] | [[Category:Materials:Unlit{{#translation:}}|Depth Projection Material]] | ||
[[Category:Materials{{#translation:}}|Depth Projection Material]] | [[Category:Materials{{#translation:}}|Depth Projection Material]] | ||
[[Category:Components:Assets:Materials:Unlit{{#translation:}}|Depth Projection Material]] | [[Category:Components:Assets:Materials:Unlit{{#translation:}}|Depth Projection Material]] |
Latest revision as of 20:35, 15 January 2025
Component image 
Depth Projection Material component as seen in the Scene Inspector

The DepthProjectionMaterial is commonly used when importing depth videos and acts as a material that displaces vertices in 3D.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
HighPriorityIntegration
|
Bool | If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes. |
_shader
|
Shader | Internal. |
Color
|
ITexture2D | The surface color texture of the material. |
Depth
|
ITexture2D | the texture used to displace vertices based on intensity. |
DepthEncoding
|
DepthEncoding | How the depth data is encoded into Depth
|
ColorTextureOffset
|
Float2 | the texture uv offset of Color .
|
ColorTextureScale
|
Float2 | the texture uv scale of Color .
|
DepthTextureOffset
|
Float2 | the texture uv offset of Depth .
|
DepthTextureScale
|
Float2 | the texture uv scale of Depth .
|
DepthFrom
|
Float | the minimum depth distance. |
DepthTo
|
Float | the maximum depth distance. |
FieldOfView
|
Float2 | the field of view of the Depth data.
|
NearClip
|
Float | the near clip of the Depth data.
|
FarClip
|
Float | the far clip of the Depth data.
|
DiscardThreshold
|
Float | how strong the depth data can be till its cut off. |
DiscardOffset
|
Float | how much to offset the DiscardThreshold .
|
BlendMode
|
BlendMode | How to blend this material's colors vs what it rendered on top of. |
ZWrite
|
ZWrite | whether this material should respect the distance it is from the camera. |
Usage
The material uses a file that has a greyscale video (representing depth at each pixel) and a normal color video in order to "overlay" the color info on top of the 3D distortion created by the greyscale input. There are texture2D slots for depth and color, meaning two separate files could be used given the DepthTextureOffset property is set to 0.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.