How to check WiFi and internet connection in Unity application on Oculus Quest with native Java methods
August 19, 2021
How to check Wi-Fi and internet connection in Unity application on Oculus Quest with native Java methods

Sometimes we get requests for using native java methods from Unity code in the Oculus Application. Below, we describe one of the ways we can check if Wi-Fi and internet connection are enabled on the Oculus headset from the Unity Engine code part. In this sample application, we check if Wi-Fi is switched on or off on the Oculus app and if we have an internet connection to this Wi-Fi. At first, we need to call the native java class method using this code to call Wi-Fi availability: /// /// Send request to JavaClass to check if wifi is enabled on oculus /// /// private bool DeviceWiFiAndroidRequest () { var isWifiEnabled = false; try { // An activity provides the window where the app draws its UI. // Typically, one activity in an app is specified as the main activity, which is the first screen to appear when the user launches the app. // Get current activity in unity project from java classes. // AndroidJavaClass: Construct an AndroidJavaClass from the class name. // GetStatic: Get the value of a static field in an object type. using (var activity = new AndroidJavaClass ("com.unity3d.player.UnityPlayer"). GetStatic ("currentActivity")) { // Method "getSystemService": Gets the name of the system-level service that is represented by the specified class. // As the parameter arguments, we pass the name of the package with handle "getSystemService". // The class of the returned object varies by the requested name. // Get "WifiManager" for management of Wi-Fi connectivity. using (var wifiManager = activity.Call ("getSystemService", "wifi")) { // Call: Calls a Java method on an object. Call, T – return type // Call method "isWifiEnabled". Return whether Wi-Fi is enabled or disabled. Returns bool value. isWifiEnabled = wifiManager.Call ("isWifiEnabled"); } } } catch (Exception e) { Debug.LogError ("Android request exception: " + e.Message); } return isWifiEnabled; } After that, we need to check if we have an internet connection on connected Wi-Fi. Also, we need to call the native java class method. /// /// Request to JavaClass to check if internet connection is reachable /// /// private bool NetworkConnectionAndroidRequest () { var isNetworkEnabled = false; try { using (var activity = new AndroidJavaClass ("com.unity3d.player.UnityPlayer"). GetStatic ("currentActivity")) { // Get "ConnectivityManager" for handling management of network connections. using (var connectivityManager = activity.Call ("getSystemService", "connectivity")) { // Call method "getActiveNetworkInfo" that returns details about the currently active default data network. // Call method "isConnected" that indicates if network connectivity exists. Returns bool value. isNetworkEnabled = connectivityManager.Call ("getActiveNetworkInfo"). Call ("isConnected"); } } } catch (Exception e) { Debug.LogError ("Android request exception: " + e.Message); } return isNetworkEnabled; } After this, we have to use a coroutine to check these two parameters. We check each for 2 seconds. /// /// Check if the application is connected to Wi-Fi in coroutine /// /// private IEnumerator CheckDeviceWifiConnection () { yield return new WaitForSecondsRealtime (2f); while (true) { yield return new WaitForSecondsRealtime (checkDelay); wifiConnection = DeviceWiFiAndroidRequest (); wifiMessage.text = wifiConnection ? "Wifi On" : "Wifi Off"; } } /// /// Check if the application is connected to Wi-Fi in coroutine /// /// private IEnumerator CheckNetworkConnection () { yield return new WaitForSecondsRealtime (2f); while (true) { yield return new WaitForSecondsRealtime (checkDelay); internetConnection = NetworkConnectionAndroidRequest (); internetMessage.text = internetConnection ? "Internet reachable" : "Internet not reachable"; } } Below, you can see the full script for checking internet connection and Wi-Fi availability on the Oculus Quest 2 from Unity code using native java methods.

Streaming high-level detailed graphics in web browser with Unity WebGL
August 19, 2021
Qualium Systems Devlog | Streaming high-level detailed graphics in web browser with Unity WebGL

Feature: High-level detailed graphics and real-time lightings in any web browser. Using streaming from the webserver to the client browser and reading input from the device. All high-loaded processes compute on the web server. As a result, we receive an incredible graphic level that we can use in the promo application. Technology stack: Unity SDK, The High Definition Render Pipeline (HDRP), WebRTC, NodeJS. Devices: Web browsers (iOS, Android, Windows, macOS, Linux).

Industries where Virtual and Augmented Reality is a necessity
August 17, 2021
6 Industries where Virtual and Augmented Reality is a necessity in 2021

