A graphical programming control method, system and device

By introducing three-dimensional virtual scenes and programming interfaces into graphical programming tools, users can generate control processes through tiles combination, solving the problem of single control function of three-dimensional virtual scenes in the existing technology, and realizing multi-dimensional changes in three-dimensional objects Control improves the practicality of graphical programming.

CN112612463BActive Publication Date: 2024-12-24XIONGAN GUOJI CREATIVE INTERNET CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202011622084.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-12-24
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

Existing graphical programming tools are mainly used for two-dimensional objects or background editing. They have relatively single functions and low practicality, and cannot effectively control objects in three-dimensional virtual scenes.

Method used

Provide a graphical programming control method. By displaying a three-dimensional virtual scene and programming interface, users can generate control processes through the combination of tiles, determine the object code and control the control objects in the three-dimensional virtual scene for changes, including three-dimensional motion and time control. , scene perspective, animation and size control.

Benefits of technology

It improves the practicality of graphical programming, allows users to control objects with three-dimensional virtual features to undergo complex changes through graphical programming, and enhances the efficiency and effect of programming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112612463B_ABST
    Figure CN112612463B_ABST
Patent Text Reader

Abstract

The present application discloses a graphical programming control method, system and device for improving the practicality of graphical programming. The present application method includes: displaying a three-dimensional virtual scene, which contains at least one control object; obtaining a first operation instruction from a user, which is used to open a programming interface; displaying the programming interface according to the first operation instruction, which contains a block storage area and a process generation area, wherein the block storage area contains at least one block, and the process generation area is used to generate a control process; obtaining a second operation instruction from a user; determining a target block from the block storage area according to the second operation instruction, and displaying the target block in the process generation area; determining a target code according to the target block; generating a control process according to the target code; and controlling the change of the control object in the three-dimensional virtual scene according to the control process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer programming control technology, and in particular to a graphical programming control method, system and device. Background Art

[0002] With the development of computer technology, programming technology has been widely used, playing an important role in modern industry and daily life, and people pay more and more attention to programming technology.

[0003] Graphical programming tools mainly convert text programming languages ​​in code form into graphical programming languages. Users generate continuous codes and then generate programs by combining a series of graphic blocks. In the solutions provided by the prior art, for example, in the graphical programming tool scratch, users can generate two-dimensional animations by combining blocks. Users can only edit two-dimensional objects or backgrounds in the graphical programming tool, and the functions are relatively simple. The graphical programming methods provided by the prior art are less practical. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a graphical programming control method, system and device for improving the practicality of graphical programming.

[0005] The first aspect of the present application provides a graphical programming control method, the method comprising:

[0006] Displaying a three-dimensional virtual scene, wherein the three-dimensional virtual scene includes at least one control object, and the control object has a virtual three-dimensional feature;

[0007] Acquire a first operation instruction from a user, the first operation instruction is used to open the programming interface; display the programming interface according to the first operation instruction, the programming interface includes a block accommodating area and a process generation area, the block accommodating area contains at least one block, and the process generation area is used to generate a control process;

[0008] Obtaining a second operation instruction from the user;

[0009] Determine a target tile from the tile accommodating area according to the second operation instruction, and display the target tile in the process generation area;

[0010] Determine a target code according to the target block;

[0011] generating a control flow according to the target code;

[0012] The control object in the three-dimensional virtual scene is controlled to change according to the control process.

[0013] Optionally, determining the target code according to the target block includes:

[0014] Obtaining a function identifier and a parameter identifier carried in the target image block;

[0015] The target code is determined according to the function identifier and the parameter identifier. The target code includes a three-dimensional motion target code, a time control target code, a scene perspective control target code, an animation control target code, and a three-dimensional size control target code according to different function identifiers.

[0016] Optionally, the function identifier is a three-dimensional motion function identifier, the parameter identifier is a three-dimensional coordinate identifier, and determining the target code according to the function identifier and the parameter identifier includes:

[0017] Determine a three-dimensional motion target code according to the three-dimensional motion function identifier and the three-dimensional coordinate identifier;

[0018] Controlling the change of the control object in the three-dimensional virtual scene according to the control process includes:

[0019] According to the three-dimensional motion target code in the control process, the control object in the three-dimensional virtual scene is controlled to perform three-dimensional motion, and the three-dimensional motion includes at least one of movement or rotation.

[0020] Optionally, the function identifier is a time function identifier, and the parameter identifier is a time parameter identifier;

[0021] Determining the target code according to the function identifier and the parameter identifier includes:

