Component editing method and device and electronic equipment
By using multiple particle emitters in the game editing scene and allowing players to independently edit the parameters of each particle emitter, the problem that special effects editing methods in the existing technology cannot meet personalized needs, and meticulous control and personalized editing of special effects are achieved.
Patent Information
- Application Number
- CN202311460961.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2043-11-02
AI Technical Summary
In the prior art, the editing method of special effects components can only adjust the overall tone and intensity, and cannot meet the personalized needs of players.
By introducing multiple particle emitters configured with preset parameters in the game editing scene, players can independently edit the parameters of each particle emitter in the graphical user interface to achieve detailed control of special effects.
It realizes fine-grained editing of special effects, meets the personalized needs of players and improves the gaming experience.
Smart Images

Figure CN119925941A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of game editing, and in particular to a component editing method, device and electronic device. Background Art
[0002] In the process of creating UGC (User-generated Content) for mobile games, the use of special effects can improve the aesthetics of the game screen and increase the fun of the game. The editing method of special effect components provided in the related art can usually only edit and adjust the overall tone and intensity of the special effect components, resulting in the inability of players to freely edit the special effect effects, making it difficult to meet the personalized needs of players. Summary of the invention
[0003] The purpose of the present disclosure is to provide a component editing method, device and electronic device, so as to freely edit various parts of a component to meet the personalized needs of players.
[0004] In a first aspect, the present disclosure provides a component editing method, the method comprising: displaying a graphical user interface by running a game program, the graphical user interface including a game editing scene to be edited; wherein the game editing scene includes a target scene component, the target scene component includes a plurality of particle emitters configured with preset parameters, the particle emitters are used to emit particles according to the preset parameters when working, and obtain a first special effect performance corresponding to the particle emitters; in response to a special effect editing operation for the target particle emitter, an editing window is displayed in the graphical user interface, and the preset parameters corresponding to the target particle emitter are displayed in the editing window; wherein the target particle emitter is at least part of the particle emitters included in the target scene component; in response to a configuration operation for the preset parameters corresponding to the target particle emitter, a target parameter is determined based on the configuration operation, so as to control the target particle emitter to emit particles according to the target parameter when working, and obtain a second special effect performance corresponding to the target particle emitter; in response to an operation instruction for the target scene component, a plurality of particle emitters corresponding to the target scene component are controlled to emit particles, so as to present a target special effect performance in the graphical user interface, wherein the target special effect performance is jointly determined based on the first special effect performance and / or the second special effect performance.
[0005] In a second aspect, the present disclosure provides a component editing device, the device comprising: an interface display module, used to display a graphical user interface by running a game program, the graphical user interface including a game editing scene to be edited; wherein the game editing scene includes a target scene component, the target scene component includes a plurality of particle emitters configured with preset parameters, the particle emitters are used to emit particles according to the preset parameters when working, and obtain a first special effect performance corresponding to the particle emitters; a parameter display module, used to respond to a special effect editing operation for a target particle emitter, display an editing window in the graphical user interface, and display the preset parameters corresponding to the target particle emitter in the editing window; wherein , the target particle emitter is at least part of the multiple particle emitters included in the target scene component; a parameter configuration module is used to respond to the configuration operation of the preset parameters corresponding to the target particle emitter, determine the target parameters based on the configuration operation, and control the target particle emitter to emit particles according to the target parameters during operation to obtain the second special effect performance corresponding to the target particle emitter; the special effect display module is used to respond to the operation instruction for the target scene component, control the multiple particle emitters corresponding to the target scene component to emit particles, so as to present the target special effect performance in the graphical user interface, wherein the target special effect performance is jointly determined based on the first special effect performance and / or the second special effect performance.
[0006] In a third aspect, the present disclosure provides an electronic device, which includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned component editing method.
[0007] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned component editing method.
[0008] The embodiments of the present disclosure bring the following beneficial effects:
[0009] The present disclosure provides a component editing method, device and electronic device. First, a graphical user interface is displayed by running a game program. The graphical user interface includes a game editing scene to be edited. The game editing scene includes a target scene component. The target scene component includes a plurality of particle emitters configured with preset parameters. The particle emitters are used to emit particles according to the preset parameters when working, so as to obtain a first special effect performance corresponding to the particle emitters. Then, in response to a special effect editing operation for the target particle emitter, an editing window is displayed in the graphical user interface, and the preset parameters corresponding to the target particle emitter are displayed in the editing window. The target particle emitter is at least part of the particle emitters included in the target scene component. Then, in response to a configuration operation for the preset parameters corresponding to the target particle emitter, a target parameter is determined based on the configuration operation, so as to control the target particle emitter to emit particles according to the target parameter when working, so as to obtain a second special effect performance corresponding to the target particle emitter. In response to an operation instruction for the target scene component, a plurality of particle emitters corresponding to the target scene component are controlled to emit particles, so as to present a target special effect performance in the graphical user interface. The target special effect performance is determined based on the first special effect performance and / or the second special effect performance. This method splits the target scene components into different particle emitters, and players can edit the parameters of each particle emitter independently, thereby meeting the player's personalized editing needs and editing out richer special effects.
[0010] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0011] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, the following specifically cites preferred implementation modes and describes them in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 A flowchart of a component editing method provided by an embodiment of the present disclosure;
[0014] Figure 2 A schematic diagram of a parameter setting panel provided in an embodiment of the present disclosure;
[0015] Figure 3A schematic diagram of a component editing interface corresponding to a target scene component provided in an embodiment of the present disclosure;
[0016] Figure 4 A schematic diagram of a color editing window provided in an embodiment of the present disclosure;
[0017] Figure 5 A schematic diagram of the structure of a component editing device provided by an embodiment of the present disclosure;
[0018] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0019] Reference numerals
[0020] 1- Color bar; 2- Color palette area; 3- Frame deletion control; 4- Frame insertion control. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure described and shown in the drawings here can be arranged and designed in various different configurations.
[0022] Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents selected embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure.
[0023] In the process of creating UGC (User-generated Content) for mobile games, the use of special effects can improve the aesthetics of the game screen and increase the fun of the game. The editing method of special effect components provided in the related art can usually only edit and adjust the overall tone and intensity of the special effect components, resulting in players being unable to freely edit the special effects. In addition, the related art provides an editing method that supports players to modify the color of each stage of the special effect, but this method does not support the modification of other parameters, and it is difficult to meet the personalized needs of players.
[0024] Based on the above problems, the embodiments of the present invention provide a component editing method, device and electronic device. The technology can be applied to game editing scenarios, especially to scenarios for editing game special effects.
[0025] The component editing method in one embodiment of the present disclosure can be run on a local terminal device or a server. When the component editing method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0026] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated, the storage and operation of the component editing method are completed on the cloud game server, and the role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0027] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0028] In a possible implementation, the present disclosure provides a component editing method, such as Figure 1 As shown, the method comprises the following specific steps:
[0029] Step S102, displaying a graphical user interface by running the game program, the graphical user interface includes a game editing scene to be edited; wherein the game editing scene includes a target scene component, the target scene component includes a plurality of particle emitters configured with preset parameters, the particle emitter is used to emit particles according to the preset parameters when working, and obtain a first special effect performance corresponding to the particle emitter.
[0030] In a specific implementation, the above graphical user interface is displayed when a game program is run on a terminal device, the game program can be any game program, and the terminal device can be the local terminal device mentioned above, or the client device in the cloud interaction system mentioned above. For example, the terminal device can be a mobile phone, a tablet computer, or a personal computer.
[0031] The above-mentioned game editing scene is a scene provided by running the game program, and can also be understood as a scene of the game editing stage provided by the game editor. In the game editing scene, editable components can be edited, and the edited editable components are determined as scene components and set in the game editing scene. In actual applications, when a player triggers a game editing instruction, the game editing scene can be displayed in the graphical user interface, and the game editing instruction can be determined according to the game rules. For example, the editing instruction can be an operation to enter the game editor; it can also be an operation to select a scene map for editing, etc.
[0032] In a specific embodiment, after the game editing scene is displayed in the graphical user interface, the target scene component can be set in the game editing scene in the following manner: a component generation window is displayed in the graphical user interface, and the component generation window includes multiple editable components; in response to a trigger operation on a target editable component among the multiple editable components, a target scene component corresponding to the target editable component is controlled to be generated in the game editing scene. The above-mentioned target editable component can be any editable component included in the component generation window. The specific operation of the above-mentioned trigger operation on the target editable component can be determined according to the research and development requirements, and can also be determined according to the user's setting operation. For example, the trigger operation can be an operation of dragging the target editable component into the game editing scene, or it can be an operation of clicking or long pressing the target editing component in the editing window, etc.
[0033] Specifically, the component type and component form of the editable components included in the above-mentioned component generation window can be set according to the research and development requirements. For example, the editing window can include multiple different types of editable components, including: structural components, item components, environmental components, mechanism components and combination components, etc., and each type of editable component also contains multiple editable components; for example, the environmental component also includes landform components, tree components, vegetation components, building components, environmental decoration components, special effect components and sticker components, among which the special effect components can also include: star special effects, flame special effects, lightning special effects, bubble special effects, smoke special effects, fallen leaves special effects, light ball special effects, do not disturb controls, evolution special effects, rain special effects, falling flowers special effects, firefly special effects, aurora special effects, magic arrays and sound wave special effects, etc.
[0034] In an embodiment of the present invention, the target scene component included in the game editing scene is the above-mentioned special effect component, and the special effect performance of the special effect component is determined according to the player's operation. The target scene component includes a plurality of particle emitters configured with preset parameters, and the preset parameters are also the initial parameters of the particle emitters. Each particle emitter can emit particles according to the preset parameters corresponding to each particle emitter when working, and obtain the corresponding special effect performance. Among them, the preset parameters corresponding to different particle emitters can be the same or different. Specifically, each particle emitter will not be displayed in the game editing scene, but the special effect performance corresponding to each particle emitter when working will be displayed. At the same time, the display state of the target scene component in the game editing scene is determined according to the special effect performance corresponding to each particle emitter when working.
[0035] Step S104, in response to the special effect editing operation for the target particle emitter, an editing window is displayed in the graphical user interface, and preset parameters corresponding to the target particle emitter are displayed in the editing window; wherein the target particle emitter is at least part of the multiple particle emitters included in the target scene component.
[0036] In specific implementation, the specific operation of the above-mentioned special effect editing operation can usually be determined according to R&D requirements and player operations. For example, the special effect editing operation can be a triggering operation of a special effect editing option corresponding to a particle emitter in the target scene component after the target scene component is selected; the special effect editing operation can also be a selection operation of a special effect area corresponding to a particle emitter in the target scene component after the target scene component is selected, etc. Specifically, when the player performs a special effect editing operation on the target particle emitter included in the target scene component, the editing window corresponding to the target particle trigger will be displayed in the graphical user interface, and the preset parameters corresponding to the target particle emitter will be displayed in the editing window, so that the player can understand the current parameter settings of the target particle emitter and the adjustable parameters of the target particle emitter.
[0037] In practical applications, the target particle emitter can be at least one of the multiple particle emitters included in the target scene component, that is, the player can edit a particle emitter in the target scene component as needed, or can edit multiple or all particle emitters in the target scene component. The specific parameters included in the preset parameters can be set according to research and development requirements. For example, the preset parameters can include but are not limited to: particle position, particle size, particle angle of the particle emitter, and the number of particles emitted by the particle emitter, duration and color change parameters, etc.
[0038] Step S106, responding to the configuration operation of the preset parameters corresponding to the target particle emitter, determining the target parameters based on the configuration operation, so as to control the target particle emitter to emit particles according to the target parameters during operation, and obtaining a second special effect performance corresponding to the target particle emitter.
[0039] In specific implementation, the above configuration operation is usually an operation in which the player modifies or adjusts the preset parameters corresponding to the target particle emitter in the editing window according to needs. After the player completes the configuration of the preset parameters, the configured parameters displayed in the editing window can be determined as the target parameters, so that the target particle emitter can obtain a second special effect performance according to the target parameters when working. Usually, the second special effect performance is different from the first special effect performance, but if the preset parameters are the same as the target parameters, the second special effect performance is the same as the first special effect performance.
[0040] Step S108, in response to the running instruction for the target scene component, control multiple particle emitters corresponding to the target scene component to emit particles to present the target special effect performance in the graphical user interface, wherein the target special effect performance is jointly determined based on the first special effect performance and / or the second special effect performance.
[0041] In specific implementation, the running instruction of the above-mentioned target scene component can be an instruction issued by the trial play control displayed in the graphical user interface, or an instruction for running the game scene, or an instruction for completing parameter configuration, etc., which is determined according to the research and development needs and is not specifically limited here. After receiving the running instruction of the target scene component, the multiple particle emitters corresponding to the target scene component will be controlled to emit particles, and the target special effect performance will be presented in the graphical user interface. The target particle special effect performance is based on the first special effect performance or the second special effect performance obtained by emitting particles when each particle emitter corresponding to the target scene component is working. Among them, if the preset parameters of the particle emitter are not reconfigured, then the particle emitter is based on the preset parameters when working, and the first special effect performance corresponding to the particle emitter is obtained; if the preset parameters of the particle emitter are reconfigured to obtain the target parameters, then the particle emitter is based on the target parameters when working, and the second special effect performance corresponding to the particle emitter is obtained.
[0042] An embodiment of the present invention provides a component editing method, which splits the target scene component into different particle emitters. Players can independently edit the parameters of each particle emitter, thereby meeting the personalized editing needs of players and editing out richer special effects performances.
[0043] The following preferred embodiments are used to describe the method of editing the target scene component as a whole.
[0044] Specifically, in response to a parameter editing operation on a target scene component, component parameters of the target scene component are determined based on the parameter editing operation, and the target scene component is controlled to present corresponding special effect performance based on the component parameters; wherein the component parameters include at least component position, component size and component angle.
[0045] In specific implementation, the specific operation of the above parameter editing operation can be determined according to R&D requirements and player operations. For example, the parameter editing operation can be a drag operation, a stretching operation, or a rotation operation on the target scene component. The component parameters of the target scene component can be determined according to the parameter editing operation performed by the player, and the special effects performance of the target scene component based on the component parameters will be displayed in the game editing scene. Specifically, the component parameters of the target scene component may include, but are not limited to: component position, component size, and component angle; wherein the component position is used to indicate the position coordinates of the target scene component in the game editing scene (usually the coordinates in the world coordinate system), the component size is used to indicate the size of the target scene component, and the component angle is used to indicate the rotation angle of the target scene component on each axis of the preset coordinate system.
[0046] In a specific embodiment, the specific process of responding to the parameter editing operation on the target scene component and determining the component parameters of the target scene component based on the parameter editing operation can be implemented in any one of the following two ways:
[0047] Method 1: In response to selecting a target scene component, an edit control operation of a component edit control displayed in a graphical user interface is performed, and component parameters of the target scene component are determined based on the edit control operation.
[0048] In actual applications, a component editing control is displayed in the graphical user interface corresponding to the game editing scene, and the player can edit the component parameters of the target scene component through the component editing control. Usually, multiple component editing controls are displayed in the graphical user interface, and different component editing controls can edit different component parameters of the target scene component.
[0049] For example, the target scene component displayed in the game editing scene has an initial position, initial size and initial angle, and a mobile control, a zoom control and a rotation control are displayed in the graphical user interface. After the player selects the target scene component, the mobile control is triggered to display a preset coordinate system centered on the initial position of the target scene component on the target scene component. The player drags an axis in the preset coordinate system, and the target scene component moves in the direction of the axis, thereby adjusting the position of the target scene component. After the player selects the target scene component, the zoom control is triggered to display the preset coordinate system on the target scene component. The player drags an axis in the preset coordinate system, and the size of the target scene component is stretched in the direction of the axis, thereby adjusting the size of the target scene component. After the player selects the target scene component, the rotation control is triggered to display three axial rotation marks in the graphical user interface. When the player clicks on a rotation mark of an axis, a 360-degree rotation ring on the axis is displayed in the graphical user interface. The player can adjust the rotation angle of the target scene component on the axis on the rotation ring.
[0050] Method 2: After selecting a target scene component, in response to a trigger operation of a setting control displayed in the graphical user interface, a parameter setting panel is displayed in the graphical user interface; in response to a setting operation on the parameter setting panel, component parameters of the target scene component are determined based on the setting operation.
[0051] In the specific implementation, the method of editing the target scene component through the component editing control can only perform rough parameter editing on the target scene component. In the second method, the component parameters of the target scene component can be finely edited through the parameter setting panel. In the specific implementation, the parameter setting panel displays the editable controls corresponding to each component parameter. The player can input each editable control to determine the component parameters of the target scene component.
[0052] like Figure 2 FIG. 1 is a schematic diagram of a parameter setting panel provided by an embodiment of the present invention. Figure 2 The parameter setting panel in includes editable controls corresponding to multiple component parameters. Each editable control includes input controls corresponding to three axes (X axis, Y axis and Z axis). Players can enter corresponding values in the input controls to adjust the component parameters of the target scene component. Among them, "World Coordinates" is used to indicate the coordinate position of the bottom center point of the target scene component in the world coordinate system (that is, the component position), "Rotation" is used to indicate the rotation angle of the target scene component in each axis, "Scale" is used to indicate the ratio of the target scene component in each axis relative to the initial size, and "Size" is used to indicate the size length of the target scene component in each axis.
[0053] In actual applications, in response to the parameter editing operation on the target scene component, the target scene component is controlled to present the corresponding special effects based on the component parameters, and the relative position relationship between the multiple particle emitters contained in the target scene component is controlled to remain unchanged. It can also be understood that when the target scene component is edited as a whole, the relative position relationship between the multiple particle emitters contained in the target scene component will not change, that is, the relative size, relative position and relative angle between the multiple particle emitters remain unchanged, but the size, position and angle of each particle emitter will be adjusted accordingly according to the overall editing of the target scene component.
[0054] It should be noted that since the particle emitter is not an independent component, it is impossible to select a particle trigger in the game editing scene, and therefore it is impossible to edit the particle emitter separately using the overall editing method of the target scene component.
[0055] In the above method, players can edit the target scene components as a whole according to their own needs, so that they can quickly set the special effects performance corresponding to the target scene components, and also meet the players' personalized needs for special effects, which helps to improve the players' gaming experience.
[0056] The following optional embodiment is used to describe how to edit particle emitters individually.
[0057] Specifically, the target scene component includes multiple local component areas, each of which is configured with a particle emitter, which is used to control the corresponding local component areas to present independent special effects through each particle emitter. At the same time, the display position and display size corresponding to each local component area are related to the particle position and particle size of the corresponding particle emitter. Generally, the larger the particle size corresponding to the particle emitter, the larger the size corresponding to the local component area.
[0058] For example, the target scene component is a flame special effect component, and the flame component special effect component includes three local component areas, namely, the outer flame surrounding area, the outer flame area, and the inner flame area. The special effect performance corresponding to each local component area is independent and needs to be controlled based on the particle emitter corresponding to the local component area, that is, the special effect performance corresponding to the outer flame surrounding area is controlled by the particle emitter corresponding to the area, the outer flame performance corresponding to the outer flame area is controlled by the particle emitter corresponding to the outer flame area, and the inner flame performance corresponding to the inner flame area is controlled by the particle emitter corresponding to the inner flame area, that is, the flame special effect component needs three emitters to perform special effect control.
[0059] In the specific implementation, when marking a particle emitter configured in the target scene component, it is first necessary to respond to the special effect editing operation for the target particle emitter and display an editing window in the graphical user interface. The specific process of displaying the editing window corresponding to the target particle emitter may include the following steps 10-11:
[0060] Step 10, in response to a component editing operation on a target scene component, a component editing interface corresponding to the target scene component is displayed in a graphical user interface, wherein the component editing interface includes at least special effect editing options corresponding to a plurality of particle emitters of the target scene component.
[0061] In specific implementation, the specific operation corresponding to the above-mentioned component editing operation can be determined according to research and development requirements. For example, the component editing operation can be an operation that triggers the setting control displayed in the graphical user interface after selecting the target scene component in the game editing scene. When the player performs a component editing operation on the target scene component, the component editing interface corresponding to the target scene component will be displayed in the graphical user interface. The component editing interface includes at least special effect editing options corresponding to multiple particle emitters of the target scene component. It can also be understood that the component editing interface includes at least multiple special effect editing options, and one special effect editing option corresponds to a particle emitter configured for the target scene component.
[0062] like Figure 3 FIG. 1 is a schematic diagram of a component editing interface corresponding to a target scene component provided by an embodiment of the present invention. Figure 3 The target scene component is the flame special effect component, which includes three local component areas: the area around the outer flame, the outer flame area, and the inner flame area. Each local component area is configured with a particle emitter, so that the special effects editing options corresponding to the three particle emitters are displayed in the component editing interface, namely the special effects editing options around the outer flame, the special effects editing options for the outer flame, and the special effects editing options for the inner flame.
[0063] In actual applications, the component editing interface corresponding to the target scene component may also display a parameter setting panel corresponding to the target scene component, which has been described in detail in the above embodiment and will not be repeated here.
[0064] Step 11, in response to a trigger operation for a target special effect editing option, an editing window corresponding to the target particle emitter is displayed in a graphical user interface, wherein the target particle emitter corresponds to the target special effect editing option, and the editing window includes preset parameters corresponding to the target particle emitter.
[0065] The above-mentioned target special effect editing option can be any special effect editing option displayed in the component editing interface, and the particle emitter corresponding to the target special effect editing option is the target particle emitter. After the player triggers the target special effect editing option in the component editing interface, the editing window corresponding to the target particle emitter will be displayed in the graphical user interface. The editing window is used to display the preset parameters corresponding to the target particle emitter. The player can modify or adjust the preset parameters corresponding to the target particle emitter in the editing window.
[0066] Specifically, the above-mentioned preset parameters include particle positions; the above-mentioned editing window includes multiple coordinate input controls for setting particle positions, and different coordinate input controls are used to set: the coordinate values of particles emitted by the particle emitter relative to the center of the target scene component under different axes of the preset coordinate system; the above-mentioned response to the configuration operation of the preset parameters corresponding to the target particle emitter, and the specific process of determining the target parameters based on the configuration operation, may include: responding to a first input operation on multiple coordinate input controls, and determining the particle position of particles emitted by the target particle emitter in the game editing scene based on the numerical value input by the first input operation; wherein the particle position is the position of the target particle emitter.
[0067] In specific implementation, the above-mentioned editing window usually includes three coordinate input controls for setting the particle position: the coordinate input control corresponding to the X-axis of the preset coordinate system, the coordinate input control corresponding to the Y-axis, and the coordinate input control corresponding to the Z-axis, wherein the preset coordinate system is a coordinate system established with the center of the target scene component as the origin, and the axial direction of the preset coordinate system is parallel to the corresponding axial direction in the world coordinate system. The value entered by the player in the coordinate input control corresponding to the X-axis represents the distance value between the particle position emitted by the target particle emitter and the center of the target scene component in the X-axis direction, the value entered by the player in the coordinate input control corresponding to the Y-axis represents the distance value between the particle position emitted by the target particle emitter and the center of the target scene component in the Y-axis direction, and the value entered by the player in the coordinate input control corresponding to the Z-axis represents the distance value between the particle position emitted by the target particle emitter and the center of the target scene component in the Z-axis direction. According to the input values of the coordinate input controls corresponding to each axis, the particle position emitted by the target particle emitter can be obtained. In practical applications, the particle position emitted by the particle emitter is also the position of the particle emitter.
[0068] In an optional embodiment, the preset parameters include particle size; the editing window includes a plurality of coordinate input controls for setting the particle size, and different coordinate input controls are used to set: the maximum action distance of particles emitted by the particle emitter in different axes of the particle's own coordinate system; the particle's own coordinate system is a coordinate system established with the center of the particle emitter as the origin; the specific process of determining the target parameters based on the configuration operation in response to the configuration operation of the preset parameters corresponding to the target particle emitter may include: responding to a second input operation on the plurality of coordinate input controls, and determining the particle size of particles emitted by the target particle emitter based on the numerical value input by the second input operation.
[0069] In specific implementation, the above-mentioned editing window usually includes three coordinate input controls for setting the particle size: the coordinate input control corresponding to the X-axis of the particle's own coordinate system, the coordinate input control corresponding to the Y-axis, and the coordinate input control corresponding to the Z-axis, wherein the particle's own coordinate system is a coordinate system established with the center of the target particle emitter as the origin, and the axial direction of the coordinate system is parallel to the corresponding axial direction in the world coordinate system. The value entered by the player in the coordinate input control corresponding to the X-axis represents the maximum distance between the particle emitted by the target particle emitter and the center of the target particle emitter in the X-axis direction, the value entered by the player in the coordinate input control corresponding to the Y-axis represents the maximum distance between the particle emitted by the target particle emitter and the center of the target particle emitter in the Y-axis direction, and the value entered by the player in the coordinate input control corresponding to the Z-axis represents the maximum distance between the particle position emitted by the target particle emitter and the center of the target particle emitter in the Z-axis direction. The particle size emitted by the target particle emitter can be obtained according to the input values of the coordinate input controls corresponding to each axial direction.
[0070] In an optional embodiment, the preset parameters include a particle angle; the editing window includes a plurality of coordinate input controls for setting the particle angle, and different coordinate input controls are used to set: an angular deviation value of particles emitted by the particle emitter relative to the center of the target scene component under different axes of the preset coordinate system; the specific process of responding to the configuration operation of the preset parameters corresponding to the target particle emitter and determining the target parameters based on the configuration operation may include: responding to a third input operation on the plurality of coordinate input controls, and determining the particle angle of the particles emitted by the target particle emitter based on the numerical value input by the third input operation.
[0071] In specific implementation, the above-mentioned editing window usually includes three coordinate input controls for setting the particle angle: the coordinate input control corresponding to the X-axis of the preset coordinate system, the coordinate input control corresponding to the Y-axis, and the coordinate input control corresponding to the Z-axis. The value entered by the player in the coordinate input control corresponding to the X-axis represents the angle deviation value between the particles emitted by the target particle emitter and the center of the target scene component in the X-axis direction, the value entered by the player in the coordinate input control corresponding to the Y-axis represents the maximum distance between the particles emitted by the target particle emitter and the center of the target scene component in the Y-axis direction, and the value entered by the player in the coordinate input control corresponding to the Z-axis represents the maximum distance between the particle position emitted by the target particle emitter and the center of the target scene component in the Z-axis direction. The angle of the particles emitted by the target particle emitter can be obtained according to the input values of the coordinate input controls corresponding to each axis.
[0072] In actual applications, the display form and adjustment method of multiple coordinate input controls for adjusting particle positions displayed in the editing window corresponding to the target particle emitter can be the same as Figure 2 The coordinate input controls corresponding to the "World Coordinates" in the Edit window are similar; the display form and adjustment method of the multiple coordinate input controls used to adjust the particle size displayed in the Edit window can be the same as Figure 2 The coordinate input controls for "Scale" and "Size" in the Edit window are similar; the display and adjustment methods of the multiple coordinate input controls for adjusting particle size displayed in the Edit window can be similar to those in Figure 2 This method uses numerical values to adjust the position, size, angle, and actual size of the target particle emitter relative to the entire special effect, thereby obtaining different particle effects and different special effect performances.
[0073] In an optional embodiment, the above-mentioned preset parameters include the number of particles and the duration of particles; the number of particles is used to indicate the total number of particles emitted by the particle emitter per unit time; the particle duration is used to indicate the duration from the appearance to the disappearance of particles emitted by the particle emitter; the above-mentioned response to the configuration operation of the preset parameters corresponding to the target particle emitter, and the specific process of determining the target parameters based on the configuration operation may include: responding to a first configuration operation for the number of particles corresponding to the target particle emitter, and determining the target number of particles emitted by the target particle emitter based on the first configuration operation; responding to a second configuration operation for the particle duration corresponding to the target particle emitter, and determining the target particle duration of the particles emitted by the target particle emitter based on the second configuration operation.
[0074] In specific implementation, the specific operation corresponding to the above-mentioned first configuration operation can be determined according to research and development needs. For example, the first configuration operation can be a sliding operation on the slider on the value bar displayed in the editing window, and the target particle number can be determined according to the position of the slider on the value bar; the first configuration operation can also be an operation of inputting a numerical value of the particle number in the editing window, and the input numerical value is determined as the target particle number emitted by the target particle emitter. Similarly, the specific operation corresponding to the above-mentioned second configuration operation can be determined according to research and development needs. For example, the second configuration operation can be a sliding operation on the slider on the value bar displayed in the editing window, and the target particle duration can be determined according to the position of the slider on the value bar; the second configuration operation can also be an operation of inputting a time value in the editing window, and the input time value is determined as the target particle duration emitted by the target particle emitter.
[0075] It should be noted that the life cycle of a particle emitter (equivalent to the duration of a particle) is a base number, and the life cycle of each individual particle will be randomized based on the base number to ensure that the average life cycle of all particles is roughly equivalent to the base number. The number of particles is the total number of particles emitted per unit time by the particle emitter, that is, the more particles there are, the more particles are emitted per unit time. For example, when the target particle emitter is working, the special effect obtained by emitting particles is a rain effect, then the more particles there are, the greater the rainfall corresponding to the rain effect. If the number of particles is small, a drizzle rain effect can be output, so the number of particles can be edited according to the player's design needs.
[0076] In an optional embodiment, the above-mentioned preset parameters include a color change parameter; the color change parameter is used to indicate the color change of particles emitted by the particle emitter within the duration of the particles; the above-mentioned response to the configuration operation of the preset parameters corresponding to the target particle emitter, and the specific process of determining the target parameters based on the configuration operation, may include: responding to the color setting operation of the target particle emitter, and determining the color change parameters of the particles emitted by the target particle emitter based on the color setting operation.
[0077] In specific implementation, the color change parameter is used to indicate how the color of particles emitted by the particle emitter changes over time. The specific operation of the color setting operation can be determined according to research and development requirements. For example, the color setting operation can be to select a color scheme from multiple preset color schemes, and then generate a gradient color that changes over time based on the color scheme; the color setting operation can also be a selection operation for the color adjustment interface, thereby determining the color value of the particles emitted by the particle emitter at each time based on the selected color, etc.
[0078] In a specific embodiment, the editing window includes: a color bar and a color palette area; the color bar is used to display gradient colors, and at least two key frames are set on the color bar, and the number of key frames matches the number of color changes of particles emitted by the target particle emitter within the particle duration; the color palette area is used to configure the gradient color displayed by the color bar or the color corresponding to the key frame; based on this, the configuration method of the color change parameters corresponding to the target particle emitter may include the following steps 20-21:
[0079] Step 20, in response to the setting operation of the key frame in the color bar, determine the position of the key frame on the color bar; wherein the position of the key frame in the color bar is used to indicate the color gradient range of the particles emitted by the target particle emitter within the particle duration.
[0080] In the specific implementation, the color bar contains at least two key frames, which are the first frame corresponding to the initial position of the color bar and the last frame corresponding to the end position of the color bar. The initial position of the color bar indicates the time when the target particle emitter emits particles, and the end position indicates the time when the particles emitted by the target particle emitter reach the particle duration. Usually, the positions of the first frame and the last frame are fixed and cannot be adjusted, but the positions of the key frames other than the first frame and the last frame in the color bar can be adjusted; at the same time, the first frame and the last frame are key frames that cannot be deleted, and other key frames in the color bar can be deleted, and new key frames can also be added to the color bar.
[0081] It should be noted that the length of the color bar is usually fixed, and the length of the color bar is not used to indicate the duration of particles emitted by the target particle emitter. However, the position of the key frame in the color bar is different, and the color change duration and color change corresponding to adjacent key frames are different, which leads to different color change ranges.
[0082] In practical applications, the above step 20 can be implemented through the following process: responding to a drag operation on a target key frame in the color bar, and determining the position of the target key frame in the color bar based on the drag operation; wherein the distance between adjacent key frames in the color bar is used to indicate: the time interval for the color corresponding to the previous key frame in the adjacent key frames to change to the color corresponding to the next key frame.
[0083] The target keyframe is any keyframe on the color bar except the first frame and the last frame. Players can change the position of the target keyframe on the color bar by dragging the keyframe on the color bar. In fact, the keyframe is a time / color keyframe, so the different positions of the keyframes represent the different time required for the color to change from the color A of the previous keyframe to the color B of the next keyframe. At the same time, the color change range is also determined by the color difference between color A and color B.
[0084] In an optional embodiment, the editing window further includes a frame deletion control and a frame insertion control; based on this, in response to selecting the first key frame in the color bar, the frame deletion control is triggered to delete the first key frame so as to cancel the display of the first key frame on the color bar; and / or, in response to selecting the second key frame in the color bar, the frame insertion control is triggered to insert a third key frame at the associated position of the second key frame so as to increase the number of key frames displayed in the color bar.
[0085] In a specific implementation, the first keyframe is a keyframe other than the first frame and the last frame on the color bar. The player can select the first keyframe by clicking on the first keyframe. The first keyframe can be deleted by triggering the frame deletion control when the first keyframe is selected. If the first frame or the last frame is selected and the frame deletion control is triggered, a prompt message will pop up in the graphical user interface to prompt the player that the current frame cannot be deleted. The second keyframe can be any keyframe on the color bar. When the player selects the second keyframe and triggers the frame insertion control, the third keyframe will be inserted at the associated position of the second keyframe in the color bar. The specific position of the associated position can be determined according to the research and development requirements, and can be a position in front of or behind the second keyframe. For example, if the second keyframe is a keyframe other than the last frame, the associated position is behind the second keyframe, and can be the middle position between the second keyframe and the next keyframe of the second keyframe; if the second keyframe is the last frame, the associated position can be the middle position between the second keyframe and the previous keyframe of the second keyframe. In addition, the color corresponding to the inserted keyframe is the color corresponding to the keyframe at the position of the color bar.
[0086] Step 21, in response to the color configuration operation for the color palette area, adjusting the gradient color displayed in the color bar, and / or adjusting the color corresponding to the key frame on the color bar.
[0087] In specific implementation, the specific operation of the color configuration operation for the color palette area can be determined according to R&D requirements and player operations. Specifically, the player can quickly switch the gradient color displayed in the color bar by modifying the color corresponding to the color palette area, or select a key frame in the color bar and then edit the color corresponding to the selected key frame separately.
[0088] In an optional embodiment, the color palette area includes a color block; the color block is used to display the color corresponding to the selected key frame in the color bar, that is, the color displayed by the color block will change with the change of the color corresponding to the selected key frame; based on this, the above step 21 can be implemented through the following process: in response to a trigger operation on the color block, a color adjustment interface is displayed in a graphical user interface; in response to a setting operation on the color adjustment interface, a target color of the color block configuration is determined, and the color corresponding to the position of the selected key frame in the color bar is adjusted to the target color, so as to determine the target color as the color corresponding to the selected key frame, and adjust the gradient color displayed in the color bar according to the target color corresponding to the selected key frame in the color bar, the color corresponding to the previous frame of the selected key frame in the color bar, and the color corresponding to the next frame of the selected key frame in the color bar.
[0089] In a specific implementation, a color palette can be displayed in the color adjustment interface, and the player can freely select a color as the target color on the color palette; the player can also view the historical palette in the color adjustment interface, which displays multiple historical colors set by the player at historical moments, and the player can select a color from multiple historical colors as the target color. After the color corresponding to the selected key frame is determined as the target color, the color corresponding to the previous frame of the selected key frame can be subtracted from the color corresponding to the selected key frame to obtain the color difference, and the time difference between the previous frame of the selected key frame and the selected key frame can be determined. The color change per unit time is obtained by dividing the color difference by the time difference, and the gradient color between the previous frame of the selected key frame and the selected key frame is determined based on the color change. The gradient color between the selected key frame and the next key frame can also be obtained in the same way.
[0090] In an optional embodiment, the color palette area also includes a color palette selection control; based on this, the step 21 can also be implemented through the following process: in response to a trigger operation on the color palette selection control, a drop-down list is displayed in a graphical user interface, the drop-down list includes multiple color combinations, and each color combination includes a specified number of colors; in response to a selection operation on a target color combination in the drop-down list, the gradient color displayed in the color bar is adjusted based on the target color combination, and the color corresponding to the position of the key frame in the color bar is configured as the color corresponding to the key frame.
[0091] In specific implementation, the drop-down list displayed after triggering the color palette selection control contains multiple color combinations. The color component can be a system preset color component or a customized color component according to the player's needs. Each color combination contains a command number of colors. The specific number corresponding to the specified number can be determined according to research and development needs. For example, the specified number can be 4 or 10. After the player selects a color combination displayed in the drop-down list, the color combination will be determined as the target color combination, so that the colors contained in the target color combination can be proportionally allocated to the key frames on the color bar, so as to adjust the gradient color displayed in the color bar according to the color allocated to the key frame; the gradient color displayed in the color bar can also be adjusted according to the colors contained in the target color combination, and the color corresponding to each key frame can be determined according to the position of the key frame on the color bar.
[0092] In an optional embodiment, the colors included in the above-mentioned color combination are configured with color sorting numbers; therefore, colors can be configured for each key frame in the color bar according to the color sorting number; then, based on the color difference and time difference of adjacent key frames in the color bar, the gradient color displayed in the color bar is determined. Specifically, colors can be configured for each key frame according to the color sorting number of the color in the target color combination and the position corresponding to the key frame in the color bar. The specific configuration rules can be determined according to research and development needs. Then, the color change amount is obtained by dividing the color difference and the time difference between adjacent key frames, and the gradient color between adjacent key frames is set according to the way the color change amount is superimposed over time.
[0093] For example, if the color bar contains four keyframes, the color with the sorting number 1 in the target color combination can be assigned to the first keyframe on the color bar, the color with the sorting number 2 in the target color combination can be assigned to the second keyframe, the color with the sorting number 3 can be assigned to the third keyframe, and the color with the sorting number 4 can be assigned to the fourth keyframe. You can also mix the main color (the color at the front of the color is the main color) and the secondary color (the color at the back of the color is the secondary color) in the target color combination, and assign colors to the keyframes based on the mixing results.
[0094] In an optional embodiment, the editing window further includes a transparency editing control; in response to the adjustment operation of the transparency editing control after the key frame in the color bar is selected, the transparency of the color corresponding to the selected key frame is determined based on the adjustment operation. Specifically, the transparency editing control can be a numerical input control, so the transparency of the color corresponding to the selected key frame can be determined by the numerical value input in the numerical input control; the transparency editing control can also be a control composed of a numerical bar and a slider on the numerical bar, so that the transparency of the color corresponding to the selected key frame is determined by the position of the slider on the numerical bar.
[0095] like Figure 4 FIG. 1 is a schematic diagram of a color editing window provided by an embodiment of the present invention. Figure 4 The area labeled 1 corresponds to a color bar, which displays a gradient color and three key frames, namely a circular mark and a ring mark on the color bar, wherein the ring mark indicates the currently selected key frame. Figure 4 The area labeled 2 is the color palette area. Below the color value in the color palette area is a color block, which displays the color corresponding to the currently selected keyframe on the color bar. The color palette area also displays a color palette selection control. The frame deletion control corresponding to the area labeled 4 is used to delete the selected keyframe; the frame insertion control corresponding to the area labeled 4 is used to insert a new keyframe at the associated position of the selected keyframe. Figure 4 The value bar and slider displayed below the transparency are used to adjust the transparency of the currently selected keyframe. When the transparency is 0, it means that the particle emitter becomes completely transparent at this point in time.
[0096] In an optional embodiment, the editing window corresponding to the target particle emitter includes a preview control; in response to a configuration operation for preset parameters corresponding to the target particle emitter, after the target parameters are determined based on the configuration operation, in response to a trigger operation for the preview control, an independent special effect performance presented in the local component area of the target scene component by the target particle emitter emitting particles based on the target parameters is displayed in a graphical user interface, and the special effect performance presented in the local component area of the target scene component except the local component area corresponding to the target particle emitter does not change.
[0097] In specific implementation, after editing the target particle emitter, you can trigger the preview control to view the special effects of the target particle emitter emitting particles based on the target parameters in the local component area of the target scene component in the game editing scene. Since the editing of the particle emitters configured in the target scene component is independent of each other and does not affect each other, the editing of the target particle emitter will not affect the special effects of other particle emitters in the target scene component except the target particle emitter.
[0098] In this method, the target scene component is designed to be composed of particle emitters, and the preset parameters of each particle emitter (color change, position, size, duration, transparency, etc.) are independently released to the player, allowing him to edit the desired effect more freely. Therefore, this method lowers the editing threshold on the basis of providing richer special effect parameter editing, ensuring that players can better design the effects they want.
[0099] Corresponding to the above method embodiment, the present invention provides a component editing device, such as Figure 5 As shown, the device comprises:
[0100] The interface display module 50 is used to display a graphical user interface by running the game program, and the graphical user interface includes a game editing scene to be edited; wherein the game editing scene includes a target scene component, and the target scene component includes a plurality of particle emitters configured with preset parameters, and the particle emitter is used to emit particles according to the preset parameters when working to obtain a first special effect performance corresponding to the particle emitter.
[0101] The parameter display module 51 is used to respond to the special effect editing operation for the target particle emitter, display an editing window in the graphical user interface, and display the preset parameters corresponding to the target particle emitter in the editing window; wherein the target particle emitter is at least part of the multiple particle emitters included in the target scene component.
[0102] The parameter configuration module 52 is used to respond to the configuration operation of the preset parameters corresponding to the target particle emitter, determine the target parameters based on the configuration operation, and control the target particle emitter to emit particles according to the target parameters during operation to obtain the second special effect performance corresponding to the target particle emitter.
[0103] The special effect display module 53 is used to respond to the running instructions for the target scene component, control the multiple particle emitters corresponding to the target scene component to emit particles, so as to present the target special effect performance in the graphical user interface, wherein the target special effect performance is jointly determined based on the first special effect performance and / or the second special effect performance.
[0104] The above-mentioned component editing device allows players to edit the target scene components as a whole according to their own needs, so as to quickly set the special effect performance corresponding to the target scene components, and also meet the players' personalized needs for special effects, which helps to enhance the players' gaming experience.
[0105] Specifically, the target scene component includes a plurality of local component areas, each of which is correspondingly configured with a particle emitter for controlling the corresponding local component areas through each particle emitter to present independent special effects.
[0106] In a specific implementation, the parameter display module 51 is used to: respond to a component editing operation on a target scene component, and display a component editing interface corresponding to the target scene component in a graphical user interface, wherein the component editing interface includes at least special effects editing options corresponding to multiple particle emitters of the target scene component; respond to a trigger operation on a target special effects editing option, and display an editing window corresponding to the target particle emitter in a graphical user interface, wherein the target particle emitter corresponds to the target special effects editing option, and the editing window includes preset parameters corresponding to the target particle emitter.
[0107] In an optional embodiment, the preset parameters include particle positions; the editing window includes multiple coordinate input controls for setting particle positions, and different coordinate input controls are used to set: the coordinate values of particles emitted by the particle emitter relative to the center of the target scene component under different axes of the preset coordinate system; the parameter configuration module 52 is used to: respond to a first input operation on multiple coordinate input controls, and determine the particle position of particles emitted by the target particle emitter in the game editing scene based on the numerical value input by the first input operation; wherein the particle position is the position of the target particle emitter.
[0108] In an optional embodiment, the preset parameters include particle size; the editing window includes multiple coordinate input controls for setting the particle size, and different coordinate input controls are used to set: the maximum action distance of particles emitted by the particle emitter in different axes of the particle's own coordinate system; the particle's own coordinate system is a coordinate system established with the center of the particle emitter as the origin; the parameter configuration module 52 is used to: respond to a second input operation for multiple coordinate input controls, and determine the particle size of particles emitted by the target particle emitter based on the numerical value input by the second input operation.
[0109] In an optional embodiment, the preset parameters include a particle angle; the editing window includes a plurality of coordinate input controls for setting the particle angle, and different coordinate input controls are used to set: the angular deviation value of particles emitted by the particle emitter relative to the center of the target scene component under different axes of the preset coordinate system; the parameter configuration module 52 is used to: respond to a third input operation for the plurality of coordinate input controls, and determine the particle angle of the target particle emitter for emitting particles based on the numerical value input by the third input operation.
[0110] In an optional embodiment, the preset parameters include the number of particles and the duration of particles; the number of particles is used to indicate the total number of particles emitted by the particle emitter per unit time; the duration of particles is used to indicate the duration from the appearance to the disappearance of particles emitted by the particle emitter; the parameter configuration module 52 is used to: respond to a first configuration operation for the number of particles corresponding to the target particle emitter, and determine the number of target particles emitted by the target particle emitter based on the first configuration operation; respond to a second configuration operation for the duration of particles corresponding to the target particle emitter, and determine the duration of target particles emitted by the target particle emitter based on the second configuration operation.
[0111] In an optional embodiment, the above-mentioned preset parameters include color change parameters; the color change parameters are used to indicate the color change of particles emitted by the particle emitter within the particle duration; the above-mentioned parameter configuration module 52 is used to: respond to the color setting operation for the target particle emitter, and determine the color change parameters of the particles emitted by the target particle emitter based on the color setting operation.
[0112] In a specific implementation, the above-mentioned editing window includes: a color bar and a color palette area; the color bar is used to display gradient colors, and at least two key frames are set on the color bar, and the number of key frames matches the number of color changes of particles emitted by the target particle emitter within the particle duration; the color palette area is used to configure the gradient colors displayed by the color bar or the colors corresponding to the key frames; the above-mentioned parameter configuration module 52 is used to: respond to the setting operation of the key frames in the color bar, and determine the position of the key frames on the color bar; wherein the position of the key frames in the color bar is used to indicate the color gradient range of particles emitted by the target particle emitter within the particle duration; respond to the color configuration operation of the color palette area, adjust the gradient colors displayed in the color bar, and / or adjust the colors corresponding to the key frames on the color bar.
[0113] Furthermore, the parameter configuration module 52 is also used to respond to a drag operation on a target key frame in the color bar, and determine the position of the target key frame in the color bar based on the drag operation; wherein the distance between adjacent key frames in the color bar is used to indicate the time interval for the color corresponding to the previous key frame in the adjacent key frames to change to the color corresponding to the next key frame.
[0114] Furthermore, the editing window also includes a frame deletion control and a frame insertion control; the device also includes a frame setting module, which is used to: in response to the triggering operation of the frame deletion control after the first key frame in the color bar is selected, delete the first key frame to cancel the display of the first key frame on the color bar; and / or, in response to the triggering operation of the frame insertion control after the second key frame in the color bar is selected, insert a third key frame at the associated position of the second key frame to increase the number of key frames displayed in the color bar.
[0115] In a specific implementation, the color palette area includes a color block; the color block is used to display the color corresponding to the selected key frame in the color bar; the parameter configuration module 52 is used to: respond to a trigger operation on the color block, and display a color adjustment interface in a graphical user interface; respond to a setting operation on the color adjustment interface, determine the target color of the color block configuration, adjust the color corresponding to the position of the selected key frame in the color bar to the target color, so as to determine the target color as the color corresponding to the selected key frame, and adjust the gradient color displayed in the color bar according to the target color corresponding to the selected key frame in the color bar, the color corresponding to the previous frame of the selected key frame in the color bar, and the color corresponding to the next frame of the selected key frame in the color bar.
[0116] Furthermore, the color palette area includes a color palette selection control; the parameter configuration module 52 is also used to: respond to a trigger operation on the color palette selection control, display a drop-down list in a graphical user interface, the drop-down list includes multiple color combinations, and the color combination includes a specified number of colors; respond to a selection operation on a target color combination in the drop-down list, adjust the gradient color displayed in the color bar based on the target color combination, and configure the color corresponding to the position of the key frame in the color bar as the color corresponding to the key frame.
[0117] In a specific implementation, the color configuration included in the above color combination has a color sorting number; the above parameter configuration module 52 is also used to: configure the color for each key frame in the color bar according to the color sorting number; and determine the gradient color displayed in the color bar based on the color difference and time difference of adjacent key frames in the color bar.
[0118] Furthermore, the editing window corresponding to the target particle emitter includes a preview control; the above-mentioned device also includes a performance preview module, which is used to: in response to a configuration operation corresponding to the preset parameters corresponding to the target particle emitter, after determining the target parameters based on the configuration operation, respond to a trigger operation on the preview control, and display in a graphical user interface an independent special effect performance presented by the target particle emitter emitting particles based on the target parameters in the local component area of the target scene component, and the special effect performance presented in the local component area of the target scene component except the local component area corresponding to the target particle emitter does not change.
[0119] In an optional embodiment, the above-mentioned device also includes an overall editing module, which is used to: respond to parameter editing operations on target scene components, determine component parameters of the target scene components based on the parameter editing operations, and control the target scene components to present corresponding special effects based on the component parameters; wherein the component parameters include at least component position, component size and component angle.
[0120] Furthermore, the above-mentioned overall editing module is also used to: respond to component editing operations on the target scene component, control the target scene component to present corresponding special effects based on component parameters, and control the relative position relationship between multiple particle emitters contained in the target scene component to remain unchanged.
[0121] In a specific implementation, the above-mentioned overall editing module is also used to: respond to an edit control operation on a component editing control displayed in a graphical user interface after a target scene component is selected, and determine component parameters of the target scene component based on the edit control operation; or, respond to a trigger operation on a setting control displayed in a graphical user interface after a target scene component is selected, display a parameter setting panel in the graphical user interface; respond to a setting operation on the parameter setting panel, and determine component parameters of the target scene component based on the setting operation.
[0122] The component editing device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0123] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, the electronic device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned component editing method.
[0124] Specifically, the specific process of the above-mentioned component editing method may include: displaying a graphical user interface by running a game program, wherein the graphical user interface includes a game editing scene to be edited; wherein the game editing scene includes a target scene component, wherein the target scene component includes a plurality of particle emitters configured with preset parameters, and the particle emitters are used to emit particles according to the preset parameters when working, so as to obtain a first special effect performance corresponding to the particle emitters; in response to a special effect editing operation for the target particle emitter, displaying an editing window in the graphical user interface, and displaying the preset parameters corresponding to the target particle emitter in the editing window; wherein the target particle emitter is at least part of the particle emitters included in the target scene component; in response to a configuration operation for the preset parameters corresponding to the target particle emitter, determining the target parameters based on the configuration operation, so as to control the target particle emitter to emit particles according to the target parameters when working, so as to obtain a second special effect performance corresponding to the target particle emitter; in response to an operation instruction for the target scene component, controlling the plurality of particle emitters corresponding to the target scene component to emit particles, so as to present a target special effect performance in the graphical user interface, wherein the target special effect performance is jointly determined based on the first special effect performance and / or the second special effect performance.
[0125] With the above-mentioned component editing method, players can edit the target scene component as a whole according to their own needs, so as to quickly set the special effect performance corresponding to the target scene component, and also meet the player's personalized needs for special effects, which helps to improve the player's gaming experience.
[0126] In an optional embodiment, the target scene component includes a plurality of local component areas, each of which is correspondingly provided with a particle emitter for controlling the corresponding local component areas through each particle emitter to present independent special effects.
[0127] In an optional embodiment, the step of displaying an editing window in a graphical user interface in response to a special effects editing operation on a target particle emitter includes: in response to a component editing operation on a target scene component, displaying a component editing interface corresponding to the target scene component in a graphical user interface, wherein the component editing interface includes at least special effects editing options corresponding to multiple particle emitters of the target scene component; in response to a triggering operation on a target special effects editing option, displaying an editing window corresponding to the target particle emitter in the graphical user interface, wherein the target particle emitter corresponds to the target special effects editing option, and the editing window includes preset parameters corresponding to the target particle emitter.
[0128] In an optional embodiment, the preset parameters include particle positions; the editing window includes multiple coordinate input controls for setting particle positions, and different coordinate input controls are used to set: the coordinate values of particles emitted by the particle emitter relative to the center of the target scene component along different axes of the preset coordinate system; in response to a configuration operation corresponding to the preset parameters of the target particle emitter, a step of determining the target parameters based on the configuration operation includes: responding to a first input operation of the multiple coordinate input controls, and determining the particle position of particles emitted by the target particle emitter in the game editing scene based on the numerical value input by the first input operation; wherein the particle position is the position of the target particle emitter.
[0129] In an optional embodiment, the above-mentioned preset parameters include particle size; the editing window includes multiple coordinate input controls for setting the particle size, and different coordinate input controls are used to set: the maximum action distance of particles emitted by the particle emitter under different axes of the particle's own coordinate system; the particle's own coordinate system is a coordinate system established with the center of the particle emitter as the origin; in response to the configuration operation of the preset parameters corresponding to the target particle emitter, the step of determining the target parameters based on the configuration operation includes: responding to a second input operation on the multiple coordinate input controls, and determining the particle size of the particles emitted by the target particle emitter based on the numerical value input by the second input operation.
[0130] In an optional embodiment, the above-mentioned preset parameters include a particle angle; the editing window includes multiple coordinate input controls for setting the particle angle, and different coordinate input controls are used to set: the angular deviation value of particles emitted by the particle emitter relative to the center of the target scene component under different axes of the preset coordinate system; in response to a configuration operation of the preset parameters corresponding to the target particle emitter, a step of determining the target parameters based on the configuration operation includes: responding to a third input operation on the multiple coordinate input controls, and determining the particle angle of the target particle emitter emitting particles based on the numerical value input by the third input operation.
[0131] In an optional embodiment, the above-mentioned preset parameters include the number of particles and the duration of particles; the number of particles is used to indicate the total number of particles emitted by the particle emitter per unit time; the duration of particles is used to indicate the duration from the appearance to the disappearance of particles emitted by the particle emitter; in response to the configuration operation of the preset parameters corresponding to the target particle emitter, the step of determining the target parameters based on the configuration operation includes: responding to a first configuration operation for the number of particles corresponding to the target particle emitter, determining the target number of particles emitted by the target particle emitter based on the first configuration operation; responding to a second configuration operation for the duration of particles corresponding to the target particle emitter, determining the target particle duration of particles emitted by the target particle emitter based on the second configuration operation.
[0132] In an optional embodiment, the above-mentioned preset parameters include color change parameters; the color change parameters are used to indicate the color change of particles emitted by the particle emitter within the duration of the particles; in response to the configuration operation of the preset parameters corresponding to the target particle emitter, the step of determining the target parameters based on the configuration operation includes: responding to the color setting operation of the target particle emitter, and determining the color change parameters of the particles emitted by the target particle emitter based on the color setting operation.
[0133] In an optional embodiment, the above-mentioned editing window includes: a color bar and a color palette area; the color bar is used to display gradient colors, and at least two key frames are set on the color bar, and the number of key frames matches the number of color changes of particles emitted by the target particle emitter within the particle duration; the color palette area is used to configure the gradient colors displayed by the color bar or the colors corresponding to the key frames; in response to the color setting operation for the target particle emitter, the step of determining the color change parameters of the particles emitted by the target particle emitter based on the color setting operation includes: in response to the setting operation for the key frame in the color bar, determining the position of the key frame on the color bar; wherein the position of the key frame in the color bar is used to indicate the color gradient range of particles emitted by the target particle emitter within the particle duration; in response to the color configuration operation for the color palette area, adjusting the gradient color displayed in the color bar, and / or adjusting the color corresponding to the key frame on the color bar.
[0134] In an optional embodiment, the above-mentioned step of determining the position of the key frame on the color bar in response to the setting operation of the key frame in the color bar includes: responding to the drag operation of the target key frame in the color bar, and determining the position of the target key frame in the color bar based on the drag operation; wherein the distance between adjacent key frames in the color bar is used to indicate: the time interval for the color corresponding to the previous key frame in the adjacent key frames to change to the color corresponding to the next key frame.
[0135] In an optional embodiment, the editing window further includes a frame deletion control and a frame insertion control; the method further includes: in response to selecting a first key frame in the color bar, triggering an operation of the frame deletion control to delete the first key frame so as to cancel the display of the first key frame on the color bar; and / or, in response to selecting a second key frame in the color bar, triggering an operation of the frame insertion control to insert a third key frame at an associated position of the second key frame so as to increase the number of key frames displayed in the color bar.
[0136] In an optional embodiment, the color palette area includes a color block; the color block is used to display the color corresponding to the selected key frame in the color bar; in response to the color configuration operation on the color palette area, the color corresponding to the key frame on the color bar is adjusted, and the step of adjusting the color corresponding to the key frame on the color bar includes: in response to the trigger operation on the color block, a color adjustment interface is displayed in a graphical user interface; in response to the setting operation on the color adjustment interface, a target color of the color block configuration is determined, and the color corresponding to the position of the selected key frame in the color bar is adjusted to the target color, so as to determine the target color as the color corresponding to the selected key frame, and adjust the gradient color displayed in the color bar according to the target color corresponding to the selected key frame in the color bar, the color corresponding to the previous frame of the selected key frame in the color bar, and the color corresponding to the next frame of the selected key frame in the color bar.
[0137] In an optional embodiment, the color palette area includes a color palette selection control; in response to a color configuration operation on the color palette area, the steps of adjusting the gradient color displayed in the color bar, and adjusting the color corresponding to the key frame on the color bar include: in response to a trigger operation on the color palette selection control, displaying a drop-down list in a graphical user interface, the drop-down list including multiple color combinations, the color combination including a specified number of colors; in response to a selection operation on a target color combination in the drop-down list, adjusting the gradient color displayed in the color bar based on the target color combination, and configuring the color corresponding to the position of the key frame in the color bar to the color corresponding to the key frame.
[0138] In an optional embodiment, the colors included in the above-mentioned color combination are configured with color sorting numbers; the step of adjusting the gradient colors displayed in the color bar based on the target color combination includes: configuring colors for each key frame in the color bar according to the color sorting number; determining the gradient colors displayed in the color bar based on the color difference and time difference between adjacent key frames in the color bar.
[0139] In an optional embodiment, the editing window corresponding to the target particle emitter includes a preview control; after the step of responding to the configuration operation of the preset parameters corresponding to the target particle emitter and determining the target parameters based on the configuration operation, the method further includes: responding to a trigger operation on the preview control, displaying in a graphical user interface an independent special effect performance presented in a local component area of the target scene component when the target particle emitter emits particles based on the target parameters, and the special effect performance presented in the local component area of the target scene component other than the local component area corresponding to the target particle emitter does not change.
[0140] In an optional embodiment, the above method also includes: responding to a parameter editing operation on a target scene component, determining component parameters of the target scene component based on the parameter editing operation, and controlling the target scene component to present corresponding special effects based on the component parameters; wherein the component parameters include at least component position, component size and component angle.
[0141] In an optional embodiment, the above method also includes: responding to a component editing operation on the target scene component, controlling the target scene component to present a corresponding special effect performance based on the component parameters, and controlling the relative position relationship between multiple particle emitters contained in the target scene component to remain unchanged.
[0142] In an optional embodiment, the above-mentioned step of responding to a component editing operation on a target scene component and determining component parameters of the target scene component based on the component editing operation includes: responding to an edit control operation on a component editing control displayed in a graphical user interface after the target scene component is selected, and determining component parameters of the target scene component based on the edit control operation; or, responding to a trigger operation on a setting control displayed in the graphical user interface after the target scene component is selected, displaying a parameter setting panel in the graphical user interface; and responding to a setting operation on the parameter setting panel, and determining component parameters of the target scene component based on the setting operation.
[0143] Further, Figure 6 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .
[0144] The memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0145] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 101 or the instruction in the form of software. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and completes the steps of the method of the above embodiment in combination with its hardware.
[0146] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned component editing method. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0147] Specifically, the specific process of the above-mentioned component editing method may include: displaying a graphical user interface by running a game program, wherein the graphical user interface includes a game editing scene to be edited; wherein the game editing scene includes a target scene component, wherein the target scene component includes a plurality of particle emitters configured with preset parameters, and the particle emitters are used to emit particles according to the preset parameters when working, so as to obtain a first special effect performance corresponding to the particle emitters; in response to a special effect editing operation for the target particle emitter, displaying an editing window in the graphical user interface, and displaying the preset parameters corresponding to the target particle emitter in the editing window; wherein the target particle emitter is at least part of the particle emitters included in the target scene component; in response to a configuration operation for the preset parameters corresponding to the target particle emitter, determining the target parameters based on the configuration operation, so as to control the target particle emitter to emit particles according to the target parameters when working, so as to obtain a second special effect performance corresponding to the target particle emitter; in response to an operation instruction for the target scene component, controlling the plurality of particle emitters corresponding to the target scene component to emit particles, so as to present a target special effect performance in the graphical user interface, wherein the target special effect performance is jointly determined based on the first special effect performance and / or the second special effect performance.
[0148] With the above-mentioned component editing method, players can edit the target scene component as a whole according to their own needs, so as to quickly set the special effect performance corresponding to the target scene component, and also meet the player's personalized needs for special effects, which helps to improve the player's gaming experience.
[0149] In an optional embodiment, the target scene component includes a plurality of local component areas, each of which is correspondingly provided with a particle emitter for controlling the corresponding local component areas through each particle emitter to present independent special effects.
[0150] In an optional embodiment, the step of displaying an editing window in a graphical user interface in response to a special effects editing operation on a target particle emitter includes: in response to a component editing operation on a target scene component, displaying a component editing interface corresponding to the target scene component in a graphical user interface, wherein the component editing interface includes at least special effects editing options corresponding to multiple particle emitters of the target scene component; in response to a triggering operation on a target special effects editing option, displaying an editing window corresponding to the target particle emitter in the graphical user interface, wherein the target particle emitter corresponds to the target special effects editing option, and the editing window includes preset parameters corresponding to the target particle emitter.
[0151] In an optional embodiment, the preset parameters include particle positions; the editing window includes multiple coordinate input controls for setting particle positions, and different coordinate input controls are used to set: the coordinate values of particles emitted by the particle emitter relative to the center of the target scene component along different axes of the preset coordinate system; in response to a configuration operation corresponding to the preset parameters of the target particle emitter, a step of determining the target parameters based on the configuration operation includes: responding to a first input operation of the multiple coordinate input controls, and determining the particle position of particles emitted by the target particle emitter in the game editing scene based on the numerical value input by the first input operation; wherein the particle position is the position of the target particle emitter.
[0152] In an optional embodiment, the above-mentioned preset parameters include particle size; the editing window includes multiple coordinate input controls for setting the particle size, and different coordinate input controls are used to set: the maximum action distance of particles emitted by the particle emitter under different axes of the particle's own coordinate system; the particle's own coordinate system is a coordinate system established with the center of the particle emitter as the origin; in response to the configuration operation of the preset parameters corresponding to the target particle emitter, the step of determining the target parameters based on the configuration operation includes: responding to a second input operation on the multiple coordinate input controls, and determining the particle size of the particles emitted by the target particle emitter based on the numerical value input by the second input operation.
[0153] In an optional embodiment, the above-mentioned preset parameters include a particle angle; the editing window includes multiple coordinate input controls for setting the particle angle, and different coordinate input controls are used to set: the angular deviation value of particles emitted by the particle emitter relative to the center of the target scene component under different axes of the preset coordinate system; in response to a configuration operation of the preset parameters corresponding to the target particle emitter, a step of determining the target parameters based on the configuration operation includes: responding to a third input operation on the multiple coordinate input controls, and determining the particle angle of the target particle emitter emitting particles based on the numerical value input by the third input operation.
[0154] In an optional embodiment, the above-mentioned preset parameters include the number of particles and the duration of particles; the number of particles is used to indicate the total number of particles emitted by the particle emitter per unit time; the duration of particles is used to indicate the duration from the appearance to the disappearance of particles emitted by the particle emitter; in response to the configuration operation of the preset parameters corresponding to the target particle emitter, the step of determining the target parameters based on the configuration operation includes: responding to a first configuration operation of the number of particles corresponding to the target particle emitter, determining the target number of particles emitted by the target particle emitter based on the first configuration operation; responding to a second configuration operation of the particle duration corresponding to the target particle emitter, determining the target particle duration of the particles emitted by the target particle emitter based on the second configuration operation.
[0155] In an optional embodiment, the above-mentioned preset parameters include color change parameters; the color change parameters are used to indicate the color change of particles emitted by the particle emitter within the duration of the particles; in response to the configuration operation of the preset parameters corresponding to the target particle emitter, the step of determining the target parameters based on the configuration operation includes: responding to the color setting operation of the target particle emitter, and determining the color change parameters of the particles emitted by the target particle emitter based on the color setting operation.
[0156] In an optional embodiment, the above-mentioned editing window includes: a color bar and a color palette area; the color bar is used to display gradient colors, and at least two key frames are set on the color bar, and the number of key frames matches the number of color changes of particles emitted by the target particle emitter within the particle duration; the color palette area is used to configure the gradient colors displayed by the color bar or the colors corresponding to the key frames; in response to the color setting operation for the target particle emitter, the step of determining the color change parameters of the particles emitted by the target particle emitter based on the color setting operation includes: in response to the setting operation for the key frame in the color bar, determining the position of the key frame on the color bar; wherein the position of the key frame in the color bar is used to indicate the color gradient range of particles emitted by the target particle emitter within the particle duration; in response to the color configuration operation for the color palette area, adjusting the gradient color displayed in the color bar, and / or adjusting the color corresponding to the key frame on the color bar.
[0157] In an optional embodiment, the above-mentioned step of determining the position of the key frame on the color bar in response to the setting operation of the key frame in the color bar includes: responding to the drag operation of the target key frame in the color bar, and determining the position of the target key frame in the color bar based on the drag operation; wherein the distance between adjacent key frames in the color bar is used to indicate: the time interval for the color corresponding to the previous key frame in the adjacent key frames to change to the color corresponding to the next key frame.
[0158] In an optional embodiment, the editing window further includes a frame deletion control and a frame insertion control; the method further includes: in response to selecting a first key frame in the color bar, triggering an operation of the frame deletion control to delete the first key frame so as to cancel the display of the first key frame on the color bar; and / or, in response to selecting a second key frame in the color bar, triggering an operation of the frame insertion control to insert a third key frame at an associated position of the second key frame so as to increase the number of key frames displayed in the color bar.
[0159] In an optional embodiment, the color palette area includes a color block; the color block is used to display the color corresponding to the selected key frame in the color bar; in response to the color configuration operation on the color palette area, the color corresponding to the key frame on the color bar is adjusted, and the step of adjusting the color corresponding to the key frame on the color bar includes: in response to the trigger operation on the color block, a color adjustment interface is displayed in a graphical user interface; in response to the setting operation on the color adjustment interface, a target color of the color block configuration is determined, and the color corresponding to the position of the selected key frame in the color bar is adjusted to the target color, so as to determine the target color as the color corresponding to the selected key frame, and adjust the gradient color displayed in the color bar according to the target color corresponding to the selected key frame in the color bar, the color corresponding to the previous frame of the selected key frame in the color bar, and the color corresponding to the next frame of the selected key frame in the color bar.
[0160] In an optional embodiment, the color palette area includes a color palette selection control; in response to a color configuration operation on the color palette area, the steps of adjusting the gradient color displayed in the color bar, and adjusting the color corresponding to the key frame on the color bar include: in response to a trigger operation on the color palette selection control, displaying a drop-down list in a graphical user interface, the drop-down list including multiple color combinations, the color combination including a specified number of colors; in response to a selection operation on a target color combination in the drop-down list, adjusting the gradient color displayed in the color bar based on the target color combination, and configuring the color corresponding to the position of the key frame in the color bar to the color corresponding to the key frame.
[0161] In an optional embodiment, the colors included in the above-mentioned color combination are configured with color sorting numbers; the step of adjusting the gradient colors displayed in the color bar based on the target color combination includes: configuring colors for each key frame in the color bar according to the color sorting number; determining the gradient colors displayed in the color bar based on the color difference and time difference between adjacent key frames in the color bar.
[0162] In an optional embodiment, the editing window corresponding to the target particle emitter includes a preview control; after the step of responding to the configuration operation of the preset parameters corresponding to the target particle emitter and determining the target parameters based on the configuration operation, the method further includes: responding to a trigger operation on the preview control, displaying in a graphical user interface an independent special effect performance presented in a local component area of the target scene component when the target particle emitter emits particles based on the target parameters, and the special effect performance presented in the local component area of the target scene component other than the local component area corresponding to the target particle emitter does not change.
[0163] In an optional embodiment, the above method also includes: responding to a parameter editing operation on a target scene component, determining component parameters of the target scene component based on the parameter editing operation, and controlling the target scene component to present corresponding special effects based on the component parameters; wherein the component parameters include at least component position, component size and component angle.
[0164] In an optional embodiment, the above method also includes: responding to a component editing operation on the target scene component, controlling the target scene component to present a corresponding special effect performance based on the component parameters, and controlling the relative position relationship between multiple particle emitters contained in the target scene component to remain unchanged.
[0165] In an optional embodiment, the above-mentioned step of responding to a component editing operation on a target scene component and determining component parameters of the target scene component based on the component editing operation includes: responding to an edit control operation on a component editing control displayed in a graphical user interface after the target scene component is selected, and determining component parameters of the target scene component based on the edit control operation; or, responding to a trigger operation on a setting control displayed in the graphical user interface after the target scene component is selected, displaying a parameter setting panel in the graphical user interface; and responding to a setting operation on the parameter setting panel, and determining component parameters of the target scene component based on the setting operation.
[0166] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0167] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0168] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A component editing method, characterized in that: The method comprises: A graphical user interface is displayed by running the game program, wherein the graphical user interface includes a game editing scene to be edited; wherein the game editing scene includes a target scene component, wherein the target scene component includes a plurality of particle emitters configured with preset parameters, wherein the particle emitters are used to emit particles according to the preset parameters during operation, and obtain a first special effect performance corresponding to the particle emitters; In response to a special effect editing operation on a target particle emitter, an editing window is displayed in the graphical user interface, and preset parameters corresponding to the target particle emitter are displayed in the editing window; wherein the target particle emitter is at least part of the plurality of particle emitters included in the target scene component; In response to a configuration operation of preset parameters corresponding to the target particle emitter, the target parameters are determined based on the configuration operation, so as to control the target particle emitter to emit particles according to the target parameters during operation, thereby obtaining a second special effect performance corresponding to the target particle emitter; In response to an operating instruction for the target scene component, the multiple particle emitters corresponding to the target scene component are controlled to emit particles to present a target special effect performance in the graphical user interface, wherein the target special effect performance is jointly determined based on the first special effect performance and / or the second special effect performance.
2. The method according to claim 1, characterized in that The target scene component includes a plurality of local component areas, each of which is correspondingly configured with a particle emitter, which is used to control the corresponding local component areas through each particle emitter to present independent special effect performance.
3. The method according to claim 2, characterized in that The step of displaying an editing window in the graphical user interface in response to the special effect editing operation on the target particle emitter includes: In response to a component editing operation on the target scene component, displaying a component editing interface corresponding to the target scene component in the graphical user interface, wherein the component editing interface at least includes special effect editing options corresponding to a plurality of particle emitters of the target scene component; In response to a trigger operation for a target special effect editing option, an editing window corresponding to a target particle emitter is displayed in the graphical user interface, wherein the target particle emitter corresponds to the target special effect editing option, and the editing window includes preset parameters corresponding to the target particle emitter.
4. The method according to claim 3, characterized in that The preset parameters include particle positions; the editing window includes a plurality of coordinate input controls for setting the particle positions, and different coordinate input controls are used to set: coordinate values of particles emitted by the target particle emitter relative to the center of the target scene component under different axes of the preset coordinate system; The step of responding to a configuration operation of preset parameters corresponding to the target particle emitter and determining the target parameters based on the configuration operation comprises: In response to a first input operation for the plurality of coordinate input controls, the particle position of the particles emitted by the target particle emitter in the game editing scene is determined based on a numerical value input by the first input operation; wherein the particle position is the position of the target particle emitter.
5. The method according to claim 3, characterized in that: The preset parameters include particle size; the editing window includes a plurality of coordinate input controls for setting the particle size, and different coordinate input controls are used to set: the maximum action distance of the particles emitted by the target particle emitter under different axes of the particle's own coordinate system; the particle's own coordinate system is a coordinate system established with the center of the target particle emitter as the origin; The step of responding to a configuration operation of preset parameters corresponding to the target particle emitter and determining the target parameters based on the configuration operation comprises: In response to a second input operation on the plurality of coordinate input controls, a particle size of particles emitted by the target particle emitter is determined based on a value input by the second input operation.
6. The method according to claim 3, characterized in that The preset parameters include a particle angle; the editing window includes a plurality of coordinate input controls for setting the particle angle, and different coordinate input controls are used to set: the angular deviation values of the particles emitted by the target particle emitter relative to the center of the target scene component under different axes of the preset coordinate system; The step of responding to a configuration operation of preset parameters corresponding to the target particle emitter and determining the target parameters based on the configuration operation comprises: In response to a third input operation on the plurality of coordinate input controls, a particle angle at which the target particle emitter emits particles is determined based on a value input by the third input operation.
7. The method according to claim 3, characterized in that The preset parameters include the number of particles and the duration of particles; the number of particles is used to indicate the total number of particles emitted by the particle emitter per unit time; the duration of particles is used to indicate the duration from the appearance to the disappearance of particles emitted by the particle emitter; The step of responding to a configuration operation of preset parameters corresponding to the target particle emitter and determining the target parameters based on the configuration operation comprises: In response to a first configuration operation for the number of particles corresponding to the target particle emitter, determining a target number of particles emitted by the target particle emitter based on the first configuration operation; In response to a second configuration operation for a particle duration corresponding to the target particle emitter, a target particle duration for emitting particles by the target particle emitter is determined based on the second configuration operation.
8. The method according to claim 3, characterized in that The preset parameters include color change parameters; the color change parameters are used to indicate the color change of particles emitted by the target particle emitter within the particle duration; The step of responding to a configuration operation of preset parameters corresponding to the target particle emitter and determining the target parameters based on the configuration operation comprises: In response to a color setting operation for the target particle emitter, a color change parameter of particles emitted by the target particle emitter is determined based on the color setting operation.
9. The method according to claim 8, characterized in that The editing window includes: a color bar and a color palette area; the color bar is used to display gradient colors, and at least two key frames are set on the color bar, and the number of key frames matches the number of color changes of particles emitted by the target particle emitter within the particle duration; the color palette area is used to configure the gradient color displayed by the color bar or the color corresponding to the key frame; The step of determining the color change parameters of particles emitted by the target particle emitter based on the color setting operation in response to the color setting operation for the target particle emitter comprises: In response to a setting operation for a key frame in the color bar, a position of the key frame on the color bar is determined; wherein the position of the key frame in the color bar is used to indicate a color gradient range of particles emitted by the target particle emitter within a particle duration; In response to a color configuration operation on the color palette area, the gradient color displayed in the color bar is adjusted, and / or the color corresponding to the key frame on the color bar is adjusted.
10. The method according to claim 9, characterized in that The step of determining the position of the key frame on the color bar in response to the setting operation of the key frame in the color bar comprises: In response to a drag operation on a target key frame in the color bar, a position of the target key frame in the color bar is determined based on the drag operation; wherein the distance between adjacent key frames in the color bar is used to indicate: a time interval for a color corresponding to a previous key frame in the adjacent key frames to change to a color corresponding to a next key frame.
11. The method according to claim 9, characterized in that The editing window also includes a frame deletion control and a frame insertion control; the method also includes: In response to selecting a first key frame in the color bar, deleting the first key frame in response to a triggering operation of the frame deletion control, so as to cancel display of the first key frame on the color bar; And / or, in response to selecting a second key frame in the color bar, in response to a triggering operation of the frame insertion control, inserting a third key frame at a position associated with the second key frame to increase the number of key frames displayed in the color bar.
12. The method according to claim 9, characterized in that The color palette area includes a color block; the color block is used to display the color corresponding to the selected key frame in the color bar; In response to the color configuration operation for the color palette area, the step of adjusting the color corresponding to the key frame on the color bar and adjusting the color corresponding to the key frame on the color bar includes: In response to a triggering operation on the color block, displaying a color adjustment interface in the graphical user interface; In response to a setting operation on the color adjustment interface, a target color of the color block configuration is determined, and the color corresponding to the position of the selected key frame in the color bar is adjusted to the target color to determine the target color as the color corresponding to the selected key frame, and according to the target color corresponding to the selected key frame in the color bar, the color corresponding to the previous frame of the selected key frame in the color bar, and the color corresponding to the next frame of the selected key frame in the color bar, the gradient color displayed in the color bar is adjusted.
13. The method according to claim 9, characterized in that The color palette area includes a color palette selection control; In response to the color configuration operation for the color palette area, the step of adjusting the gradient color displayed in the color bar and adjusting the color corresponding to the key frame on the color bar includes: In response to a trigger operation on the color palette selection control, a drop-down list is displayed in the graphical user interface, wherein the drop-down list includes a plurality of color combinations, and the color combination includes a specified number of colors; In response to a selection operation on a target color combination in the drop-down list, the gradient color displayed in the color bar is adjusted based on the target color combination, and the color corresponding to the position of the key frame in the color bar is configured as the color corresponding to the key frame.
14. The method according to claim 13, characterized in that The colors included in the color combination are configured with color sorting numbers; the step of adjusting the gradient colors displayed in the color bar based on the target color combination includes: According to the color sorting sequence number, configure a color for each key frame in the color bar; The gradient color displayed in the color bar is determined based on the color difference and time difference of adjacent key frames in the color bar.
15. The method according to claim 3, characterized in that The editing window corresponding to the target particle emitter includes a preview control; After the step of responding to the configuration operation of the preset parameters corresponding to the target particle emitter and determining the target parameters based on the configuration operation, the method further includes: In response to a trigger operation on the preview control, the independent special effect performance presented in the local component area of the target scene component by the target particle emitter emitting particles based on the target parameters is displayed in the graphical user interface, and the special effect performance presented in the local component area of the target scene component except for the local component area corresponding to the target particle emitter does not change.
16. The method according to claim 1, characterized in that The method further comprises: In response to a parameter editing operation on the target scene component, component parameters of the target scene component are determined based on the parameter editing operation, and the target scene component is controlled to present corresponding special effect performance based on the component parameters; wherein the component parameters include at least component position, component size and component angle.
17. The method according to claim 16, characterized in that The method further comprises: In response to a component editing operation on the target scene component, the target scene component is controlled to present a corresponding special effect performance based on the component parameters, and the relative position relationship between the multiple particle emitters included in the target scene component is controlled to remain unchanged.
18. The method according to claim 16, characterized in that The step of responding to a component editing operation on the target scene component and determining a component parameter of the target scene component based on the component editing operation comprises: In response to an edit control operation of a component edit control displayed in the graphical user interface after the target scene component is selected, determining a component parameter of the target scene component based on the edit control operation; or, In response to selecting the target scene component, a parameter setting panel is displayed in the graphical user interface in response to a triggering operation on a setting control displayed in the graphical user interface; in response to a setting operation on the parameter setting panel, component parameters of the target scene component are determined based on the setting operation.
19. A component editing device, characterized in that: The device comprises: An interface display module, used for displaying a graphical user interface by running a game program, wherein the graphical user interface includes a game editing scene to be edited; wherein the game editing scene includes a target scene component, wherein the target scene component includes a plurality of particle emitters configured with preset parameters, wherein the particle emitters are used for emitting particles according to the preset parameters during operation to obtain a first special effect performance corresponding to the particle emitters; A parameter display module, for responding to a special effect editing operation on a target particle emitter, displaying an editing window in the graphical user interface, and displaying preset parameters corresponding to the target particle emitter in the editing window; wherein the target particle emitter is at least part of the plurality of particle emitters included in the target scene component; A parameter configuration module, for responding to a configuration operation of preset parameters corresponding to the target particle emitter, determining target parameters based on the configuration operation, and controlling the target particle emitter to emit particles according to the target parameters during operation, so as to obtain a second special effect performance corresponding to the target particle emitter; A special effect display module is used to respond to the running instructions for the target scene component, control the multiple particle emitters corresponding to the target scene component to emit particles, so as to present a target special effect performance in the graphical user interface, wherein the target special effect performance is jointly determined based on the first special effect performance and / or the second special effect performance.
20. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the component editing method according to any one of claims 1 to 18.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the component editing method described in any one of claims 1 to 18.
Citation Information
Patent Citations
Particle effect visual synthesis system and method
CN102682472A
Processing method and device for scenes in game, and electronic equipment
CN113069759A
Particle effect generation method and device, storage medium and computer equipment
CN116407843A
Sky background switching method and device in game and electronic equipment
CN116850581A
Physical special effect rendering method and apparatus, computer device, and storage medium
US20230290032A1