XR-Interaction-Toolkit-Examples | repository contains various examples to use with the XR | Augmented Reality library
kandi X-RAY | XR-Interaction-Toolkit-Examples Summary
kandi X-RAY | XR-Interaction-Toolkit-Examples Summary
This repository contains two different example Unity projects, one with a focus on a Virtual Reality (VR) experience, and another with a focus on an Augmented Reality (AR) experience for mobile.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of XR-Interaction-Toolkit-Examples
XR-Interaction-Toolkit-Examples Key Features
XR-Interaction-Toolkit-Examples Examples and Code Snippets
def atrous_conv2d(value, filters, rate, padding, name=None):
"""Atrous convolution (a.k.a. convolution with holes or dilated convolution).
This function is a simpler wrapper around the more general
`tf.nn.convolution`, and exists only for back
def exponential_power_convolution_kernel(
grid_shape,
length_scale,
power=None,
divisor=None,
zero_inflation=None,
):
"""Make an exponentiated convolution kernel.
In signal processing, a [kernel]
(https://en.wikipedia.org/w
Community Discussions
Trending Discussions on XR-Interaction-Toolkit-Examples
QUESTION
Added some UI elements inside a canvas in world-space render mode. There is an issue with the occlusion of UI elements with respect to the laser pointer. The pointer here is made from a line renderer. Here are the things that have been tried and still the pointer does not properly occlude the canvas.
- changing the hierarchy
- changing the z-order
- changing the sorting order
The source code is from Unity and is available here. There is no related script that requires modification. Seems like a setting or shader change might only be required here.
...ANSWER
Answered 2020-Dec-20 at 12:28It is possible to write a custom shader to test for depth, but this would be a very expensive shader - and it looks like you want to use it on VR, and I would not recommend to use it like so.
Over-engineered solution and still not very cheap but cheaper solution would be to render UI onto a camera that renders into RenderTarget
and passes the input to the UI.
- Create a camera - with Redner Target output
- Create canvas that uses Screen Space - Camera
- Attach the camera to the Canvas
- Put Plane in world space and use RenderTarget as material
- Add a script that would allow passing RayCasts through RenderTarget to UI. Possible soltuion
Few notes:
- Camera needs to be disabled for as long as it is possible to save performance and only updated via
Camera.Render()
when UI is updated. - This solution would still be expensive
- Adds a lot of complexity to a simple problem
- Adds the possibility to "wrap" UI around meshes
EDIT: After edit its much simpler problem!
UI is rendered at RenderQueue = 3000
you probably have unlit material as a line-renderer which has RenderQueue = 2450
.
You need to create a material with RenderQueue >= 3000
for your line renderer
If you don't want to create new material, you can change it from code
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install XR-Interaction-Toolkit-Examples
Clone or download this repository to a workspace on your drive Click the ⤓ Code button on this page to get the URL to clone with Git or click Download ZIP to get a copy of this repository that you can extract
Open a project in Unity Download, install, and run Unity Hub In the Installs tab, select Locate or Add to find or install Unity 2019.4 LTS or later In the Projects tab, click Add Browse to the AR or VR folder within your downloaded copy of this repository and click Select Folder Click the project which should now be added to the list to open the project
For the VR project, open the Scene at Assets\Scenes\WorldInteractionDemo by double clicking it in the Project window. For the AR project, open the Scene at Assets\Scenes\ARInteraction.
Configure the VR project for XR devices From Unity’s main menu, go to Edit > Project Settings > XR Plug-in Management, and select the platform(s) you plan to deploy to
To run the VR sample on a headset, go to File > Build Settings and build the app. If you have a PC VR headset, you can also preview the app by connecting your device and clicking Play (►)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page