[0022] The time control target code is determined according to the time function identifier and the time parameter identifier.

[0023] Optionally, the function identifier is a perspective function identifier, the parameter identifier is a perspective parameter identifier, and determining the target code according to the function identifier and the parameter identifier includes:

[0024] Determine the scene perspective control target code according to the perspective function identifier and the perspective parameter identifier;

[0025] Controlling the change of the control object in the three-dimensional virtual scene according to the control process includes:

[0026] The scene perspective of the three-dimensional virtual scene is controlled to change according to the perspective control target code in the control process.

[0027] Optionally, the function identifier is an animation control function identifier, the parameter identifier is an animation control parameter identifier, and determining the target code according to the function identifier and the parameter identifier includes:

[0028] Determine the animation control target code according to the animation control function identifier and the animation control parameter identifier;

[0029] Controlling the change of the control object in the three-dimensional virtual scene according to the control process includes:

[0030] The target animation is controlled by the animation control target code in the control process for demonstration.

[0031] Optionally, the function identifier is a three-dimensional size control function identifier, the parameter identifier is a three-dimensional size parameter identifier, and determining the target code according to the function identifier and the parameter identifier includes:

[0032] Determine a three-dimensional size control target code according to the three-dimensional size control function identifier and the three-dimensional size parameter identifier;

[0033] Controlling the change of the control object in the three-dimensional virtual scene according to the control process includes:

[0034] The three-dimensional size of the control object in the three-dimensional virtual scene is adjusted according to the three-dimensional size control target code in the control process.

[0035] Optionally, before obtaining the first operation instruction of the user, the method further includes:

[0036] Acquire a third operation instruction of the user, where the third operation instruction is used to open the object library;

[0037] Acquire the object library according to the third operation instruction, wherein at least one control object is pre-stored in the object library;

[0038] Displaying the control objects in the object library in a list format;

[0039] Acquire a fourth operation instruction of a user on the control object in the object library, where the fourth operation instruction is used to select the control object;

[0040] A control object is created in the three-dimensional virtual scene according to the fourth operation instruction.

[0041] The second aspect of the present application provides a graphical programming control system, comprising:

[0042] The display unit is used to display a three-dimensional virtual scene, wherein the three-dimensional virtual scene includes at least one control object, and the control object has a three-dimensional virtual feature.

[0043] A first acquisition unit, used to acquire a first operation instruction of a user, where the first operation instruction is used to open the programming interface;

[0044] The display unit is further used to display a programming interface according to the first operation instruction, wherein the programming interface includes a block accommodating area and a process generating area, wherein the block accommodating area contains at least one block, and the process generating area is used to generate a control process;

[0045] A second acquisition unit, used to acquire a second operation instruction of the user;

[0046] The display unit is further used to determine a target block from the block accommodating area according to the second operation instruction, and display the target block in the process generation area;

[0047] A determination unit, configured to determine a target code according to the target block;

[0048] A generating unit, used for generating a control flow according to the target code;

[0049] A control unit is used to control the change of the control object in the three-dimensional virtual scene according to the control process.

[0050] The third aspect of the present application provides a graphical programming control device, comprising:

[0051] Processor, memory, input-output unit, and bus;

[0052] The processor is connected to the memory, the input and output unit, and the bus;

[0053] The memory stores a program, and the processor calls the program to execute the graphical programming control method as described in the first aspect and any optional method in the first aspect.

[0054] It can be seen from the above technical solutions that this application has the following advantages:

[0055] In the graphical programming control method provided in the present application, a three-dimensional virtual scene and a programming interface are first displayed. The programming interface includes a block accommodating area and a process generation area. The user can add the target block in the block accommodating area to the process generation area by selecting the block. Then, the terminal determines the target code through the target block in the process generation area, and controls the three-dimensional virtual scene to change according to the target code. The graphical programming method provided in the present application can control the control object in the three-dimensional virtual scene to change by graphical programming, thereby improving the practicality of graphical programming. The control object in the present application has a three-dimensional virtual feature, and the control object can be controlled to change in three dimensions by this method. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0057] Figure 1 A schematic diagram of an embodiment of the graphical programming control method in this application;

[0058] Figure 2 This is a flow chart of another embodiment of the graphical programming control method in this application;

[0059] Figure 3 This is a schematic diagram of the structure of an embodiment of the graphical programming control system in this application;

[0060] Figure 4 This is a schematic diagram of the structure of an embodiment of the graphical programming control device in this application. DETAILED DESCRIPTION

