CN110619683B - Three-dimensional model adjustment method, device, terminal equipment and storage medium - Google Patents

Three-dimensional model adjustment method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN110619683B
CN110619683B CN201910833303.4A CN201910833303A CN110619683B CN 110619683 B CN110619683 B CN 110619683B CN 201910833303 A CN201910833303 A CN 201910833303A CN 110619683 B CN110619683 B CN 110619683B
Authority
CN
China
Prior art keywords
adjusted
cutting
user interface
graphical user
interface element
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
CN201910833303.4A
Other languages
Chinese (zh)
Other versions
CN110619683A (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.)
Guangdong Virtual Reality Technology Co Ltd
Original Assignee
Guangdong Virtual Reality Technology 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 Guangdong Virtual Reality Technology Co Ltd filed Critical Guangdong Virtual Reality Technology Co Ltd
Priority to CN201910833303.4A priority Critical patent/CN110619683B/en
Publication of CN110619683A publication Critical patent/CN110619683A/en
Application granted granted Critical
Publication of CN110619683B publication Critical patent/CN110619683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

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

Abstract

The application discloses a three-dimensional model adjustment method, a three-dimensional model adjustment device, terminal equipment and a storage medium, and relates to the technical field of display. The three-dimensional model adjustment method is applied to terminal equipment and comprises the following steps: acquiring cutting parameters of a three-dimensional Graphical User Interface (GUI) element to be adjusted; cutting the three-dimensional GUI element to be adjusted into a plurality of areas according to the cutting parameters, and determining an adjustment area and a fixed area in the plurality of areas, wherein the fixed area is a corner area of the three-dimensional GUI element to be adjusted; acquiring adjustment parameters input for the three-dimensional GUI element to be adjusted; adjusting the grid information of the adjustment area according to the adjustment parameters to obtain adjusted three-dimensional GUI elements; and displaying the adjusted three-dimensional GUI element. The method can accurately and effectively adjust the three-dimensional model by acquiring the cutting parameters and the adjustment parameters.

Description

