[go: up one dir, main page]

CN117406992A - Special effect display method and device, electronic equipment and readable storage medium - Google Patents

Special effect display method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117406992A
CN117406992A CN202310270663.4A CN202310270663A CN117406992A CN 117406992 A CN117406992 A CN 117406992A CN 202310270663 A CN202310270663 A CN 202310270663A CN 117406992 A CN117406992 A CN 117406992A
Authority
CN
China
Prior art keywords
special effect
display window
rendering thread
software development
instance
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
CN202310270663.4A
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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo Ltd
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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202310270663.4A priority Critical patent/CN117406992A/en
Publication of CN117406992A publication Critical patent/CN117406992A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • G06T13/603D [Three Dimensional] animation of natural phenomena, e.g. rain, snow, water or plants
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a special effect display method, a device, an electronic device and a readable storage medium, comprising the following steps: acquiring special effect information to be displayed on a display window; processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect instance; transmitting the special effect instance from the rendering thread to the display window through a target interface in the software development kit, wherein the running environments between the rendering thread and the display window are different; and displaying the special effect example in the display window. Therefore, the special effect display method provided by the embodiment of the application can generate the special effect instance based on the software development tool in the mobile terminal, and meanwhile, the target interface for connecting the rendering thread and the display window is arranged in the software development tool, so that the generated special effect instance can be sent to the display windows in different running environments through the target interface, and the efficiency of special effect display is improved.

Description

