Skip to content

Added documents for migration to URP/HDRP, and other improvements. #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5b73f20
Fix camera limitation due to jpg encoding (#171)
alexandrefch Oct 7, 2024
739fdb7
Update to test unity2020.3.x to 2022.3.x for beta/2.x.x (#182)
RyodoTanaka Oct 9, 2024
d2b31f1
Update to latest master README (#184)
RyodoTanaka Oct 9, 2024
c4e56f0
fixed depth camera texture pixel value in Color2DepthCamera.shader
Bob-Eric Nov 16, 2024
7ff9315
Rewrite the Color2DepthCamera shader with Shader Graph to make the de…
Bob-Eric Nov 17, 2024
e4f1c15
Add documents and related images migrated to URP/HDRP
Bob-Eric Nov 17, 2024
ba45371
TODO: fix depth publish in ROS
Bob-Eric Nov 17, 2024
39448e1
Merge branch 'beta/v2.x.x' into dev/fix_depth_ROS
Bob-Eric Nov 18, 2024
37205d6
Added Unity scenes for Demo_RGBDCamera and Demo_RGBDCamera_ros; fixed…
Bob-Eric Nov 18, 2024
560495a
Updated ImageMsgSerializer to flip images and support rgb8 and 32fc1 …
Bob-Eric Nov 18, 2024
29e0c9a
Removed distance inversion from DepthBufferLidar shader and related …
Bob-Eric Nov 19, 2024
4e31334
Holds the point cloud material reference in PointUtilitiesSO and rep…
Bob-Eric Nov 19, 2024
bbcb79c
Added ImageEncodeJob to speed up Msg encoding; updated Schedule's Bat…
Bob-Eric Nov 19, 2024
eb29f5a
Refactored imageEncodeJob to update namespaces and merge target textu…
Bob-Eric Nov 20, 2024
a2b6711
Updated several prefabs to add PointUtilitiesSO references; fixed ca…
Bob-Eric Nov 20, 2024
58c7e1d
Add conditional compilation to TFMessageMsgSerializer for ROS2
Bob-Eric Nov 20, 2024
3e9cf14
Added tf and clock examples
Bob-Eric Jan 2, 2025
a2e8dff
feat: add legacy depth camera shader; fix: depth camera point cloud v…
Bob-Eric Feb 27, 2025
b7a4c2c
fix: use RGBA texture to support opengl
Bob-Eric Mar 3, 2025
a8c2290
Merge branch 'master' into dev/upstream
Bob-Eric Mar 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .image/HDRP_ShaderGraph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .image/HDRP_convert_materials.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .image/HDRP_custom_pass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .image/HDRP_final_result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .image/URP_ShaderGraph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .image/URP_camera_renderer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .image/URP_convert_materials.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .image/URP_final_result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .image/URP_post_process.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .image/URP_render_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Assets/Resources/ROSConnectionPrefab.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5759000335426716240}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8497029536680012343
MonoBehaviour:
Expand All @@ -50,7 +50,7 @@ MonoBehaviour:
m_KeepaliveTime: 1
m_NetworkTimeoutSeconds: 2
m_SleepTimeSeconds: 0.01
m_ShowHUD: 1
m_ShowHUD: 0
m_TFTopics:
- /tf
listenForTFMessages: 1
4 changes: 3 additions & 1 deletion Assets/UnitySensors/Editor/UnitySensorsEditor.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"GUID:d8b63aba1907145bea998dd612889d6b",
"GUID:e9a473e6ad03eae4a89800bf81bd1594"
],
"includePlatforms": [],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
Expand Down
8 changes: 8 additions & 0 deletions Assets/UnitySensors/Runtime/Materials/CustomMaterials.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UnitySensors_DepthBufferLidar
m_Shader: {fileID: 4800000, guid: 9f39b9c496a4e9f489f510e6d57c5126, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs: []
m_Ints: []
m_Floats:
- _F: 150
- _Y_COEF: 6
- _Y_MAX: 1
- _Y_MIN: 0.8333333
m_Colors: []
m_BuildTextureStacks: []
m_AllowLocking: 1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UnitySensors_DepthCameraLegacy
m_Shader: {fileID: 4800000, guid: 2eb04f3fe23d2b148aab801c432da325, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs: []
m_Ints: []
m_Floats:
- _F: 0
- _Y_COEF: 1
- _Y_MAX: 1
- _Y_MIN: 0
m_Colors: []
m_BuildTextureStacks: []
m_AllowLocking: 1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UnitySensors_PointCloudXYZ
m_Shader: {fileID: 4800000, guid: 0faabdfb36dc37944bd5237eb87dff3e, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Glossiness: 0.5
- _Metallic: 0
m_Colors: []
m_BuildTextureStacks: []
m_AllowLocking: 1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UnitySensors_PointCloudXYZI
m_Shader: {fileID: 4800000, guid: f9fa29512657a5b408ef0c50698b141b, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Glossiness: 0.5
- _Metallic: 0
m_Colors: []
m_BuildTextureStacks: []
m_AllowLocking: 1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UnitySensors_PointCloudXYZRGB
m_Shader: {fileID: 4800000, guid: 417e6f59011b2b743a51b9344a78b15d, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Glossiness: 0.5
- _Metallic: 0
m_Colors: []
m_BuildTextureStacks: []
m_AllowLocking: 1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 29 additions & 2 deletions Assets/UnitySensors/Runtime/Prefabs/Camera/DepthCamera.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ GameObject:
- component: {fileID: 1105687583338018399}
- component: {fileID: 1105687583338018398}
- component: {fileID: 859923666563037401}
- component: {fileID: -1608031838711272521}
m_Layer: 0
m_Name: DepthCamera
m_TagString: Untagged
Expand All @@ -26,13 +27,13 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1105687583338018395}
serializedVersion: 2
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!20 &1105687583338018399
Camera:
Expand All @@ -48,9 +49,17 @@ Camera:
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_Iso: 200
m_ShutterSpeed: 0.005
m_Aperture: 16
m_FocusDistance: 10
m_FocalLength: 50
m_BladeCount: 5
m_Curvature: {x: 2, y: 11}
m_BarrelClipping: 0.25
m_Anamorphism: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
Expand Down Expand Up @@ -95,6 +104,8 @@ MonoBehaviour:
_minRange: 0.05
_maxRange: 100
_gaussianNoiseSigma: 0
_depthCameraMat: {fileID: -876546973899608171, guid: a3c68fd340741ee4597690d59d7509a6,
type: 3}
--- !u!114 &859923666563037401
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -107,4 +118,20 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f2f05a788e73116488577387bd40affc, type: 3}
m_Name:
m_EditorClassIdentifier:
_pointUtilitiesSO: {fileID: 11400000, guid: 5e210d04f3c81dc4986b2270af79835f, type: 2}
_source: {fileID: 1105687583338018398}
--- !u!114 &-1608031838711272521
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1105687583338018395}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5202acb8ddfd0c546b69f23eb10b4e60, type: 3}
m_Name:
m_EditorClassIdentifier:
_source: {fileID: 1105687583338018398}
_sourceTexture: 0
_image: {fileID: 0}
Loading
Loading