Display device and animation display method

By using the collision detection mechanism in the display device to dynamically adjust the movement direction of the virtual object, the problem of unnatural movement of the virtual object in traditional technology is solved, and the naturalness of the animation is improved.

CN120198550APending Publication Date: 2025-06-24HISENSE ELECTRONIC TECH (WUHAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510169884.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

In traditional display devices, the virtual objects moving in virtual animations are unnatural, resulting in a lower degree of naturalness in animations.

Method used

By introducing a collision detection mechanism into the display device, the movement direction of the virtual object is dynamically adjusted to avoid collision with obstacles in the virtual environment, so that the motion trajectory of the virtual object is more in line with the dynamic effects of nature.

Benefits of technology

Improves the nature of the animation, making the movement of virtual objects in virtual animation more realistic and natural.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120198550A_ABST
    Figure CN120198550A_ABST
Patent Text Reader

Abstract

The invention relates to a display device and an animation display method. Comprising the steps that in response to an animation display event, a virtual animation is played, a first virtual object in the virtual animation moves in a virtual environment, and the initial moving direction of the first virtual object is the direction pointing from an initial position to an end position; if it is detected that the first virtual object has the collision risk, a first rotation direction is determined, the current moving direction of the first virtual object is updated based on the first rotation direction and the first rotation speed until the collision risk is removed, and the collision risk refers to the risk that the first virtual object collides with an obstacle in the virtual environment; if it is detected that the collision risk of the first virtual object is relieved, a second rotation direction is determined according to the current moving direction and the current position of the first virtual object, and the current moving direction is corrected based on the second rotation direction and the second rotation speed so that the first virtual object can move towards the termination position. The naturalness of the animation can be improved.
Need to check novelty before this filing date? Find Prior Art

Claims

1. A display device, characterized in that: include: Display and controller; The controller is configured to: In response to the animation display event, a virtual animation is played, in which a first virtual object moves in a virtual environment, and an initial moving direction of the first virtual object is a direction from a starting position to an ending position; During the movement of the first virtual object, if it is detected that the first virtual object has a collision risk, a first rotation direction is determined, and based on the first rotation direction and a first rotation speed, a current moving direction of the first virtual object is updated until the collision risk is eliminated, wherein the collision risk refers to a risk of the first virtual object colliding with an obstacle in the virtual environment; During the movement of the first virtual object, if it is detected that the collision risk of the first virtual object has been eliminated, a second rotation direction is determined according to the current moving direction and current position of the first virtual object, and the current moving direction is corrected based on the second rotation direction and the second rotation speed so that the first virtual object moves toward the end position.

2. The display device according to claim 1, characterized in that When the controller executes the playing of the virtual animation in response to the animation display event, the controller is configured to: In response to the animation display event, a virtual environment map and a virtual object map are acquired, wherein the virtual environment map is used to present the virtual environment, and the virtual object map is used to present the first virtual object; Generate a starting position and an ending position of the first virtual object, and initialize a current moving speed of the first virtual object; Initialize the direction from the starting position to the ending position as the current moving direction of the first virtual object; The virtual environment map is rendered, and the virtual object map is rendered according to the current moving direction and the current moving speed.

3. The display device according to claim 1, characterized in that The obstacle in the virtual environment corresponds to an obstacle outline, the first virtual object corresponds to a plurality of collision detection line segments with the same starting point, the starting point is a point on the first virtual object, the plurality of collision detection line segments include a center line segment, a left line segment, and a right line segment, the direction of the center line segment is consistent with the current moving direction of the first virtual object, the center line segment is rotated counterclockwise by a first acute angle to coincide with the left line segment, and the center line segment is rotated clockwise by a second acute angle to coincide with the right line segment; When the controller performs determining the first rotation direction if it is detected that the first virtual object has a collision risk, the controller is configured to: If it is detected that the left line segment or the center line segment intersects with any obstacle contour, and the right line segment does not intersect with any obstacle contour, the clockwise direction is determined as the first rotation direction; If it is detected that the right line segment or the center line segment intersects with any obstacle contour, and the left line segment does not intersect with any obstacle contour, the counterclockwise direction is determined as the first rotation direction.

4. The display device according to claim 3, characterized in that When the controller performs determining the first rotation direction if it is detected that the first virtual object has a collision risk, the controller is configured to: If it is detected that the center line segment, the left line segment, and the right line segment intersect with any obstacle contour, respectively, a first auxiliary line segment and a second auxiliary line segment are generated, and a first rotation direction is determined based on the first auxiliary line segment and the second auxiliary line segment; Among them, the center line segment is rotated counterclockwise by a first angle to coincide with the first auxiliary line segment, and the center line segment is rotated clockwise by a second angle to coincide with the second auxiliary line segment, the first angle is greater than the first acute angle and less than a straight angle, and the second angle is greater than the second acute angle and less than a straight angle.

5. The display device according to claim 3, characterized in that The first virtual object has a bounding volume, and the bounding volume is a geometric shape that surrounds the first virtual object; When the controller performs determining the first rotation direction if it is detected that the first virtual object has a collision risk, the controller is configured to: If it is detected that the center line segment, the left line segment and the right line segment intersect with any obstacle contour respectively, and there is an intersection between the bounding volume and the obstacle contour, then the line segment connecting the intersection point and the starting point is used as a reference line segment, and the angle required to rotate clockwise from the reference line segment to the center line segment is determined to obtain the reference angle, and the first rotation direction is determined based on the reference angle.

6. The display device according to any one of claims 1 to 5, characterized in that: The controller is also configured to: When there is a collision risk with the first virtual object, comparing the current moving speed of the first virtual object with a preset lower speed limit; If the current moving speed of the first virtual object is greater than the preset speed lower limit, the current moving speed of the first virtual object is gradually reduced until the first virtual object eliminates the collision risk or the current moving speed is reduced to the preset speed lower limit.

7. The display device according to any one of claims 1 to 5, characterized in that: When the controller determines the second rotation direction according to the current moving direction and the current position of the first virtual object, the controller is configured as follows: Determine a target direction angle according to the current position and the end position, wherein the target direction angle is the angle between the target direction and the reference direction, the target direction is the direction from the current position to the end position, and the reference direction is the positive direction of the X-coordinate axis in the screen coordinate system; The angle between the current moving direction and the reference direction is determined as the current direction angle; When the angle difference between the current direction angle and the target direction angle is greater than the angle threshold, if the current direction angle is greater than the target direction angle, the clockwise direction is determined as the second rotation direction; if the current direction angle is less than the target direction angle, the counterclockwise direction is determined as the second rotation direction.

8. The display device according to claim 7, characterized in that When the controller performs the correction of the current moving direction based on the second rotation direction and the second rotation speed, the controller is configured as follows: Based on the second rotation direction and the second rotation speed, gradually adjust the current moving direction to reduce the angle difference, When the angle difference is less than or equal to the angle threshold, the current moving direction is stopped from being adjusted.

9. The display device according to any one of claims 1 to 5, characterized in that: The controller is also configured to: When the first virtual object meets a preset condition, keep the first virtual object moving, and present a moving second virtual object in the virtual animation; Wherein, the preset condition includes that the current moving distance of the first virtual object reaches the preset moving distance; The starting position of the first virtual object and the starting position of the second virtual object are randomly selected from a preset starting area, and the ending position of the first virtual object and the ending position of the second virtual object are randomly selected from a preset ending area.

10. An animation display method, characterized in that: Applied to a display device, the method comprises: In response to the animation display event, a virtual animation is played, in which a first virtual object moves in a virtual environment, and an initial moving direction of the first virtual object is a direction from a starting position to an ending position; During the movement of the first virtual object, if it is detected that the first virtual object has a collision risk, a first rotation direction is determined, and based on the first rotation direction and a first rotation speed, a current moving direction of the first virtual object is updated until the collision risk is eliminated, wherein the collision risk refers to a risk of the first virtual object colliding with an obstacle in the virtual environment; During the movement of the first virtual object, if it is detected that the collision risk of the first virtual object has been eliminated, a second rotation direction is determined according to the current moving direction and current position of the first virtual object, and the current moving direction is corrected based on the second rotation direction and the second rotation speed so that the first virtual object moves toward the end position.