Special effect display method and device, electronic equipment and readable storage medium
Technical Field
The application relates to the technical field of special effect generation, in particular to a special effect display method, a device, electronic equipment and a readable storage medium.
Background
In application development of mobile terminals, the following particle effects such as fireworks, smog, rain and snow, explosion, dust, storm, universe star, etc. are usually achieved:
1, a designer uses computer end tools such as AE to make an effect prototype (generally a video or a picture so as to express the effect wanted by the designer), then the effect prototype is converted into a picture sequence or a video, and then the picture sequence or the video is displayed and played by programming of application developers at a mobile end;
2, the designer gives out the effect prototype, the mobile application developer writes/transplants the particle system code, and the developer debugs the particle effect parameter to reach or approach the target effect
In the first mode, all the effects wanted by the designers can be realized, but the final effect is fixed, unchangeable and not interactable, the particle effect has no randomness, and the effect can be perceived as playing video/pictures in experience;
in the second mode, the requirements on the developers are high, special particle systems need to be designed/transplanted, meanwhile, an artist basis is needed when parameter adjustment is carried out, the final manufacturing effect is often greatly deviated from that of a designer, or even if the requirements of the designer can be met, the developers often spend a great deal of time and energy.
Therefore, a scheme is needed, so that the effect designed by a designer can be directly used at the mobile terminal, on one hand, the development of the effect is quickened, the period of application is shortened, and on the other hand, the requirements of application developers at the mobile terminal are reduced. At present, a mode is provided by an open-source libpag, after an AE development effect is used by a designer, the effect file is directly exported by a specific plug-in unit as an effect file which can be loaded by a mobile terminal, the effect file can be directly loaded for display by running a run time in application, unfortunately, the libpag depends on the AE, the particle effect produced by a three-way plug-in unit in the AE is directly exported as a picture sequence or video, and no corresponding particle system run time exists at the mobile terminal.
On the other hand, there are already very mature particle systems and design tools in game development, and also have equipment end runtimes, but only game development is self-integrated, and general game development tools only provide a way of one-key derivation as mobile end executable application, wherein the particle systems cannot be separated separately, and cannot be used in general mobile development.
In summary, the efficiency of displaying special effects on mobile terminals is low.
Disclosure of Invention
The application provides a special effect display method, a device, electronic equipment and a readable storage medium, and aims to solve the technical problem that the existing special effect display method is low in efficiency of displaying special effects on a mobile terminal.
In a first aspect, the present application provides a special effect display method, including:
acquiring special effect information to be displayed on a display window;
processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect instance;
transmitting the special effect instance from the rendering thread to the display window through a target interface in the software development kit, wherein the running environments between the rendering thread and the display window are different;
and displaying the special effect example in the display window.
In one possible implementation of the present application, the special effects instance is a particle special effects instance.
In one possible implementation manner of the present application, the obtaining special effect information to be displayed on the display window includes:
and responding to the input attribute encapsulation information corresponding to the display window, and decapsulating the attribute encapsulation information through a rendering thread in a preset software development kit to obtain special effect information to be displayed on the display window.
In one possible implementation manner of the application, the software development kit further includes an isolation layer, where the isolation layer is configured to isolate, from the rendering thread, a header file currently processed by the rendering thread and including at least part of the special effect information.
In one possible implementation manner of the application, the special effect information is multiple, each special effect information corresponds to a different special effect instance to be displayed in the display window,
the processing of the special effect information by the rendering thread packaged in the software development kit preset in the mobile terminal to obtain a special effect example comprises the following steps:
and respectively inputting each special effect information into each rendering thread in a software development kit preset in the mobile terminal, and generating each special effect instance corresponding to each special effect information.
In one possible implementation manner of the present application, the displaying the special effect instance in the display window includes:
and displaying the special effect instance corresponding to each rendering thread in the window area of the display window corresponding to each rendering thread.
In one possible implementation of the present application, the software development kit further includes an interface management layer, where the interface management layer is configured to connect the rendering thread with the target interface.
In a second aspect, the present application provides a special effect display device, including:
the acquisition unit is used for acquiring special effect information to be displayed on the display window;
the processing unit is used for processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect example;
a sending unit, configured to send the special effect instance from the rendering thread to the display window through a target interface in the software development kit, where a running environment between the rendering thread and the display window is different;
and the display unit is used for displaying the special effect example in the display window.
In one possible implementation of the present application, the special effects instance is a particle special effects instance.
In a possible implementation manner of the present application, the obtaining unit is further configured to:
and responding to the input attribute encapsulation information corresponding to the display window, and decapsulating the attribute encapsulation information through a rendering thread in a preset software development kit to obtain special effect information to be displayed on the display window.
In one possible implementation manner of the application, the software development kit further includes an isolation layer, where the isolation layer is configured to isolate, from the rendering thread, a header file currently processed by the rendering thread and including at least part of the special effect information.
In one possible implementation manner of the present application, there are a plurality of special effect information, each of the special effect information corresponds to a different special effect instance to be displayed in the display window, and the processing unit is further configured to:
and respectively inputting each special effect information into each rendering thread in a software development kit preset in the mobile terminal, and generating each special effect instance corresponding to each special effect information.
In a possible implementation of the present application, the display unit is further configured to:
and displaying the special effect instance corresponding to each rendering thread in the window area of the display window corresponding to each rendering thread.
In one possible implementation of the present application, the software development kit further includes an interface management layer, where the interface management layer is configured to connect the rendering thread with the target interface. .
In a third aspect, the present application further provides an electronic device, where the electronic device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and where the processor executes steps in any of the special effect display methods provided herein when the processor invokes the computer program in the memory.
In a fourth aspect, the present application further provides a readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of any of the special effect display methods provided herein.
In summary, the special effect display method provided in the embodiment of the present application includes: acquiring special effect information to be displayed on a display window; processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect instance; transmitting the special effect instance from the rendering thread to the display window through a target interface in the software development kit, wherein the running environments between the rendering thread and the display window are different; and displaying the special effect example in the display window.
Therefore, the special effect display method provided by the embodiment of the application can generate the special effect instance based on the software development tool in the mobile terminal, and meanwhile, the target interface for connecting the rendering thread and the display window is arranged in the software development tool, so that the generated special effect instance can be sent to the display windows in different running environments through the target interface, and the efficiency of special effect display is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a special effect display method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a special effect display method provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a software development kit provided in an embodiment of the present application;
FIG. 4 is another schematic illustration of a software development kit provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of an embodiment of a special effect display device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an embodiment of an electronic device provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In the description of the embodiments of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or an implicit indication of the number of features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for purposes of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known processes have not been described in detail in order to avoid unnecessarily obscuring descriptions of the embodiments of the present application. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed in the embodiments of the present application.
The embodiment of the application provides a special effect display method, a special effect display device, electronic equipment and a readable storage medium. The special effect display device can be integrated in electronic equipment, and the electronic equipment can be a server, a terminal and other equipment.
The execution main body of the special effect display method in the embodiment of the application may be a special effect display device provided in the embodiment of the application, or different types of electronic devices such as a server device, a physical host, or special effect maker Equipment (UE) integrated with the special effect display device, where the special effect display device may be implemented in a hardware or software manner, and the UE may specifically be a terminal device such as a smart phone, a tablet computer, a notebook computer, a palm computer, a desktop computer, or a personal digital assistant (Personal Digital Assistant, PDA).
The electronic device may be operated in a single operation mode, or may also be operated in a device cluster mode.
Referring to fig. 1, fig. 1 is a schematic view of a scene of a special effect display system provided in an embodiment of the present application. The special effect display system may include an electronic device 100, and a special effect display device is integrated in the electronic device 100.
In addition, as shown in FIG. 1, the special effects display system may also include a memory 200 for storing data, such as text data.
It should be noted that, the schematic view of the scene of the special effect display system shown in fig. 1 is only an example, and the special effect display system and the scene described in the embodiments of the present application are for more clearly describing the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application, and those skilled in the art can know that, with the evolution of the special effect display system and the appearance of a new service scene, the technical solutions provided in the embodiments of the present invention are applicable to similar technical problems.
Next, an embodiment of the present application will be described, in which an electronic device is used as an execution body, and in order to simplify and facilitate description, in a subsequent embodiment of the method, the execution body is omitted, and the method for displaying an effect includes: acquiring special effect information to be displayed on a display window; processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect instance; transmitting the special effect instance from the rendering thread to the display window through a target interface in the software development kit, wherein the running environments between the rendering thread and the display window are different; and displaying the special effect example in the display window.
Referring to fig. 2, fig. 2 is a schematic flow chart of a special effect display method according to an embodiment of the present application. It should be noted that although a logical order is depicted in the flowchart, in some cases the steps depicted or described may be performed in a different order than presented herein. The special effect display method specifically may include the following steps 201 to 204, in which:
201. and acquiring special effect information to be displayed on a display window.
The display window refers to a terminal window for displaying special effects in the mobile terminal. For example, the display window may be a window of APP that can display special effects such as games and movies in a moving window.
The special effect information refers to effect parameter information for generating a special effect example, and in this application, a special effect may refer to a particle special effect, and hereinafter, for convenience of understanding, the particle special effect is described as an example, but it should not be construed as limiting the embodiments of the present application. Illustratively, the special effects information may include appearance properties and physical motion properties of the particles. For example, appearance attributes such as particle color, size, number, and physical movement attributes such as particle life cycle and movement speed may be included in the special effect information.
The special effect information may be input into the mobile terminal by the user. For example, the user may edit the effect file in the format of efkefc through a particle system editing tool in other terminals such as a personal computer, and input the effect file into the mobile terminal, and the mobile terminal analyzes the effect file to obtain special effect information.
In the embodiment of the application, the mobile terminal may refer to a smart phone or the like using android as an operating system.
202. And processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect example.
The special effect example refers to special effect information which can be played in a display window after being generated. For example, an effect instance may refer to a generated video, animation, etc. that contains an effect.
In the embodiment of the application, a software development kit (Software Development Kit, SDK) is used to encapsulate a rendering thread, a management tool of the rendering thread, and other special effects development tools for generating special effects instances, in the application, a c++ part of the whole software development kit is organized by a cmake, and is compiled by using ndk, and a Java part is compiled by using android studio. For ease of understanding, referring to FIG. 3, FIG. 3 shows a schematic diagram of one configuration of a software development kit 300. The software development kit 300 includes a run time layer 301, a manager layer 302, a tool layer 303, and a Java api layer 304.
The run time layer 301 may be formed by run times of the Effekseer tool, which may contain objects associated with rendering logic, such as render, effect created in the Effekseer tool, and the run time layer 301 may be understood as rendering threads.
manager layer 302 manages a plurality of particle nodes (nodes). One particle node can only load a single effect file, but can play for multiple times, each play can generate a play instance, and the handle is used for distinguishing. The implementation of manager layer 302 has two, one legacy providing only basic rendering display functionality and one called editor providing functionality that is nearly identical to the editor. The manager layer 302 may be a manager object created in the Effekseer tool.
Because of the large number of header files involved in the run time layer 301 portion, the manager layer 302 may also be used to encapsulate the run time layer 301 to isolate the code header files of the run time layer 301 from other portions of the software development kit development in order to avoid possible namespace pollution when developing other modules. The software development kit further comprises an isolation layer, wherein the isolation layer is used for isolating a header file which is currently processed by the rendering thread and contains at least part of special effect information from the rendering thread.
the Tool layer 303 and the manager layer 302 are consistent, one Tool instance manages a plurality of particle nodes, and each particle node loads a unique effect file and can be played for multiple times. the tool layer 303 is used for interfacing with the api interfaces in the Java api layer 304, and interfacing with the apis with different functions such as background color, background picture, illumination, touch, etc. the tool layer 303 may be understood as an interface management layer.
The Java api layer 304 includes Java layers 3041 and Jni layers 3042, and the jni layer 3042 is used to convert a programming language, encapsulate the use of the tool layer 303, and send the converted information to the Java layer 3041.Java layer 3041 provides interfaces/classes that can be used by the developer, and reference may be made to Table 1 for details:
TABLE 1
Each effeserView instance of the Java layer corresponds to a rendering thread, each rendering thread corresponds to a LiliRender instance, and each effeserView instance of the Java corresponds to an effeserView instance in a LiliRender object. The particle nodes also have such correspondence.
The roles of the run time layer 301, the manager layer 302, and the tool layer 303 can refer to runtime, manager and tools in the existing particle system, and will not be described again. A schematic structure of the manager layer 302, the tool layer 303, and the Java layer 3041 can be referred to fig. 4.
In some embodiments, the effect file input by the user may be unpacked by the run time layer 301 to obtain the special effect information. Namely, the step of acquiring special effect information to be displayed on a display window includes:
and responding to the input attribute encapsulation information corresponding to the display window, and decapsulating the attribute encapsulation information through a rendering thread in a preset software development kit to obtain special effect information to be displayed on the display window.
The attribute encapsulation information refers to an input effect file, and the rendering thread refers to the run layer 301, i.e. the rendering thread provides the function of decapsulation.
In some embodiments, a software development kit provided herein may include a plurality of rendering threads. At this time, there are a plurality of special effect information, each of which corresponds to a different special effect instance to be displayed in a display window, and the step of processing the special effect information by a rendering thread encapsulated in a software development kit preset in the mobile terminal to obtain a special effect instance includes:
and respectively inputting each special effect information into each rendering thread in a software development kit preset in the mobile terminal, and generating each special effect instance corresponding to each special effect information.
203. And sending the special effect instance from the rendering thread to the display window through a target interface in the software development kit, wherein the running environments of the rendering thread and the display window are different.
The target interface may refer to an EGLConfigTailor interface in table 1, and is configured to send the generated special effect instance to a display window in the android system environment, so that the rendering thread and the native window of the mobile terminal communicate in different running environments.
204. And displaying the special effect example in the display window.
In some embodiments, there are a plurality of special effects information, and in this case, the step of displaying the special effects instance in the display window includes:
and displaying the special effect instance corresponding to each rendering thread in the window area of the display window corresponding to each rendering thread.
In summary, the special effect display method provided in the embodiment of the present application includes: acquiring special effect information to be displayed on a display window; processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect instance; transmitting the special effect instance from the rendering thread to the display window through a target interface in the software development kit, wherein the running environments between the rendering thread and the display window are different; and displaying the special effect example in the display window.
Therefore, the special effect display method provided by the embodiment of the application can generate the special effect instance based on the software development tool in the mobile terminal, and meanwhile, the target interface for connecting the rendering thread and the display window is arranged in the software development tool, so that the generated special effect instance can be sent to the display windows in different running environments through the target interface, and the efficiency of special effect display is improved.
In order to better implement the special effect display method in the embodiment of the present application, on the basis of the special effect display method, a special effect display device is further provided in the embodiment of the present application, as shown in fig. 5, which is a schematic structural diagram of an embodiment of the special effect display device in the embodiment of the present application, where the special effect display device 500 includes:
an obtaining unit 501, configured to obtain special effect information to be displayed on a display window;
the processing unit 502 is configured to process the special effect information through a rendering thread encapsulated in a software development kit preset in the mobile terminal, so as to obtain a special effect instance;
a sending unit 503, configured to send the special effect instance from the rendering thread to the display window through a target interface in the software development kit, where a running environment between the rendering thread and the display window is different;
and a display unit 504, configured to display the special effect instance in the display window.
In one possible implementation of the present application, the special effects instance is a particle special effects instance.
In a possible implementation manner of the present application, the obtaining unit 501 is further configured to:
and responding to the input attribute encapsulation information corresponding to the display window, and decapsulating the attribute encapsulation information through a rendering thread in a preset software development kit to obtain special effect information to be displayed on the display window.
In one possible implementation manner of the application, the software development kit further includes an isolation layer, where the isolation layer is configured to isolate, from the rendering thread, a header file currently processed by the rendering thread and including at least part of the special effect information.
In one possible implementation manner of the present application, there are a plurality of special effect information, each of which corresponds to a different special effect instance to be displayed in the display window, and the processing unit 502 is further configured to:
and respectively inputting each special effect information into each rendering thread in a software development kit preset in the mobile terminal, and generating each special effect instance corresponding to each special effect information.
In one possible implementation of the present application, the display unit 504 is further configured to:
and displaying the special effect instance corresponding to each rendering thread in the window area of the display window corresponding to each rendering thread.
In one possible implementation of the present application, the software development kit further includes an interface management layer, where the interface management layer is configured to connect the rendering thread with the target interface.
In the implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or several entities, and the implementation of each module may be referred to the foregoing method embodiment, which is not described herein again.
Since the special effect display device can execute steps in the special effect display method in any embodiment, the beneficial effects of the special effect display method in any embodiment of the application can be realized, and detailed descriptions are omitted herein.
In addition, in order to better implement the special effect display method in the embodiment of the present application, on the basis of the special effect display method, the embodiment of the present application further provides an electronic device, referring to fig. 6, fig. 6 shows a schematic structural diagram of the electronic device in the embodiment of the present application, and specifically, the electronic device provided in the embodiment of the present application includes a processor 601, where the processor 601 is configured to implement each step of the special effect display method in any embodiment when executing a computer program stored in a memory 602; alternatively, the processor 601 is configured to implement the functions of the respective modules in the corresponding embodiment of fig. 5 when executing the computer program stored in the memory 602.
By way of example, a computer program may be partitioned into one or more modules/units that are stored in the memory 602 and executed by the processor 601 to accomplish the embodiments of the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing particular functions to describe the execution of the computer program in a computer device.
The electronic device may include, but is not limited to, a processor 601, a memory 602. It will be appreciated by those skilled in the art that the illustrations are merely examples of electronic devices and are not limiting of electronic devices, and may include more or fewer components than illustrated, or may combine certain components, or different components.
The processor 601 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center for an electronic device, with various interfaces and lines connecting various parts of the overall electronic device.
The memory 602 may be used to store computer programs and/or modules, and the processor 601 implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 602 and invoking data stored in the memory 602. The memory 602 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 (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the electronic device, and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, the specific operation of the special effect display apparatus, the electronic device and the corresponding modules described above may refer to the description of the special effect display method in any embodiment, for example, the electronic device may be used for:
acquiring special effect information to be displayed on a display window;
processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect instance;
transmitting the special effect instance from the rendering thread to the display window through a target interface in the software development kit, wherein the running environments between the rendering thread and the display window are different;
and displaying the special effect example in the display window.
In one possible implementation of the present application, the special effects instance is a particle special effects instance.
In one possible implementation of the present application, the electronic device may also be configured to:
and responding to the input attribute encapsulation information corresponding to the display window, and decapsulating the attribute encapsulation information through a rendering thread in a preset software development kit to obtain special effect information to be displayed on the display window.
In one possible implementation manner of the application, the software development kit further includes an isolation layer, where the isolation layer is configured to isolate, from the rendering thread, a header file currently processed by the rendering thread and including at least part of the special effect information.
In one possible implementation manner of the application, the special effect information is multiple, each special effect information corresponds to a different special effect instance to be displayed in the display window,
the electronic device may also be used to:
and respectively inputting each special effect information into each rendering thread in a software development kit preset in the mobile terminal, and generating each special effect instance corresponding to each special effect information.
In one possible implementation of the present application, the electronic device may also be configured to:
and displaying the special effect instance corresponding to each rendering thread in the window area of the display window corresponding to each rendering thread.
In one possible implementation of the present application, the software development kit further includes an interface management layer, where the interface management layer is configured to connect the rendering thread with the target interface.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions or by controlling associated hardware, which may be stored on a readable storage medium and loaded and executed by a processor.
To this end, the embodiments of the present application provide a readable storage medium, on which a computer program is stored, which when executed by a processor performs the steps in the special effect display method in any embodiment of the present application, and the specific operation may refer to the description of the special effect display method in any embodiment.
Wherein the readable storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the instructions stored in the readable storage medium may perform the steps in the special effect display method in any embodiment of the present application, the beneficial effects that can be achieved by the special effect display method in any embodiment of the present application can be achieved, for example, the readable storage medium may be used for:
acquiring special effect information to be displayed on a display window;
processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect instance;
transmitting the special effect instance from the rendering thread to the display window through a target interface in the software development kit, wherein the running environments between the rendering thread and the display window are different;
and displaying the special effect example in the display window.
In one possible implementation of the present application, the special effects instance is a particle special effects instance.
In one possible implementation of the present application, a readable storage medium may also be used to:
and responding to the input attribute encapsulation information corresponding to the display window, and decapsulating the attribute encapsulation information through a rendering thread in a preset software development kit to obtain special effect information to be displayed on the display window.
In one possible implementation manner of the application, the software development kit further includes an isolation layer, where the isolation layer is configured to isolate, from the rendering thread, a header file currently processed by the rendering thread and including at least part of the special effect information.
In one possible implementation manner of the application, the special effect information is multiple, each special effect information corresponds to a different special effect instance to be displayed in the display window,
the readable storage medium may also be for:
and respectively inputting each special effect information into each rendering thread in a software development kit preset in the mobile terminal, and generating each special effect instance corresponding to each special effect information.
In one possible implementation of the present application, a readable storage medium may also be used to:
and displaying the special effect instance corresponding to each rendering thread in the window area of the display window corresponding to each rendering thread.
In one possible implementation of the present application, the software development kit further includes an interface management layer, where the interface management layer is configured to connect the rendering thread with the target interface.
The foregoing describes in detail a special effect display method, apparatus, storage medium and electronic device provided in the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing description of the embodiments is only used to help understand the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The special effect display method is characterized in that the special effect display method is applied to a mobile terminal and comprises the following steps:
acquiring special effect information to be displayed on a display window;
processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect instance;
transmitting the special effect instance from the rendering thread to the display window through a target interface in the software development kit, wherein the running environments between the rendering thread and the display window are different;
and displaying the special effect example in the display window.
2. The special effects display method of claim 1, wherein the special effects instance is a particle special effects instance.
3. The special effect display method according to claim 1, wherein the obtaining special effect information to be displayed in the display window includes:
and responding to the input attribute encapsulation information corresponding to the display window, and decapsulating the attribute encapsulation information through a rendering thread in a preset software development kit to obtain special effect information to be displayed on the display window.
4. The special effects display method of claim 1, wherein the software development kit further comprises an isolation layer for isolating a header file currently processed by the rendering thread that contains at least a portion of the special effects information from the rendering thread.
5. The special effect display method according to claim 1, wherein the special effect information has a plurality of special effect information, each special effect information corresponds to different special effect examples to be displayed in the display window,
the processing of the special effect information by the rendering thread packaged in the software development kit preset in the mobile terminal to obtain a special effect example comprises the following steps:
and respectively inputting each special effect information into each rendering thread in a software development kit preset in the mobile terminal, and generating each special effect instance corresponding to each special effect information.
6. The special effects display method according to claim 5, wherein the displaying the special effects instance in the display window includes:
and displaying the special effect instance corresponding to each rendering thread in the window area of the display window corresponding to each rendering thread.
7. The special effects display method of any one of claims 1-6, wherein the software development kit further comprises an interface management layer for interfacing the rendering thread with the target.
8. A special effect display device, comprising:
the acquisition unit is used for acquiring special effect information to be displayed on the display window;
the processing unit is used for processing the special effect information through a rendering thread packaged in a software development kit preset in the mobile terminal to obtain a special effect example;
a sending unit, configured to send the special effect instance from the rendering thread to the display window through a target interface in the software development kit, where a running environment between the rendering thread and the display window is different;
and the display unit is used for displaying the special effect example in the display window.
9. An electronic device comprising a processor, a memory and a computer program stored in the memory and executable on the processor, the processor implementing the steps in the special effects display method of any one of claims 1 to 7 when the computer program is executed by the processor.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the special effect display method of any of claims 1 to 7.
CN202310270663.4A 2023-03-14 2023-03-14 Special effect display method and device, electronic equipment and readable storage medium Pending CN117406992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310270663.4A CN117406992A (en) 2023-03-14 2023-03-14 Special effect display method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310270663.4A CN117406992A (en) 2023-03-14 2023-03-14 Special effect display method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117406992A true CN117406992A (en) 2024-01-16

Family

ID=89493228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310270663.4A Pending CN117406992A (en) 2023-03-14 2023-03-14 Special effect display method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117406992A (en)

Similar Documents

Publication Publication Date Title
US12079626B2 (en) Methods and systems for creating applications using scene trees
US20020129340A1 (en) Reconfigurable isomorphic software representations
CN110070496B (en) Method and device for generating image special effect and hardware device
JP2008503011A (en) Architecture device and method for device team recruitment and content rendition for universal device interoperability platform
CN105205183A (en) Automatic establishing method of DDS (data distribution service) distributive system based on XML
US20050132385A1 (en) System and method for creating and executing rich applications on multimedia terminals
WO2022095526A1 (en) Graphics engine and graphics processing method applicable to player
CN111111197B (en) A game engine data processing system and method based on DirectX platform
CN111443913B (en) Interactive animation configuration method and device, storage medium and electronic equipment
CN117406992A (en) Special effect display method and device, electronic equipment and readable storage medium
CN117389647A (en) Plug-in generation method, application development method, device, equipment and media
WO2020243973A1 (en) Model-based signal inference method and apparatus
CN112685494B (en) A data visualization method, device, equipment and medium
CN113434149B (en) Application program generating and loading method, device and medium
CN113082720A (en) Prompt message determination method and device and electronic equipment
WO2024114534A1 (en) Data and video processing methods and apparatuses
CN113595869B (en) Voice playing method and device, storage medium and electronic device
CN119718483A (en) Method, medium, and electronic device for running application on Hongmeng operating system
KR20070031378A (en) Architecture device and methodology for recruiting device teams and content reconditioning for universal device interoperability platform related applications
US20250118337A1 (en) Video processing method and apparatus
CN115501609A (en) The operation method, device, equipment and medium of the example
CN118608646A (en) Image generation method and system, electronic device, and storage medium
CN117742688A (en) Content generation method, device, medium and electronic equipment
CN114648437A (en) Method, device, storage medium and board for convolution of image data
CN115982394A (en) Processing method, device, equipment and medium of entity behavior

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