Search

CN-121478215-B - Display method, equipment and storage medium for part splicing animation

CN121478215BCN 121478215 BCN121478215 BCN 121478215BCN-121478215-B

Abstract

The application provides a display method, equipment and storage medium of a part splicing animation, comprising the steps of obtaining the actual physical size of a target part to be spliced; the method comprises the steps of obtaining screen pixel density and screen size of target equipment, determining target display proportion of target parts based on the screen pixel density, the screen size and the actual physical size, generating part splicing animation of the target parts according to the target display proportion, and displaying the part splicing animation on the target equipment. According to the embodiment of the application, the target display proportion of the target part is determined based on the actual physical size of the target part, the screen pixel density and the screen size of the target equipment, so that the display of the part splicing animation of the target part is more reasonable, and the risk of part splicing errors is reduced.

Inventors

  • SUN YUQIAN

Assignees

  • 北京巧合榫卯文化科技有限公司

Dates

Publication Date
20260508
Application Date
20260109

Claims (7)

  1. 1. The display method of the part splicing animation is characterized by comprising the following steps of: acquiring the actual physical size of a target part to be spliced; acquiring the screen pixel density and the screen size of the target equipment; Determining a target display proportion of the target part based on the screen pixel density, the screen size and the actual physical size; Generating a part splicing animation of the target part according to the target display proportion; displaying the part stitching animation on the target device; The screen pixel density is obtained by presenting a calibration pattern on a screen of the target device, adjusting the size of the calibration pattern in response to a touch gesture of a user so that the outline of the calibration pattern coincides with the outline of a standard reference object, obtaining the pixel size of the calibration pattern when the outline of the calibration pattern coincides with the outline of the standard reference object, reading the standard physical size of the standard reference object from a preset constant library, and calculating the screen pixel density of the target device based on the pixel size of the calibration pattern and the standard physical size of the standard reference object; The part splicing animation of the target part comprises spliced parts, wherein the part splicing animation of the target part is generated according to the target display proportion, the part splicing animation comprises the steps of determining a preset splicing position of each part in a part set formed by the spliced parts and the target part, determining adjacent parts of the target part based on the preset splicing position in the part set, determining a first type part according to the target part and the adjacent parts, wherein the first type part comprises the target part, taking other parts except the first type part in the part set as a second type part, generating a first type model of the first type part according to preset first model precision and the target display proportion, and generating a second type model of the second type part according to preset second model precision and the target display proportion, wherein the second model precision is smaller than the first model precision; The method comprises the steps of obtaining a model rendering capability value of target equipment, determining the number of parts matched with the first type of parts based on the model rendering capability value, and determining at least one adjacent part of the target part according to the number of parts matched with the first type of parts and the preset splicing position.
  2. 2. The method of claim 1, wherein determining the target display scale of the target part based on the screen pixel density, the screen size, and the actual physical size comprises: determining a target screen pixel size of the target part based on the screen pixel density and the actual physical size; and determining the target display proportion of the target part according to the target screen pixel size and the actual physical size.
  3. 3. The method of displaying a part stitching animation according to claim 1, wherein the method further comprises: Detecting whether a screen form change event occurs to the target equipment, wherein the screen form of the target equipment comprises at least one of a folding state and a flat plate state; and if the screen form change event is detected, re-executing the step of acquiring the screen pixel density and the screen size of the target equipment.
  4. 4. The method for displaying a part stitching animation according to claim 1, wherein after displaying the part stitching animation on the target device, further comprising: Determining similar parts of the target part in an electronic instruction for guiding the splicing of the target part; Determining a size comparison identifier between the target part and the similar part based on the actual physical size of the similar part and the size difference between the actual physical sizes of the target part; and displaying the size comparison mark in a display interface where the part splicing animation is positioned.
  5. 5. The method for displaying a part stitching animation according to claim 4, wherein the size comparison identifier includes a first shape outline of the similar part, and the displaying the size comparison identifier in a display interface where the part stitching animation is located includes: And displaying the first shape outline in a display interface where the part splicing animation is located, wherein the center position of the first shape outline is overlapped with the center position of the second shape outline of the target part in the display interface where the part splicing animation is located.
  6. 6. An electronic device comprising a processor and a memory, the memory having stored therein a computer program configured to be executed by the processor to implement the method of displaying a part stitching animation of any one of claims 1 to 5.
  7. 7. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program configured to be executed by a processor to implement the display method of the part stitching animation of any one of claims 1 to 5.