[0061] In order to solve the above problems in the prior art, the present application provides a graphical programming control method, system and device for improving the practicality of graphical programming.

[0062] It should be noted that the graphical programming control method provided by the present application can be applied to a terminal, a system, or a server. For example, the terminal can be a smart phone or a computer, a tablet computer, a smart TV, a smart watch, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of explanation, the present application embodiment is illustrated by taking the terminal as the execution subject.

[0063] See also Figure 1 , Figure 11 is a flow chart of the first embodiment of the graphical programming control method provided by the present application, and the graphical programming control method includes:

[0064] 101. Displaying a three-dimensional virtual scene, where the three-dimensional virtual scene includes at least one control object;

[0065] In actual applications, the terminal obtains a three-dimensional virtual scene from a local storage unit, from a cloud server, or from a mobile storage medium. The three-dimensional virtual scene in the present application can be configured with an XYZ coordinate system, for example. The three-dimensional virtual scene can include three-dimensional virtual scenes such as the sky, the ground, and the river. The three-dimensional virtual scene includes control objects. The control objects mentioned or discussed in the implementation of the present application refer to objects in the three-dimensional virtual scene that the user needs to control through programming. When programming, it is necessary to program static control objects. The control objects can be character objects such as virtual people, animals, plants, vehicles, and science fiction characters, and can also be terrain objects in the scene such as walls, ditches, cliffs, cables, ladders, bosses, etc., and can also be other virtual prop objects in the scene, etc., which are not limited here. These controlled objects have virtual three-dimensional features, and the changes of these controlled objects in the three-dimensional virtual scene can be virtual three-dimensional changes, such as rotation or movement based on the X, Y or Z coordinate axis, and the features displayed at different angles are different. These controlled objects can also have bones, and the terminal can drive the controlled objects to perform three-dimensional movement by controlling the position of the bones. The bones can be composed of bone points and connecting lines connecting the bone points. Any bone point is configured with a relative three-dimensional coordinate axis with the bone point as the origin.

[0066] 102. Obtain a first operation instruction from a user, where the first operation instruction is used to open a programming interface;

[0067] The terminal obtains the first operation instruction of the user for opening the programming interface to perform programmatic control on the objects in the three-dimensional virtual scene. The terminal can select the control object first and then open the programming interface, or open the programming interface and then select the control object. For example, the programming interface can be opened by receiving the user's right-click instruction on the control object.

[0068] The first operation instruction described in this embodiment is only illustrative, and other implementation methods may be used in specific implementations.

[0069] 103. Displaying a programming interface according to the first operation instruction, the programming interface comprising a block accommodating area and a process generating area, the block accommodating area contains at least one block, and the process generating area is used to generate a control process;

[0070] The terminal responds to the first operation instruction and displays a programming interface. In the programming interface, there are a block accommodating area and a process generation area. Blocks are accommodated in the block accommodating area. The blocks mentioned or discussed in this application refer to blocks used to generate programming processes. Different blocks correspond to different codes to realize corresponding functions. Variable identifiers and function identifiers can be carried in the blocks. Blocks can also carry text descriptions. Compared with directly displaying codes, blocks have better readability, and users can directly understand the functions or uses of the blocks through blocks. Blocks can also be displayed in the block accommodating area in a classified manner. The process generation area can be displayed in the form of a canvas. The canvas can be configured with a positioning grid or a positioning point or a ruler for arranging blocks. Blocks with different functions can also have different shapes. When the shapes of these blocks match, the code corresponding to the blocks can form a code statement. The connection relationship between blocks can represent different code execution relationships. For example, when two blocks are horizontally connected, they can represent the parallel execution relationship of the code. When they are vertically connected, they can represent the serial execution relationship. When two blocks are embedded and connected, they can represent the nested relationship of the code, etc. When blocks are dragged into the canvas, control flows can be generated through blocks and combinations of blocks.

[0071] 104. Obtain a second operation instruction from the user;

[0072] The terminal obtains a second operation instruction for the user to select and drag the tile to the process generation area. For example, the user clicks the tile in the tile accommodating area with the mouse to select the tile, moves the mouse to drag the selected tile to the process generation area, and releases the mouse at a specified position in the process generation area, and the selected tile is displayed at the specified position.

[0073] 105. Determine a target block from the block accommodating area according to the second operation instruction, and display the target block in the process generation area;

[0074] In response to the user's second operation instruction, the terminal determines the tile selected in the tile accommodating area as the target tile, and displays the target tile at a designated position in the process generation area when the selected tile is dragged to the process generation area. Therefore, the user can directly drag the tile to the process generation area by dragging, without typing in code, thereby improving programming efficiency.