What is AR and VR? Augmented Reality (AR) is a technology that enhances or augments your experience of the world around you, using devices such as smartphones, glasses, projectors etc. Virtual Reality (VR) is a technology that makes a person feel like they are somewhere else. It uses software to produce sensations to make users feel like they are apart of this other place. User needs to use devices, such as special glasses with a screen or/and gloves fitted with sensors. Here are 6 Industries where Virtual and Augmented reality is being actively used besides gaming: 1. Sports By putting on a VR headset an athlete can feel like they are located in a real-life game setting. The feeling of “realness” can allow them for more training and simulate exact situations that require additional practice. Demo of our work 2. Supply Chain Warehouse Planning Using Mixed Reality to “field test” modifications Transportation Optimization Capture pallet numbers and volume using object recognition. Automated confirmation of pick-up/delivery by AR after the correct number of parcels is recognized Freight Loading Loader receives a plan and instructions on pallet order and placing directly on their AR device display Parcel Loading & Drop-off Through AR, all parcels are overlaid with custom information such as weight, contents, destination etc. Staff Safety and on-job training 3. Educational industry VR and AR technology helps students concentrate on what is in front of their eyes, they are being ‘forced’ to interact with their studies and exclude any potential side distractions. This is making the books, lectures and exercises more immersive and engaging. That way they are becoming a better solution for seizing students’ focus and attention. Demo of our work 4. Architectural design & construction VR is making solving complex structures more efficient. Now it is possible to determine whether a given structure is practically possible or not, making projects more robust and accurate. Today it has also become common in modern cities to take a tour of homes using VR equipment. VR allows you to step into architectural designs not just by seeing a paper blueprint, now feel the environment in the 3D model. AR in construction allows combining designs with the physical job site. 5. E-commerce and Retail AR allows customers to preview and experience products any time from any environment, before making a purchase. In 2020 retailers are venturing into the virtual world. There, a shopper can walk through a virtual store and look at goods as they would in real life. Businesses can now run shops and ship products to customers without actually owning any physical space. Demo of our work 6. Healthcare AR apps are being used for a variety of tasks, from enabling surgeons to peer inside a patient’s body without making large incisions to helping patients by identifying their symptoms. VR has also proven useful in diagnosing, treating, and easing the symptoms of autism depression dementia, phobias, psychiatric disorders. Mariia Kalashnyk, Qualium Systems, Business Development Manager   Those who adapt to new technologies and take advantage of them earlier are more likely to succeed. Would you like to get ahead of the competitors? Do you need to develop VR or AR-based software?

Face tracking on PC with Unity SDK and UltraFaceBarracuda
August 16, 2021
Face tracking on PC with Unity SDK and UltraFaceBarracuda

Feature: Face tracking on PC Depending on the face position, the picture that person is looking at moves. As a result of this the effect of a hologram is created. An interesting solution for marketing purposes with the ability to track people’s actions and test various marketing activities. Technology stack: Unity SDK, UltraFaceBarracuda. Devices: PC (Windows, Mac OS, Linux)

Oculus release notes_our thoughts about two interesting features which are available in v30-v31 of Oculus Quest
August 13, 2021
Oculus release notes: our thoughts about two interesting features which are available in v30-v31 of Oculus Quest

Oculus updated release notes on version 30.0 and 31.0 for Oculus Quest on 15 June and 20 July respectively. We decided to focus on two points that, in our opinion, are important and our Unity Tech Lead (AR/VR/MR Team) Alex V. commented on them. Notes on version 30.0 Information from release notes: You can now multitask with multiple system-level 2D apps side by side in Oculus Home on Quest 2 and Quest. Supported apps include: Explore, Store, Browser, Events, Oculus TV, Oculus Move, Scoreboards, and more. Our thoughts: This update is very interesting and now the main question is if Oculus Quest will make this feature available for all 2D applications or not. Our video: To demonstrate this new feature, we recorded a short video. Notes on version 31.0 Information from release notes: We’ve created multiplayer APIs for developers to use with their apps. For any app that opts in for this feature, you’ll be able to invite friends or people you’ve recently played with to your game sessions directly from the Quest Universal menu. Our thoughts: This may be a very powerful update and this step may change the standard of the matchmaking multiplayer game in the Oculus environment. We’ll try to use this update in our in-home project. Additional link: Find out more in the article Improve Concurrency in Your Multiplayer Games with Travel Together and Public Parties by Oculus for developers.