Three-dimensional model adjustment method, device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal device, and a storage medium for adjusting a three-dimensional model.
Background
In recent years, with the advancement of technology, technologies such as augmented Reality (AR, augmented Reality) and Virtual Reality (VR) have gradually become hot spots for research at home and abroad. For example, augmented reality is a technique of increasing a user's perception of the real world through information provided by a computer system, which superimposes computer-generated virtual objects, scenes, or content objects such as system cues into the real scene to augment or modify the perception of the real world environment or data representing the real world environment. In the AR/VR technology, the virtual images are displayed with three-dimensional effects, and when the three-dimensional model needs to be adjusted, the three-dimensional model is easy to deform, and generally needs to be reconstructed, which is relatively complex.
Disclosure of Invention
The embodiment of the application provides a three-dimensional model adjustment method, a device, terminal equipment and a storage medium, which can adjust three-dimensional GUI elements on the premise of keeping the overall shape of the three-dimensional GUI elements, and reduce the complexity of adjusting the three-dimensional GUI elements.
In a first aspect, an embodiment of the present application provides a three-dimensional model adjustment method, applied to a terminal device, where the method includes: acquiring cutting parameters of a three-dimensional Graphical User Interface (GUI) element to be adjusted; cutting the three-dimensional GUI element to be adjusted into a plurality of areas according to the cutting parameters, and determining an adjustment area and a fixed area in the plurality of areas, wherein the fixed area is a corner area of the three-dimensional GUI element to be adjusted; acquiring adjustment parameters input for three-dimensional GUI elements to be adjusted; adjusting the grid information of the adjustment area according to the adjustment parameters to obtain adjusted three-dimensional GUI elements; and displaying the adjusted three-dimensional GUI element.
In a second aspect, an embodiment of the present application provides a three-dimensional model adjustment apparatus, applied to a terminal device, where the apparatus includes: the device comprises a cutting parameter module, a region determining module, an adjusting parameter acquiring module, a three-dimensional GUI element adjusting module and a three-dimensional GUI element display module, wherein the cutting parameter acquiring module is used for acquiring cutting parameters of a three-dimensional GUI element to be adjusted; the region determining module is used for cutting the three-dimensional GUI element to be adjusted into a plurality of regions according to the cutting parameters, and determining an adjusting region and a fixed region in the plurality of regions, wherein the fixed region is a corner region of the three-dimensional GUI element to be adjusted; the adjustment parameter acquisition module is used for acquiring adjustment parameters input for three-dimensional GUI elements to be adjusted; the three-dimensional GUI element adjusting module is used for adjusting the grid information of the adjusting area according to the adjusting parameters to obtain adjusted three-dimensional GUI elements; the three-dimensional GUI element display module is used for displaying the adjusted three-dimensional GUI elements.
In a third aspect, an embodiment of the present application provides a terminal device, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in memory and configured to be executed by one or more processors, the one or more applications configured to perform the three-dimensional model tuning method provided in the first aspect described above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, where the program code is capable of being invoked by a processor to perform the three-dimensional model adjustment method provided in the first aspect.
According to the scheme provided by the embodiment of the application, after the cutting parameters of the three-dimensional GUI element to be adjusted are obtained, the three-dimensional GUI element to be adjusted can be cut into a plurality of areas according to the cutting parameters, the adjustment areas and the fixed areas in the plurality of areas are determined, wherein the fixed areas refer to corner areas of the three-dimensional GUI element to be adjusted, then the terminal equipment can obtain the adjustment parameters input for the three-dimensional GUI element to be adjusted, adjust grid information of the adjustment area of the three-dimensional GUI element to be adjusted according to the adjustment parameters, further display the three-dimensional GUI element after adjustment, cut the three-dimensional GUI element into the adjustment areas and the fixed areas, only the adjustment areas are adjusted when adjustment is performed, the shape of the fixed areas containing the corner areas of the three-dimensional GUI element is kept unchanged, the three-dimensional GUI element can be adjusted on the whole shape of the three-dimensional GUI element, and the complexity of the three-dimensional GUI element to be adjusted is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic view of an application environment suitable for use in embodiments of the present application.
Fig. 2 shows a flowchart of a three-dimensional model adjustment method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a nine-grid in the three-dimensional model adjustment method according to an embodiment of the present application.
Fig. 4 shows a grid schematic diagram in the three-dimensional model adjustment method according to an embodiment of the present application.
Fig. 5 shows a flowchart of a three-dimensional model adjustment method according to another embodiment of the present application.
Fig. 6 is a flowchart illustrating step S220 in a three-dimensional model adjustment method according to another embodiment of the present application;
FIG. 7 is a schematic diagram of three-dimensional GUI elements to be adjusted in a three-dimensional model adjustment method according to another embodiment of the present application;
FIG. 8 is a schematic diagram of three-dimensional GUI elements to be adjusted in a three-dimensional model adjustment method according to another embodiment of the present application;
FIG. 9 is a schematic diagram of three-dimensional GUI elements to be adjusted in a three-dimensional model adjustment method according to another embodiment of the present application;
FIG. 10 is a schematic diagram of three-dimensional GUI elements to be adjusted in a three-dimensional model adjustment method according to another embodiment of the present application;
FIG. 11 is a schematic diagram of three-dimensional GUI elements to be adjusted in a three-dimensional model adjustment method according to another embodiment of the present application;
FIG. 12 is a schematic diagram of three-dimensional GUI elements to be adjusted in a three-dimensional model adjustment method according to another embodiment of the present application;
fig. 13 shows a block diagram of a three-dimensional model adjustment device according to an embodiment of the present application.
Fig. 14 is a block diagram of the region determining module 720 in the three-dimensional model adjustment device according to an embodiment of the present application.
Fig. 15 is a block diagram of a terminal device for performing the three-dimensional model adjustment method according to the embodiment of the present application.
Fig. 16 is a storage unit for storing or carrying program codes for implementing the three-dimensional model adjustment method according to the embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
In the AR/VR technology, three-dimensional GUI (Graphical User Interface ) elements are indispensable elements in an interactive interface, for example, three-dimensional buttons, three-dimensional windows, and the like. In order to adapt to different scenes, it is generally necessary to stretch or compress a three-dimensional GUI element, and since the three-dimensional GUI element is a model constructed by a plurality of points and triangular surfaces, the model of the three-dimensional GUI element needs to be reconstructed because the three-dimensional GUI element is easily deformed when adjustment such as stretching or compression is performed.
Through researches, the inventor provides a three-dimensional model adjustment method, a device, terminal equipment and a storage medium in the embodiment of the application, so that the complexity of adjusting three-dimensional GUI elements can be reduced.
The application scenario of the three-dimensional model adjustment method provided in the embodiment of the present application is described below.
Referring to fig. 1, a display system provided in an embodiment of the present application includes a terminal device 100 and an interaction device 200.
In some embodiments, the terminal device 100 may be a head-mounted display device, a mobile phone, a tablet computer, a personal computer, or the like, where the head-mounted display device may be an integral head-mounted display device, or may be a head-mounted display device connected to an external electronic device. The terminal device 100 may also be an intelligent terminal such as a mobile phone connected to an external/access type head-mounted display device, that is, the terminal device 100 may be used as a processing and storage device of the head-mounted display device, and the external type head-mounted display device may be inserted or accessed, so that the virtual object 300 may be displayed through the head-mounted display device, where the virtual object 300 may include three-dimensional GUI elements such as icons, tables, options, and the like.
In some embodiments, the user may interact with the virtual object 300 displayed by the terminal device 100 through the interaction device 200, where the interaction device 200 may be an electronic device such as a keyboard, a tablet computer, a mouse, a handle, and the like, but is not limited thereto. As one way, at least one interaction region may be provided on the interaction device 200, through which a user may perform related control and interaction with the virtual object 300. The interaction area may include at least one of a key, a roller, a touch screen, etc., and the specific shape, structure and size of the interaction device in the embodiment of the present application are not limited, and may be various shapes, such as square, round, or various shapes. As another embodiment, the user may interact with the virtual object 300 through a gesture, and at this time, the terminal device 100 may receive a gesture instruction of the user, and perform corresponding control on the virtual object 300 according to the gesture instruction.
In some embodiments, the terminal device 100 and the interaction device 200 may be connected through Wireless communication modes such as bluetooth, wiFi (Wireless-Fidelity), zigBEE (ultraviolet technology), and the like, or may be connected through wired communication through a data line, etc., and of course, the connection mode of the terminal device 100 and the interaction device is not limited in the embodiments of the present application.
Referring to fig. 2, an embodiment of the present application provides a three-dimensional model adjustment method, which is applied to a terminal device, and the method may include:
step S110: and acquiring cutting parameters of the GUI elements of the three-dimensional graphical user interface to be adjusted.
In one embodiment, the terminal device may obtain a cutting parameter of the three-dimensional GUI element to be adjusted, where the cutting parameter may be a parameter input by the user based on the three-dimensional GUI element to be adjusted, may also be a history parameter, or may also be a parameter preset in the terminal device. The GUI elements may be used to implement interaction between the user and the terminal device, and may be graphical objects in the interface, for example, the GUI elements may include a prompt box, a pop-up box, a warning box, a dialog box, a pull-up menu, a simple menu, an active view, a confirmation pop-up box, a full screen pop-up box, a modal view, and the like, where a plurality of sub-GUI elements may be included under the GUI elements. For example, the pull-up menu may include not only a cancel sub-GUI element but also a delete sub-GUI element, etc., and the GUI element specifically refers to which of these are not explicitly limited.
In one embodiment, the GUI elements may be divided into two-dimensional GUI elements and three-dimensional GUI elements, wherein the three-dimensional GUI elements may be generated by acquiring the dimensions of the user interface to be generated in the X-axis direction and the Y-axis direction of the three-dimensional space and the scaling coefficients corresponding to the layers distributed in the Z-axis direction. The three-dimensional GUI element to be adjusted refers to the three-dimensional GUI element whose size or dimension needs to be adjusted in the terminal device, so that before acquiring the cutting parameter of the three-dimensional GUI element to be adjusted, it may be determined which three-dimensional GUI element to be adjusted is, that is, the three-dimensional GUI element to be adjusted may be specified by the user or may be defaulted by the terminal device. For example, the three-dimensional GUI element dialog box may be used as a default three-dimensional GUI element to be adjusted, mainly because the aspect ratio of the three-dimensional GUI element may be changed continuously with the continuous input of the session content. And the cutting parameters mainly include a horizontal cutting line and a vertical cutting line for cutting the three-dimensional GUI element to be adjusted into a plurality of areas, such as 9 areas, 27 areas, or the like, by which the three-dimensional GUI element to be adjusted can be cut into a plurality of areas, for example, but not limited thereto.
Step S120: and cutting the three-dimensional GUI element to be adjusted into a plurality of areas according to the cutting parameters, and determining an adjustment area and a fixed area in the plurality of areas, wherein the fixed area is a corner area of the three-dimensional GUI element to be adjusted.
In one embodiment, the terminal device acquires the cutting parameters to cut the three-dimensional GUI element to be adjusted into a plurality of areas, and then determines which areas of the plurality of areas are adjustable in aspect ratio, which areas are not adjustable in aspect ratio, and refers to the adjustable areas as adjustment areas, and the non-adjustable areas as fixed areas. The fixed area in the embodiment of the present application may be a corner area of the three-dimensional GUI element to be adjusted, where the corner area refers to an area including corners of the GUI element, for example, the GUI element is a three-dimensional model of a rectangle, and the corner area may be an area including corners of the rectangle. If the cutting parameters are different, the number of the areas cut by the three-dimensional GUI element to be adjusted is also different, for example, when the cutting parameters include information of two horizontal cutting lines and two vertical cutting lines, the three-dimensional GUI element to be adjusted may be cut into 9 areas, and when the cutting parameters are two transverse lines and eight longitudinal lines, the three-dimensional GUI element to be adjusted may be cut into 27 areas, and specifically, how many areas the three-dimensional GUI element to be adjusted is cut into is not limited explicitly here, and may be cut according to practical situations.
For a clearer illustration of the region division of the three-dimensional GUI element to be adjusted, taking the box diagram shown in fig. 3 as an example, the 9 regions given in fig. 3 may be respectively numbered, i.e. the nine regions are the 1 st region, the 2 nd region, the 3 rd region, the 4 th region, the 5 th region, the 6 th region, the 7 th region, the 8 th region and the 9 th region, respectively. The 1 st, 3 rd, 7 th and 9 th regions in fig. 3 are corner regions of the three-dimensional GUI element to be adjusted, that is, the shapes of the regions corresponding to the four numbers are not changed when the stretching or compressing operation is performed on the three-dimensional GUI element to be adjusted, so the four regions may be referred to as fixed regions. The 2 nd, 4 th, 5 th, 6 th and 8 th regions may be referred to as adjustment regions since the aspect ratio thereof may be changed according to the execution of the stretching or compressing operation. In addition, the 2 nd, 4 th, 5 th, 6 th and 8 th regions may be further divided according to different positions of each region, and specifically, the 2 nd and 8 th regions may be referred to as horizontal adjustment regions, i.e., the aspect ratio of the 2 nd and 8 th regions may be changed when performing a horizontal stretching or compressing operation; the 4 th and 6 th regions are referred to as vertical adjustment regions, i.e., the aspect ratio of the 4 th and 6 th regions can be changed when performing a vertical stretching or compressing operation; the 5 th region may be referred to as a full adjustment region, i.e., the aspect ratio of the 5 th region may be simultaneously horizontally and vertically pulled up or compressed when the three-dimensional GUI element to be adjusted is adjusted.
In one embodiment, the determination of the adjustment area and the fixed area may be dependent on the shape characteristics of the three-dimensional GUI element to be adjusted. For example, the portion of the three-dimensional GUI element to be adjusted, which is deformed or distorted after being stretched, may be cut in a fixed area (e.g., a corner area) according to need, and the cutting parameters may be determined according to the shape and size of the corner area of the three-dimensional GUI element to be adjusted. For example, in practical applications, the three-dimensional GUI element to be adjusted often has rounded corners, and therefore, the position coordinates of the cutting line may be determined according to the diameter of the rounded corners, so that in the three-dimensional GUI element to be adjusted after cutting, the rounded corners are included in a fixed area that is not stretched, and thus, problems of deformation distortion may be prevented from occurring. In addition, it should be understood by those skilled in the art that references to "stretching" in this disclosure refer to increasing the height and/or width of the three-dimensional GUI element to be adjusted, while references to "compressing" refer to decreasing the height and/or width of the three-dimensional GUI element to be adjusted.
Step S130: adjustment parameters input for the three-dimensional GUI element to be adjusted are acquired.
In some embodiments, the adjustment parameters input for the three-dimensional GUI element to be adjusted may be input by the user according to the actual situation of the three-dimensional GUI element to be adjusted, or may be preset by the terminal device, or may be historical adjustment parameters. The user can adjust the three-dimensional GUI element to be adjusted according to the self requirement, namely, the user can input adjustment parameters aiming at the three-dimensional GUI element to be adjusted, and the adjustment parameters can be input through interaction devices such as a mouse, a keyboard, a touch pad and the like or gestures.
In a specific embodiment, the user may press or move the interaction device to input the adjustment parameter, so as to implement adjustment of the three-dimensional GUI element to be adjusted, in this process, the terminal device may perform real-time detection on the three-dimensional GUI element to be adjusted and the virtual indication cursor, that is, whether the boundary coordinates of the virtual indication cursor and the three-dimensional GUI element to be adjusted intersect, if the boundary coordinates of the three-dimensional GUI element to be adjusted intersect with the virtual indication cursor, the adjustment parameter input operation is triggered, and if the boundary coordinates of the three-dimensional GUI element to be adjusted and the virtual indication cursor do not intersect, the adjustment parameter cannot be successfully input, as a way, the position of the virtual indication cursor may be moved by the interaction device. When the adjustment parameter input operation is successfully triggered, the adjustment of the three-dimensional GUI element to be adjusted can be achieved by pressing or moving the interactive device.
The adjustment parameters in the embodiment of the present application may be divided into a horizontal adjustment parameter, a vertical adjustment parameter and a diagonal adjustment parameter, when a user adjusts a three-dimensional GUI element to be adjusted through a horizontal movement operation, the generated adjustment parameter is the horizontal adjustment parameter, specifically, the three-dimensional GUI element to be adjusted may be adjusted by moving a horizontal cutting line through an interaction device, or a boundary of the GUI element may also be directly dragged to move in a horizontal direction, or the like; when a user adjusts the three-dimensional GUI element to be adjusted through vertical movement operation, the generated adjustment parameters are vertical adjustment parameters, and the user can adjust the three-dimensional GUI element to be adjusted through moving a vertical cutting line, or the user can directly drag the boundary of the GUI element to move vertically, and the like; when the user adjusts the three-dimensional GUI element to be adjusted through the diagonal movement operation, the generated adjustment parameters are diagonal adjustment parameters, and meanwhile, the user can adjust the three-dimensional GUI element to be adjusted through moving the diagonal cutting line, or the user can directly drag the boundary of the GUI element to move in the diagonal direction, and the like. Optionally, the adjustment parameters may be input in combination with a pressing operation and a moving operation, that is, when it is determined that the virtual pointing cursor intersects with coordinates of the three-dimensional GUI element to be adjusted, the pressing operation may be acquired first, whether there is a moving operation input is determined based on the pressing operation, and if there is a moving operation input, the three-dimensional GUI element to be adjusted may be adjusted according to the moving operation.
As can be seen from the above description, the adjustment parameters may include a horizontal adjustment parameter, a vertical adjustment parameter, or a diagonal adjustment parameter, etc., and the terminal device may detect whether the adjustment parameter acquired by the terminal device is a horizontal adjustment parameter after acquiring the adjustment parameter input for adjusting the three-dimensional GUI element, if the adjustment parameter acquired by the terminal device is a horizontal adjustment parameter, the terminal device may further determine whether the horizontal adjustment parameter is less than or equal to a first preset threshold, if the horizontal adjustment parameter is less than or equal to the first preset threshold, it indicates that the adjustment parameter is successfully input, and then step S140 is entered. If the horizontal adjustment parameter is larger than the first preset threshold, the failure of the adjustment parameter input is indicated, and at the moment, the terminal equipment can prompt a user that the adjustment parameter input fails in a mode of images, texts or voices and the like. For example, the terminal device may prompt the user in a text manner in the virtual environment, where the text content may be "the level adjustment parameter input by the host is too large to perform the adjustment operation, please re-perform the adjustment parameter input operation, or forgo performing the current operation-! ".
In addition, if the adjustment parameter acquired by the terminal device is not the horizontal adjustment parameter, it is determined whether the adjustment parameter is a vertical adjustment parameter, if the adjustment parameter acquired by the terminal device is the vertical adjustment parameter, the terminal device may further determine whether the vertical adjustment parameter is less than or equal to a second preset threshold, if the vertical adjustment parameter is less than or equal to the second preset threshold, it indicates that the adjustment parameter is successfully input, and step S140 is performed at this time. If the vertical adjustment parameter is larger than the second preset threshold, the failure of the adjustment parameter input is indicated, and at the moment, the terminal equipment can prompt the user that the failure of the adjustment parameter input is indicated through the modes of images, texts or voices. For example, the terminal device may prompt the user in a voice manner that "the vertical adjustment parameter input is too large to adjust the three-dimensional GUI element to be adjusted according to your requirements, which is troublesome for the host to re-perform the adjustment parameter input operation".
In other embodiments, if the adjustment parameter acquired by the terminal device is not the vertical adjustment parameter, it indicates that the acquired adjustment parameter is a diagonal adjustment parameter, and at this time, the terminal device may further determine whether the diagonal adjustment parameter is less than or equal to a third preset threshold, and if the diagonal adjustment parameter is less than or equal to the third preset threshold, it indicates that the adjustment parameter is successfully input, and at this time, step S140 is entered. If the diagonal adjustment parameter is larger than a third preset threshold, the adjustment parameter input failure is indicated, and at the moment, the terminal equipment can prompt a user that the adjustment parameter input fails in an image, text or voice mode. For example, the terminal device may graphically prompt the user, i.e., a red error icon may be displayed in the virtual environment to prompt the user that the adjustment parameter input failed.
It should be noted that, the user may input the adjustment parameter value terminal device through a gesture or a keyboard, and when the adjustment parameter is input by using the gesture, it may be determined which type the input adjustment parameter belongs to by detecting the motion track of the gesture. For example, when the terminal device detects that the gesture of the user is a horizontal movement to the right, it may determine that the inputted adjustment parameter is a horizontal adjustment parameter. When the keyboard is used for inputting the adjustment parameters, the keyboard can be used for selecting the direction to be adjusted, and the adjustment parameters of the direction can be input on the basis. For example, the mode of first inputting the data to be adjusted through the keyboard is horizontal to the right relative to the terminal equipment, and then inputting the data to be adjusted through the keyboard is amplified by 2 times, and the adjustment parameter at the moment is amplified by 2 times horizontally to the right.
Step S140: and adjusting the grid information of the adjustment area according to the adjustment parameters to obtain the adjusted three-dimensional GUI element.
After the terminal equipment acquires the adjustment parameters, the grid information of the adjustment area can be adjusted according to the adjustment parameters, and then the adjusted three-dimensional GUI element is obtained. The mesh information may also be called mesh information, and the mesh is a component in Unity, which refers to a mesh of a model, and main attribute contents of the mesh include vertex coordinates (vertex), normal (normal), texture coordinates (uv), triangle drawing sequences (triangle), and other useful attributes and functions. Vertex coordinates (vertex) are mainly used for storing the space coordinates of each vertex of a mesh, and if n vertexes exist in a mesh, the size of vertex is n; the normal (normal) is mainly used for storing the normal of each vertex of the mesh, and the size of the normal corresponds to the vertex coordinates, for example, normal [ i ] is the normal of vertex [ i ]; texture coordinates (uv), which are information defining the location of each point on the picture and which determine the location of the surface texture map, are the surfaces of the three-dimensional GUI elements to which each point on the image corresponds with accuracy, and uv [ i ] corresponds with vertex [ i ]; a triangle sequence (triangle) consists of several triangles, and the three points of the triangle are points in the vertex coordinates, and the size of the triangle array=the number of triangles is 3. For example, four vertices in the mesh information are respectively 0,1,2, and 3, wherein the vertex coordinates are respectively: v0 (1, 0), V1 (-1, 0), V2 (1, -1, 0), V3 (-1, 0), these vertices may form a mesh as shown in FIG. 4.
In some embodiments, the adjustment of the three-dimensional GUI element to be adjusted is to adjust the grid information corresponding to the three-dimensional GUI element, and it can be known from the above description that the adjustment area may include a plurality of grids, so that the adjustment area is adjusted, and mainly, the grid information corresponding to the adjustment area is adjusted. As a way, the adjustment of the three-dimensional GUI element to be adjusted is mainly to adjust the spatial coordinates of the vertices included in the mesh information by adjusting parameters, so that the aspect ratio of the adjustment area of the three-dimensional GUI element to be adjusted can be changed. In this embodiment of the present application, the grid information may be centrally stored in a Meta file, where the Meta file is a file for assisting in managing model resources, different resources may be distinguished according to GUID (Global unique identifier, globally unique identifier) recorded in Meta, and Meta is also used to record some important resource information, such as information about an instructor of each resource, where the Meta file is essentially a text document, which is mainly generated using the format of YAML.
Step S150: and displaying the adjusted three-dimensional GUI element.
The terminal device adjusts grid information of the adjustment area according to the adjustment parameters, and can display the adjusted three-dimensional GUI element after obtaining the adjusted three-dimensional GUI element, wherein the position of the adjusted three-dimensional GUI element can be correspondingly adjusted along with the size of the three-dimensional GUI element after stretching or compressing operation.
According to the three-dimensional model adjustment method, the three-dimensional GUI element to be adjusted is adjusted by acquiring the cutting parameters and the adjustment parameters of the three-dimensional GUI element to be adjusted, and when the adjustment operation is executed, the embodiment of the application can ensure that only the adjustment area in the three-dimensional GUI element to be adjusted is adjusted, and the fixed area in the three-dimensional GUI element to be adjusted is not changed, so that the accuracy of three-dimensional GUI element adjustment can be improved, repeated modeling of the GUI element can be avoided, meanwhile, the efficiency of building the three-dimensional model can be improved, and the memory consumption of terminal equipment can be reduced to a certain extent.
Referring to fig. 5, another embodiment of the present application provides a three-dimensional model adjustment method, which is applied to a terminal device, and the method may include:
step S210: and acquiring cutting parameters of the GUI elements of the three-dimensional graphical user interface to be adjusted.
In some embodiments, the terminal device may acquire a cutting parameter input by a user for the three-dimensional GUI element to be adjusted, and use the cutting parameter as a cutting parameter corresponding to the three-dimensional GUI element to be adjusted. In other embodiments, the terminal device may also obtain a historical cutting parameter corresponding to the three-dimensional GUI element to be adjusted, and may use the historical cutting parameter as the cutting parameter corresponding to the three-dimensional GUI element to be adjusted.
Step S220: and cutting the three-dimensional GUI element to be adjusted into a plurality of areas according to the cutting parameters, and determining an adjustment area and a fixed area in the plurality of areas, wherein the fixed area is a corner area of the three-dimensional GUI element to be adjusted.
It can be appreciated from the above description that a plurality of cutting parameters may be input for the three-dimensional GUI element to be adjusted, and the cutting parameters may include a transverse cutting line, a longitudinal cutting line, an oblique cutting line, and the like, and the number of the cutting parameters may be different, as in fig. 3, the cutting parameters may include two transverse cutting lines and two longitudinal cutting lines. Since the acquisition of the transverse cutting line or the oblique cutting line is similar to the acquisition of the longitudinal cutting line, the embodiment of the present application only gives a case of how to acquire the longitudinal cutting line and how to treat the three-dimensional GUI element to be adjusted by the longitudinal cutting line, and the present application does not limit the number of the longitudinal cutting lines.
Step S220 may include steps S221 to S222 as shown in fig. 6.
Step S221: and when the first cutting line and the second cutting line are intersected with the three-dimensional GUI element to be adjusted, acquiring the intersection positions of the first cutting line and the second cutting line with the three-dimensional GUI element to be adjusted.
In some embodiments, the cutting parameters may include a first cutting line and a second cutting line, and when the terminal device obtains the cutting parameters of the three-dimensional GUI element to be adjusted, it may detect whether the first cutting line and the second cutting line in the cutting parameters intersect the three-dimensional GUI element to be adjusted, and if the first cutting line and the second cutting line intersect the three-dimensional GUI element to be adjusted, obtain positions where the first cutting line and the second cutting line intersect the three-dimensional GUI element to be adjusted. If the first cutting line and the second cutting line are not intersected with the three-dimensional GUI element to be adjusted, the terminal equipment indicates that the acquisition of the cutting parameters of the three-dimensional GUI element to be adjusted fails, as a way, the terminal equipment can prompt the user to input the cutting parameters again, if the terminal equipment still does not receive the cutting parameters input by the user within a preset time period, the terminal equipment can send out prompt information for inputting the cutting parameters again, in the process, the terminal equipment can record the prompt times, and when the prompt times are larger than the preset times, the terminal equipment indicates that the acquisition of the cutting parameters by the terminal equipment fails, and the terminal equipment ends the three-dimensional model adjustment operation.
In some embodiments, when detecting whether the first cutting line and the second cutting line intersect with the three-dimensional GUI element to be adjusted, the terminal device may first acquire the first cutting line and determine whether the first cutting line intersects with the three-dimensional GUI element to be adjusted, if the first cutting line intersects with the three-dimensional GUI element to be adjusted, the terminal device acquires the second cutting line and determine whether the second cutting line intersects with the three-dimensional GUI element to be adjusted, and if the second cutting line intersects with the three-dimensional GUI element to be adjusted, it indicates that the first cutting line and the second cutting line intersect with the three-dimensional GUI element to be adjusted. In other embodiments, the terminal device may also obtain the first cutting line and the second cutting line at the same time, and determine whether the first cutting line and the second cutting line are coincident, if the first cutting line is coincident with the second cutting line, then obtain one cutting line from any of the first cutting line and the second cutting line, and determine whether the cutting line intersects with the three-dimensional GUI element to be adjusted, if the cutting line intersects with the three-dimensional GUI element to be adjusted, then indicate that the first cutting line and the second cutting line intersect with the three-dimensional GUI element to be adjusted.
It should be noted that, when it is determined that the first cutting line intersects the three-dimensional GUI element to be adjusted, and the second cutting line does not intersect the three-dimensional GUI element to be adjusted, the terminal device may prompt the user to reenter the cutting parameter, and if the terminal device does not acquire the cutting parameter input by the user within the preset time period, the cutting parameter that may be required to reenter by default coincides with the cutting parameter that meets the condition. For example, when it is determined that the first cutting line intersects with the three-dimensional GUI element to be adjusted, and the second cutting line does not intersect with the three-dimensional GUI element to be adjusted, after the terminal device sends out the prompt information for reentering the second cutting line, the cutting parameter input by the user is not received in the preset time period, and at this time, the second cutting line may be defaulted to coincide with the first cutting line, so that it may also be ensured that the second cutting line intersects with the three-dimensional GUI element to be adjusted.
Step S222: and cutting the three-dimensional GUI element to be adjusted into a plurality of areas according to the intersecting positions of the first cutting line and the second cutting line and the three-dimensional GUI element to be adjusted, and determining an adjustment area and a fixed area corresponding to the three-dimensional GUI element to be adjusted.
In some embodiments, the three-dimensional GUI element to be adjusted may include a GUI element vertex, when the terminal device acquires the first cutting line and the second cutting line, it may first detect whether the first cutting line and the second cutting line both intersect with the three-dimensional GUI element to be adjusted, if so, it may further determine whether the first cutting line and the second cutting line intersect with the same GUI element vertex of the three-dimensional GUI element to be adjusted, if the first cutting line and the second cutting line intersect with the same GUI element vertex, the terminal device may acquire a cutting point, where the cutting point is acquired by copying the intersecting GUI element vertex, and then the terminal device may use the area between the intersecting GUI element vertex and the cutting point as the adjustment area corresponding to the three-dimensional GUI element to be adjusted. A link may be generated between the cut point and the intersecting GUI element vertices, the link and the first and second cut lines may form three sides of the adjustment area, and the link may be used to lengthen or shorten.
In a specific embodiment, as shown in fig. 7 (a), the three-dimensional GUI element 201 to be adjusted may include a plurality of GUI element vertices, the terminal device obtains the position coordinates of the first cutting line L1 and the second cutting line L2, it may be first determined whether the first cutting line L1 and the second cutting line L2 intersect with the three-dimensional GUI element 201 to be adjusted, it is obvious from fig. 7 (a) that the first cutting line L1 and the second cutting line L2 intersect with the three-dimensional GUI element 201 to be adjusted, at this time, it may be further determined whether the first cutting line L1 and the second cutting line L2 overlap with the same GUI element vertex of the three-dimensional GUI element 201 to be adjusted, such as the GUI element vertex a, and it may be seen from fig. 7 (a) that the first cutting line L1 and the second cutting line L2 meet the above conditions. Therefore, a cutting point a 'may be obtained by copying the GUI element vertex a, as shown in detail in fig. 7 (b), and then the area between the GUI element vertex a and the cutting point a' may be regarded as the corresponding adjustment area 203, and the area outside the control vertex a and the cutting point a 'may be regarded as the fixed area, wherein the line connecting the GUI element vertex a and the cutting point a' is horizontal or vertical. Fig. 8 is similar to fig. 7 in determining the adjustment area and the fixing area corresponding to the three-dimensional GUI element to be adjusted, and is different in that in fig. 7, the shape of the three-dimensional GUI element 201 to be adjusted is an octagon, while the shape of the three-dimensional GUI element 303 to be adjusted in fig. 8 is a quadrilateral, and obviously, the shape of the three-dimensional GUI element to be adjusted is not specifically limited when the three-dimensional GUI element to be adjusted is adjusted, and may be an octagon, a quadrilateral or other shapes, and may be specifically set according to practical situations.
In other embodiments, the three-dimensional GUI element to be adjusted may include a GUI element boundary line, when the terminal device obtains the first cutting line and the second cutting line, it may first detect whether the first cutting line and the second cutting line both intersect with the three-dimensional GUI element to be adjusted, if so, it may further determine whether the first cutting line and the second cutting line respectively intersect with the same GUI element boundary line of the three-dimensional GUI element to be adjusted, if the first cutting line and the second cutting line respectively intersect with the same GUI element boundary line, the terminal device may obtain two cutting points, which may be referred to as a first cutting point and a second cutting point, where the first cutting point is an intersection point of the first cutting line and the GUI element boundary line, and the second cutting point is an intersection point of the second cutting line and the GUI element boundary line, and then an area between the first cutting point and the second cutting point may be regarded as an adjustment area corresponding to the three-dimensional GUI element to be adjusted.
In a specific embodiment, as shown in fig. 9 (a), the three-dimensional GUI element 301 to be adjusted may include a plurality of GUI element boundary lines, such as GUI element boundary line L0, the terminal device acquires the first cutting line L1 and the second cutting line L2, it may be first determined whether the first cutting line L1 and the second cutting line L2 each intersect with the three-dimensional GUI element 301 to be adjusted, it may be apparent from fig. 9 (a) that the first cutting line L1 and the second cutting line L2 intersect with the three-dimensional GUI element 301 to be adjusted, at this time, it may be further determined whether the first cutting line L1 and the second cutting line L2 respectively intersect with the same GUI element boundary line of the three-dimensional GUI element to be adjusted, that is, it is determined whether the first cutting line L1 intersects with the GUI element boundary line L0, and whether the second cutting line L2 intersects with the GUI element boundary line L0, and it may be seen from fig. 9 (a) that the first cutting line L1 and the second cutting line L2 meet the above conditions. Thus, two cutting points B and B 'can be obtained, respectively, and it is apparent that the cutting point B is the intersection of the first cutting line L1 and the GUI element boundary line L0 and the cutting point B' is the intersection of the second cutting line L2 and the GUI element boundary line L0, and then the region between the cutting point B and the cutting point B 'can be regarded as the corresponding adjustment region 302 and the region other than the cutting point B and the cutting point B' can be regarded as the fixed region, as shown in detail in fig. 9 (B).
In other embodiments, the three-dimensional GUI element to be adjusted may include a GUI element boundary line, when the terminal device obtains the first cutting line and the second cutting line, it may first detect whether the first cutting line and the second cutting line both intersect with the three-dimensional GUI element to be adjusted, if so, it may further determine whether the first cutting line and the second cutting line are compared with the same GUI element boundary line, and if so, whether the first cutting line and the second cutting line overlap, and if so, it may obtain an intersection point of the first cutting line and the second cutting line intersecting with the GUI element boundary line, and copy the intersection point to obtain a cutting point, and then use an area between the intersection point and the cutting point as an adjustment area corresponding to the three-dimensional GUI element to be adjusted.
In a specific embodiment, as shown in fig. 10 (a), the three-dimensional GUI element 401 to be adjusted may include a plurality of GUI element boundary lines, such as GUI element boundary line L0, where the terminal device obtains the first cutting line L1 and the second cutting line L2, it may be first determined whether the first cutting line L1 and the second cutting line L2 intersect with the three-dimensional GUI element 401 to be adjusted, it may be apparent from fig. 10 (a) that the first cutting line L1 and the second cutting line L2 intersect with the three-dimensional GUI element 301 to be adjusted, and at this time, it may be further determined whether the first cutting line L1 and the second cutting line L2 intersect with the same GUI element boundary line L0 of the three-dimensional GUI element 301 to be adjusted, and it may be determined whether the first cutting line L1 and the second cutting line L2 coincide, and it may be apparent from fig. 10 (a) that the first cutting line L1 and the second cutting line L2 meet the above conditions. At this time, an intersection point C where the first cut line L1 and the second cut line L2 intersect at the GUI element boundary line L0 may be acquired, and the intersection point C may be duplicated to obtain a cut point C ', as shown in fig. 10 (b) in detail, and then a region between the intersection point C and the cut point C ' may be regarded as the corresponding adjustment region 402, and a region other than the intersection point C and the cut point C ' may be regarded as the fixed region.
In other embodiments, the three-dimensional GUI element to be adjusted may include a GUI element vertex and a GUI element boundary line, when the terminal device acquires the first cutting line and the second cutting line, it may first detect whether the first cutting line and the second cutting line both intersect the three-dimensional GUI element to be adjusted, if so, it may further determine whether the first cutting line intersects the GUI element boundary line and whether the second cutting line intersects the GUI element vertex, if the first cutting line intersects the GUI element boundary line and the second cutting line intersects the GUI element vertex, acquire a point at which the first cutting line and the GUI element boundary line intersect, and take the point as a first cutting point, and then may take a region between the first cutting point and the GUI element vertex intersected by the second cutting line as an adjustment region corresponding to the three-dimensional GUI element to be adjusted.
In a specific embodiment, as shown in fig. 11 (a), the three-dimensional GUI element 501 to be adjusted may include a plurality of GUI element vertices and a plurality of GUI element boundary lines, such as a GUI element vertex D and a GUI element boundary line L0, the terminal device acquires the first cutting line L1 and the second cutting line L2, it may be first determined whether the first cutting line L1 and the second cutting line L2 each intersect with the three-dimensional GUI element 501 to be adjusted, it may be apparent from fig. 11 (a) that the first cutting line L1 and the second cutting line L2 intersect with the three-dimensional GUI element 501 to be adjusted, at this time, it may be further determined whether the first cutting line L1 intersects with the GUI element boundary line L0 and the second cutting line L2 intersects with the GUI element vertex D, if the first cutting line L1 intersects with the GUI element boundary line L0 and the second cutting line L2 intersects with the GUI element vertex D, a point D ' at which the first cutting line L1 intersects with the GUI element boundary line L0 intersects is acquired, and the point D ' as a first cutting point, as a specific point, as shown in fig. 11 (b), and then a three-dimensional region corresponding to the GUI element D region D to be adjusted between the first cutting point and the point D ' may be fixed as the GUI element region D region.
In another specific embodiment, as shown in fig. 12 (a), the three-dimensional GUI element 601 to be adjusted may include a plurality of GUI element vertices, such as a first GUI element vertex E and a second GUI element vertex E ', the terminal device acquires the first cutting line L1 and the second cutting line L2, it may be determined first whether the first cutting line L1 and the second cutting line L2 each intersect with the three-dimensional GUI element 601 to be adjusted, it may be apparent from fig. 12 (a) that the first cutting line L1 and the second cutting line L2 intersect with the three-dimensional GUI element 601 to be adjusted, at this time, it may be further determined whether the first cutting line L1 intersects with the first GUI element vertex E and the second cutting line L2 intersects with the second GUI element vertex E', if the first cutting line L1 intersects with the first GUI element vertex E and the second cutting line L2 intersects with the second GUI element vertex E ', and the area between the first GUI element vertex E and the second vertex E' may be regarded as a corresponding adjustment area 602 of the three-dimensional GUI element 601 to be adjusted, and the first vertex E and the second vertex E may be fastened as a detailed GUI element area (b) as shown in fig. 12.
Step S230: adjustment parameters input for the three-dimensional GUI element to be adjusted are acquired.
Step S240: and adjusting the grid information of the adjustment area according to the adjustment parameters to obtain the adjusted three-dimensional GUI element.
After the terminal device divides the three-dimensional GUI element to be adjusted into a plurality of areas, an adjustment parameter input by a user for the three-dimensional GUI element to be adjusted can be received, and grid information of the adjustment area can be adjusted based on the adjustment parameter, as shown by 202 in fig. 7 (b), which is a three-dimensional GUI element schematic diagram obtained after the three-dimensional GUI element 201 to be adjusted is adjusted by the adjustment parameter; a schematic diagram of the three-dimensional GUI element 204 to be adjusted obtained after adjustment of the adjustment parameters is shown as 206 in fig. 8 (b); a schematic diagram of the three-dimensional GUI element 301 to be adjusted after adjustment of the adjustment parameters is shown as 303 in fig. 9 (b); a step 403 in fig. 10 (b) is that the three-dimensional GUI element 401 to be adjusted is obtained after adjustment of the adjustment parameters; a three-dimensional GUI element 501 to be adjusted is obtained after adjustment of the adjustment parameters as shown by 503 in fig. 11 (b); a step 603 in fig. 12 (b) is obtained after the adjustment of the adjustment parameters of the three-dimensional GUI element 601 to be adjusted.
Step S250: and displaying the adjusted three-dimensional GUI element.
According to the three-dimensional model adjustment method, the three-dimensional GUI element to be adjusted is adjusted by acquiring the cutting parameters and the adjustment parameters of the three-dimensional GUI element to be adjusted, particularly, the three-dimensional GUI element to be adjusted can be adjusted more conveniently and effectively by introducing the first cutting line and the second cutting line, and when the adjustment operation is executed, the adjustment region in the three-dimensional GUI element to be adjusted can be adjusted only, the fixed region in the three-dimensional GUI element to be adjusted is not changed, so that the accuracy of three-dimensional GUI element adjustment can be improved, and repeated modeling of the GUI element can be avoided through the method.
Referring to fig. 13, a block diagram illustrating a three-dimensional model adjustment apparatus 700 according to an embodiment of the present application is shown, where the apparatus may include: a cutting parameter obtaining module 710, a region determining module 720, an adjusting parameter obtaining module 730, a three-dimensional GUI element adjusting module 740, and a three-dimensional GUI element display module 750, wherein the cutting parameter obtaining module 710 is configured to obtain a cutting parameter of a three-dimensional GUI element to be adjusted; the region determining module 720 is configured to cut the three-dimensional GUI element to be adjusted into a plurality of regions according to the cutting parameter, and determine an adjustment region and a fixed region in the plurality of regions, where the fixed region is a corner region of the three-dimensional control to be adjusted; the adjustment parameter obtaining module 730 is configured to obtain adjustment parameters input for a three-dimensional GUI element to be adjusted; the three-dimensional GUI element adjustment module 740 is configured to adjust the grid information of the adjustment area according to the adjustment parameter, to obtain an adjusted three-dimensional GUI element; the three-dimensional GUI element display module 750 is configured to display the adjusted three-dimensional GUI element.
In some embodiments, the cutting parameter acquisition module 710 acquires cutting parameters of the three-dimensional graphical user interface GUI element to be adjusted, may include: acquiring cutting parameters input by a user aiming at the three-dimensional GUI element to be adjusted, and taking the cutting parameters as the cutting parameters corresponding to the three-dimensional GUI element to be adjusted; or acquiring the historical cutting parameters corresponding to the three-dimensional GUI elements to be adjusted, and taking the historical cutting parameters as the cutting parameters corresponding to the three-dimensional GUI elements to be adjusted.
In some embodiments, the cutting parameters may include a first cutting line and a second cutting line, and the region determining module 720 may include a position acquiring unit 721 and a region cutting unit 722 as shown in fig. 14. Wherein, the setting obtaining unit 721 is configured to obtain, when the first cutting line and the second cutting line intersect with the three-dimensional GUI element to be adjusted, positions where the first cutting line and the second cutting line intersect with the three-dimensional GUI element to be adjusted; the region cutting unit 722 is configured to cut the three-dimensional GUI element to be adjusted into a plurality of regions according to the positions where the first cutting line and the second cutting line intersect the three-dimensional GUI element to be adjusted, and determine an adjustment region and a fixed region corresponding to the three-dimensional GUI element to be adjusted.
In some embodiments, the area determining module 720 is further configured to obtain a cut point when the first cutting line and the second cutting line overlap and intersect at the same GUI element vertex, where the cut point is obtained by copying the intersecting GUI element vertex; and taking the area between the vertex of the intersected GUI element and the cutting point as an adjustment area corresponding to the three-dimensional GUI element to be adjusted.
In some embodiments, the area determining module 720 is further configured to obtain, when the first cutting line and the second cutting line intersect at the same GUI element boundary line, a first cutting point and a second cutting point, where the first cutting point is an intersection point of the first cutting line and the GUI element boundary line, and the second cutting point is an intersection point of the second cutting line and the GUI element boundary line; and taking the area between the first cutting point and the second cutting point as an adjustment area corresponding to the three-dimensional GUI element to be adjusted.
In some embodiments, the area determining module 720 is further configured to, when the first cutting line and the second cutting line intersect at the same GUI element boundary line and the first cutting line and the second cutting line overlap, obtain an intersection point where the first cutting line and the second cutting line intersect at the GUI element boundary line, and copy the intersection point to obtain the cutting point; and taking the area between the intersection point and the cutting point as an adjustment area corresponding to the three-dimensional GUI element to be adjusted.
In some embodiments, the area determining module 720 is further configured to, when the first cutting line intersects the GUI element boundary line and the second cutting line intersects the GUI element vertex, obtain a point at which the first cutting line intersects the GUI element boundary line, and use the intersecting point as the first cutting point; and taking the area between the first cutting point and the vertex of the GUI element intersected with the second cutting line as an adjustment area corresponding to the three-dimensional GUI element to be adjusted.
According to the three-dimensional model adjustment method, the three-dimensional GUI element to be adjusted is adjusted by acquiring the cutting parameters and the adjustment parameters of the three-dimensional GUI element to be adjusted, and when the adjustment operation is executed, the embodiment of the application can ensure that only the adjustment area in the three-dimensional GUI element to be adjusted is adjusted, and the fixed area in the three-dimensional GUI element to be adjusted is not changed, so that the accuracy of three-dimensional GUI element adjustment can be improved, repeated modeling of the GUI element can be avoided, meanwhile, the efficiency of building the three-dimensional model can be improved, and the memory consumption of terminal equipment can be reduced to a certain extent.
Referring to fig. 15, a block diagram of a terminal device according to an embodiment of the present application is shown. The terminal device 800 may be a terminal device capable of running an application such as a head mounted display device. The terminal device 800 in the present application may include one or more of the following components: a processor 810, a memory 820, wherein the memory 820 has stored therein one or more application programs configured to be executed by the one or more processors 810, the one or more program configured to perform the method as described in the foregoing method embodiments.
Processor 810 may include one or more processing cores. The processor 810 connects various portions of the overall terminal device 800 using various interfaces and lines, performs various functions of the terminal device 800, and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 820, and invoking data stored in the memory 820. Alternatively, the processor 810 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 810 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 810 and may be implemented solely by a single communication chip.
The Memory 820 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Memory 820 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 820 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data created by the terminal device 800 in use, etc.
In one embodiment, the terminal device is a head-mounted display device, and may further include one or more of the following components in addition to the above-mentioned processor, memory, and image acquisition device: image acquisition device, display module, optical module, communication module and power.
And the image acquisition device is used for acquiring the image of the real object and acquiring the scene image of the target scene. The image capturing device may be an infrared camera or a visible light camera, and the specific type is not limited in the embodiment of the present application.
The display module may include a display control unit. The display control unit is used for receiving the display image of the virtual content rendered by the processor, and then displaying and projecting the display image onto the optical module, so that a user can watch the virtual content through the optical module. The display module can be a display screen or a projection device and the like and can be used for displaying images.
The optical module can adopt an off-axis optical system or a waveguide optical system, and a display image displayed by the display module can be projected to eyes of a user after passing through the optical module. The user sees the display image projected by the display module through the optical module. In some embodiments, the user can also observe the real environment through the optical module, and feel the augmented reality effect after the virtual content is overlapped with the real environment.
The communication module may be a module such as bluetooth, wiFi (Wireless-Fidelity), zigBEE (ultraviolet technology), etc., and the head-mounted display device may establish a communication connection with the terminal device through the communication module. The head-mounted display device which is in communication connection with the terminal equipment can interact information and instructions with the terminal equipment. For example, the head-mounted display device may receive the transmitted image data of the terminal device through the communication module, and generate virtual contents of the virtual world from the received image data to display.
The power supply can supply power for the whole head-mounted display device, and normal operation of each component of the head-mounted display device is guaranteed.
Referring to fig. 16, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable storage medium 900 has stored therein program code that can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, computer readable storage medium 900 includes non-volatile computer readable media (non-transitory computer-readable storage medium). The computer readable storage medium 900 has storage space for program code 910 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 910 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, one of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (9)