[0075] 106. Determine the target code according to the target block;

[0076] In actual application, after the block is dragged to the process generation area, the terminal obtains the corresponding target code through the blocks in the process generation area to determine the control process. Different blocks correspond to different codes. The blocks can carry function identifiers and parameter identifiers. The specific terminal can obtain the corresponding code through the function identifiers and parameter identifiers in the blocks. For example, the block carries an identifier about moveforward 10. The terminal obtains the moveforward function and variable 10 through the identifier and determines that the target code is moveforward 10. The block can also carry text information, such as forward (10), to identify that the function corresponding to the block is forward 10 unit length. The terminal can also determine the target code through the combination of multiple blocks. For example, block A and block B are spliced ​​in parallel, the code corresponding to block A is turn to 15, and the code corresponding to block B is time 0.5. Then the terminal determines the target code as turn to (15, 0.5) through blocks A and B, that is, rotate 15 degrees within 0.5 seconds.

[0077] Specifically, the target code includes a three-dimensional motion target code, a time control target code, a scene perspective control target code, an animation control target code, and a three-dimensional size control target code according to different function identifiers.

[0078] In one possible implementation, determining the target code according to the target block can also be done by obtaining a three-dimensional motion function identifier and a three-dimensional coordinate identifier carried in the block, the terminal obtaining the three-dimensional motion function according to the three-dimensional motion function identifier, obtaining the three-dimensional motion coordinates according to the three-dimensional coordinate identifier, and finally determining the three-dimensional motion target code according to the three-dimensional motion function and the three-dimensional motion coordinates. For example, the walk function and the three-dimensional coordinates (4,5,6,) are obtained according to the identifier carried in the target block, then the target code is determined to be walk(4,5,6,), that is, walking to a position with coordinates X=4, Y=5, Z=6, and the terminal controls the character object in the three-dimensional virtual scene to walk to this position.

[0079] In another possible implementation, determining the target code according to the target block may also be to obtain a time function identifier and a time parameter identifier carried in the block, obtain the time function and the time parameter according to the identifier carried in the target block, and finally determine the time control code according to the time function and the time parameter. For example, if the target block carries a time identifier related to the function wait and (2), then the target code is determined to be wait(2), that is, wait for 2 seconds, and the terminal controls the control object in the three-dimensional virtual scene to wait for 2 seconds. The specific waiting may be to keep the current state of the control object unchanged, or to use a preconfigured waiting action.

[0080] In another possible implementation, determining the target code according to the target tile can also be to obtain the viewing function and the viewing parameter according to the viewing function identifier and the viewing parameter identifier carried in the target tile, and finally determine the scene viewing control target code according to the viewing function and the viewing parameter. For example, the camera function and the viewing parameter (12, 45, 90) are obtained according to the identifier carried in the target tile, and the terminal determines that the target code is camera (12, 45, 90) according to the function and the viewing parameter, that is, the scene viewing control target code is determined according to the viewing function identifier and the viewing parameter identifier, and the terminal can control the camera viewing angle in the scene to be converted to a distance of 12 unit lengths, an angle of 45 degrees, and a direction of 90 degrees.

[0081] In another possible implementation, determining the target code according to the target block can also be to obtain the animation control function and the animation control parameters according to the animation control function identifier and the animation control parameter identifier carried in the target block; for example, obtaining the playMovie function and the corresponding animation parameters ("myself", 0, -1, true) according to the identifier carried in the target block, and determining the target code as playMovie ("myself", 0, -1, true) according to the function identifier and the animation parameters, that is, the terminal can obtain the animation with the animation name "myself" according to the target code, and play the animation "myself" from time 0 to time -1 in the three-dimensional virtual scene. In the present application, the timing of the animation playback can be either positive or reverse, which is specifically determined by the time variable in the function. The animation in this embodiment can be a pre-recorded animation, or a pre-configured template animation about the control object in the three-dimensional virtual scene. For example, when playing "myself", it can be to call a pre-stored animation and play it directly, or it can be to control the control object in the three-dimensional virtual scene to make a series of changes about "myself".

[0082] In another possible implementation, determining the target code according to the target block may also be to obtain the three-dimensional size control function and the three-dimensional size parameter according to the three-dimensional size control function identifier and the three-dimensional size parameter identifier carried in the target block, for example, obtaining the scaleTo function and parameter (50) according to the identifier carried in the target block, and finally determining that the target code is scaleTo(50), that is, the terminal can control the three-dimensional size of the controlled object in the three-dimensional virtual scene to be proportionally reduced to 50% of the original size according to the target code.