Passthrough API on Oculus Quest 2
August 12, 2021
Passthrough API on Oculus Quest 2. Our first attempts with mixed reality

Feature: Passthrough API on Oculus Quest 2 Oculus’ Passthrough API enables mixed reality experiences that combine real and virtual worlds into one. Immediately after an update became available, we started testing the API. It is an exciting promise by Oculus and has a lot of prospective. We are already brainstorming the ideas of using Passthrough API to solve our clients’ business issues. Technology stack: Unity SDK, Oculus SDK 31, Passthrough API Devices: Oculus Quest 2

virtual reality training
August 11, 2021
Virtual reality for training employees: a selection of articles for a better understanding

Recently, more and more companies have started using virtual reality technology for training employees. This is due to the fact that the cost of implementing virtual reality has fallen and the technology itself has become more widespread. In addition, VR has become much more affordable and available thanks to the recent growth in virtual reality (VR) devices. What is virtual reality training? Virtual Reality Training is a digital simulation of learning situations that can occur in real-life conditions. With the help of a special headset and controllers, students operate in a three-dimensional virtual environment, interacting with objects and people. What companies use virtual reality for training? Boeing. UPS. Walmart. Porsche. Henkel. BP. ExxonMobil. UPS. Why is vr training important? We have prepared a small selection of articles that tell about the advantages and disadvantages of using virtual reality for training company employees. How virtual reality is redefining soft skills training Source: PricewaterhouseCoopers Summary: Companies need employees with the right mix of skills, including “soft” skills like leadership and resilience. The prevalence of remote work makes effective digital training approaches more crucial than ever. VR training offers an affordable way to upskill employees faster and with better results. The Growing Impact of Virtual Reality Training Source: HRMagazine Summary: As usage increases and costs drop, the technology is now being used for soft skills, DE&I and leadership training. With in-person learning placed on hold during the pandemic, more organizations turned to VR training because of its increased affordability and proven ability to teach employees working remotely. Learning experts stress that VR training isn’t the right solution for all needs and should be matched to situations that best fit the medium. Why Walmart and other F500 companies are using virtual reality to train the next generation of American workers Source: CNBC Summary: Several F500 companies, such as Boeing, UPS and Walmart, are folding virtual reality into worker education and training programs. Companies have seen retention rates and productivity numbers rise when they use VR as a training tool. Augmented reality is another tech tool companies are opting for to upskill their workforce. Is VR the Future of Corporate Training? Source: Harvard Business Review Summary: VR is increasingly being used to help train employees to do their jobs. VR is being used to train employees in “soft skills” to improve customer service and managerial skills. VR shows a unique balance across experiments — it is immersive enough for people to take the training seriously, but also a safe environment where learners are less self-conscious about speaking frankly compared to talking to real people.

Added animated atom structure to VR Chemistry app with core and electrons, motion in orbit
August 9, 2021
VR Chemistry App | Added animated atom’s structure

Project: VR Chemistry App. A VR application for safe teaching chemistry to children. Added animated atom structure to VR Chemistry app with core and electrons, motion in orbit. Technology stack: UnitySDK, Oculus SDK and MRTK-OculusQuest. Devices: Oculus Quest 1/2, PC VR.

A VR application for safe teaching chemistry to children
August 4, 2021
VR Chemistry App | Work on functionality for visualizing molecules

Project: VR Chemistry App. A VR application for safe teaching chemistry to children. A VR application for safe teaching chemistry to children is now in progress. Now we are working on functionality for visualizing molecules from different elements. Technology stack: UnitySDK, Oculus SDK and MRTK-OculusQuest. Devices: Oculus Quest 1/2, PC VR.   TRANSLATE with x English Arabic Hebrew Polish Bulgarian Hindi Portuguese Catalan Hmong Daw Romanian Chinese Simplified Hungarian Russian Chinese Traditional Indonesian Slovak Czech Italian Slovenian Danish Japanese Spanish Dutch Klingon Swedish English Korean Thai Estonian Latvian Turkish Finnish Lithuanian Ukrainian French Malay Urdu German Maltese Vietnamese Greek Norwegian Welsh Haitian Creole Persian TRANSLATE with COPY THE URL BELOW Back EMBED THE SNIPPET BELOW IN YOUR SITE Enable collaborative features and customize widget: Bing Webmaster Portal Back