Unity engine-based distance test method and system
A test method and test system technology, applied in image data processing, instruments, calculations, etc., can solve problems such as the inability to accurately reflect the distance between human eyes viewing interface elements, and achieve the effect of reducing visual fatigue.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] The present embodiment provides a distance test method based on the Unity engine, comprising the following steps:
[0057] S1, the Unity engine sets the main camera object of the virtual reality software to face the front;
[0058]Among them, the main camera object refers to the virtual camera used to act as the "eye" of the user, and the field of view it covers is the field of view that the user can see; the corresponding direction;
[0059] S2. Moving the main camera object;
[0060] S3. The Unity engine draws a ray with physical properties starting from the coordinates of the main camera object of the virtual reality software;
[0061] Among them, the ray drawn by the Raycast method with global physical properties of the Unity engine is a ray with physical properties, and the camera can perceive whether it collides with the collider; the Raycast method includes the origin parameter, direction parameter and layerMask parameter; origin uses To transfer the coordinat...
Embodiment 2
[0074] Such as image 3 As shown, the present embodiment provides a distance test system based on the Unity engine, including:
[0075] Unity engine sets the main camera object of virtual reality software towards the front by setting module 5; moving module 6 moves the main camera object;
[0076] The drawing module 1 takes the coordinates of the main camera object of the virtual reality software as a starting point to draw a ray with physical properties; when the ray collides with the virtual object carrying the collider in the current virtual scene frame, the acquisition module 2 acquires the collision information; The collision information includes the coordinates of the collision point and the unique identifier of the virtual object; the collider is located on the surface of the virtual object;
[0077] The judging module 8 judges whether the unique identifier of the virtual object exists in the preset distance information table, and if so, plays the next virtual...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com