[0083] 107. Generate control flow according to target code;

[0084] After the terminal determines the target code, it generates a control flow according to the target code. The control flow is used to control the objects in the three-dimensional virtual scene to change. Specifically, the complete execution steps, triggering events and sequence can be determined according to the target code. For example, when the target code includes:

[0085] registerClickEvent(function()

[0086] moveForward(1,0.5)

[0087] turn(15)

[0088] walk(1,2,4,1)

[0089] According to the above code, the terminal determines the control process as follows: when the control object in the three-dimensional virtual scene is clicked, the control object moves forward 1 unit length within 0.5 seconds, then turns 15 degrees, and then walks to the position with coordinates X=1, Y=2, and Z=4 within 1 second.

[0090] 108. Control the changes of the control objects in the three-dimensional virtual scene according to the control process.

[0091] The terminal controls the changes of the controlled objects in the three-dimensional virtual scene according to the control process.

[0092] Correspondingly, in a possible implementation, when the control process includes a three-dimensional motion target code, the terminal controls the control object in the three-dimensional virtual scene to perform three-dimensional motion according to the control process. Specifically, the terminal controls the control object to perform three-dimensional motion according to the three-dimensional motion target code included in the control process. In the present application, the change of the control object can be, for example, the running, rotation, jumping and flying of the character in the three-dimensional virtual scene. It should be noted that the three-dimensional motion mentioned or discussed in the present application refers to the three-dimensional motion in the three-dimensional virtual scene. In the three-dimensional virtual scene, any kind of motion can be decomposed into movement and / or rotation, so the three-dimensional motion includes at least one of movement or rotation. Specifically, it can be driven to move these objects by controlling the bones in these control objects.

[0093] In another possible implementation, when the control process includes a time control target code, the terminal controls the control object in the three-dimensional virtual scene to change according to the time control target code in the control process. Specifically, the terminal controls the control object in the three-dimensional virtual scene to change according to the time function and time parameters in the time control target code.

[0094] In another possible implementation, when the control process includes a scene perspective control target code, the terminal controls the scene perspective of the three-dimensional virtual scene to change according to the perspective control target code in the control process. Specifically, the terminal controls the scene perspective of the three-dimensional virtual scene to change according to the perspective function and perspective parameters in the scene perspective control target code.

[0095] In another possible implementation, when the control flow includes animation control target code, the terminal controls the target animation for demonstration according to the animation control target code in the control flow. Specifically, the terminal controls the target animation for demonstration according to the animation control function and animation control parameters in the animation control target code.

[0096] In another possible implementation, when the control process includes a three-dimensional size control target code, the terminal adjusts the three-dimensional size of the control object in the three-dimensional virtual scene according to the three-dimensional size control target code in the control process. Specifically, the terminal controls the control object in the three-dimensional virtual scene to change according to the three-dimensional size control function and three-dimensional size parameters in the three-dimensional size target code.

[0097] In another possible implementation, the change may be in the appearance of a control object, such as a science fiction character object, or in the terrain of a three-dimensional virtual scene, such as gullies, peaks, and rivers. Specifically, the change in the control object corresponds to the control function implemented by the control function and control parameters in the target code.

[0098] The graphical programming control method provided in the embodiment of the present application first displays a three-dimensional virtual scene and a programming interface. The programming interface includes a block accommodating area and a process generation area. The user can add the target block in the block accommodating area to the process generation area by selecting the block. Then, the terminal determines the target code through the target block in the process generation area, and controls the three-dimensional virtual scene to change according to the target code. The graphical programming method provided in the present application can control the three-dimensional virtual scene to change by graphical programming, thereby improving the practicality of graphical programming.

[0099] See also Figure 2 , Figure 2 : is a flow chart of a second embodiment of the graphical programming control method provided by the present application, the graphical programming control method comprising:

[0100] 201. Displaying a three-dimensional virtual scene, where the three-dimensional virtual scene includes at least one control object;

[0101] In the present application, the control object that the user needs to control through programming can be an existing control object in the three-dimensional virtual scene, or a control object created by the user.

[0102] 202. Obtain a third operation instruction from the user, where the third operation instruction is used to open an object library;

[0103] When the user needs to select a control object from the object library, the object library is opened through a third operation, such as a single click operation on an object library button.

[0104] 203. Acquire an object library according to a third operation instruction, wherein at least one control object is pre-stored in the object library;

[0105] In actual applications, the terminal can pre-store some control objects through the object library for user convenience. For example, the object library pre-stores virtual characters, animals, plants, vehicles, science fiction characters and other role objects. When needed, the user can directly select from the object library. Furthermore, the user can also create control objects in the three-dimensional virtual scene by himself, and then save the objects he created to the object library.

[0106] 204. Display the control objects in the object library in a list format;

[0107] In order to display more completely and clearly and facilitate user selection, the control objects in the object library can be displayed in the form of a classified list, for example, there are classified control objects such as humans, animals, science fiction, transportation, objects, equipment and special effects. It should be noted that the control objects mentioned or discussed in this implementation are all control objects with three-dimensional features. There can also be a preview interface in the list for scrolling the control object selected by the user and scrolling the effects of the control object under different perspectives.

[0108] 205. Obtain a fourth operation instruction of the user for a control object in the object library, where the fourth operation instruction is used to select the control object;

[0109] The user selects the selected control object in the object library through the fourth operation, and the terminal obtains the user's fourth operation instruction on the control object in the object library, such as obtaining the user's double-click instruction on the control object. There may be other specific implementation methods, which are not limited here.

[0110] 206. Create a control object in the three-dimensional virtual scene according to the fourth operation instruction;

[0111] After receiving the fourth operation instruction, the terminal creates a control object at a designated position in the three-dimensional virtual scene and displays the control object. The created position can be set by the user.

[0112] 207. Obtain a first operation instruction from the user, where the first operation instruction is used to open a programming interface;

[0113] 208. Displaying a programming interface according to the first operation instruction, the programming interface comprising a block accommodating area and a process generating area, the block accommodating area contains at least one block, and the process generating area is used to generate a control process;

[0114] 209. Obtain a second operation instruction from the user;

[0115] 210. Determine a target block from the block accommodating area according to the second operation instruction, and display the target block in the process generation area;

[0116] 211. Determine the target code according to the target block;

[0117] 212. Determine the control flow based on the target code;

[0118] 213. Control the changes of the controlled objects in the three-dimensional virtual scene according to the control process.

[0119] Steps 207 to 213 in the present application are similar to steps 102 to 108 in the aforementioned embodiment and will not be described again here.

[0120] The above describes the embodiments of the method in the present application. The following describes the graphical programming control system and device in the present application in conjunction with the accompanying drawings.

[0121] See also Figure 3 , Figure 3 This is a schematic diagram of an embodiment of the structure of a graphical programming control system in this application, and the graphical programming control system includes:

[0122] A display unit 301 is used to display a three-dimensional virtual scene, wherein the three-dimensional virtual scene includes at least one control object, and the control object has a three-dimensional virtual feature;

[0123] A first acquisition unit 302 is used to acquire a first operation instruction of a user, where the first operation instruction is used to open a programming interface;

[0124] The root display unit 301 is further used to display a programming interface according to the first operation instruction, the programming interface includes a block accommodating area and a process generation area, the block accommodating area contains at least one block, and the process generation area is used to generate a control process;

[0125] The second acquisition unit 303 is used to acquire a second operation instruction of the user;

[0126] The display unit 301 is also used to determine the target tile from the tile accommodating area according to the second operation instruction, and display the target tile in the process generation area;

[0127] A determination unit 304, configured to determine a target code according to a target block;

[0128] A generating unit 305, used for generating a control flow according to the target code;

[0129] The control unit 306 is used to control the change of the control object in the three-dimensional virtual scene according to the control process.

[0130] In the graphical programming control system provided in the present application, a three-dimensional virtual scene and a programming interface are first displayed. The programming interface includes a block accommodating area and a process generation area. The user can add the target block in the block accommodating area to the process generation area by selecting the block. Then, the terminal determines the target code through the target block in the process generation area, determines the control flow according to the target code, and controls the three-dimensional virtual scene to change according to the control flow. The graphical programming system provided in the present application can control the three-dimensional virtual scene to change by graphical programming, thereby improving the practicality of graphical programming.

[0131] Optionally, the determining unit 304 is specifically configured to:

[0132] Get the function identifier and parameter identifier carried in the target block;

[0133] The target code is determined according to the function identifier and the parameter identifier. The target code includes a three-dimensional motion target code, a time control target code, a scene perspective control target code, an animation control target code, and a three-dimensional size control target code according to different function identifiers.

[0134] Optionally, the function identifier is a three-dimensional motion function identifier, and the parameter identifier is a three-dimensional coordinate identifier;

[0135] The determining unit 304 is specifically configured to:

[0136] Determine a three-dimensional motion target code according to the three-dimensional motion function identifier and the three-dimensional coordinate identifier;

[0137] The control unit 306 is specifically used for:

[0138] According to the three-dimensional motion target code in the control process, the control object in the three-dimensional virtual scene is controlled to perform three-dimensional motion, and the three-dimensional motion includes movement and / or rotation.

[0139] Optionally, the function identifier is a time function identifier, and the parameter identifier is a time parameter identifier.

[0140] The determining unit 304 is specifically used to determine the time control target code according to the time function identifier and the time parameter identifier.

[0141] Optionally, the function identifier is a perspective function identifier, and the parameter identifier is a perspective parameter identifier;

[0142] The determining unit 304 is specifically configured to:

[0143] Determine the scene perspective control target code according to the perspective function identifier and the perspective parameter identifier;

[0144] The control unit 306 is specifically used for:

[0145] The scene perspective of the three-dimensional virtual scene is controlled to change according to the perspective control target code in the control process.

[0146] Optionally, the function identifier is an animation control function identifier, and the parameter identifier is an animation control parameter identifier;

[0147] The determining unit 304 is specifically configured to:

[0148] Determine the animation control target code according to the animation control function identifier and the animation control parameter identifier;

[0149] The control unit 306 is specifically used for:

[0150] The target animation is controlled by the animation control target code in the control process for demonstration.

[0151] Optionally, the function identifier is a three-dimensional size control function identifier, and the parameter identifier is a three-dimensional size parameter identifier;

[0152] The determining unit 304 is specifically configured to:

[0153] Determine a three-dimensional size control target code according to the three-dimensional size control function identifier and the three-dimensional size parameter identifier;

[0154] The control unit 306 is specifically used for:

[0155] The three-dimensional size of the control object in the three-dimensional virtual scene is adjusted according to the three-dimensional size control target code in the control process.

[0156] Optionally, the system further includes:

[0157] The third acquisition unit 307 is specifically used for:

[0158] Obtaining a third operation instruction of the user to create a control object;

[0159] Acquire an object library according to a third operation instruction, wherein at least one object is pre-stored in the object library;

[0160] Display objects in the object library in a list format;

[0161] Acquire a fourth operation instruction of the user for a control object in the object library, where the fourth operation instruction is used to select the control object;

[0162] A control object is created in the three-dimensional virtual scene according to the fourth operation instruction.

[0163] The present application also provides a graphical programming control device, comprising:

[0164] Processor 401, memory 402, input and output unit 403 and bus 404;

[0165] The processor 401 is connected to the memory 402, the input and output unit 403 and the bus 404;

[0166] The memory 402 stores a program, and the processor 401 calls the program to execute the above graphical programming control method.

[0167] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0168] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0169] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0170] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0171] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. 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 code.