1. A method for three-dimensional model tuning, the method comprising:
acquiring cutting parameters of a three-dimensional graphical user interface element to be adjusted, wherein the cutting parameters comprise a first cutting line and a second cutting line;
cutting the three-dimensional graphical user interface element to be adjusted into a plurality of areas according to the cutting parameters, and determining adjustment areas and fixed areas corresponding to the plurality of areas, wherein the fixed areas are corner areas of the three-dimensional graphical user interface element to be adjusted;
acquiring adjustment parameters input for the three-dimensional graphical user interface element to be adjusted;
adjusting the grid information of the adjustment area according to the adjustment parameters to obtain adjusted three-dimensional graphical user interface elements;
displaying the adjusted three-dimensional graphical user interface element;
wherein the cutting the three-dimensional graphical user interface element to be adjusted into a plurality of areas according to the cutting parameters comprises: when the first cutting line and the second cutting line are intersected with the three-dimensional graphical user interface element to be adjusted, the positions where the first cutting line and the second cutting line are intersected with the three-dimensional graphical user interface element to be adjusted are obtained, and the three-dimensional graphical user interface element to be adjusted is cut into a plurality of areas according to the positions where the first cutting line and the second cutting line are intersected with the three-dimensional graphical user interface element to be adjusted.
2. The method of claim 1, wherein the obtaining the cutting parameters of the three-dimensional graphical user interface element to be adjusted comprises:
acquiring cutting parameters input by a user aiming at the three-dimensional graphical user interface element to be adjusted, and taking the cutting parameters as cutting parameters corresponding to the three-dimensional graphical user interface element to be adjusted; or alternatively
And acquiring the historical cutting parameters corresponding to the three-dimensional graphical user interface element to be adjusted, and taking the historical cutting parameters as the cutting parameters corresponding to the three-dimensional graphical user interface element to be adjusted.
3. The method of claim 1, wherein the three-dimensional graphical user interface element to be adjusted comprises a three-dimensional graphical user interface element vertex;
alternatively, the determining the adjustment region and the fixation region of the plurality of regions includes:
when the first cutting line and the second cutting line are overlapped and intersected on the same three-dimensional graphic user interface element vertex, a cutting point is obtained, and the cutting point is obtained by copying the intersected three-dimensional graphic user interface element vertex;
and taking the area between the vertex of the intersected three-dimensional graphical user interface element and the cutting point as an adjustment area corresponding to the three-dimensional graphical user interface element to be adjusted.
4. The method of claim 1, wherein the three-dimensional graphical user interface element to be adjusted comprises a three-dimensional graphical user interface element boundary line;
alternatively, the determining the adjustment region and the fixation region of the plurality of regions includes:
when the first cutting line and the second cutting line intersect with the same three-dimensional graphical user interface element boundary line, a first cutting point and a second cutting point are obtained, wherein the first cutting point is an intersection point of the first cutting line and the three-dimensional graphical user interface element boundary line, and the second cutting point is an intersection point of the second cutting line and the three-dimensional graphical user interface element boundary line;
and taking the area between the first cutting point and the second cutting point as an adjustment area corresponding to the three-dimensional graphical user interface element to be adjusted.
5. The method of claim 1, wherein the three-dimensional graphical user interface element to be adjusted comprises a three-dimensional graphical user interface element boundary line;
alternatively, the determining the adjustment region and the fixation region of the plurality of regions includes:
when the first cutting line and the second cutting line intersect at the same three-dimensional graphical user interface element boundary line and the first cutting line and the second cutting line are overlapped, acquiring an intersection point of the first cutting line and the second cutting line intersecting at the three-dimensional graphical user interface element boundary line, and copying the intersection point to obtain a cutting point;
And taking the area between the intersection point and the cutting point as an adjustment area corresponding to the three-dimensional graphical user interface element to be adjusted.
6. The method of claim 1, wherein the three-dimensional graphical user interface element to be adjusted comprises a three-dimensional graphical user interface element vertex and a three-dimensional graphical user interface element boundary line;
alternatively, the determining the adjustment region and the fixation region of the plurality of regions includes:
when the first cutting line is intersected with the three-dimensional graphical user interface element boundary line and the second cutting line is intersected with the three-dimensional graphical user interface element vertex, acquiring a point at which the first cutting line is intersected with the three-dimensional graphical user interface element boundary line, and taking the intersected point as a first cutting point;
and taking the area between the first cutting point and the vertex of the three-dimensional graphical user interface element intersected with the second cutting line as an adjustment area corresponding to the three-dimensional graphical user interface element to be adjusted.
7. A three-dimensional model tuning device, the device comprising:
the device comprises a cutting parameter acquisition module, a cutting parameter adjustment module and a cutting parameter adjustment module, wherein the cutting parameter acquisition module is used for acquiring the cutting parameters of the three-dimensional graphical user interface element to be adjusted, and the cutting parameters comprise a first cutting line and a second cutting line;
The area determining module is configured to cut the three-dimensional graphical user interface element to be adjusted into a plurality of areas according to the cutting parameter, and determine adjustment areas and fixed areas corresponding to the plurality of areas, where the fixed areas are corner areas of the three-dimensional graphical user interface element to be adjusted, and the cutting the three-dimensional graphical user interface element to be adjusted into the plurality of areas according to the cutting parameter includes: when the first cutting line and the second cutting line are intersected with the three-dimensional graphical user interface element to be adjusted, acquiring the intersection positions of the first cutting line and the second cutting line with the three-dimensional graphical user interface element to be adjusted, and cutting the three-dimensional graphical user interface element to be adjusted into a plurality of areas according to the intersection positions of the first cutting line and the second cutting line with the three-dimensional graphical user interface element to be adjusted;
the adjustment parameter acquisition module is used for acquiring adjustment parameters input for the three-dimensional graphical user interface element to be adjusted;
the three-dimensional graphical user interface element adjusting module is used for adjusting the grid information of the adjusting area according to the adjusting parameters to obtain an adjusted three-dimensional graphical user interface element;
And the three-dimensional graphical user interface element display module is used for displaying the adjusted three-dimensional graphical user interface element.
8. An electronic device, comprising:
one or more processors;
a memory storing one or more application programs;
the one or more applications are configured to, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-6.
CN201910833303.4A 2019-09-04 2019-09-04 Three-dimensional model adjustment method, device, terminal equipment and storage medium Active CN110619683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910833303.4A CN110619683B (en) 2019-09-04 2019-09-04 Three-dimensional model adjustment method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910833303.4A CN110619683B (en) 2019-09-04 2019-09-04 Three-dimensional model adjustment method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110619683A CN110619683A (en) 2019-12-27
CN110619683B true CN110619683B (en) 2023-07-14

