Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

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.

Active Publication Date: 2017-11-24
FUJIAN TQ DIGITAL
View PDF4 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Obviously, for virtual objects with large volume or irregular shapes, using the center coordinates of the object and the coordinates of the main camera to calculate the distance between them cannot accurately reflect the distance perception of human eyes viewing interface elements

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Unity engine-based distance test method and system
  • Unity engine-based distance test method and system
  • Unity engine-based distance test method and system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of tests, in particular to a Unity engine-based distance test method and system. A ray with a physical attribute is drawn by taking coordinates of a main camera object of virtual reality software as a starting point through a Unity engine; when the ray is collided with a virtual object carrying a collider in a current virtual scene frame, the Unity engine obtains collision information, wherein the collision information comprises coordinates of collision points, and the collider is located on the surface of the virtual object; and a distance between the main camera object and the virtual object is calculated according to the coordinates of the camera object and the coordinates of the collision points, so that a first distance is obtained. The accuracy of testing the distance between a main camera and the virtual object in a virtual scene is improved.

Description

technical field [0001] The invention relates to the field of testing, in particular to a distance testing method and system based on a Unity engine. Background technique [0002] With the development of virtual reality technology, more and more virtual reality software appears in people's life. In order to bring a better sense of immersion to users, users are usually encouraged to wear a virtual reality external head-mounted display for a long time to experience virtual reality software. The Oculus Best Practice Guide pointed out that in virtual reality software, unreasonable interface layout will cause the visual perception distance of human eyes to view interface elements to be too small, which will increase the frequency of user eyeball rotation, thereby accelerating the occurrence of visual fatigue. [0003] For the virtual reality software developed by the Unity engine, the images that the user sees through the virtual reality external head-mounted display come from th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T7/00
CPCG06T7/97G06T2207/30244
Inventor 刘德建黄彬赖保宇陈萍钟开华陈永康李文政曾捷
Owner FUJIAN TQ DIGITAL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products