Claims

1. A graphical programming control method, characterized in that: The method comprises: Displaying a three-dimensional virtual scene, wherein the three-dimensional virtual scene includes at least one control object, and the control object has a virtual three-dimensional feature; Acquire a first operation instruction of a user, where the first operation instruction is used to open a programming interface; Displaying a programming interface according to the first operation instruction, wherein the programming interface includes a block accommodating area and a process generating area, wherein the block accommodating area contains at least one block, and the process generating area is used to generate a control process; Obtaining a second operation instruction from the user; Determine a target tile from the tile accommodating area according to the second operation instruction, and display the target tile in the process generation area; Determine a target code according to the target block; generating a control flow according to the target code; Controlling the change of the control object in the three-dimensional virtual scene according to the control process; The shapes of the target blocks of different functions are different. When the shapes of the target blocks in the process generation area match each other, the target blocks form a complete target code. The connection relationship between the target blocks represents the execution relationship of the code statements in the target code. When they are connected vertically, they represent a serial execution relationship, and when they are connected horizontally, they represent a parallel execution relationship. Determining the target code according to the target block comprises: Obtaining a function identifier and a parameter identifier carried in the target image block; Determine a target code according to the function identifier and the parameter identifier, wherein the target code includes a three-dimensional motion target code, a time control target code, a scene perspective control target code, an animation control target code, and a three-dimensional size control target code according to different function identifiers; The function identifier is an animation control function identifier, the parameter identifier is an animation control parameter identifier, and determining the target code according to the function identifier and the parameter identifier includes: Determine the animation control target code according to the animation control function identifier and the animation control parameter identifier; Controlling the change of the control object in the three-dimensional virtual scene according to the control process includes: The target animation is controlled by the animation control target code in the control process for demonstration.

2. The method according to claim 1, characterized in that: The function identifier is a three-dimensional motion function identifier, the parameter identifier is a three-dimensional coordinate identifier, and determining the target code according to the function identifier and the parameter identifier includes: Determine a three-dimensional motion target code according to the three-dimensional motion function identifier and the three-dimensional coordinate identifier; Controlling the change of the control object in the three-dimensional virtual scene according to the control process includes: According to the three-dimensional motion target code in the control process, the control object in the three-dimensional virtual scene is controlled to perform three-dimensional motion, and the three-dimensional motion includes at least one of movement or rotation.

3. The method according to claim 1, characterized in that: The function identifier is a time function identifier, and the parameter identifier is a time parameter identifier; Determining the target code according to the function identifier and the parameter identifier includes: The time control target code is determined according to the time function identifier and the time parameter identifier.

4. The method according to claim 1, characterized in that: The function identifier is a view function identifier, the parameter identifier is a view parameter identifier, and determining the target code according to the function identifier and the parameter identifier includes: Determine the scene perspective control target code according to the perspective function identifier and the perspective parameter identifier; Controlling the change of the control object in the three-dimensional virtual scene according to the control process includes: The scene perspective of the three-dimensional virtual scene is controlled to change according to the perspective control target code in the control process.

5. The method according to claim 1, characterized in that: The function identifier is a three-dimensional size control function identifier, the parameter identifier is a three-dimensional size parameter identifier, and determining the target code according to the function identifier and the parameter identifier includes: Determine a three-dimensional size control target code according to the three-dimensional size control function identifier and the three-dimensional size parameter identifier; Controlling the change of the control object in the three-dimensional virtual scene according to the control process includes: The three-dimensional size of the control object in the three-dimensional virtual scene is adjusted according to the three-dimensional size control target code in the control process.