Description

Display method, equipment and storage medium for part splicing animation Technical Field The application relates to the technical field of image display, in particular to a display method, equipment and a storage medium of part splicing animation. Background With the development of the mobile internet, more and more products select and use electronic specifications, especially in the field of complex spliced toys (such as building blocks), part splicing animation can be adopted to guide users to splice parts. However, the part size of the part stitching animation often does not match the actual one, easily allowing the user to select other parts that are the same shape, but differ in size, resulting in a stitching error. Therefore, how to more reasonably display the part stitching animation is a problem that needs to be solved currently. Disclosure of Invention The embodiment of the application provides a display method, equipment and storage medium of part splicing animation, aiming at enabling the display of the part splicing animation of a target part to be more reasonable so as to reduce the risk of part splicing errors. In a first aspect, an embodiment of the present application provides a method for displaying a part stitching animation, where the method for displaying a part stitching animation includes: acquiring the actual physical size of a target part to be spliced; acquiring the screen pixel density and the screen size of the target equipment; Determining a target display proportion of the target part based on the screen pixel density, the screen size and the actual physical size; Generating a part splicing animation of the target part according to the target display proportion; And displaying the part splicing animation on the target equipment. In the embodiment, the 'target display proportion' capable of realizing 1:1 display on any equipment is accurately calculated by acquiring the real physical size of the part and the screen pixel density and the screen size of the target equipment, and the part splicing animation is generated according to the target display proportion, so that the display of the part splicing animation of the target part is more reasonable, other parts with the same shape but different sizes are prevented from being selected by a user, and the risk of part splicing errors is reduced. In an embodiment, the determining the target display scale of the target part based on the screen pixel density, the screen size, and the actual physical size includes: determining a target screen pixel size of the target part based on the screen pixel density and the actual physical size; and determining the target display proportion of the target part according to the target screen pixel size and the actual physical size. In the above embodiment, by determining the target screen pixel size first and then determining the target display scale, the accuracy of the conversion process from the actual physical size of the target part to the pixel representation finally displayed on the screen of the target device is ensured. In an embodiment, the method further comprises: Detecting whether a screen form change event occurs to the target equipment, wherein the screen form of the target equipment comprises at least one of a folding state and a flat plate state; and if the screen form change event is detected, re-executing the step of acquiring the screen pixel density and the screen size of the target equipment. In the above embodiment, the step of obtaining the screen pixel density and the screen size of the target device is re-executed to dynamically respond to the screen form change of the target device, so that the display function of the 1:1 part splicing animation is always accurate and effective no matter what screen form the target device is in. In an embodiment, after the displaying the part stitching animation on the target device, the method further includes: Determining similar parts of the target part in an electronic instruction for guiding the splicing of the target part; Determining a size comparison identifier between the target part and the similar part based on the actual physical size of the similar part and the size difference between the actual physical sizes of the target part; and displaying the size comparison mark in a display interface where the part splicing animation is positioned. In the embodiment, the abstract dimensional difference is converted into visual graphic comparison by introducing similar parts for comparison display, so that the splicing error caused by the wrong selection of the parts by a user is further reduced. In an embodiment, the size comparison identifier includes a first shape outline of the similar part, and the displaying the size comparison identifier in a display interface where the part stitching animation is located includes: And displaying the first shape outline in a display interface where the part splicing animation is located, wherein t