Family

ID=68922232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910833303.4A Active CN110619683B (en) 2019-09-04 2019-09-04 Three-dimensional model adjustment method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110619683B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935534B (en) * 2020-07-30 2022-09-27 视伴科技(北京)有限公司 Method and device for playing back recorded video
CN113778580B (en) * 2021-07-28 2023-12-08 赤子城网络技术(北京)有限公司 Modal user interface display method, electronic device and storage medium
CN117745974B (en) * 2024-02-19 2024-05-10 潍坊幻视软件科技有限公司 Method for dynamically generating rounded rectangular grid

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1696388A1 (en) * 2000-10-30 2006-08-30 Landmark Graphics Corporation System and method for analysing and imaging three-dimensional volume data sets
CN102236913A (en) * 2011-04-15 2011-11-09 杭州普乐信信息技术有限公司 Volumetric mesh deformation method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8941559B2 (en) * 2010-09-21 2015-01-27 Microsoft Corporation Opacity filter for display device
CA2740549C (en) * 2011-05-17 2018-09-25 Athos Construction Products, Inc. Glued ledger head

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1696388A1 (en) * 2000-10-30 2006-08-30 Landmark Graphics Corporation System and method for analysing and imaging three-dimensional volume data sets
CN102236913A (en) * 2011-04-15 2011-11-09 杭州普乐信信息技术有限公司 Volumetric mesh deformation method

