CN117032618A - Animation rotation method, equipment and medium based on multiple screens - Google Patents
Animation rotation method, equipment and medium based on multiple screens Download PDFInfo
- Publication number
- CN117032618A CN117032618A CN202311281872.5A CN202311281872A CN117032618A CN 117032618 A CN117032618 A CN 117032618A CN 202311281872 A CN202311281872 A CN 202311281872A CN 117032618 A CN117032618 A CN 117032618A
- Authority
- CN
- China
- Prior art keywords
- rotation
- instruction
- adjacent points
- virtual
- rendering
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000009877 rendering Methods 0.000 claims description 56
- 239000013598 vector Substances 0.000 claims description 38
- 230000008859 change Effects 0.000 claims description 8
- 238000004378 air conditioning Methods 0.000 claims description 2
- 238000004590 computer program Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 11
- 230000000694 effects Effects 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 7
- 238000013473 artificial intelligence Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 230000002452 interceptive effect Effects 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003058 natural language processing Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
- G06F3/1446—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display display composed of modules, e.g. video walls
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
- G06F3/1431—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display using a single graphics controller
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Graphics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention relates to the technical field of data processing, and provides a multi-screen-based animation rotation method, equipment and medium.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, and a medium for rotating an animation based on multiple screens.
Background
For scenes such as large venues, corresponding screen display is usually required to be performed on a large screen, for example: for a large physical spliced screen composed of a plurality of screens, as each screen is controlled independently, how to uniformly realize the animation rotation effect on the large screen by a central control host becomes a problem to be solved urgently.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a multi-screen-based animation rotation method, apparatus, and medium capable of achieving a multi-screen-based animation rotation effect.
The animation rotation method based on multiple screens is applied to a central control host, and the central control host is communicated with a plurality of rendering hosts; the multi-screen based animation rotation method comprises the following steps:
when the moving track of the virtual cursor is detected on a logic large screen of the central control host, acquiring a preset instruction interval;
intercepting the moving track according to the instruction interval to obtain at least one point;
for each two adjacent points in the at least one point, calculating a vector formed by each two adjacent points;
acquiring a preconfigured rotating speed control factor;
calculating according to vectors formed by every two adjacent points and the rotating speed control factor to obtain the rotating parameters of the virtual camera corresponding to the virtual cursor when sliding between every two adjacent points;
generating an instruction according to the rotation parameters, and issuing the instruction to the rendering hosts.
According to a preferred embodiment of the present invention, the capturing the movement track according to the instruction interval, to obtain at least one point includes:
calculating a cut-out frequency according to the instruction interval;
based on the interception frequency, intercepting the moving track according to the moving direction of the virtual cursor on the moving track to obtain the at least one point.
According to a preferred embodiment of the present invention, the calculating the vector formed by each two adjacent points includes:
for each two adjacent points, determining a starting point and an end point according to the moving direction of the virtual cursor on the moving track;
calculating the change amplitude of the virtual cursor in the horizontal direction and the change amplitude of the virtual cursor in the vertical direction when the virtual cursor moves from the starting point to the ending point;
determining the variation amplitude in the horizontal direction as an x component and the variation amplitude in the vertical direction as a y component;
and generating a vector formed by every two adjacent points according to the x component and the y component.
According to a preferred embodiment of the present invention, the calculating according to the vector formed by each two adjacent points and the rotation speed control factor, to obtain the rotation parameters of the virtual camera corresponding to the virtual cursor when sliding between each two adjacent points includes:
for vectors formed by every two adjacent points, calculating the product of the x component and the rotating speed control factor to obtain the sliding increment of the virtual cursor in the horizontal direction;
determining the sliding increment of the virtual cursor in the horizontal direction as a rotation negative angle of the virtual camera around a y axis;
calculating the product of the y component and the rotating speed control factor to obtain the sliding increment of the virtual cursor in the vertical direction;
determining the sliding increment of the virtual cursor in the vertical direction as a rotation negative angle of the virtual camera around the x axis;
and determining the rotation negative angle of the virtual camera around the y axis and the rotation negative angle of the virtual camera around the x axis as the rotation parameter of the virtual camera corresponding to the sliding of the virtual cursor between every two adjacent points.
According to a preferred embodiment of the present invention, the generating an instruction according to the rotation parameter includes:
determining the viewpoint position of the virtual camera on a logic large screen of the central control host;
acquiring camera parameters of the virtual camera which are configured in advance;
and generating the instruction by taking the viewpoint position, the camera parameters and the rotation parameters as instruction data at intervals of the instruction.
The animation rotation method based on multiple screens is applied to multiple rendering hosts, and each rendering host is communicated with a central control host; the multi-screen based animation rotation method comprises the following steps:
and for each rendering host, when receiving the instruction issued by the central control host, rendering according to the instruction.
According to a preferred embodiment of the present invention, said rendering according to said instructions comprises:
analyzing the instruction to obtain the rotation parameters of the virtual camera;
and generating a rotary animation on the display screen corresponding to each rendering host based on the rotary parameters.
According to the preferred embodiment of the invention, the rotation direction of the rotation animation is opposite to the directions of the x axis and the y axis of the screen coordinate system of the logic large screen of the central control host.
An animation rotating device based on multiple screens runs on a central control host, and the central control host is communicated with a plurality of rendering hosts; the multi-screen based animation rotating device includes:
the acquisition unit is used for acquiring a preset instruction interval when the moving track of the virtual cursor is detected on the logic large screen of the central control host;
the intercepting unit is used for intercepting the moving track according to the instruction interval to obtain at least one point;
a calculation unit, configured to calculate, for each two adjacent points in the at least one point, a vector formed by each two adjacent points;
the acquisition unit is also used for acquiring a preconfigured rotating speed control factor;
the calculation unit is further used for calculating according to the vector formed by each two adjacent points and the rotation speed control factor to obtain the rotation parameters of the virtual camera corresponding to the virtual cursor when sliding between each two adjacent points;
and the issuing unit is used for generating an instruction according to the rotation parameters and issuing the instruction to the plurality of rendering hosts.
An animation rotating system based on multiple screens runs on multiple rendering hosts, and each rendering host is communicated with a central control host; the multi-screen based animation rotation system includes:
and the rendering module is used for rendering according to the instruction when receiving the instruction issued by the central control host.
A computer device, the computer device comprising:
a memory storing at least one instruction; a kind of electronic device with high-pressure air-conditioning system
And the processor executes the instructions stored in the memory to realize the multi-screen-based animation rotation method.
A computer-readable storage medium having stored therein at least one instruction for execution by a processor in a computer device to implement the multi-screen based animation rotation method.
According to the technical scheme, when the moving track of the virtual cursor is detected on the logic large screen of the central control host, the moving track is intercepted according to the instruction interval to obtain at least one point, the vector formed by each two adjacent points is calculated, the rotation parameters of the virtual camera corresponding to the sliding of the virtual cursor between each two adjacent points are calculated according to the vector formed by each two adjacent points and the rotation speed control factor, and then the instruction is generated according to the rotation parameters, and is sent to a plurality of rendering hosts for rendering, so that the multi-screen rotation animation effect is realized.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the multi-screen based animation rotation method of the present invention.
FIG. 2 is a schematic diagram of a moving track and an intercept point of a virtual cursor according to the present invention.
FIG. 3 is a schematic diagram of an interactive animation implementation of a virtual cursor with a three-dimensional camera in accordance with the present invention.
FIG. 4 is a flow chart of another preferred embodiment of the multi-screen based animation rotation method of the present invention.
FIG. 5 is a functional block diagram of a preferred embodiment of a multi-screen based animation rotation device of the present invention.
FIG. 6 is a functional block diagram of a preferred embodiment of the multi-screen based animation rotation system of the present invention.
Fig. 7 is a schematic structural diagram of a computer device for implementing a preferred embodiment of the multi-screen based animation rotation method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flow chart of a preferred embodiment of the multi-screen based animation rotation method of the present invention. The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs.
The multi-screen-based animation rotation method is applied to one or more computer devices, wherein the computer device is a device capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and the hardware comprises, but is not limited to, a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable gate array (Field-Programmable Gate Array, FPGA), a digital processor (Digital Signal Processor, DSP), an embedded device and the like.
The computer device may be any electronic product that can interact with a user in a human-computer manner, such as a personal computer, tablet computer, smart phone, personal digital assistant (Personal Digital Assistant, PDA), game console, interactive internet protocol television (Internet Protocol Television, IPTV), smart wearable device, etc.
The computer device may also include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network server, a server group composed of a plurality of network servers, or a Cloud based Cloud Computing (Cloud Computing) composed of a large number of hosts or network servers.
The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
Artificial intelligence infrastructure technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and other directions.
The network in which the computer device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
The embodiment is applied to a central control host, and the central control host is communicated with a plurality of rendering hosts; the method comprises the following steps:
s10, when the moving track of the virtual cursor is detected on the logic large screen of the central control host, a preset instruction interval is obtained.
In this embodiment, the number of rendering hosts may be configured comprehensively according to the occupied area of the locations where the display screens are deployed in the actual scene and the size of each display screen.
In this embodiment, the instruction interval refers to a time interval between different instructions issued by the central control host.
S11, intercepting the moving track according to the instruction interval to obtain at least one point.
In this embodiment, intercepting the movement track according to the instruction interval to obtain at least one point includes:
calculating a cut-out frequency according to the instruction interval;
based on the interception frequency, intercepting the moving track according to the moving direction of the virtual cursor on the moving track to obtain the at least one point.
For example: when the instruction interval is 0.5 seconds, a point can be intercepted on the moving track every 0.5 seconds, and the at least one point is obtained.
In the above embodiment, the points are intercepted on the movement track of the virtual cursor according to the instruction interval, so that the subsequent calculation and the instruction issuing frequency can be kept consistent.
S12, for each two adjacent points in the at least one point, calculating vectors formed by each two adjacent points.
In this embodiment, the calculating the vector formed by each two adjacent points includes:
for each two adjacent points, determining a starting point and an end point according to the moving direction of the virtual cursor on the moving track;
calculating the change amplitude of the virtual cursor in the horizontal direction and the change amplitude of the virtual cursor in the vertical direction when the virtual cursor moves from the starting point to the ending point;
determining the variation amplitude in the horizontal direction as an x component and the variation amplitude in the vertical direction as a y component;
and generating a vector formed by every two adjacent points according to the x component and the y component.
For example: fig. 2 is a schematic diagram of a moving track and a intercept point of a virtual cursor according to the present invention. Wherein an arrow indicates a moving direction of the virtual cursor. Taking the vector A1A2 pointing in substantially the same direction as the virtual cursor sliding direction as an example, the coordinates of the vector A1A2 may be expressed as P (dx, dy), dx indicating the variation width in the horizontal direction, and dy indicating the variation width in the vertical direction. Since the cursor is located in the screen coordinate system of the logical large screen, the origin of the screen coordinate system is located in the upper left corner of the canvas (if the x-axis of the screen coordinate system is forward horizontal to the right and the y-axis is forward vertical to the down), it is known that vector a1a2=vector a2o—vector a1o. Assuming a1a2= (0.1,0.05), dx=0.1 and dy=0.05.
Through the embodiment, a series of adjacent points (A1, A2, A3 and …) are cut off on the movement track curve of the virtual cursor, so that the adjacent points on the curve are connected by straight lines, the curve is replaced by straight lines, and subsequent calculation is facilitated.
S13, acquiring a preconfigured rotation speed control factor.
Wherein the rotation speed control factor is used for controlling the rotation amplitude or the rotation speed of the animation.
And S14, calculating according to the vector formed by every two adjacent points and the rotating speed control factor to obtain the rotating parameters of the virtual camera corresponding to the virtual cursor when sliding between every two adjacent points.
In this embodiment, the calculating according to the vector formed by each two adjacent points and the rotation speed control factor, to obtain the rotation parameters of the virtual camera corresponding to the virtual cursor when sliding between each two adjacent points includes:
for vectors formed by every two adjacent points, calculating the product of the x component and the rotating speed control factor to obtain the sliding increment of the virtual cursor in the horizontal direction;
determining the sliding increment of the virtual cursor in the horizontal direction as a rotation negative angle of the virtual camera around a y axis;
calculating the product of the y component and the rotating speed control factor to obtain the sliding increment of the virtual cursor in the vertical direction;
determining the sliding increment of the virtual cursor in the vertical direction as a rotation negative angle of the virtual camera around the x axis;
and determining the rotation negative angle of the virtual camera around the y axis and the rotation negative angle of the virtual camera around the x axis as the rotation parameter of the virtual camera corresponding to the sliding of the virtual cursor between every two adjacent points.
For example: please refer to fig. 3, which is a schematic diagram illustrating an implementation of the interactive animation between the virtual cursor and the three-dimensional camera according to the present invention. And dx and dy correspond to the rotation angles of the three-dimensional scene around the y axis and the rotation angles of the three-dimensional scene around the x axis respectively, the factor represents the rotation speed control factor, rx represents the rotation of the virtual camera around the x axis, ry represents the rotation of the virtual camera around the y axis, and one end with an arrow in the rotating shaft represents the forward direction. Assuming that dx=0.1, dy=0.05, and factor=1.2 for the example of fig. 2, for vector A1 A2:
dx = (A2O-A1O)*x;
dy = (A2O-A1O)*y;
further, the negative rotation angle of the virtual camera around the y-axis is: dx factor, which represents the horizontal right sliding increment of the virtual cursor; the negative rotation angle of the virtual camera around the x axis is as follows: dy is factor, which indicates the vertical downward sliding increment of the virtual cursor.
Referring to fig. 2, the smooth curve in fig. 2 represents the actual sliding track of the virtual cursor on the large logical screen, and the broken line segment represents the result of connecting adjacent points with a straight line after the points fall on the smooth curve at fixed time intervals. Dy may also represent the magnitude of the change in the y-axis coordinate value between two adjacent points and dx may also represent the magnitude of the change in the x-axis coordinate value between two adjacent points. After the virtual cursor has slid a certain distance to the right, the visually appearing result is that the three-dimensional scene is rotated to the right by a certain angle (i.e. the scene is rotated around the y-axis), which can be achieved in particular by rotating the camera in the opposite direction (changing the viewpoint but maintaining the reference point unchanged). The sliding of the virtual cursor in the vertical direction is also a similar principle and is not described in detail here. If the direction of the virtual cursor sliding is not absolutely horizontal or vertical, coordinate decomposition can also be performed, and then compound rotation around the x-axis and the y-axis is performed.
And similarly, calculating to obtain the rotation negative angles of the virtual cameras corresponding to all the vectors around the y axis and the rotation negative angles around the x axis, and obtaining the rotation parameters of the virtual cameras corresponding to the virtual cursor sliding between every two adjacent points.
S15, generating an instruction according to the rotation parameters, and issuing the instruction to the rendering hosts.
In this embodiment, the generating an instruction according to the rotation parameter includes:
determining the viewpoint position of the virtual camera on a logic large screen of the central control host;
acquiring camera parameters of the virtual camera which are configured in advance;
and generating the instruction by taking the viewpoint position, the camera parameters and the rotation parameters as instruction data at intervals of the instruction.
For example: the camera parameters may include a rendering range of the virtual camera, and the like.
Through the embodiment, the viewpoint position and other related parameters of the current virtual camera on the central control host computer are calculated before each instruction is issued, and then the viewpoint position and other related parameters are issued to each rendering host computer as a part of data in the instruction when the next instruction is issued, so that the synchronization of the virtual cursor and the animation rotation effect is realized, and the rotation effect realized due to the influence of delay is avoided.
According to the technical scheme, when the moving track of the virtual cursor is detected on the logic large screen of the central control host, at least one point is obtained by intercepting the moving track according to the instruction interval, the vector formed by each two adjacent points is calculated, the rotation parameters of the virtual camera corresponding to the sliding of the virtual cursor between each two adjacent points are obtained by calculating the vector formed by each two adjacent points and the rotation speed control factor, and then the instruction is generated according to the rotation parameters, and is issued to a plurality of rendering hosts for rendering, so that the multi-screen rotation animation effect is realized.
FIG. 4 is a flow chart of another preferred embodiment of the multi-screen based animation rotation method of the present invention. The order of the steps in the flowchart may be changed and some steps may be omitted according to various needs.
The embodiment is applied to a plurality of rendering hosts, and each rendering host is communicated with a central control host; the method comprises the following steps:
and S20, for each rendering host, when receiving the instruction issued by the central control host, rendering according to the instruction.
In this embodiment, the rendering according to the instruction includes:
analyzing the instruction to obtain the rotation parameters of the virtual camera;
and generating a rotary animation on the display screen corresponding to each rendering host based on the rotary parameters.
Specifically, the rotation direction of the rotation animation is opposite to the directions of the x axis and the y axis of the screen coordinate system of the logic large screen of the central control host.
In the above embodiment, the rendering effect of each scene area display screen is achieved by unifying the camera related parameters issued by the application instruction of each rendering host, so that the final camera animation on the ultrahigh resolution large screen can be achieved, wherein the ultrahigh resolution large screen is a physical spliced screen of the display screen corresponding to each rendering host. For example: when the number of the rendering hosts is 6, the number of the display screens is 6, and the 6 display screens are physically spliced to obtain the ultrahigh-resolution large screen.
In addition, in order to match the visual habit of the user, referring to fig. 3, the rotation direction of the virtual camera is configured to be opposite to the direction of the vector A1A2 on the corresponding x-axis and y-axis.
According to the technical scheme, each rendering host machine performs rendering according to the instruction issued by the central control host machine so as to achieve the multi-screen rotary animation effect.
FIG. 5 is a functional block diagram of a preferred embodiment of a multi-screen based animation rotation device of the present invention. The multi-screen based animation rotating device 11 comprises an acquisition unit 110, an interception unit 111, a calculation unit 112 and a delivery unit 113. The module/unit referred to in the present invention refers to a series of computer program segments, which are stored in a memory, capable of being executed by a processor and of performing a fixed function. In the present embodiment, the functions of the respective modules/units will be described in detail in the following embodiments.
The multi-screen-based animation rotating device 11 in this embodiment operates on a central control host, which communicates with a plurality of rendering hosts; the device comprises:
the acquiring unit 110 is configured to acquire a preset instruction interval when a movement track of a virtual cursor is detected on a large logical screen of the central control host;
the intercepting unit 111 is configured to intercept the movement track according to the instruction interval to obtain at least one point;
the calculating unit 112 is configured to calculate, for each two adjacent points in the at least one point, a vector formed by each two adjacent points;
the acquiring unit 110 is further configured to acquire a preconfigured rotation speed control factor;
the calculating unit 112 is further configured to calculate according to the vector formed by each two adjacent points and the rotation speed control factor, to obtain a rotation parameter of the virtual camera corresponding to the virtual cursor when sliding between each two adjacent points;
the issuing unit 113 is configured to generate an instruction according to the rotation parameter, and issue the instruction to the plurality of rendering hosts.
According to the technical scheme, when the moving track of the virtual cursor is detected on the logic large screen of the central control host, at least one point is obtained by intercepting the moving track according to the instruction interval, the vector formed by each two adjacent points is calculated, the rotation parameters of the virtual camera corresponding to the sliding of the virtual cursor between each two adjacent points are obtained by calculating the vector formed by each two adjacent points and the rotation speed control factor, and then the instruction is generated according to the rotation parameters, and is issued to a plurality of rendering hosts for rendering, so that the multi-screen rotation animation effect is realized.
FIG. 6 is a functional block diagram of a preferred embodiment of the multi-screen based animation rotation system of the present invention. The multi-screen based animation rotation system 22 includes a rendering module 220. The module/unit referred to in the present invention refers to a series of computer program segments, which are stored in a memory, capable of being executed by a processor and of performing a fixed function. In the present embodiment, the functions of the respective modules/units will be described in detail in the following embodiments.
The multi-screen based animation rotation system 22 in this embodiment operates on a plurality of rendering hosts, each in communication with a central control host; the system comprises:
the rendering module 220 is configured to render according to the instruction when receiving the instruction issued by the central control host.
According to the technical scheme, each rendering host machine performs rendering according to the instruction issued by the central control host machine so as to achieve the multi-screen rotary animation effect.
FIG. 7 is a schematic diagram of a computer device for implementing a preferred embodiment of a multi-screen based animation rotation method according to the present invention.
The computer device 1 may comprise a memory 12, a processor 13 and a bus, and may further comprise a computer program stored in the memory 12 and executable on the processor 13, such as a multi-screen based animated rotation program.
It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the computer device 1 and does not constitute a limitation of the computer device 1, the computer device 1 may be a bus type structure, a star type structure, the computer device 1 may further comprise more or less other hardware or software than illustrated, or a different arrangement of components, for example, the computer device 1 may further comprise an input-output device, a network access device, etc.
It should be noted that the computer device 1 is only used as an example, and other electronic products that may be present in the present invention or may be present in the future are also included in the scope of the present invention by way of reference.
The memory 12 includes at least one type of readable storage medium including flash memory, a removable hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 12 may in some embodiments be an internal storage unit of the computer device 1, such as a removable hard disk of the computer device 1. The memory 12 may in other embodiments also be an external storage device of the computer device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device 1. Further, the memory 12 may also include both an internal storage unit and an external storage device of the computer device 1. The memory 12 may be used not only for storing application software installed in the computer device 1 and various types of data, such as codes of a multi-screen-based animation rotation program, etc., but also for temporarily storing data that has been output or is to be output.
The processor 13 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, a combination of various control chips, and the like. The processor 13 is a Control Unit (Control Unit) of the computer apparatus 1, connects the respective components of the entire computer apparatus 1 using various interfaces and lines, executes various functions of the computer apparatus 1 and processes data by running or executing programs or modules stored in the memory 12 (for example, executing a multi-screen-based animation rotation program or the like), and calling data stored in the memory 12.
The processor 13 executes the operating system of the computer device 1 and various types of applications installed. The processor 13 executes the application program to implement the steps of the various multi-screen based animation rotation method embodiments described above, such as the steps shown in fig. 1 and/or fig. 4.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to complete the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing the specified functions, which instruction segments describe the execution of the computer program in the computer device 1. For example, the computer program may be divided into an acquisition unit 110, an interception unit 111, a calculation unit 112, an issuing unit 113, and/or a rendering module 220.
The integrated units implemented in the form of software functional modules described above may be stored in a computer readable storage medium. The software functional modules are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a computer device, or a network device, etc.) or a processor (processor) to perform portions of the multi-screen based animation rotation method according to various embodiments of the present invention.
The modules/units integrated in the computer device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on this understanding, the present invention may also be implemented by a computer program for instructing a relevant hardware device to implement all or part of the procedures of the above-mentioned embodiment method, where the computer program may be stored in a computer readable storage medium and the computer program may be executed by a processor to implement the steps of each of the above-mentioned method embodiments.
Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory, or the like.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one straight line is shown in fig. 7, but not only one bus or one type of bus. The bus is arranged to enable a connection communication between the memory 12 and at least one processor 13 or the like.
Although not shown, the computer device 1 may further comprise a power source (such as a battery) for powering the various components, preferably the power source may be logically connected to the at least one processor 13 via a power management means, whereby the functions of charge management, discharge management, and power consumption management are achieved by the power management means. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The computer device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described in detail herein.
Further, the computer device 1 may also comprise a network interface, optionally comprising a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the computer device 1 and other computer devices.
The computer device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the computer device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
Fig. 7 shows only a computer device 1 with components 12-13, it will be understood by those skilled in the art that the structure shown in fig. 7 is not limiting of the computer device 1 and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
In connection with fig. 1, the memory 12 in the computer device 1 stores a plurality of instructions to implement a multi-screen based animation rotation method, the processor 13 being executable to implement:
when the moving track of the virtual cursor is detected on a logic large screen of the central control host, acquiring a preset instruction interval;
intercepting the moving track according to the instruction interval to obtain at least one point;
for each two adjacent points in the at least one point, calculating a vector formed by each two adjacent points;
acquiring a preconfigured rotating speed control factor;
calculating according to vectors formed by every two adjacent points and the rotating speed control factor to obtain the rotating parameters of the virtual camera corresponding to the virtual cursor when sliding between every two adjacent points;
generating an instruction according to the rotation parameters, and issuing the instruction to the rendering hosts.
In connection with fig. 4, the memory 12 in the computer device 1 stores a plurality of instructions to implement a multi-screen based animation rotation method, the processor 13 being executable to implement:
and for each rendering host, when receiving the instruction issued by the central control host, rendering according to the instruction.
Specifically, the specific implementation method of the above instructions by the processor 13 may refer to the description of the relevant steps in the corresponding embodiment of fig. 1 and/or fig. 4, which is not repeated herein.
The data in this case were obtained legally.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The invention is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. The units or means stated in the invention may also be implemented by one unit or means, either by software or hardware. The terms first, second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.
Claims (10)
1. The animation rotation method based on the multiple screens is characterized by being applied to a central control host, wherein the central control host is communicated with a plurality of rendering hosts; the multi-screen based animation rotation method comprises the following steps:
when the moving track of the virtual cursor is detected on a logic large screen of the central control host, acquiring a preset instruction interval;
intercepting the moving track according to the instruction interval to obtain at least one point;
for each two adjacent points in the at least one point, calculating a vector formed by each two adjacent points;
acquiring a preconfigured rotating speed control factor;
calculating according to vectors formed by every two adjacent points and the rotating speed control factor to obtain the rotating parameters of the virtual camera corresponding to the virtual cursor when sliding between every two adjacent points;
generating an instruction according to the rotation parameters, and issuing the instruction to the rendering hosts.
2. The multi-screen based animation rotation method of claim 1, wherein intercepting the moving trace at the command interval to obtain at least one point comprises:
calculating a cut-out frequency according to the instruction interval;
based on the interception frequency, intercepting the moving track according to the moving direction of the virtual cursor on the moving track to obtain the at least one point.
3. The multi-screen based animation rotation method of claim 1 wherein the calculating a vector of each two adjacent points comprises:
for each two adjacent points, determining a starting point and an end point according to the moving direction of the virtual cursor on the moving track;
calculating the change amplitude of the virtual cursor in the horizontal direction and the change amplitude of the virtual cursor in the vertical direction when the virtual cursor moves from the starting point to the ending point;
determining the variation amplitude in the horizontal direction as an x component and the variation amplitude in the vertical direction as a y component;
and generating a vector formed by every two adjacent points according to the x component and the y component.
4. The multi-screen based animation rotation method of claim 3, wherein the calculating according to the vector formed by each two adjacent points and the rotation speed control factor to obtain the rotation parameters of the virtual camera corresponding to the sliding of the virtual cursor between each two adjacent points comprises:
for vectors formed by every two adjacent points, calculating the product of the x component and the rotating speed control factor to obtain the sliding increment of the virtual cursor in the horizontal direction;
determining the sliding increment of the virtual cursor in the horizontal direction as a rotation negative angle of the virtual camera around a y axis;
calculating the product of the y component and the rotating speed control factor to obtain the sliding increment of the virtual cursor in the vertical direction;
determining the sliding increment of the virtual cursor in the vertical direction as a rotation negative angle of the virtual camera around the x axis;
and determining the rotation negative angle of the virtual camera around the y axis and the rotation negative angle of the virtual camera around the x axis as the rotation parameter of the virtual camera corresponding to the sliding of the virtual cursor between every two adjacent points.
5. The multi-screen based animation rotation method of claim 1, wherein the generating an instruction according to the rotation parameter comprises:
determining the viewpoint position of the virtual camera on a logic large screen of the central control host;
acquiring camera parameters of the virtual camera which are configured in advance;
and generating the instruction by taking the viewpoint position, the camera parameters and the rotation parameters as instruction data at intervals of the instruction.
6. The animation rotation method based on the multiple screens is characterized by being applied to a plurality of rendering hosts, wherein each rendering host is communicated with a central control host; the multi-screen based animation rotation method comprises the following steps:
and for each rendering host, when receiving the instruction issued by the central control host, rendering according to the instruction.
7. The multi-screen based animation rotation method of claim 6 wherein the rendering according to the instructions comprises:
analyzing the instruction to obtain the rotation parameters of the virtual camera;
and generating a rotary animation on the display screen corresponding to each rendering host based on the rotary parameters.
8. The multi-screen based animation rotation method of claim 7, wherein the rotation direction of the rotation animation is opposite to the x-axis and the y-axis of the screen coordinate system of the logical large screen of the central control host.
9. A computer device, the computer device comprising:
a memory storing at least one instruction; a kind of electronic device with high-pressure air-conditioning system
A processor executing instructions stored in the memory to implement the multi-screen based animation rotation method of any one of claims 1 to 5 and/or claims 6 to 8.
10. A computer-readable storage medium, characterized by: the computer-readable storage medium has stored therein at least one instruction that is executed by a processor in a computer device to implement the multi-screen based animation rotation method of any of claims 1-5 and/or claims 6-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311281872.5A CN117032618B (en) | 2023-10-07 | 2023-10-07 | Animation rotation method, equipment and medium based on multiple screens |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311281872.5A CN117032618B (en) | 2023-10-07 | 2023-10-07 | Animation rotation method, equipment and medium based on multiple screens |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117032618A true CN117032618A (en) | 2023-11-10 |
CN117032618B CN117032618B (en) | 2024-02-02 |
Family
ID=88645145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311281872.5A Active CN117032618B (en) | 2023-10-07 | 2023-10-07 | Animation rotation method, equipment and medium based on multiple screens |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117032618B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010114337A2 (en) * | 2009-04-03 | 2010-10-07 | 주식회사 다림비젼 | 3d multiview apparatus, method for manufacturing same and recording medium |
US20100302257A1 (en) * | 2009-05-29 | 2010-12-02 | Microsoft Corporation | Systems and Methods For Applying Animations or Motions to a Character |
KR20130010657A (en) * | 2011-07-19 | 2013-01-29 | 김영대 | A video wall system using network synchronized rendering to display multiple sources |
CN107213636A (en) * | 2017-05-31 | 2017-09-29 | 网易(杭州)网络有限公司 | Camera lens moving method, device, storage medium and processor |
US20180115743A1 (en) * | 2016-10-21 | 2018-04-26 | Liquidsky Software, Inc. | Predictive virtual reality content streaming techniques |
CN108635857A (en) * | 2018-05-18 | 2018-10-12 | 腾讯科技(深圳)有限公司 | Interface display method, device, electronic device and computer readable storage medium |
CN110515452A (en) * | 2018-05-22 | 2019-11-29 | 腾讯科技(深圳)有限公司 | Image processing method, device, storage medium and computer equipment |
WO2022133683A1 (en) * | 2020-12-21 | 2022-06-30 | 京东方科技集团股份有限公司 | Mixed reality display method, mixed reality device, and storage medium |
-
2023
- 2023-10-07 CN CN202311281872.5A patent/CN117032618B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010114337A2 (en) * | 2009-04-03 | 2010-10-07 | 주식회사 다림비젼 | 3d multiview apparatus, method for manufacturing same and recording medium |
US20100302257A1 (en) * | 2009-05-29 | 2010-12-02 | Microsoft Corporation | Systems and Methods For Applying Animations or Motions to a Character |
KR20130010657A (en) * | 2011-07-19 | 2013-01-29 | 김영대 | A video wall system using network synchronized rendering to display multiple sources |
US20180115743A1 (en) * | 2016-10-21 | 2018-04-26 | Liquidsky Software, Inc. | Predictive virtual reality content streaming techniques |
CN107213636A (en) * | 2017-05-31 | 2017-09-29 | 网易(杭州)网络有限公司 | Camera lens moving method, device, storage medium and processor |
CN108635857A (en) * | 2018-05-18 | 2018-10-12 | 腾讯科技(深圳)有限公司 | Interface display method, device, electronic device and computer readable storage medium |
CN110515452A (en) * | 2018-05-22 | 2019-11-29 | 腾讯科技(深圳)有限公司 | Image processing method, device, storage medium and computer equipment |
WO2022133683A1 (en) * | 2020-12-21 | 2022-06-30 | 京东方科技集团股份有限公司 | Mixed reality display method, mixed reality device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117032618B (en) | 2024-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2972950B1 (en) | Segmentation of content delivery | |
JP2021192294A (en) | Human 3d key point detection method, model training method and related device | |
CN111476225B (en) | In-vehicle human face identification method, device, equipment and medium based on artificial intelligence | |
CN115034990A (en) | Image defogging processing method, device, equipment and medium in real-time scene | |
CN116743885B (en) | UDP engine-based data transmission method, device, equipment and medium | |
CN117032618B (en) | Animation rotation method, equipment and medium based on multiple screens | |
CN115984516B (en) | Augmented reality method based on SLAM algorithm and related equipment | |
CN117032617B (en) | Multi-screen-based grid pickup method, device, equipment and medium | |
CN117008796B (en) | Multi-screen collaborative rendering method, device, equipment and medium | |
CN117669000B (en) | Method, device, equipment and medium for generating diversified vertical surfaces of modularized building | |
CN115934576B (en) | Test case generation method, device, equipment and medium in transaction scene | |
CN116361753B (en) | Authority authentication method, device, equipment and medium | |
CN116957649B (en) | Customer screening method, device, equipment and medium | |
CN116414366B (en) | Middleware interface generation method, device, equipment and medium | |
CN117316359B (en) | Blood detection process tracking method, device, equipment and medium | |
CN113687834B (en) | Distributed system node deployment method, device, equipment and medium | |
CN116225789B (en) | Transaction system backup capability detection method, device, equipment and medium | |
CN116414699B (en) | Operation and maintenance testing method, device, equipment and medium | |
CN116934263B (en) | Product batch admittance method, device, equipment and medium | |
CN118193493A (en) | Service method, device, equipment and medium based on law enforcement event processing task | |
CN116306591A (en) | Flow form generation method, device, equipment and medium | |
CN107636681A (en) | Drawing object inference system and method | |
CN116860508A (en) | Distributed system software defect continuous self-healing method, device, equipment and medium | |
CN117371104A (en) | House design replacement and assembly method, device, equipment and medium | |
CN117151955A (en) | Traffic case processing state tracking method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |