[go: up one dir, main page]

CN111813400B - Action event processing method and device, electronic equipment and computer storage medium - Google Patents

Action event processing method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN111813400B
CN111813400B CN201910365257.XA CN201910365257A CN111813400B CN 111813400 B CN111813400 B CN 111813400B CN 201910365257 A CN201910365257 A CN 201910365257A CN 111813400 B CN111813400 B CN 111813400B
Authority
CN
China
Prior art keywords
gizmo
action event
graph
data
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910365257.XA
Other languages
Chinese (zh)
Other versions
CN111813400A (en
Inventor
郑瀚
林顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yaji Software Co Ltd
Original Assignee
Xiamen Yaji Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yaji Software Co Ltd filed Critical Xiamen Yaji Software Co Ltd
Priority to CN201910365257.XA priority Critical patent/CN111813400B/en
Publication of CN111813400A publication Critical patent/CN111813400A/en
Application granted granted Critical
Publication of CN111813400B publication Critical patent/CN111813400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides an action event processing method and device based on a Gizmo system, electronic equipment and a computer readable storage medium, and relates to the field of image processing. The method comprises the following steps: in the embodiment of the invention, the Gizmo system receives a specified action event, the action event is to modify the shape of any graph in a graph editor, the graph has corresponding original data, and after the action event is finished, the action event is processed by calling an engine interface preset by the Gizmo system to obtain target data corresponding to the changed graph so as to modify the graph. Therefore, the Gizmo system can indirectly call the API of the game engine through the abstract interface instead of directly calling the API of a specific game engine through the preset engine interface, so that the decoupling of the Gizmo system and the game engine is realized, and the Gizmo system can be transplanted by only writing a small amount of codes when the editor is replaced by the game engine.

Description

Action event processing method and device, electronic equipment and computer storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and an apparatus for processing an action event based on a Gizmo system, an electronic device, and a computer-readable storage medium.
Background
The mainstream mode of modern game development is a data-driven mode, so the editing efficiency of data directly relates to the development efficiency of projects, and the Gizmo system is produced at the same time and becomes a standard matching tool of each engine editor. The Gizmo system is a set of data visualization tools for assisting scene editing and debugging.
Currently, the mainstream game engines with editors include Unity3D and unregeal.
1) The Unity engine provides two sets of UI systems, one an IMGUI system for use by the editor and one an RMGUI system for game developers. IMGUI (Immediate Mode Graphical User Interface) is an Immediate Mode GUI, which is characterized in that each UI control is a function, and not only processes state change but also renders. RMGUI (Retained Mode Graphical User Interfaces) is a reserved Mode GUI, which is a GUI Mode commonly used by modern game engines, and generally requires initialization, event callback steps, and then processing state change in an event callback method.
The Gizmo implementation of Unity3D is based on the editor's own IMGUI system, implementing the declaration, rendering, and data updating of the controller in the picture update of each frame, so its Gizmo usage is done through a function call.
The two UI modes are very different in programming thinking and code writing, so that a common game developer needs to learn the relevant knowledge of IMGUI when he wants to extend Gizmo, and the development cost is high.
2) Unreal's Gizmo is simpler, and currently only includes displacement, rotation, and scaling Gizmo. Gizmo is encapsulated in a Widget class, so that theoretically, a user wants to expand, and the fastest mode is to add a function in the Widget, so that the source code of an engine is changed, and the method is unreasonable. And the method for drawing the graph by directly calling the engine in the Widget class enables the Gizmo and the engine to be strongly coupled, if another engine is required to be switched to render the Gizmo, the Widget class needs to be re-realized by a new engine graph drawing method, and the realization process is complicated.
Disclosure of Invention
The purpose of this application aims at solving at least one of the above technical defects, and proposes the following technical solutions:
in a first aspect, a method for action event processing based on a Gizmo system is provided, and the method includes:
receiving a specified action event; the action event is to modify the shape of any Gizmo graph in a graph editor, and the Gizmo graph has corresponding original data;
and after the action event is finished, processing the action event by calling an engine interface preset by the Gizmo system to obtain target data corresponding to the changed Gizmo graph so as to modify the Gizmo graph.
Preferably, the Gizmo system is provided with a Gizmo management module;
the step of receiving a specified action event comprises:
receiving, by the Gizmo management module, the action event.
Preferably, the Gizmo system is provided with a controller module, and the step of obtaining target data corresponding to the changed Gizmo graph by calling an engine interface preset by the Gizmo system to process the action event includes:
determining a controller module corresponding to the action event and a corresponding Gizmo graph by calling an engine interface preset by the Gizmo system;
and processing the action event data in the action event through the corresponding controller module, and determining target data corresponding to the changed Gizmo graph.
Preferably, the Gizmo system is provided with a Gizmo module, and the step of processing, by the corresponding controller module, the action event data in the action event and determining the target data corresponding to the changed Gizmo graph includes:
the controller module generates corresponding difference data according to the action event data;
and the Gizmo module fuses the original data and the difference data to obtain the target data.
Preferably, the Gizmo system is further provided with a shape controller module and a call composition controller module;
any Gizmo graphic in the graphic editor is generated as follows:
when the Gizmo management module determines the type of the graph to be created, a Gizmo module of a corresponding type is created;
the Gizmo module creates a corresponding controller module;
generating graphic data of the Gizmo graphic by using the shape controller module;
the controller module packages the graphic data through the calling component controller module and sends the packaged data to an engine interface;
and calling an API (application programming interface) for drawing a graph in a game engine by the engine interface to draw the packaged data and generate a Gizmo graph to be created.
In a second aspect, an apparatus for action event processing based on a Gizmo system is provided, the apparatus comprising:
the Gizmo management module is used for receiving a specified action event; the action event is to modify the shape of any Gizmo graph in a graph editor, and the Gizmo graph has corresponding original data;
and the engine interface preset by the Gizmo system is used for processing the action event after the action event is finished to obtain target data corresponding to the changed Gizmo graph so as to modify the Gizmo graph.
Preferably, the Gizmo system is provided with a controller module;
the engine interface is specifically configured to:
calling an engine interface preset by the Gizmo system to determine a controller module corresponding to the action event and a corresponding Gizmo graph;
and the controller module is used for processing the action event data in the action event and determining target data corresponding to the changed Gizmo graph.
Preferably, the Gizmo system is provided with Gizmo modules;
the controller module is specifically configured to: generating corresponding difference data according to the action event data;
and the Gizmo module is used for fusing the original data and the difference data to obtain the target data.
Preferably, the Gizmo system is further provided with a shape controller module and a call composition controller module;
any Gizmo graphic in the graphic editor is generated as follows:
the Gizmo management module is used for creating a Gizmo module of a corresponding type when the type of the graph to be created is determined;
the Gizmo module is used for creating a corresponding controller module;
the shape controller module is used for generating graphic data of the Gizmo graphic;
the controller module is used for calling the component controller module to package the graphic data and sending the packaged data to an engine interface;
and the engine interface is used for calling an API (application programming interface) for drawing a graph in a game engine to draw the packaged data and generate a Gizmo graph to be created.
In a third aspect, an electronic device is provided, which includes:
a processor, a memory, and a bus;
the bus is used for connecting the processor and the memory;
the memory is used for storing operation instructions;
the processor is configured to invoke the operation instruction, and the executable instruction enables the processor to execute an operation corresponding to the method for processing the action event based on the Gizmo system according to the first aspect of the present application.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the method for action event processing based on the Gizmo system shown in the first aspect of the present application.
The technical scheme provided by the application brings the beneficial effects that:
in the embodiment of the invention, the Gizmo system receives a specified action event, the action event is to modify the shape of any graph in a graph editor, the graph has corresponding original data, and after the action event is finished, the action event is processed by calling an engine interface preset by the Gizmo system to obtain target data corresponding to the changed graph so as to modify the graph. Therefore, the Gizmo system can indirectly call the API of the game engine through the abstract interface instead of directly calling the API of a specific game engine through the preset engine interface, so that the decoupling of the Gizmo system and the game engine is realized, and the game engine can be transplanted by only compiling a small amount of codes when an editor is changed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
FIG. 1 is a schematic diagram of the structure of a Gizmo system provided by one embodiment of the present application;
fig. 2 is a schematic flowchart of an action event processing method based on the Gizmo system according to another embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating a Gizmo system responding to an action event according to yet another embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating Gizmo interaction graph generation by the Gizmo system according to yet another embodiment of the present application;
fig. 5 is a schematic structural diagram of an action event processing apparatus based on a Gizmo system according to yet another embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device for action event processing based on a Gizmo system according to yet another embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, several terms referred to in the present application will be introduced and explained.
The mainstream mode of modern game development is a data-driven mode, so the editing efficiency of data directly relates to the development efficiency of projects, and the Gizmo system is produced at the same time and becomes a standard matching tool of each engine editor. The Gizmo system is a set of data visualization tools for assisting scene editing and debugging.
The Gizmo system is composed of various types of Gizmo modules. One Gizmo module contains graphics to display data and some interactive graphics. For example, the Gizmo module for adjusting the position contains three mutually perpendicular arrows whose intersection points represent the position of the currently interactable figure (such as a cube, a triangle) in the world coordinate system, and the three arrows can be dragged to generate x, y and z axis data of the object movement.
As shown in fig. 1, the Gizmo system in the present application includes a Gizmo manager module (Gizmo management module), a Gizmo module, a Controller module (Controller module), a ControllerShape module (shape Controller module), a ControllerUtil module (call component Controller module), and an engine interface, and the functions of the modules are specifically as follows:
1) The GizmoManager module is responsible for the creation, destruction and event distribution of the Gizmo module, calls an interface for collision detection in the EngineInterface, judges a Gizmo graphic object currently operated and sends a mouse operation event;
2) And the Gizmo module is used for receiving the data of the host Node (Node or Component), monitoring the mouse event of the Controller, obtaining the modified value of the Controller, setting the data of the host Node, acquiring the data of the host Node and updating the Controller. The framework has built in some Gizmo modules of the type commonly used by editors, such as: displacement, rotation, zooming, point light source, spotlight;
3) And the Controller module defines the appearance and the data operation mode of the operator, uses the data obtained from the Gizmo module for display, can receive mouse operation events, and returns modified data to the Gizmo module, and the Gizmo module updates the host node by using new data. The framework is internally provided with a plurality of common controllers to meet the editing requirements of most data, such as: a displacement controller, a rotation controller, a zoom controller, a radius controller, a cone controller, etc.;
4) A ControllerShape module for generating graphic data used by the rendering controller, such as a quadrangle, a line, a cube, a cone, etc.;
5) The system comprises a controllerUtil module and a plurality of tool functions, wherein the tool functions are used for packaging controllerShape once and calling an interface function generating engine for creating grids in the EngineInterface to generate objects which can be directly rendered;
6) The EngineInterface abstracts auxiliary interfaces independent of the game engine, such as creating grids, updating vertex data, obtaining bounding boxes and the like. The set of Gizmo systems can be used for different engines as long as this interface is implemented.
In practical applications, the editor provides mouse or keyboard action events and type of Gizmo module (e.g., displacement, rotation, zoom, point light, spotlight), the engine provides the ability to draw graphics, and interactive Gizmo graphics are drawn in the Gizmo system. The action event may include a mouse click event on the graph, such as dragging, zooming, and the like, and/or a keyboard input event, such as inputting a numerical value of some data in the graph through the keyboard.
The application provides an action event processing method, an action event processing device, an electronic device and a computer-readable storage medium based on a Gizmo system, and aims to solve the above technical problems in the prior art.
The following describes the technical solution of the present application and how to solve the above technical problems in detail by specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
In one embodiment, a method for Gizmo system-based action event processing is provided, as shown in FIG. 2, the method comprising:
step S201, receiving a designated action event; the action event is to modify the shape of any Gizmo graph in a graph editor, and the Gizmo graph has corresponding original data;
specifically, the Gizmo graph has corresponding raw data, for example, corresponding raw data for three vertices and three sides of a triangle.
Further, the Gizmo graph is interactive, for example, a user may shift a vertex of the triangle by a mouse, or zoom the overall shape of the triangle, or modify the value of the vertex of the triangle by means of keyboard input.
In a preferred embodiment of the invention, the Gizmo system is provided with a Gizmo management module; the step of receiving a specified action event comprises: receiving, by the Gizmo management module, the action event.
In practical application, an important function of the Gizmo system is to perform quick visual editing in a scene through a mouse and a keyboard, so that most of controllers need to respond to mouse events, register the required mouse and keyboard events when the Gizmo graph is created, and then modify data to be edited in the Gizmo graph according to values returned by the controllers.
And step S202, after the action event is finished, processing the action event by calling an engine interface preset by the Gizmo system to obtain target data corresponding to the changed graph so as to modify the graph.
In a preferred embodiment of the present invention, the step of obtaining target data corresponding to the changed Gizmo graph by calling an engine interface preset by the Gizmo system to process the action event includes:
determining a controller module corresponding to the action event and a corresponding Gizmo graph by calling an engine interface preset by the Gizmo system;
and processing the action event data in the action event through the corresponding controller module, and determining target data corresponding to the changed Gizmo graph.
Further, the Gizmo system is provided with a Gizmo module, and the step of processing the action event data in the action event through the corresponding controller module and determining the target data corresponding to the changed Gizmo graph includes:
the controller module generates corresponding difference data according to the action event data;
and the Gizmo module fuses the original data and the difference data to obtain the target data.
As shown in fig. 3, after receiving a mouse click event sent by the graphic editor, the GizmoManager may call a ray detection interface in the engine interface to perform collision detection, detect whether a Controller in Gizmo is clicked at present, and determine which graphic the point is on, for example, after the Controller receives the click event, it determines, according to the input mouse and keyboard data, which coordinate axis (three directions of x, y, and z axes) data is to be modified, and the Gizmo modifies the data to be edited according to the difference data in the Controller, thereby completing editing of the visual data once.
For example, when scaling adjustment is performed on a scaling Gizmo (scalezmo), when a z-axis on the scalezmo is clicked and dragged, the Gizmo manager sends a message that a delta pixel is dragged on the z-axis to the ScaleController, the ScaleController calculates a difference value of offset on the z-axis according to the dragged value, and the scalezmo modifies a value on the z-axis in a scale value to be edited according to the difference value, thereby obtaining final target data on the z-axis.
However, the delta pixel cannot be directly fused with the z-axis value, so the delta pixel needs to be converted into the z-axis value for fusion, and the converted data is the difference data. For example, the z-axis value is 2 (raw data), the delta pixel is 10 (action event data), the 10 pixel converted value is 2 (difference data), and the fused z-axis value is 4 (target data).
Further, the original data and the difference data are fused, and the fusion can be at least one of addition, subtraction, multiplication and division.
In a preferred embodiment of the present invention, the Gizmo system is further provided with a shape controller module, a call composition controller module;
any Gizmo graphic in the graphic editor is generated by:
when the Gizmo management module determines the type of the graph to be created, a Gizmo module of a corresponding type is created;
the Gizmo module creates a corresponding controller module;
generating graphic data of the Gizmo graphic by using the shape controller module;
the controller module packages the graphic data through the calling component controller module and sends the packaged data to an engine interface;
and calling an API (application programming interface) for drawing a graph in a game engine by the engine interface to draw the packaged data and generate a Gizmo graph to be created.
Specifically, to make the Gizmo system more independent, the behavior of the Gizmo system needs to be abstracted away from the concrete engine. The Gizmo system relies on the game engine mainly in two aspects, one is collision detection of objects, and is used for judging which interactive graphics are operated at present; the other is a function of drawing an object for drawing a desired figure. The Gizmo module and Controller module comprise an engine-independent Gizmo system framework in which data required by a Gizmo module is abstracted and defined, and how the Gizmo module operates.
As shown in fig. 4, the graphic editor informs the Gizmo manager of the type of the currently required Gizmo module to be created (e.g., displacement, rotation, zoom, point light source, spotlight) according to the type of the graphic to be edited selected by the user, and the Gizmo module defines the required Controller according to the data to be edited, e.g., a displacement Controller is defined for editing the position vector; meanwhile, whether mouse and keyboard messages need to be monitored or not is judged according to the type of a Controller, the Controller creates a geometric figure needed by the Controller through a controllerUtil, an API needed by the geometric figure is called from a game engine through an EngineInterface instead of directly calling the API of the engine by a Gizmo system, and therefore decoupling from the engine is achieved.
Taking the example of creating a scaling Gizmo (ScaleGizmo), when a scaling value of a graphic needs to be adjusted in a graphic editor, a ScaleGizmo is needed, and the gizmomamanager creates a ScaleGizmo for the object, where the ScaleGizmo includes a ScaleController, and the ScaleController is composed of three cubes with line segments perpendicular to each other, which needs to call methods for creating the line segments and the cubes from ControllerUtil, and the ControllerShape generates point data of the line segments according to the starting point and the end point of the line segments, generates point data for composing the cubes according to the length and the width, and the data are transmitted to an abstract interface for drawing the graphic in the engine interface, and calls an API for drawing the graphic in the game engine, so that the Gizmo is drawn by the game engine.
Further, the Gizmo module is composed of controllers, one Gizmo module may correspond to a plurality of controllers, one or more of the controllers may be used according to different conditions, the controller is created in an initialization function of the Gizmo module, and data operated by the controller is obtained in an update function. Defining a mapping table of the components and the Gizmo modules, and when a certain node is selected by the editor, the Gizmo modules to be used can be created according to the components on the node.
The editor user can also define his own Gizmo module very conveniently, inherit the base class of the Gizmo system, use the built-in Controller inside, or self-defined Controller. The mapping relationship with the component is then established using the custom Gizmo module in the editor.
In the embodiment of the invention, the Gizmo system receives a specified action event, the action event is to modify the shape of any graph in a graph editor, the graph has corresponding original data, and after the action event is finished, the action event is processed by calling an engine interface preset by the Gizmo system to obtain target data corresponding to the changed graph so as to modify the graph. Therefore, the Gizmo system can indirectly call the API of the game engine through the abstract interface instead of directly calling the API of a specific game engine through the preset engine interface, so that the decoupling of the Gizmo system and the game engine is realized, and the Gizmo system can be transplanted by only writing a small amount of codes when the editor is replaced by the game engine.
Fig. 5 is a schematic structural diagram of an action event processing apparatus based on a Gizmo system according to yet another embodiment of the present application, and as shown in fig. 5, the apparatus of this embodiment may include:
a Gizmo management module 501 for receiving a specified action event; the action event is to modify the shape of any Gizmo graph in a graph editor, and the Gizmo graph has corresponding original data;
and the engine interface 502 preset by the Gizmo system is used for processing the action event after the action event is finished to obtain target data corresponding to the changed Gizmo graph so as to modify the Gizmo graph.
In a preferred embodiment of the invention, the Gizmo system is provided with a controller module;
the engine interface is specifically configured to:
calling an engine interface preset by the Gizmo system to determine a controller module corresponding to the action event and a corresponding Gizmo graph;
and the controller module is used for processing the action event data in the action event and determining target data corresponding to the changed Gizmo graph.
In a preferred embodiment of the invention, the Gizmo system is provided with a Gizmo module;
the controller module is specifically configured to: generating corresponding difference data according to the action event data;
and the Gizmo module is used for fusing the original data and the difference data to obtain the target data.
In a preferred embodiment of the present invention, the Gizmo system is further provided with a shape controller module, a call composition controller module;
any Gizmo graphic in the graphic editor is generated as follows:
the Gizmo management module is used for creating a Gizmo module of a corresponding type when the type of the graph to be created is determined;
the Gizmo module is used for creating a corresponding controller module;
the shape controller module is used for generating graphic data of the Gizmo graphic;
the controller module is used for calling the component controller module to package the graphic data and sending the packaged data to an engine interface;
and the engine interface is used for calling an API (application programming interface) for drawing a graph in a game engine to draw the packaged data and generate a Gizmo graph to be created.
The action event processing apparatus based on Gizmo system of this embodiment can execute the action event processing method based on Gizmo system shown in the first embodiment of this application, and its implementation principle is similar, and is not described here again.
In another embodiment of the present application, there is provided an electronic device including: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: and after the action event is finished, processing the action event by calling an engine interface preset by the Gizmo system to obtain target data corresponding to the changed graph so as to modify the graph. Therefore, the Gizmo system can indirectly call the API of the game engine through the abstract interface instead of directly calling the API of a specific game engine through the preset engine interface, so that the decoupling of the Gizmo system and the game engine is realized, and the game engine can be transplanted by only compiling a small amount of codes when an editor is changed.
In an alternative embodiment, an electronic device is provided, as shown in fig. 6, an electronic device 6000 shown in fig. 6 comprising: a processor 6001 and a memory 6003. Processor 6001 and memory 6003 are coupled, such as via bus 6002. Optionally, the electronic device 6000 may also include a transceiver 6004. It should be noted that the transceiver 6004 is not limited to one in practical applications, and the structure of the electronic device 6000 is not limited to the embodiment of the present application.
The processor 6001 could be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 6001 might also be a combination that performs a computing function, such as a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
The bus 6002 may include a path that carries information between the above components. The bus 6002 may be a PCI bus, an EISA bus, or the like. The bus 6002 can be divided into an address bus, a data bus, a control bus, and so forth. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
Memory 6003 can be, but is not limited to, ROM or other type of static storage device that can store static information and instructions, RAM or other type of dynamic storage device that can store information and instructions, EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 6003 is used to store application code that implements aspects of the subject application, and execution is controlled by the processor 6001. Processor 6001 is configured to execute application program code stored in memory 6003 to implement aspects of any of the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like.
Yet another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when run on a computer, enables the computer to perform the corresponding content of the foregoing method embodiments. Compared with the prior art, the Gizmo system receives a specified action event, the action event is to modify the shape of any graph in a graph editor, the graph has corresponding original data, and after the action event is finished, the action event is processed by calling an engine interface preset by the Gizmo system to obtain target data corresponding to the changed graph so as to modify the graph. Therefore, the Gizmo system can indirectly call the API of the game engine through the abstract interface instead of directly calling the API of a specific game engine through the preset engine interface, so that the decoupling of the Gizmo system and the game engine is realized, and the game engine can be transplanted by only compiling a small amount of codes when an editor is changed.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. An action event processing method based on a Gizmo system is characterized by comprising the following steps:
receiving a specified action event; the action event is to modify the shape of any Gizmo graph in a graph editor, and the Gizmo graph has corresponding original data;
after the action event is finished, processing the action event by calling an engine interface preset by the Gizmo system to obtain target data corresponding to the changed Gizmo graph so as to modify the Gizmo graph;
wherein the preset engine interface is used for abstracting an auxiliary interface independent of a game engine, and the processing of the action event by calling the preset engine interface of the Gizmo system includes: calling an API of a game engine through the preset engine interface to process the action event;
wherein the obtaining of the target data corresponding to the changed Gizmo graph includes: generating corresponding difference data according to the action event data; and fusing the original data and the difference data to obtain the target data.
2. The action event processing method according to claim 1, wherein the Gizmo system is provided with a Gizmo management module;
the step of receiving a specified action event comprises:
receiving, by the Gizmo management module, the action event.
3. The method for processing the action event according to claim 2, wherein the Gizmo system is provided with a controller module, and the step of obtaining the target data corresponding to the changed Gizmo graph by calling an engine interface preset by the Gizmo system to process the action event comprises:
determining a controller module corresponding to the action event and a corresponding Gizmo graph by calling an engine interface preset by the Gizmo system;
and processing the action event data in the action event through the corresponding controller module, and determining target data corresponding to the changed Gizmo graph.
4. The action event processing method according to claim 3, wherein the Gizmo system is provided with a Gizmo module, and the step of determining target data corresponding to the changed Gizmo graph by processing the action event data in the action event through the corresponding controller module comprises:
the controller module generates corresponding difference data according to the action event data;
and the Gizmo module fuses the original data and the difference data to obtain the target data.
5. The action event processing method according to any one of claims 1 to 4, wherein the Gizmo system is further provided with a shape controller module, a call composition controller module;
any Gizmo graphic in the graphic editor is generated as follows:
when the Gizmo management module determines the type of the graph to be created, a Gizmo module of a corresponding type is created;
the Gizmo module creates a corresponding controller module;
generating graphic data of the Gizmo graphic by using the shape controller module;
the controller module packages the graphic data through the calling component controller module and sends the packaged data to an engine interface;
and calling an API (application programming interface) for drawing a graph in a game engine by the engine interface to draw the packaged data and generate a Gizmo graph to be created.
6. An action event processing apparatus based on a Gizmo system, comprising:
the Gizmo management module is used for receiving a specified action event; the action event is to modify the shape of any Gizmo graph in a graph editor, and the Gizmo graph has corresponding original data;
the engine interface is preset by the Gizmo system and used for processing the action event after the action event is finished to obtain target data corresponding to the changed Gizmo graph so as to modify the Gizmo graph;
wherein the preset engine interface is used for abstracting an auxiliary interface independent of a game engine, and the engine interface preset by the Gizmo system processes the action event, and comprises: calling an API of a game engine through the preset engine interface to process the action event;
wherein the obtaining of the target data corresponding to the changed Gizmo graph includes: generating corresponding difference data according to the action event data; and fusing the original data and the difference data to obtain the target data.
7. The action event processing device according to claim 6, wherein the Gizmo system is provided with a controller module;
the engine interface is specifically configured to:
calling an engine interface preset by the Gizmo system to determine a controller module corresponding to the action event and a corresponding Gizmo graph;
and the controller module is used for processing the action event data in the action event and determining target data corresponding to the changed Gizmo graph.
8. The action event processing device according to claim 7, wherein the Gizmo system is provided with a Gizmo module;
the controller module is specifically configured to: generating corresponding difference data according to the action event data;
and the Gizmo module is used for fusing the original data and the difference data to obtain the target data.
9. An electronic device, comprising:
a processor, a memory, and a bus;
the bus is used for connecting the processor and the memory;
the memory is used for storing operation instructions;
the processor is used for executing the action event processing method based on the Gizmo system according to any one of the claims 1-5 by calling the operation instruction.
10. A computer-readable storage medium for storing computer instructions which, when executed on a computer, cause the computer to perform the method of Gizmo-based system action event processing of any of claims 1-5.
CN201910365257.XA 2019-04-30 2019-04-30 Action event processing method and device, electronic equipment and computer storage medium Active CN111813400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910365257.XA CN111813400B (en) 2019-04-30 2019-04-30 Action event processing method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910365257.XA CN111813400B (en) 2019-04-30 2019-04-30 Action event processing method and device, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111813400A CN111813400A (en) 2020-10-23
CN111813400B true CN111813400B (en) 2022-10-21

