CN113672280A - Animation playing program package compiling method and device, electronic equipment and storage medium - Google Patents

Animation playing program package compiling method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113672280A
CN113672280A CN202110992978.0A CN202110992978A CN113672280A CN 113672280 A CN113672280 A CN 113672280A CN 202110992978 A CN202110992978 A CN 202110992978A CN 113672280 A CN113672280 A CN 113672280A
Authority
CN
China
Prior art keywords
animation
resource file
file
program
compiling
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.)
Pending
Application number
CN202110992978.0A
Other languages
Chinese (zh)
Inventor
黄慧
郑红丽
刘朝阳
蔡旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202110992978.0A priority Critical patent/CN113672280A/en
Publication of CN113672280A publication Critical patent/CN113672280A/en
Priority to PCT/CN2022/114730 priority patent/WO2023025233A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a method and a device for compiling an animation playing program package, electronic equipment and a storage medium, wherein the method comprises the following steps: in the project created by Kanzi Studio, generating a three-dimensional resource file according to a skeleton animation file; writing a control application program for controlling the three-dimensional resource file in an application program object created through Visio Studio; and compiling an animation playing program package according to the three-dimensional resource file, the control application program and the Kanzi engine through an integrated development tool and importing the animation playing program package into a vehicle-mounted system. By adopting the technical scheme, the user interface fusion of the skeleton animation at the Android end is realized, the requirement of the 3D animation on the display effect is met, the vehicle-mounted application can be met, and the development is more efficient.

Description

Animation playing program package compiling method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for compiling an animation playing program package, electronic equipment and a storage medium.
Background
Along with the continuous development of the intelligent cabin, the functions and interfaces of the vehicle-mounted Android entertainment system are diversified, the design is more attractive, the interface requirements of a user on a vehicle-mounted Android application program are improved continuously, the two-dimensional (2D) interface cannot be met, three-dimensional (3D) image requirements can be met for a plurality of scenes in the traditional display modes such as a switch and a list, animation vividness, anthropomorphic simulation, ornamental performance and the like can be displayed, and the vehicle-mounted entertainment system is more colorful. At present, animation playing by a vehicle-mounted Android application program is usually realized by playing sequence frames, and the method utilizes the principle of human eye persistence of vision. However, this method is not suitable for more complex animation because much sequential frame picture resources are required and the visual effect is not ideal.
Disclosure of Invention
The invention provides a method and a device for compiling an animation playing program package, electronic equipment and a storage medium, which are used for realizing the fusion of skeleton animation on a user interface of an Android end, meeting the requirement of 3D animation on the display effect, meeting the requirement of vehicle-mounted application and developing more efficiently.
In a first aspect, an embodiment of the present invention provides a method for writing an animation playback package, including:
in the project created by Kanzi Studio, generating a three-dimensional resource file according to a skeleton animation file;
writing a control application program for controlling the three-dimensional resource file in an application program object created through Visio Studio;
and compiling an animation playing program package according to the three-dimensional resource file, the control application program and the Kanzi engine through an integrated development tool and importing the animation playing program package into a vehicle-mounted system.
Further, the generating a three-dimensional resource file according to the skeleton animation file includes:
adjusting the attribute of the bone animation corresponding to the bone animation file;
the interface of the skeleton animation with the adjusted attributes is laid out and an animation resource template is generated;
performing animation rendering on the bone animation according to the adjusted attribute;
and compiling based on the interface layout result, the animation resource template and the animation rendering result to obtain the three-dimensional resource file.
Further, the adjusting the attribute of the bone animation corresponding to the bone animation file includes:
changing the material type of the skeleton animation into a vertex coloring von texture skin;
adjusting a shader skinned skeleton definition value according to the number of the skeletons of the skeleton animation;
adjusting the blending intensity and specular reflectance index of the skeletal animation.
Further, writing a control application for controlling the three-dimensional resource file includes:
declaring and/or defining the three-dimensional resource file;
establishing a time line of skeleton animation corresponding to the three-dimensional resource file;
creating an animation player and compiling an animation playing method based on the timeline;
establishing a first Java local interface for calling the animation playing method;
and compiling a dynamic link library based on the animation playing method and the first Java native interface to obtain the control application program.
Further, the method also comprises the following steps:
newly building an asset folder in the Android Studio, wherein the asset folder is used for placing the three-dimensional resource file;
and newly establishing a dynamic instruction set file in the Android Studio, wherein the dynamic instruction set file and the dynamic link library are located in the same folder.
Further, writing an animation playing program package according to the three-dimensional resource file, the control application program and the Kanzi engine, including:
establishing a second Java local interface for calling the animation playing method;
and compiling based on the animation playing method and the second Java local interface to obtain the animation playing program package.
Further, the method also comprises the following steps:
and when a playing instruction is received, calling the animation playing method through the first Java local interface and the second Java local interface.
In a second aspect, an embodiment of the present invention provides an animation playback program package writing device, including:
the resource file generation module is used for generating a three-dimensional resource file according to the skeleton animation file in the project created by Kanzi Studio;
the first writing module is used for writing a control application program for controlling the three-dimensional resource file in an application program object created through Visio Studio;
and the second compiling module is used for compiling an animation playing program package according to the three-dimensional resource file, the control application program and the Kanzi engine through an integrated development tool and importing the animation playing program package into a vehicle-mounted system.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the animation playback package authoring method of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the animation playback package writing method according to the first aspect.
The embodiment of the invention provides a method and a device for compiling an animation playing program package, electronic equipment and a storage medium, wherein the method comprises the following steps: in the project created by Kanzi Studio, generating a three-dimensional resource file according to a skeleton animation file; writing a control application program for controlling the three-dimensional resource file in an application program object created through Visio Studio; and compiling an animation playing program package according to the three-dimensional resource file, the control application program and the Kanzi engine through an integrated development tool and importing the animation playing program package into a vehicle-mounted system. By adopting the technical scheme, the user interface fusion of the skeleton animation at the Android end is realized, the requirement of the 3D animation on the display effect is met, the vehicle-mounted application can be met, and the development is more efficient.
Drawings
Fig. 1 is a flowchart of a method for writing an animation playback package according to an embodiment of the present invention;
fig. 2 is a schematic diagram of writing an animation playback package according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an animation playback package compiling device according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
It should be noted that the terms "first", "second", and the like in the embodiments of the present invention are only used for distinguishing different apparatuses, modules, units, or other objects, and are not used for limiting the order or interdependence relationship of the functions performed by these apparatuses, modules, units, or other objects.
For a better understanding of embodiments of the present invention, the related art will be described below.
Example one
Fig. 1 is a flowchart of a method for writing an animation playback package according to an embodiment of the present invention, which is applicable to a case where an animation playback package is developed using skeletal animation. Specifically, the animation playback program package writing method may be executed by an animation playback program package writing device, which may be implemented in software and/or hardware and integrated in an electronic device. Further, electronic devices include, but are not limited to: desktop computers, notebook computers, smart phones, servers and other electronic devices.
As shown in fig. 1, the method specifically includes the following steps:
s110, in the project created through Kanzi Studio, a three-dimensional resource file is generated according to the skeleton animation file.
Specifically, the Kanzi platform is a Human Machine Interface (HMI) development tool provided for an intelligent cockpit, and comprises Kanzi Studio which is a set of content creation tool running at an electronic device end, can be used for designing a design tool of an automobile digital instrument panel visually, and can also be understood as a User Interface (User Interface, UI) editor, and the instrument panel can display high-quality and real-time rendered dynamic 3D images by matching with a graphic chip, so that a User can enjoy a customizable personalized visual Interface, a coding link can be simplified, and design efficiency can be improved. Kanzi also includes the Kanzi Engine (Kanzi Engine), i.e., the graphics and UI engines that run on computers, cell phones, and some embedded devices.
In this embodiment, Kanzi is used to compile an animation play package for the imported skeleton animation, and finally the package is put into vehicle-mounted application. First, visual materials are acquired, and in the embodiment, skeletal animation is mainly used. Skeletal animation is a model animation that has a skeletal structure of interconnected "bones" that can be more easily and quickly created by changing the orientation and position of the bones to animate the model. The bone animation file (FBX format file) is imported into Kanzi Studio to create basic functions of the user interface through Kanzi Studio, such as adapting skin for the bone animation, configuring the position of the bone animation in the interface, rendering the bone animation, etc., which are stored in the 3D resource file in the form of code. The 3D resource file is an kzb format file and can store Kanzi binary data. On this basis, the user Interface and interaction are realized by using an Application Programming Interface (API) or a script of Kanzi Engine.
The project created using Kanzi studio includes a Tool _ project folder for storing all files in the UI design process and an Application folder for storing relevant code.
And S120, writing a control application program for controlling the three-dimensional resource file in the application program object created by the Visio Studio.
Specifically, a control application program is written in Visio Studio based on C + + and is used for controlling the three-dimensional resource file. In the Application, the 3D resource file needs to be read, service parameters (such as playing time, playing times, playing frame number, etc.) of the skeletal animation are determined accordingly, an animation player is established, and an animation playing method is written for Java programs to call. And (3) obtaining a control application program after cross-platform compiling of the program written in the Visio Studio. The 3D resource file is an SO-formatted file and may store compiled code and data that may be used by other programs.
S130, writing an animation playing program package according to the three-dimensional resource file, the control application program and the Kanzi engine through an integrated development tool, and importing the animation playing program package into a vehicle-mounted system.
The integrated development tool mainly refers to Android Studio, supports Windows, Mac, Linux and other operating systems, and is built based on a popular Java language integrated development environment. And integrating the compiled animation playing program package (APK file) into the vehicle-mounted Android system through the Android Studio integrated 3D resource file, the control application program and the Kanzi engine.
According to the animation playing program package compiling method provided by the embodiment of the invention, a 3D resource file is generated by using Kanzi Studio, a control application program is compiled by using Visio Studio, an animation playing program package is compiled by using an Android integrated development tool and is led into a vehicle-mounted system, so that the user interface fusion of skeleton animation at an Android end is realized, the requirements of the 3D animation on the display effect are met, the vehicle-mounted application can be met, and the development is more efficient.
Example two
The embodiment optimizes the program package based on the above embodiment, and specifically describes the process of writing the animation play program package. It should be noted that technical details that are not described in detail in the present embodiment may be referred to any of the above embodiments.
In this embodiment, in the engineering created by Kanzi Studio, generating a 3D resource file from a skeletal animation file includes the following steps:
and S2110, adjusting the attribute of the bone animation corresponding to the bone animation file.
Specifically, the purpose of adjusting the attributes of the bone animation is to create a skin material for the bone animation according to the bone vertex, so that the skin material is adapted to the animation display requirements.
And S2120, laying out the interface of the skeleton animation with the attributes adjusted and generating an animation resource template.
Specifically, the interface layout refers to configuring the position of the skeleton animation displayed in the interface, such as the relationship, proportion or hierarchy between the skeleton animation and the interface center or boundary, and generating an animation resource template on the basis, so that the skeleton animation has a certain form, and convenient and reliable 3D resources are provided.
And S2130, performing animation rendering on the bone animation according to the adjusted attributes.
For example, vectors of all bones at different time points are calculated, interpolation and smooth transition are performed between bone animations at different time points, and the like.
S2140, compiling is carried out based on the interface layout result, the animation resource template and the animation rendering result, and a 3D resource file is obtained.
Optionally, adjusting the attribute of the bone animation corresponding to the bone animation file includes: changing the Material Type (Material Type) of the skeleton animation into a vertex coloring Von texture skin (VertexPihong TexturedSkinned); adjusting a SHADER skinned BONE definition value (KANZI _ SHADER _ SKINNING _ BONE _ COUNT) according to the number of BONEs of the BONE animation; the Blend Intensity (Blend Intensity) and Specular index (Specular exponennt) of the skeletal animation were adjusted. On the basis, the display effect is better, and the requirements of animation display are met.
In this embodiment, writing a control Application according to a 3D resource file in an Application object (Application) created by a Visio Studio specifically includes the following steps:
s2210, declaring and/or defining the 3D resource file.
Specifically, the 3D resource file needs to be declared and/or defined according to information such as a file name and an index on which the 3D resource file depends. The purpose of declaring the 3D resource file is to indicate the types and names of various types of 3D resources to a program or code; the purpose of defining the 3D resource file is to allocate storage space for various types of 3D resources, or to describe the specific content thereof, etc.
S2220, establishing a time line of the skeleton animation corresponding to the 3D resource file.
Specifically, a time line of the skeleton animation is established, so that the positions, postures, events and the like of the skeleton animation at different moments are determined, and a basis is provided for displaying the skeleton animation in an interface.
S2230, creating an animation player and writing an animation playing method based on the time line.
Specifically, by establishing more animation players, corresponding APIs in Application can be called according to business needs to set business parameters (such as playing time, playing times, playing frame number, and the like), and accordingly, the writing of the animation playing method is completed.
S2240, establishing a first Java local interface for calling the animation playing method.
Specifically, a Java Native Interface (JNI) is established in the Application, so that the Android Application Java program can successfully call the animation playing method.
S2250, compiling the dynamic link library based on the animation playing method and the first Java native interface to obtain the control application program.
Specifically, the control application program is obtained by compiling the dynamic link library across platforms.
In this embodiment, an animation playing package is compiled and imported into the vehicle-mounted system according to the 3D resource file, the control application program, and the Kanzi engine through an integrated development tool, and the method specifically includes the following steps:
s2310, creating an asset folder in the Android Studio, wherein the asset folder is used for placing the 3D resource file.
S2320, a dynamic instruction set file is newly established in the Android Studio, and the dynamic instruction set file and the dynamic link library are located in the same folder.
Specifically, asset folder Assets are newly built under an engineering source code of Android Studio and used for placing 3D resource files; and creating a new dynamic instruction set file jniLibs, wherein the folder of the instruction set is consistent with the folder of the dynamic link library.
And S2330, establishing a second Java local interface for calling the animation playing method.
Specifically, the animation playing method is the animation playing method written in S2230, the second JNI corresponds to the first JNI, and the calling of the animation playing method is realized by transmitting data between the second JNI and the first JNI.
S2340, compiling based on the animation playing method and the second Java local interface to obtain an animation playing program package.
The animation playing package is an executable Android Application Package (APK) file.
S2350, when a playing instruction is received, calling an animation playing method through the first Java local interface and the second Java local interface.
Specifically, business Activity is established at an Android end and is inherited with Kanzi Activity, a Java program is used for judging when an animation playing method needs to be called through the established JNI, and the animation playing method is called through the JNI when the animation playing method needs to be called. The judgment process CAN be realized by combining Network signal input, system broadcast receiving, cross-process communication between Android other applications or services and the application and the like of a Controller Area Network (CAN), so that the mutual access of bottom layer service control and a 3D UI is realized.
Fig. 2 is a schematic diagram of writing an animation playback package according to a second embodiment of the present invention. As shown in fig. 2, in Kanzi APP, the generation or writing of 3D resource files and control applications is completed; in Android Application, an Android Application program is established; and compiling the Android Studio to obtain an executable program package APK file, and finishing the development of the animation playing program package. The method specifically comprises the following steps:
1) establishing a 3D resource file: introducing the bone animation in Kanzi Studio, namely performing the following operations in Tool _ project:
a) fbx, importing the animation design providing skeletal animation file (xx) into Kanzi Studio;
b) changing the Material Type of the BONE animation Material into VertexPingTexturedSkinned, and adjusting the attribute of KANZI _ SHADER _ SKINNING _ BONE _ COUNT according to the actual BONE quantity in the BONE animation file;
c) adjusting the Blend Intensity attribute and the Specular exponentent attribute in the Material according to the display effect;
d) finishing the interface layout of the skeleton animation, adding animation resource templates and rendering the animation according to the material;
e) and compiling to form a fawassistant.
2) Writing a control application program: c + + program writing is carried out in Visio Studio, namely the following operations are carried out in Application:
a) establishing claims and definitions of 3D resources through aliases or paths
b) Referencing skeletal animations contained in 3D resources by establishing a timeline
c) Establishing more animation players, calling corresponding API (application program interface) to set service parameters according to service requirements, and compiling an animation playing method;
d) establishing JNI to enable the Android application Java program to call an animation playing method;
e) so, a dynamic link library libkanzi is compiled across platforms.
3) Establishing an Android application program: writing a Java program in the Android Studio, namely executing the following operations in Application:
a) integrating a Kanzi interface resource fawassistant.kzb in the Android Studio, and controlling libkanzi.so and Kanzi engine of a dynamic library; establishing asset folder Assets under an Android project source code, and placing a fawassistant. Newly building a dynamic instruction set file in the newly built jniLibs, wherein the folder of the instruction set is required to be consistent with the dynamic link library;
b) establishing JNI to enable the Android application Java program to call the animation playing method compiled in the step 2);
c) and establishing service Activity at an Android end and inheriting Kanzi Activity, judging when the animation playing method needs to be called by using a Java program through the established JNI, and calling through the JNI when the animation playing method needs to be called.
4) And integrating the compiled APK file into a vehicle-mounted Android system through the Android Studio.
It should be noted that the interaction between Kanzi C + + and Android Java depends on the JNI defined by both parties, and data is transferred in a data type transfer manner.
In this embodiment, Kanzi Activity is implemented in the Kanzi engine, and the Kanzi Activity uses surfaview as an interface during initialization and loads 3D resources to the surfaview at the same time. The vehicle-mounted Android3D application program development based on the Kanzi engine is realized by designing a development program, realizing specific animation by using Kanzi C + +, performing service judgment by using Android-end Java, and mutually calling by means of a JNI method. And after inheriting Kanzi Activity, the service Activity of the Android end can participate in interface circulation and calling of the application program as other non-3D activities.
The animation playing program package compiling method provided by the embodiment II of the invention is optimized on the basis of the embodiment, and 3D skeleton animation is introduced in an Android application program through a kanzi engine; the method comprises the steps that the 3D resource file is loaded in an Android application program, and the 3D resource is displayed; calling a dynamic link library through JNI in an Android application program to realize control of 3D resources; the Android application program responds to the user, the 3D resources respond to the user, the requirement for the 3D animation display effect is met, the limitation of Android on interface display is overcome, meanwhile, the development mode meets the vehicle-mounted application requirement, and development is more efficient.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an animation playback package writing device according to a third embodiment of the present invention. As shown in fig. 3, the animation playback package authoring apparatus provided in this embodiment includes:
a resource file generation module 310, configured to generate a three-dimensional resource file from the skeleton animation file in a project created by Kanzi Studio;
a first writing module 320 for writing a control application for controlling the three-dimensional resource file in an application object created by Visio Studio;
and the second writing module 330 is configured to write an animation playing package according to the three-dimensional resource file, the control application program and the Kanzi engine through an integrated development tool, and import the animation playing package into the vehicle-mounted system.
According to the animation playing program package compiling device provided by the embodiment of the invention, the user interface fusion of skeleton animation at the Android end is realized, the requirement of 3D animation on the display effect is met, the vehicle-mounted application can be met, and the development is more efficient.
On the basis of the above embodiment, the resource file generating module 310 includes:
the attribute adjusting unit is used for adjusting the attribute of the bone animation corresponding to the bone animation file;
the layout unit is used for laying out the interface of the skeleton animation with the adjusted attributes and generating an animation resource template;
the rendering unit is used for performing animation rendering on the bone animation according to the adjusted attribute;
and the first compiling unit is used for compiling based on the interface layout result, the animation resource template and the animation rendering result to obtain the three-dimensional resource file.
On the basis of the above embodiment, the attribute adjusting unit is configured to:
changing the material type of the skeleton animation into a vertex coloring von texture skin;
adjusting a shader skinned skeleton definition value according to the number of the skeletons of the skeleton animation;
adjusting the blending intensity and specular reflectance index of the skeletal animation.
On the basis of the above embodiment, the first writing module 320 includes:
the declaration unit is used for declaring and/or defining the three-dimensional resource file;
the time line establishing unit is used for establishing a time line of the skeleton animation corresponding to the three-dimensional resource file;
the first compiling unit is used for creating an animation player and compiling an animation playing method based on the time line;
the first establishing unit is used for calling a first Java local interface of the animation playing method;
and the second compiling unit is used for compiling a dynamic link library based on the animation playing method and the first Java native interface to obtain the control application program.
On the basis of the above embodiment, the apparatus further includes:
the system comprises a first newly-built module, a second newly-built module and a third newly-built module, wherein the first newly-built module is used for newly building an asset folder in the Android Studio, and the asset folder is used for placing the three-dimensional resource file;
and the second new building module is used for building a dynamic instruction set file in the Android Studio, and the dynamic instruction set file and the dynamic link library are located in the same folder.
On the basis of the above embodiment, the second writing module 330 includes:
the second establishing unit is used for establishing a second Java local interface for calling the animation playing method;
and the third compiling unit is used for compiling based on the animation playing method and the second Java native interface to obtain the animation playing program package.
On the basis of the above embodiment, the apparatus further includes:
and the calling module is used for calling the animation playing method through the first Java local interface and the second Java local interface when a playing instruction is received.
The animation playing program package compiling device provided by the third embodiment of the invention can be used for executing the animation playing program package compiling method provided by any embodiment, and has corresponding functions and beneficial effects.
Example four
Fig. 4 is a schematic diagram of a hardware structure of an electronic device according to a fourth embodiment of the present invention. Electronic devices include, but are not limited to: desktop computers, notebook computers, smart phones, servers and other electronic devices. As shown in fig. 4, the electronic device provided in the present application includes a storage device 42, a processor 41, and a computer program stored on the storage device and executable on the processor, and when the processor 41 executes the computer program, the animation playback package writing method described above is implemented.
The electronic device may further comprise a storage means 42; the processor 41 in the electronic device may be one or more, and fig. 4 illustrates one processor 41 as an example; storage 42 is used to store one or more programs; the one or more programs are executed by the one or more processors 41, so that the one or more processors 41 implement the animation playback package writing method as described in the embodiment of the present application.
The electronic device further includes: a communication device 43, an input device 44 and an output device 45.
The processor 41, the storage device 42, the communication device 43, the input device 44 and the output device 45 in the electronic apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 4.
The input device 44 is operable to receive input numeric or character information and to generate key signal inputs associated with user settings and function controls of the electronic device. The output device 45 may include a display device such as a display screen.
The communication means 43 may comprise a receiver and a transmitter. The communication device 43 is configured to perform information transmission and reception communication in accordance with control of the processor 41.
The storage device 42, which is a computer-readable storage medium, may be configured to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the animation playback package writing method according to the embodiment of the present application (for example, the resource file generating module 310, the first writing module 320, and the second writing module 330 in the animation playback package writing device). The storage device 42 may 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; the storage data area may store data created according to use of the electronic device, and the like. Further, the storage 42 may include high speed random access storage and may also include non-volatile storage, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 42 may further include storage remotely located from processor 41, which may be connected to the electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
On the basis of the above-described embodiments, the present embodiment also provides a computer-readable storage medium on which a computer program is stored, the program implementing an animation playback package authoring method in any of the above-described embodiments of the present invention when executed by an animation playback package authoring apparatus, the method comprising: in the project created by Kanzi Studio, generating a three-dimensional resource file according to a skeleton animation file; writing a control application program for controlling the three-dimensional resource file in an application program object created through Visio Studio; and compiling an animation playing program package according to the three-dimensional resource file, the control application program and the Kanzi engine through an integrated development tool and importing the animation playing program package into a vehicle-mounted system.
Embodiments of the present invention provide a storage medium including computer-executable instructions, which may take the form of any combination of one or more computer-readable media, such as a computer-readable signal medium or storage medium. The computer-readable storage medium may be, for example, but is not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory device (RAM), a Read Only Memory device (ROM), an Erasable Programmable Read Only Memory device (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. A computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for writing an animation play program package is characterized by comprising the following steps:
in the project created by Kanzi Studio, generating a three-dimensional resource file according to a skeleton animation file;
writing a control application program for controlling the three-dimensional resource file in an application program object created through Visio Studio;
and compiling an animation playing program package according to the three-dimensional resource file, the control application program and the Kanzi engine through an integrated development tool and importing the animation playing program package into a vehicle-mounted system.
2. The method of claim 1, wherein generating a three-dimensional resource file from a skeletal animation file comprises:
adjusting the attribute of the bone animation corresponding to the bone animation file;
the interface of the skeleton animation with the adjusted attributes is laid out and an animation resource template is generated;
performing animation rendering on the bone animation according to the adjusted attribute;
and compiling based on the interface layout result, the animation resource template and the animation rendering result to obtain the three-dimensional resource file.
3. The method of claim 2, wherein the adjusting the attributes of the bone animation corresponding to the bone animation file comprises:
changing the material type of the skeleton animation into a vertex coloring von texture skin;
adjusting a shader skinned skeleton definition value according to the number of the skeletons of the skeleton animation;
adjusting the blending intensity and specular reflectance index of the skeletal animation.
4. The method of claim 1, wherein writing a control application for controlling the three-dimensional resource file comprises:
declaring and/or defining the three-dimensional resource file;
establishing a time line of skeleton animation corresponding to the three-dimensional resource file;
creating an animation player and compiling an animation playing method based on the timeline;
establishing a first Java local interface for calling the animation playing method;
and compiling a dynamic link library based on the animation playing method and the first Java native interface to obtain the control application program.
5. The method of claim 4, further comprising:
newly building an asset folder in the Android Studio, wherein the asset folder is used for placing the three-dimensional resource file;
and newly establishing a dynamic instruction set file in the Android Studio, wherein the dynamic instruction set file and the dynamic link library are located in the same folder.
6. The method of claim 4, wherein writing an animation package from the three-dimensional resource file, the control application, and a Kanzi engine comprises:
establishing a second Java local interface for calling the animation playing method;
and compiling based on the animation playing method and the second Java local interface to obtain the animation playing program package.
7. The method of claim 6, further comprising:
and when a playing instruction is received, calling the animation playing method through the first Java local interface and the second Java local interface.
8. An animation playback program package authoring apparatus comprising:
the resource file generation module is used for generating a three-dimensional resource file according to the skeleton animation file in the project created by Kanzi Studio;
the first writing module is used for writing a control application program for controlling the three-dimensional resource file in an application program object created through Visio Studio;
and the second compiling module is used for compiling an animation playing program package according to the three-dimensional resource file, the control application program and the Kanzi engine through an integrated development tool and importing the animation playing program package into a vehicle-mounted system.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the animation playback package authoring method of any of claims 1-7.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the animation playback package authoring method according to any one of claims 1 to 7.
CN202110992978.0A 2021-08-27 2021-08-27 Animation playing program package compiling method and device, electronic equipment and storage medium Pending CN113672280A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110992978.0A CN113672280A (en) 2021-08-27 2021-08-27 Animation playing program package compiling method and device, electronic equipment and storage medium
PCT/CN2022/114730 WO2023025233A1 (en) 2021-08-27 2022-08-25 Method and apparatus for writing animation playback program package, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110992978.0A CN113672280A (en) 2021-08-27 2021-08-27 Animation playing program package compiling method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113672280A true CN113672280A (en) 2021-11-19

Family

ID=78546720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110992978.0A Pending CN113672280A (en) 2021-08-27 2021-08-27 Animation playing program package compiling method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113672280A (en)
WO (1) WO2023025233A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023025233A1 (en) * 2021-08-27 2023-03-02 中国第一汽车股份有限公司 Method and apparatus for writing animation playback program package, electronic device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103606180A (en) * 2013-11-29 2014-02-26 广州菲动软件科技有限公司 Rendering method and device of 3D skeletal animation
CN106649541A (en) * 2016-10-26 2017-05-10 广东小天才科技有限公司 Cartoon playing and generating method and device
CN107291468A (en) * 2017-06-21 2017-10-24 深圳Tcl新技术有限公司 Play method, terminal and the computer-readable recording medium of power on/off cartoon
CN110134392A (en) * 2019-04-30 2019-08-16 延锋伟世通电子科技(南京)有限公司 Sequence frame animation play plug-in unit based on kanzi
CN110554873A (en) * 2019-08-20 2019-12-10 上海沣沅星科技有限公司 system, computer device and storage medium for realizing human-computer interaction interface
CN111522620A (en) * 2020-07-06 2020-08-11 延锋伟世通电子科技(南京)有限公司 Double-process efficient HMI design scheme of full liquid crystal instrument
AU2020200471A1 (en) * 2020-01-23 2021-08-12 Bhattacharya, Srimanta MR Web Application Builder

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018226621A1 (en) * 2017-06-05 2018-12-13 Umajin Inc. Methods and systems for an application system
CN111722843A (en) * 2019-03-18 2020-09-29 苏州欧菲光科技有限公司 HMI system, HMI component thereof, HMI component development method and vehicle-mounted display equipment
CN112099789A (en) * 2020-09-08 2020-12-18 中国第一汽车股份有限公司 Human-computer interaction design method, device, equipment and storage medium
CN113672280A (en) * 2021-08-27 2021-11-19 中国第一汽车股份有限公司 Animation playing program package compiling method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103606180A (en) * 2013-11-29 2014-02-26 广州菲动软件科技有限公司 Rendering method and device of 3D skeletal animation
CN106649541A (en) * 2016-10-26 2017-05-10 广东小天才科技有限公司 Cartoon playing and generating method and device
CN107291468A (en) * 2017-06-21 2017-10-24 深圳Tcl新技术有限公司 Play method, terminal and the computer-readable recording medium of power on/off cartoon
CN110134392A (en) * 2019-04-30 2019-08-16 延锋伟世通电子科技(南京)有限公司 Sequence frame animation play plug-in unit based on kanzi
CN110554873A (en) * 2019-08-20 2019-12-10 上海沣沅星科技有限公司 system, computer device and storage medium for realizing human-computer interaction interface
AU2020200471A1 (en) * 2020-01-23 2021-08-12 Bhattacharya, Srimanta MR Web Application Builder
CN111522620A (en) * 2020-07-06 2020-08-11 延锋伟世通电子科技(南京)有限公司 Double-process efficient HMI design scheme of full liquid crystal instrument

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JENNI LEHTONEN: "FROM 2D-SPRITE TO SKELETAL ANIMATIONS", 《BACHELOR`S THESIS INFORMATION TECHNOLOGY GAME TECHNOLOGY》, 31 December 2016 (2016-12-31) *
耿小兵 等: "洗消分队战术技术仿真训练系统研究", 《系统仿真学报》, vol. 24, no. 2, 29 February 2012 (2012-02-29), pages 339 - 343 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023025233A1 (en) * 2021-08-27 2023-03-02 中国第一汽车股份有限公司 Method and apparatus for writing animation playback program package, electronic device, and storage medium

Also Published As

Publication number Publication date
WO2023025233A1 (en) 2023-03-02

Similar Documents

Publication Publication Date Title
CN103530018B (en) The method for building up and mobile terminal at widget interface in Android operation system
CN111583379B (en) Virtual model rendering method and device, storage medium and electronic equipment
Zarrad Game engine solutions
US20130127849A1 (en) Common Rendering Framework and Common Event Model for Video, 2D, and 3D Content
CN116302366B (en) Terminal development-oriented XR application development system, method, equipment and medium
CN113076152A (en) Rendering method and device, electronic equipment and computer readable storage medium
Baddam Pushing the Boundaries: Advanced Game Development in Unity
CN115690375A (en) Building model modification interaction method, system and terminal based on virtual reality technology
US20190114819A1 (en) Dimensional content surface rendering
US11034092B2 (en) 3D-printed object with dynamic augmented-reality textures
WO2023025233A1 (en) Method and apparatus for writing animation playback program package, electronic device, and storage medium
CN104503663A (en) 3D man-machine interaction desktop system
CN115439586B (en) Data processing method, device, storage medium and computer program product
WO2023230423A1 (en) Combining content in a preview state
CN116339737A (en) XR application editing method, device and storage medium
CN111367561A (en) Software program remote development method and device
CN110636320A (en) Animation generation method and device for live broadcast, storage medium and electronic equipment
CN115167940A (en) 3D file loading method and device
Jackson Pro android wearables: Building apps for smartwatches
CN115040866A (en) Cloud game image processing method, device, equipment and computer readable storage medium
CN103295181B (en) A kind of stacking method and device of particle file and video
CN113473211B (en) Virtual gift processing method and device, storage medium and electronic equipment
US20240009560A1 (en) 3D Image Implementation
CN107479780A (en) A kind of virtual scene processing, method for down loading and device, VR equipment
CN117369820B (en) Rendering flow chart generation method, device and equipment

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