6. The method according to any one of claims 1 to 5, characterized in that: Before obtaining the first operation instruction of the user, the method further includes: Acquire a third operation instruction of the user, where the third operation instruction is used to open the object library; Acquire the object library according to the third operation instruction, wherein at least one control object is pre-stored in the object library; Displaying the control objects in the object library in a list format; Acquire a fourth operation instruction of a user on the control object in the object library, wherein the fourth operation instruction is used to select the control object; A control object is created in the three-dimensional virtual scene according to the fourth operation instruction.

7. A graphical programming control system, characterized in that: The system comprises: A display unit, used for displaying a three-dimensional virtual scene, wherein the three-dimensional virtual scene includes at least one control object, and the control object has a virtual three-dimensional feature; A first acquisition unit, used to acquire a first operation instruction of a user, where the first operation instruction is used to open a programming interface; The display unit is further used to display a programming interface according to the first operation instruction, wherein the programming interface includes a block accommodating area and a process generating area, wherein the block accommodating area contains at least one block, and the process generating area is used to generate a control process; A second acquisition unit, used to acquire a second operation instruction of the user; The display unit is further used to determine a target block from the block accommodating area according to the second operation instruction, and display the target block in the process generation area; A determination unit, configured to determine a target code according to the target block; A generating unit, used for generating a control flow according to the target code; A control unit, used for controlling the change of the control object in the three-dimensional virtual scene according to the control process; Optionally, the determination unit is specifically used for: Get the function identifier and parameter identifier carried in the target block; Determine the target code according to the function identifier and the parameter identifier, the target code including a three-dimensional motion target code, a time control target code, a scene perspective control target code, an animation control target code, and a three-dimensional size control target code according to different function identifiers; The shapes of the target blocks of different functions are different. When the shapes of the target blocks in the process generation area match each other, the target blocks form a complete target code. The connection relationship between the target blocks represents the execution relationship of the code statements in the target code. When they are connected vertically, they represent a serial execution relationship, and when they are connected horizontally, they represent a parallel execution relationship. The function identifier is an animation control function identifier, and the parameter identifier is an animation control parameter identifier; Determine the unit specifically for: Determine the animation control target code according to the animation control function identifier and the animation control parameter identifier; The control unit is specifically used for: The target animation is controlled by the animation control target code in the control process for demonstration.

8. A graphical programming control device, characterized in that: The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and apparatus for performing visual programming

    CN109992263A

  • Interactive graphic work generation method and device, terminal and storage medium

    CN111240673A

  • Modular programming method and related device

    CN111475151A

  • Bone animation generation method and device, computer equipment and storage medium

    CN111640170A

  • Webpage editing method, device and system and computer storage medium

    CN112015410A