Family

ID=72844584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910365257.XA Active CN111813400B (en) 2019-04-30 2019-04-30 Action event processing method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111813400B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101031882A (en) * 2004-06-08 2007-09-05 达尔特设备公司 Architecture, Apparatus and Method for Device Group Recruitment and Content Reproduction for Universal Device Interoperability Platform
CN102520972A (en) * 2011-12-31 2012-06-27 上海方寸信息科技有限公司 Video game development system and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10786737B2 (en) * 2016-11-08 2020-09-29 CodeSpark, Inc. Level editor with word-free coding system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101031882A (en) * 2004-06-08 2007-09-05 达尔特设备公司 Architecture, Apparatus and Method for Device Group Recruitment and Content Reproduction for Universal Device Interoperability Platform
CN102520972A (en) * 2011-12-31 2012-06-27 上海方寸信息科技有限公司 Video game development system and method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Unity 编辑器扩展总结 五:Gizmos辅助调试工具";虚拟喵;《https://blog.csdn.net/qq_35361471/article/details/84715008》;20181202;全文 *
基于DirectX库的游戏引擎的框架和接口设计;秦兴杰等;《数字技术与应用》;20161215(第12期);全文 *

Also Published As

Publication number Publication date
CN111813400A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US10628909B2 (en) Graphics processing unit resource dependency viewer
CN117725767B (en) Automatic generation method, plug-in, system, terminal and medium for parameterized component model
CN111540035B (en) Particle rendering method, device and device
CN111796821A (en) Page updating method and device
US11789775B2 (en) Progress visualization of computational job
CN114239838A (en) Superconducting quantum computing chip layout generation method and device
CN113926190A (en) Method and device for controlling three-dimensional model in game editor and storage medium
US20140325404A1 (en) Generating Screen Data
CN114115845B (en) Project generation method, device, electronic device and readable medium
US11714691B2 (en) Extensible command pattern
CN111813400B (en) Action event processing method and device, electronic equipment and computer storage medium
CN112685494B (en) A data visualization method, device, equipment and medium
CN116775174A (en) Processing method, device, equipment and medium based on user interface frame
CN115761198A (en) A data model lightweight method, device, equipment and storage medium
CN117806759A (en) Large screen display processing method and device, electronic equipment and storage medium
CN115203809A (en) Building information model rendering method and system and electronic equipment
CN110554900B (en) Method, system, device and medium for presenting human-computer interface effect based on GPU
KR20180047200A (en) Apparatus for producting sprite graphic and method for using the same
CN109656556B (en) Method and device for generating self-adaptive page
JP2023539010A (en) Human-machine interaction method and user interface realized by computer
Amari et al. A virtual reality application for software visualization
CN111611782B (en) Connection point generation method and device
CN118587397A (en) A three-dimensional model display method, device, storage medium and electronic device
CN119065742A (en) A method, device, equipment and storage medium for loading a visual development engine of a mixed reality display device
CN117827207A (en) Dynamic construction method, device, equipment and medium of primitive panel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant