Title: UV flips up and down on HoloLens2 real device in magnifier function. · Issue #147 · microsoft/MixedReality-GraphicsTools-Unity · GitHub
Open Graph Title: UV flips up and down on HoloLens2 real device in magnifier function. · Issue #147 · microsoft/MixedReality-GraphicsTools-Unity
X Title: UV flips up and down on HoloLens2 real device in magnifier function. · Issue #147 · microsoft/MixedReality-GraphicsTools-Unity
Description: Describe the bug While playing with the new feature while working on other MRGT issues, I encountered a problem with the screen of the magnifier function flipping upside down on the actual HoloLens2 device. https://youtu.be/C5aYusFA_tM I...
Open Graph Description: Describe the bug While playing with the new feature while working on other MRGT issues, I encountered a problem with the screen of the magnifier function flipping upside down on the actual HoloLens...
X Description: Describe the bug While playing with the new feature while working on other MRGT issues, I encountered a problem with the screen of the magnifier function flipping upside down on the actual HoloLens...
Opengraph URL: https://github.com/microsoft/MixedReality-GraphicsTools-Unity/issues/147
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UV flips up and down on HoloLens2 real device in magnifier function.","articleBody":"## Describe the bug\r\n\r\nWhile playing with the new feature while working on other MRGT issues, I encountered a problem with the screen of the magnifier function flipping upside down on the actual HoloLens2 device.\r\n\r\nhttps://youtu.be/C5aYusFA_tM\r\n\r\nI was able to get it working on the actual device by inverting the Y component of the UV in Graphics Tools/Magnifier.\r\n\r\n```\r\n half4 frag(v2f i) : SV_Target\r\n { \r\n float2 normalizedScreenSpaceUV = GetNormalizedScreenSpaceUV(i.vertex);\r\n\r\n float2 normalizedScreenSpaceUVStereo = UnityStereoTransformScreenSpaceTex(normalizedScreenSpaceUV); \r\n\r\n normalizedScreenSpaceUVStereo.y *=-1; //Add!!\r\n float2 zoomedUv = zoomIn(normalizedScreenSpaceUVStereo, MagnifierMagnification, Center);\r\n \r\n float4 output = SAMPLE_TEXTURE2D_X(MagnifierTexture, samplerMagnifierTexture, zoomedUv);\r\n \r\n return output;\r\n }\r\n```\r\n\r\nhttps://youtu.be/-tDxe4X7AnQ\r\n\r\n I have previously encountered the same UV upside down phenomenon when using CameraOpaqueTexture in a URP environment to create my own lightweight Bloom post effect.\r\n This only occurred on the actual HoloLens device, not on the Editor, and seems to be the same as this time.\r\n\r\n Maybe there is something going on with the HoloLens rendering or deploying from Untiy, but I don't understand it and am very curious.\r\n\r\n## To reproduce\r\n\r\nI deployed to HoloLens2 in Unity2021.3.5f1 with MRTKv2.8.2 using OpenXR platform.\r\n\r\n\r\n\r\n## Expected behavior\r\n\r\nIt needs to be rendered correctly in HoloLens as well as VR without tampering with the code itself.\r\n\r\n## Screenshots\r\n\r\nPlease refer to the above Youtube video.\r\n\r\n## Your setup (please complete the following information)\r\n\r\n Unity Version 2021.3.5f1 (URP)\r\n Graphics Tools Version 0.5.0(Introduced from MixedRealityFeatureTools)\r\n\r\n## Target platform (please complete the following information)\r\n\r\nOnly HoloLens 2\r\n\r\n\r\n## Additional context\r\n\r\nI would like to understand the cause of the problem as I am curious about the causes in this area.\r\n","author":{"url":"https://github.com/HoloMoto","@type":"Person","name":"HoloMoto"},"datePublished":"2023-01-19T14:59:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/147/MixedReality-GraphicsTools-Unity/issues/147"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5e3de232-0264-7687-d146-b032f554e6f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF92:98230:888E8:ABCF6:6A5EA30D |
| html-safe-nonce | 85aa7ee293f83451ca72b7b426abca81175089e9a2a4acb4821bcb12de66c496 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjkyOjk4MjMwOjg4OEU4OkFCQ0Y2OjZBNUVBMzBEIiwidmlzaXRvcl9pZCI6IjMzODMyMDE1MDI0MDQxOTA5ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d514e01228165b41bf99ab394daf0ee84765ee0543c1778e154135acb35a42d6 |
| hovercard-subject-tag | issue:1549335794 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/MixedReality-GraphicsTools-Unity/147/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1157ddcaafc0f88ea6b063f2fa89e98aa6068c73f524e327576daa8866d2f8dc/microsoft/MixedReality-GraphicsTools-Unity/issues/147 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1157ddcaafc0f88ea6b063f2fa89e98aa6068c73f524e327576daa8866d2f8dc/microsoft/MixedReality-GraphicsTools-Unity/issues/147 |
| og:image:alt | Describe the bug While playing with the new feature while working on other MRGT issues, I encountered a problem with the screen of the magnifier function flipping upside down on the actual HoloLens... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HoloMoto |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c7e31acb6a895494e518b880f5ccf39604f7fa9a8f2f3c64145efc3b776256d |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/MixedReality-GraphicsTools-Unity git https://github.com/microsoft/MixedReality-GraphicsTools-Unity.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 406516024 |
| octolytics-dimension-repository_nwo | microsoft/MixedReality-GraphicsTools-Unity |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 406516024 |
| octolytics-dimension-repository_network_root_nwo | microsoft/MixedReality-GraphicsTools-Unity |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d2ac9bdd71d5f53f2b731c9330677e38624e301 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width