Also Published As

Publication number Publication date
CN110619683A (en) 2019-12-27

Similar Documents

Publication Publication Date Title
US11379105B2 (en) Displaying a three dimensional user interface
CN110619683B (en) Three-dimensional model adjustment method, device, terminal equipment and storage medium
US11282264B2 (en) Virtual reality content display method and apparatus
EP3496036B1 (en) Structural modeling using depth sensors
CN109771951B (en) Game map generation method, device, storage medium and electronic equipment
WO2017092303A1 (en) Virtual reality scenario model establishing method and device
JP6392881B2 (en) Low latency visual response to input by pre-generation of alternative graphic representations of application elements and input processing of graphic processing units
CN111957040B (en) Detection method and device for shielding position, processor and electronic device
CN103970518A (en) 3D rendering method and device for logic window
CN108776544B (en) Interaction method and device in augmented reality, storage medium and electronic equipment
CN112370783B (en) Virtual object rendering method, device, computer equipment and storage medium
CN110262763B (en) Augmented reality-based display method and apparatus, storage medium, and electronic device
KR20220080007A (en) Augmented reality-based display method, device and storage medium
US20230386041A1 (en) Control Method, Device, Equipment and Storage Medium for Interactive Reproduction of Target Object
CN114266849A (en) Model automatic generation method and device, computer equipment and storage medium
CN111259567B (en) Layout diagram generation method, device and storage medium
CN114797109A (en) Object editing method and device, electronic equipment and storage medium
CN116610312A (en) Interface layout method, apparatus, device, readable storage medium, and program product
CN113920282A (en) Image processing method and device, computer readable storage medium, and electronic device
CN108499102B (en) Information interface display method and device, storage medium and electronic equipment
CN110941389A (en) Method and device for triggering AR information points by focus
KR102579463B1 (en) Media art system based on extended reality technology
CN117435110B (en) Picture processing method and device, electronic equipment and storage medium
CN114115624A (en) User interface display method and device
CN117726643A (en) Image processing method, device, electronic equipment and storage medium

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