CN112686990A - Three-dimensional model display method and device, storage medium and computer equipment - Google Patents
Three-dimensional model display method and device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN112686990A CN112686990A CN202110019139.0A CN202110019139A CN112686990A CN 112686990 A CN112686990 A CN 112686990A CN 202110019139 A CN202110019139 A CN 202110019139A CN 112686990 A CN112686990 A CN 112686990A
- Authority
- CN
- China
- Prior art keywords
- dimensional
- target
- model
- track
- coordinate set
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 239000000463 material Substances 0.000 claims description 74
- 238000006243 chemical reaction Methods 0.000 claims description 51
- 230000009466 transformation Effects 0.000 claims description 30
- 230000004044 response Effects 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 15
- 230000001131 transforming effect Effects 0.000 claims description 6
- 238000013473 artificial intelligence Methods 0.000 abstract description 6
- 230000008569 process Effects 0.000 description 16
- 238000012545 processing Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 7
- 230000003993 interaction Effects 0.000 description 7
- 238000009877 rendering Methods 0.000 description 3
- 241000270295 Serpentes Species 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 241001465754 Metazoa Species 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000005499 meniscus Effects 0.000 description 1
- 238000000465 moulding Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The application discloses a three-dimensional model display method, a three-dimensional model display device, a storage medium and computer equipment; the method is related to the field of artificial intelligence computer vision, and can display a model page of a client, wherein the model page comprises a track drawing area; responding to drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying a target two-dimensional track on a model page based on the target two-dimensional track coordinate set; displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on a target two-dimensional track coordinate set; the method and the device can display the three-dimensional model corresponding to the two-dimensional track drawn by the user.
Description
Technical Field
The application relates to the field of display, in particular to a three-dimensional model display method, a three-dimensional model display device, a storage medium and computer equipment.
Background
With the development of the technology, in daily life, a trace line can be drawn on a display module of a computer device by means of a mouse, an electronic stylus and other devices or fingers, the trace line is usually two-dimensional, for example, a trace can be drawn on a picture by using the mouse through a pen function in picture editing, and the picture is processed to obtain a processed picture.
Disclosure of Invention
The embodiment of the application provides a three-dimensional model display method and device, a storage medium and computer equipment, which can display a three-dimensional model corresponding to a two-dimensional track drawn by a user.
The embodiment of the application provides a three-dimensional model display method, which comprises the following steps:
displaying a model page of a client, wherein the model page comprises a track drawing area;
responding to drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying a target two-dimensional track on the model page based on the target two-dimensional track coordinate set;
and displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target two-dimensional track coordinate set.
Accordingly, the present application provides a three-dimensional model display device comprising:
the first display module is used for displaying a model page of a client, and the model page comprises a track drawing area;
the second display module is used for responding to the drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying a target two-dimensional track on the model page based on the target two-dimensional track coordinate set;
and the third display module is used for displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target two-dimensional track coordinate set.
In some embodiments, the model page further includes a model template selection control, and the third display module includes a template determination sub-module and a display sub-module, wherein,
the template determination sub-module is used for responding to the triggering operation of the model template selection control and determining a target model template corresponding to the target two-dimensional track;
and the display sub-module is used for displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target two-dimensional track coordinate set and the target model template.
In some embodiments, the model page further comprises a model material selection control, and the display sub-module comprises a material determination unit and a display unit, wherein,
the material determining unit is used for responding to the triggering operation of the model material selection control and determining a target model material corresponding to the target two-dimensional track;
and the display unit is used for displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target two-dimensional track coordinate set, the target model template and the target model material.
In some embodiments, the third display module includes an identification submodule and a display submodule, wherein,
the recognition submodule is used for recognizing the target two-dimensional track coordinate set and determining a target model template and a target model material of the target two-dimensional track;
and the display sub-module is used for displaying the target three-dimensional model corresponding to the target two-dimensional track on the model page through the three-dimensional engine based on the target two-dimensional track coordinate set, the target model template and the target model material.
In some embodiments, the second display module includes a determination sub-module, a translation sub-module, and a display sub-module, wherein,
the determining submodule is used for responding to the operation aiming at the track drawing area, determining an initial two-dimensional track coordinate set, displaying an initial two-dimensional track on the model page based on the initial two-dimensional track coordinate set, and the model page further comprises a track conversion selection control of the initial two-dimensional track;
the conversion sub-module is used for responding to the triggering operation of the track conversion selection control and converting the initial two-dimensional track based on the initial two-dimensional track coordinate set to obtain a target two-dimensional track coordinate set;
and the display sub-module is used for displaying the target two-dimensional track on the model page based on the target two-dimensional track coordinate set.
In some embodiments, the transformation module comprises a determination unit and a transformation unit, wherein,
the determining unit is used for responding to the triggering operation of the track conversion selection control, and determining a track conversion strategy of the initial two-dimensional track;
and the conversion unit is used for converting the initial two-dimensional track based on the track conversion strategy and the initial two-dimensional track coordinate set to obtain a target two-dimensional track coordinate set.
In some embodiments, the conversion unit is specifically for:
determining Bessel control coordinate points of the initial two-dimensional track based on the track conversion strategy and the initial two-dimensional track coordinate set;
and generating a Bezier curve coordinate set of the Bezier curve through the Bezier control coordinate points of the initial two-dimensional track so as to obtain a target two-dimensional track coordinate set.
In some embodiments, the display unit comprises a transformant unit and a display subunit, wherein,
the transformation unit is used for transforming the target two-dimensional coordinates in the target two-dimensional track coordinate set according to the target model template to obtain a target three-dimensional coordinate set;
and the display subunit is used for displaying the target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target three-dimensional coordinate set, the target model template and the target model material.
In some embodiments, the transformant unit is specifically used for:
determining a coordinate transformation strategy corresponding to the target model template;
and respectively converting the target two-dimensional coordinates in the target two-dimensional track coordinate set into corresponding target three-dimensional coordinates based on the coordinate transformation strategy so as to obtain a target three-dimensional coordinate set.
In some embodiments, the display subunit is specifically configured to:
calling a target model creating interface in the three-dimensional engine based on the target three-dimensional coordinate set, the target model template and the target model material to generate a target three-dimensional model corresponding to the target two-dimensional track;
and displaying the target three-dimensional model on the model page.
Correspondingly, the embodiment of the present application further provides a storage medium, where a computer program is stored, and the computer program is suitable for being loaded by a processor to execute any one of the three-dimensional model display methods provided by the embodiments of the present application.
Accordingly, embodiments of the present application further provide a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements any one of the three-dimensional model display methods provided in the embodiments of the present application when executing the computer program.
The method and the device can display a model page of a client, wherein the model page comprises a track drawing area; responding to drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying a target two-dimensional track on a model page based on the target two-dimensional track coordinate set; and displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target two-dimensional track coordinate set, wherein the three-dimensional model corresponding to the two-dimensional track drawn by the user can be displayed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view of a three-dimensional model display system provided in an embodiment of the present application;
FIG. 2 is a schematic page interaction diagram of a three-dimensional model display system provided by an embodiment of the present application;
FIG. 3 is a schematic flow chart of a three-dimensional model display method according to an embodiment of the present disclosure;
FIG. 4 is another schematic page interaction diagram of a three-dimensional model display method provided in the embodiment of the present application;
FIG. 5 is another schematic page interaction diagram of a three-dimensional model display method provided in the embodiments of the present application;
FIG. 6 is another schematic page interaction diagram of a three-dimensional model display method according to an embodiment of the present application;
FIG. 7 is another schematic page interaction diagram of a three-dimensional model display method according to an embodiment of the present application;
FIG. 8 is a schematic flow chart of a three-dimensional model display method according to an embodiment of the present disclosure;
FIG. 9 is another schematic page interaction diagram of a three-dimensional model display method according to an embodiment of the present application;
FIG. 10 is a schematic overall flow chart of a three-dimensional model display method provided by an embodiment of the present application;
FIG. 11 is a schematic structural diagram of a three-dimensional model display apparatus provided in an embodiment of the present application;
fig. 12 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the embodiments described in the present application are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Artificial Intelligence (AI) is a theory, method, technique and application system that uses a digital computer or a machine controlled by a digital computer to simulate, extend and expand human Intelligence, perceive the environment, acquire knowledge and use the knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technique of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a manner similar to human intelligence. Artificial intelligence is the research of the design principle and the realization method of various intelligent machines, so that the machines have the functions of perception, reasoning and decision making.
Computer Vision technology (CV) Computer Vision is a science for researching how to make a machine "see", and further refers to that a camera and a Computer are used to replace human eyes to perform machine Vision such as identification, tracking and measurement on a target, and further image processing is performed, so that the Computer processing becomes an image more suitable for human eyes to observe or transmitted to an instrument to detect. As a scientific discipline, computer vision research-related theories and techniques attempt to build artificial intelligence systems that can capture information from images or multidimensional data. Computer vision technologies generally include image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content/behavior recognition, three-dimensional object reconstruction, 3D technologies, virtual reality, augmented reality, synchronous positioning, map construction, and other technologies, and also include common biometric technologies such as face recognition and fingerprint recognition.
In the embodiment of the present application, the target two-dimensional trajectory coordinate set may also be obtained by using a related technology in the field of artificial intelligence computer vision, for example, the target two-dimensional trajectory coordinate set may be obtained by using a face recognition technology, and the following embodiments will be specifically described in detail.
The embodiment of the application provides a three-dimensional model display method and device, a storage medium and computer equipment. In particular, the embodiment of the application can be integrated in a three-dimensional model display system.
The three-dimensional model display system may be integrated in a computer device, the computer device may include a terminal or a server, and the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud computing services. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a smart television, a smart drawing board, or a smart hand-drawing screen. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
Referring to fig. 1, a three-dimensional model display system may be integrated in a computer device (e.g., a terminal), the computer device may display a model page of a client, the model page may include a trajectory drawing area, the computer device determines a target two-dimensional trajectory coordinate set corresponding to a drawing operation in response to the drawing operation for the trajectory drawing area, and displays a target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set, and the computer device displays a target three-dimensional model corresponding to the target two-dimensional trajectory on the model page through a three-dimensional engine based on the target two-dimensional trajectory coordinate set.
For example, referring to fig. 2, a client in the terminal displays a model page, a user performs a drawing operation on the model page, the terminal determines a target two-dimensional trajectory coordinate set corresponding to the drawing operation, and displays a target two-dimensional trajectory x1 on the model page based on the target two-dimensional trajectory coordinate set, and the terminal displays a target three-dimensional model x2 corresponding to the target two-dimensional trajectory x1 on the model page through a three-dimensional engine and the target two-dimensional trajectory coordinate set.
It should be noted that the scene schematic diagrams of the three-dimensional model display system shown in fig. 1 and fig. 2 are only an example, the three-dimensional model display system and the scene described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application, and it is known by those skilled in the art that the technical solution provided in the embodiment of the present application is also applicable to similar technical problems with the evolution of the three-dimensional model display device and the appearance of new service scenes.
The following are detailed below. In this embodiment, a detailed description will be given of a three-dimensional model display method, which may be integrated on a computer device, as shown in fig. 3, where fig. 3 is a flowchart of the three-dimensional model display method provided in this embodiment of the present application. The three-dimensional model display method may include:
101. and displaying a model page of the client, wherein the model page comprises a track drawing area.
The client can comprise an application program which is used for providing service for a user on computer equipment, and the client in the application can comprise an application program which can provide track drawing and three-dimensional model display functions, so that the application can be suitable for most of user-oriented clients, such as an instant messaging client, a browser client, a drawing client, an album client, an image processing client, an image shooting client, an audio and video playing client and the like.
In an actual application scene, the model page may be a single page, or a plurality of sub-pages under the model page may be set according to different application requirements, for example, the model page may include a first display sub-page and a second display sub-page of the drawn sub-pages, and different sub-pages may be switched by triggering a control (e.g., clicking a page switching button), operating a specific page (e.g., sliding a page), automatically, and the like.
The mode of displaying the model page may be various, and specifically, the mode may be specifically set according to factors such as the type of the client, for example, when the user clicks the main page displayed after entering the drawing client, the main page may be the model page, and for example, after the screenshot control of the audio/video playing client is triggered, the audio/video playing client may display the model page for the screenshot image, and the like.
The model page may include a track drawing area, where a user may draw a track in the track drawing area through a mouse, a stylus, or other devices, or through a finger, and the like, where the track drawing area may be a blank background board, and may also include basic display contents such as an image, an existing two-dimensional track, an existing three-dimensional model, and the like.
In order to adapt to the personalized requirements of users, the number of the trajectory rendering regions in the model page can be flexibly adjusted, for example, in order to match scenes commonly rendered by multiple persons, one trajectory rendering region can be allocated to each participant in the model page according to the number of participants participating in the common rendering in the model page.
The shape of the trajectory drawing area may include a plurality of shapes, for example, when the client is a graffiti drawing client facing children, in order to increase interest, the trajectory drawing area whose outline is a specific animal may be displayed, for example, a user wants to achieve an object of improving basic display content by displaying a target three-dimensional model on the basic display content, the shape and position of the trajectory drawing area may be set to match the shape and position of the target three-dimensional model that the user wants to display, specifically, the user may draw the trajectory drawing area on a model page, or may preset a plurality of selectable trajectory drawing areas in specific positions and shapes, so that one of the selectable trajectory drawing areas may be directly selected during use.
For example, referring to FIG. 4, a client-displayed model page 10 may include a trajectory-drawing region 101.
102. And responding to the drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying the target two-dimensional track on the model page based on the target two-dimensional track coordinate set.
The drawing operation may include an operation of a user in a trajectory drawing area of the client, the drawing operation may be a process, the process may last for a period of time, and the client may identify and record the process of the drawing operation at a set time interval, so as to obtain a target two-dimensional trajectory coordinate set corresponding to the drawing operation.
In the present application, in response to a condition or state that may be used to indicate that the executed operation depends on, when the dependent condition or state is satisfied, one or more of the executed operations may be in real time or may have a set delay; there is no restriction on the order of execution of the operations performed unless otherwise specified.
Specifically, with the difference of the computer devices to which the clients belong, in response to the drawing operation in the trajectory drawing area, it is determined that the target two-dimensional trajectory coordinate set corresponding to the drawing operation may change accordingly, for example, the drawing operation of dragging a mouse and the drawing operation of sliding a finger on a screen, the modes of responding to the drawing operation and determining the target two-dimensional trajectory coordinate set are not the same, and specifically, the modes may be flexibly adjusted in the actual application process, and are not described herein again.
Then, displaying the target two-dimensional track on the model page based on the target two-dimensional track coordinate set, determining the display position information of each two-dimensional track coordinate in the target two-dimensional track coordinate set on the model page, connecting the display position information according to the sequence information of the two-dimensional track coordinates to obtain the target two-dimensional track, and displaying the target two-dimensional track on the model page.
The model page may further include a trajectory display area, the target two-dimensional trajectory may be displayed in the trajectory display area, a display position, a display duty and the like of the trajectory display area on the model page may be flexibly set according to an actual situation, for example, the trajectory display area and the trajectory drawing area may be overlapped areas, or for example, the trajectory display area may be multiple areas, and the trajectory display area may be above and below the trajectory drawing area, and the like.
In order to increase the display effect, when the target two-dimensional track is displayed on the model page, the target two-dimensional track can be displayed by combining the dynamic effect, the sound effect, the dynamic image and the like, for example, the target two-dimensional track is displayed and the animation effect of putting fireworks is matched; when the target two-dimensional trajectory itself is displayed, the target two-dimensional trajectory may also be displayed in a dynamic and effective manner, for example, a drawing process of the target two-dimensional trajectory may be "reproduced" during displaying, that is, the whole target two-dimensional trajectory is gradually and completely displayed from a starting point of displaying the target two-dimensional trajectory.
For example, referring to fig. 4, in response to a drawing operation by a user in the trajectory drawing area 101 of the model page 10, the client determines a target two-dimensional trajectory coordinate set corresponding to the drawing operation, and displays a target two-dimensional trajectory x1 on the model page 20 based on the target two-dimensional trajectory coordinate set.
In some embodiments, the step "in response to a drawing operation within the trajectory drawing region, determining a target two-dimensional trajectory coordinate set corresponding to the drawing operation, and displaying the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set" may include:
responding to the operation aiming at the track drawing area, determining an initial two-dimensional track coordinate set, displaying an initial two-dimensional track on a model page based on the initial two-dimensional track coordinate set, wherein the model page further comprises a track conversion selection control of the initial two-dimensional track; responding to the trigger operation of selecting a control for track conversion, and converting the initial two-dimensional track based on the initial two-dimensional track coordinate set to obtain a target two-dimensional track coordinate set; and displaying the target two-dimensional track on the model page based on the target two-dimensional track coordinate set.
In an application scenario, due to the difficulty of drawing operation, or the user himself or herself, a two-dimensional trajectory obtained by the user through drawing may not be effective, for example, the user wants to obtain a standard circle, and the circle obtained by the user drawing is usually poor in smoothness of lines and not very standard.
Therefore, in order to enhance the display effect, the display interest is improved, and the personalized requirements of the user are met, the track drawn by the user can be optimized, the target two-dimensional track which is more attractive or meets the use requirements of the user is obtained, and then the target three-dimensional model corresponding to the target two-dimensional track is obtained.
The initial two-dimensional track coordinate set may include a set of two-dimensional track coordinates acquired in a drawing operation process, the initial two-dimensional track may include a track actually drawn by a user, and the target two-dimensional track may include a track obtained by converting the initial two-dimensional track.
The track conversion selection control can comprise a plurality of buttons, controls, text boxes and the like, the conversion direction of the initial two-dimensional track can be determined through the track conversion selection control, and the client is triggered to convert the initial two-dimensional track coordinate set of the initial two-dimensional track to obtain the target two-dimensional track coordinate set of the target two-dimensional track. The conversion direction of the track conversion can be various, and the smooth operation is performed on the curve, such as converting a circle drawn by a user into a standard circle; a straightening operation for a curve or a straight line, such as converting a straight line drawn by a user into a horizontal standard straight line; rich operations for curves or lines, such as converting a user-drawn semicircle into a meniscus shape, converting a user-drawn curve into a flower shape, etc., wherein a standard figure (e.g., a standard circle or a standard line) may be understood as a more accurate figure that can only be obtained by drawing software or a specialized drawing tool.
When displaying, the initial two-dimensional track and the target two-dimensional track may be sequentially displayed on the model page, and in addition, only the target two-dimensional track may be displayed on the model page, and specifically, the processing may be flexibly performed according to the actual application scenario.
For example, referring to fig. 5, in response to a user operating on the trajectory drawing area, an initial two-dimensional trajectory coordinate set 1 is determined, and an initial two-dimensional trajectory c1 is displayed on the model page 40 based on the initial two-dimensional trajectory coordinate set 1, where the model page 40 further includes a trajectory conversion selection control 401 of the initial two-dimensional trajectory; in response to the click operation of the user on the track conversion selection control 401, the initial two-dimensional track is converted based on the initial two-dimensional track coordinate set 1 to obtain a target two-dimensional track coordinate set 1, and the target two-dimensional track c2 obtained through the target two-dimensional track coordinate set 1 is displayed on the model page 40.
In some embodiments, the step "in response to a trigger operation for selecting a control for trajectory conversion, converting the initial two-dimensional trajectory based on the initial two-dimensional trajectory coordinate set to obtain the target two-dimensional trajectory coordinate set" may include:
determining a track conversion strategy of the initial two-dimensional track in response to a trigger operation for selecting a control for track conversion; and converting the initial two-dimensional track based on a track conversion strategy and the initial two-dimensional track coordinate set to obtain a target two-dimensional track coordinate set.
Specifically, the trajectory transformation strategy may correspond to a transformation direction of the initial two-dimensional trajectory, and the transformation direction corresponds to a specific transformation strategy, for example, a curve is transformed into a standard circular trajectory transformation strategy 1, and the curve is transformed into a standard straight line trajectory transformation strategy 2.
One track conversion selection control may correspond to one conversion direction and, in turn, one track conversion strategy. When displayed, the track conversion selection control can select a sub-button, a conversion selection frame and the like for a plurality of conversions.
For example, the trajectory transformation selection control of the model page may include 3 sub-controls, which are a smooth button, a straightening button, and a rich button, respectively, and for example, the trajectory transformation control of the model page may be a selection box and a determination button, and the selection box may include a smooth option, a straightening option, and a rich option.
In some embodiments, the step of "converting the initial two-dimensional trajectory based on the trajectory conversion policy and the initial two-dimensional trajectory coordinate set to obtain the target two-dimensional trajectory coordinate set" may include:
determining Bessel control coordinate points of the initial two-dimensional track based on the track conversion strategy and the initial two-dimensional track coordinate set; and generating a Bezier curve coordinate set of the Bezier curve through the Bezier control coordinate points of the initial two-dimensional track to obtain a target two-dimensional track coordinate set.
In the process of conversion through the trajectory conversion strategy, the curve can be developed based on the bezier curve, for example, when the curve is subjected to smoothing processing, the curve can be divided into multiple sections, bezier control coordinate points on each section are determined, then multiple sections of bezier curves are generated according to two end points and the bezier control coordinate points of each section of the curve, a target two-dimensional trajectory can be obtained based on the multiple sections of bezier curves, and a target two-dimensional trajectory coordinate set of the target two-dimensional trajectory is determined.
103. And displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target two-dimensional track coordinate set.
The three-dimensional engine may include a library in which a plurality of interfaces are encapsulated, a three-dimensional model may be generated and rendered by the three-dimensional engine, and the functions of the three-dimensional engine may also be adjusted according to differences in usage requirements, which is not described herein again. A common three-dimensional engine, such as babylon (js), processes a target two-dimensional trajectory coordinate set of a target two-dimensional trajectory through the three-dimensional engine, generates a target three-dimensional model corresponding to the target two-dimensional trajectory, and renders the target three-dimensional model on a model page to display the target three-dimensional model.
For example, referring to FIG. 4, the generated target three-dimensional model x2 is displayed on the model page 30 by the three-dimensional engine based on the target two-dimensional trajectory coordinate set.
In some embodiments, the model page further includes a model template selection control, and the step of displaying, by the three-dimensional engine, the target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set may include:
responding to the trigger operation of selecting a control for the model template, and determining a target model template corresponding to the target two-dimensional track; and displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target two-dimensional track coordinate set and the target model template.
For example, when the target two-dimensional track is a straight line, the corresponding three-dimensional model may include any three-dimensional object containing straight line elements, such as a three-dimensional cylindrical object (e.g., a pipe, a trunk, a bottle), a three-dimensional cubic object (e.g., a wall, a partition, a mobile phone, a shutter, a notebook), and the like.
In the application, a target model template of a target two-dimensional track can be determined through a model template selection control, and then a target three-dimensional model is generated through a three-dimensional engine, the model template selection control can comprise buttons, text boxes and the like, and the number of the model template selection controls can comprise a plurality of template selection sub-controls or template selection boxes and the like.
After the target model template is determined based on the operation of the user for selecting the control for the model template, a target three-dimensional model corresponding to the target two-dimensional track can be generated and rendered on a model page to display according to the three-dimensional engine based on the target two-dimensional track coordinate set and the target model template.
For example, referring to fig. 6, the model page 50 further includes a model template selection control 501, and in response to a user's trigger operation on the model template selection control 501, a target model template selected by the user is determined, a target three-dimensional model matching the target model template is generated by the three-dimensional engine, and the target three-dimensional model x2 is displayed on the model page 30.
In some embodiments, the model page further includes a model material selection control, and the step of displaying, by the three-dimensional engine, the target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set and the target model template may include:
determining a target model material corresponding to the target two-dimensional track in response to a trigger operation for selecting a control according to the model material; and displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target two-dimensional track coordinate set, the target model template and the target model material.
After the model template of the target three-dimensional model is determined, the model material of the target three-dimensional model can be selected, wherein the model material can comprise pattern patterns, patterns and the like on the surface of the target three-dimensional model, the target model template can determine the three-dimensional shape of the target three-dimensional model, and the target model material can have three-dimensional effects such as surface patterns and the like of the target three-dimensional model.
The target model material may be associated with the target model template, and then the target model material may be selected after the target model template is determined, for example, after the target model template is determined to be a trunk, the model material selection control may provide different trunk textures, so that the user may determine the target model material therefrom.
The target model material can be independent from the target model template, in this case, the selection sequence of the model template and the model material is not limited, the model material selection control and the model template selection control can be displayed in sequence, the model material selection control and the model template selection control can also be displayed simultaneously, and particularly, the model material selection control and the model template selection control can be flexibly selected in an actual application scene.
After the target model material selected by the user is determined, a target three-dimensional model can be generated and rendered on a model page according to a three-dimensional engine based on a target two-dimensional trajectory coordinate set, a target model template and the target model material to display the target three-dimensional model.
For example, referring to fig. 7, the model page 60 further includes a model material selection control 601, and in response to a user's trigger operation on the model material selection control 601, a target model material selected by the user is determined, a target three-dimensional model matching the target model template and the target model material is generated by the three-dimensional engine, and the target three-dimensional model x2 is displayed on the model page 30.
In some embodiments, the step of displaying, by the three-dimensional engine, the target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set may include:
identifying a target two-dimensional track coordinate set, and determining a target model template and a target model material of a target two-dimensional track; and displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target two-dimensional track coordinate set, the target model template and the target model material.
The target model template and the target model material of the target three-dimensional model can also be automatically identified and determined by the client, and the client can identify and match according to the shape, the size, the line complexity and the like of the target two-dimensional track to determine the target model template and the target model material which have the highest matching degree with the target two-dimensional track; the client can also output a target model template and a target model material corresponding to the target two-dimensional track through the trained machine learning model, and the like.
The target two-dimensional track is matched or the process of outputting the result through the trained machine learning model can be directly operated on the client; the method can also be operated on a server, and at the moment, a client needs to communicate with the server to mutually transmit information such as a target two-dimensional track, a target model template, target model materials and the like.
For example, the client identifies the target two-dimensional track, determines that the corresponding target model template is a snake, and the target model is made of green patterns, and then the three-dimensional model displays the snake with the three-dimensional green patterns corresponding to the target two-dimensional track on the model page according to the target two-dimensional track coordinate set, the target model template and the target model material.
In some embodiments, the step of displaying, by the three-dimensional engine, the target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set, the target model template, and the target model material may include:
converting a target two-dimensional coordinate in the target two-dimensional track coordinate set according to the target model template to obtain a target three-dimensional coordinate set; and displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target three-dimensional coordinate set, the target model template and the target model material.
Determining a coordinate point on a plane needs to use a two-dimensional coordinate system, and determining a coordinate point in a three-dimensional space needs to use a three-dimensional coordinate system, so that a target two-dimensional track coordinate set for describing a target two-dimensional track needs to be converted at first when a target three-dimensional model is displayed, the target two-dimensional track coordinate set comprises a plurality of target two-dimensional coordinates, each target two-dimensional coordinate is converted into a three-dimensional coordinate, and the target three-dimensional coordinate set is obtained based on all three-dimensional coordinates. Then, the target three-dimensional model can be displayed on the model page according to the target three-dimensional coordinate set, the target model template and the target model material.
In some embodiments, the step of "transforming the target two-dimensional coordinates in the target two-dimensional trajectory coordinate set according to the target model template to obtain the target three-dimensional coordinate set" may include:
determining a coordinate transformation strategy corresponding to the target model template; and respectively converting the target two-dimensional coordinates in the target two-dimensional track coordinate set into corresponding target three-dimensional coordinates based on a coordinate transformation strategy so as to obtain a target three-dimensional coordinate set.
Specifically, the target model template indicates a shape of the target three-dimensional model, and the target three-dimensional coordinate set describes the shape of the target three-dimensional model, so that the process of obtaining the target three-dimensional coordinate set through transformation may be performed based on the target model template, for example, when the target model template of the target two-dimensional trajectory is a wall, the coordinate transformation policy of the target two-dimensional trajectory may be: and generating two target three-dimensional coordinates by using one target two-dimensional coordinate, wherein the number of the target three-dimensional coordinates in the target three-dimensional coordinate set finally obtained by the change strategy is twice of the target two-dimensional coordinates in the target two-dimensional track coordinate set.
In addition, when an application scene without a model template exists, the coordinate transformation strategy can also be set by a user, which is equivalent to that the user determines the shape of the target three-dimensional model by setting the coordinate transformation strategy, specifically, a control can be set on a model page, and prompt information and the like can be set around the control.
For example, a coordinate transformation strategy a corresponding to the target model template 1 may be determined, and based on the coordinate transformation strategy a, the target two-dimensional coordinates in the target two-dimensional trajectory coordinate set are transformed to obtain at least one target three-dimensional coordinate corresponding thereto, so as to obtain the target three-dimensional coordinate set 1.
In some embodiments, the step of displaying, by the three-dimensional engine, the target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target three-dimensional coordinate set, the target model template, and the target model material may include:
calling a target model creating interface in a three-dimensional engine based on a target three-dimensional coordinate set, a target model template and a target model material to generate a target three-dimensional model corresponding to a target two-dimensional track; and displaying the target three-dimensional model on the model page.
Specifically, the process of generating the target three-dimensional model by the three-dimensional engine includes calling a specific interface from the target three-dimensional engine, and implementing the processes of shape molding, material addition and the like of the target three-dimensional model by the interface, and the processes may have differences in different three-dimensional engines, for example, in babylon.
The method and the device can display a model page of a client, wherein the model page comprises a track drawing area; responding to drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying a target two-dimensional track on a model page based on the target two-dimensional track coordinate set; and displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target two-dimensional track coordinate set, wherein the three-dimensional model corresponding to the two-dimensional track drawn by the user can be displayed.
The method described in the above embodiments is further illustrated in detail by way of example.
The present application will take a three-dimensional model display system integrated in a computer device (e.g., a terminal) as an example, and introduces a three-dimensional model display method, as shown in fig. 8, fig. 8 is a schematic flow chart of the three-dimensional model display method provided in the embodiment of the present application. The three-dimensional model display method may include:
201. and the terminal displays a model page of the client, and the model page comprises a track drawing area.
For example, referring to fig. 9, the client may be an image processing client, the image processing client may include a model page y1, and the model page y1 may include a trajectory drawing area within which a user may perform a drawing operation.
202. The terminal responds to drawing operation in the track drawing area, an initial two-dimensional track coordinate set is determined, an initial two-dimensional track is displayed on the model page based on the initial two-dimensional track coordinate set, and the model page further comprises a track conversion selection control of the initial two-dimensional track.
The terminal can perform drawing operation in the track drawing area, for example, the terminal is a smart phone, a user can understand the drawing operation by sliding a finger on a screen, the drawing operation can be realized by a Canvas tag (Canvas) in a fifth generation HyperText (HTML5, HyperText Markup Language 5), specifically, a screen Canvas can be created based on the Canvas, the movement of the finger on the screen Canvas is monitored, and a two-dimensional coordinate passed by the finger when the finger moves is recorded.
In addition, a coordinate set obtained by model recognition, such as a face contour coordinate set recognized by a face recognition model, may also be received.
For example, referring to fig. 9, in response to a drawing operation of a user in a trajectory drawing area, the client obtains an initial two-dimensional trajectory coordinate set through monitoring and recording, and displays an initial two-dimensional trajectory yy1 on a model page y2 according to the initial two-dimensional trajectory coordinate set, where the model page further includes a conversion button 001.
203. The terminal responds to the triggering operation of the track conversion selection control, the initial two-dimensional track is converted on the basis of the initial two-dimensional track coordinate set to obtain a target two-dimensional track coordinate set, the target two-dimensional track is displayed on a model page on the basis of the target two-dimensional track coordinate set, and the model page further comprises a model template selection control.
For example, referring to fig. 9, in response to a trigger operation for the conversion button 001, the terminal converts the initial two-dimensional trajectory to obtain a target two-dimensional trajectory coordinate set, and displays a target two-dimensional trajectory yy2 on a model page based on the target two-dimensional trajectory coordinate set, where the model page y3 further includes a model template selection control 002.
204. And the terminal responds to the triggering operation aiming at the model template selection control to determine a target model template corresponding to the target two-dimensional track, and the model page further comprises a model material selection control.
For example, referring to fig. 9, in response to the terminal determining the target model template 1 corresponding to the target two-dimensional trajectory in response to the triggering operation on the model template selection control 002, the model page y3 further includes a model material selection control 003.
205. And the terminal responds to the trigger operation aiming at the model material selection control to determine the target model material corresponding to the target two-dimensional track.
For example, referring to fig. 9, in response to a trigger operation on the model material selection control 003, the terminal determines a target model material 1 corresponding to the target two-dimensional trajectory.
206. And the terminal converts the target two-dimensional coordinates in the target two-dimensional track coordinate set according to the target model template to obtain a target three-dimensional coordinate set.
For example, a target two-dimensional coordinate may be converted into a three-dimensional coordinate and assigned a value of 20 for the third dimension of the three-dimensional coordinate, or, for example, a target two-dimensional coordinate may be converted into two three-dimensional coordinates and assigned values of 20 and-20 for the third dimension of the two three-dimensional coordinates, respectively.
207. And the terminal displays a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target three-dimensional coordinate set, the target model template and the target model material.
For example, referring to fig. 9, the terminal displays a target three-dimensional trajectory yy3 corresponding to the target two-dimensional trajectory on the basis of the target three-dimensional coordinate set, the target model template 1 and the target model material 1 through the three-dimensional engine on the model page y 4.
Referring to fig. 10, in the present application, step S1 may obtain a two-dimensional coordinate trajectory, specifically, a canvas may be created in step S10canvas to monitor a user sliding screen, step S11 may record a user' S finger sliding screen operation on the screen to obtain a two-dimensional coordinate trajectory (initial two-dimensional trajectory coordinate set), step S2 may further process the two-dimensional coordinate to obtain a more natural two-dimensional coordinate trajectory combination (target two-dimensional trajectory coordinate set), where the two-dimensional coordinate trajectory to be processed may also be a two-dimensional coordinate trajectory (target two-dimensional trajectory coordinate set) generated in another manner, step S3 may generate a three-dimensional coordinate (target three-dimensional coordinate set) based on the two-dimensional coordinate trajectory to create a three-dimensional model texture, and step S4 may render a three-dimensional model (target three-dimensional model) to a web page (model page), and realizing three-dimensional interaction of the webpage.
According to the method and the device, the two-dimensional track drawn by the user in real time can be converted into the corresponding target three-dimensional model on the terminal, meanwhile, the initial two-dimensional track drawn by the user can be converted, the display effect is better, the target two-dimensional track more meeting the personalized requirements of the user can be obtained, the model template for selecting the target three-dimensional model and the control made of the model material can be provided, and then the target three-dimensional model corresponding to the target two-dimensional track can be obtained.
In order to better implement the three-dimensional model display method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the three-dimensional model display method. The terms are the same as those in the above three-dimensional model display method, and specific implementation details can be referred to the description in the method embodiment.
Fig. 11 is a schematic structural diagram of a three-dimensional model display apparatus according to an embodiment of the present application, as shown in fig. 11, wherein the three-dimensional model display apparatus may include a first display module 301, a second display module 302, and a third display module 303, wherein,
the first display module 301 is configured to display a model page of a client, where the model page includes a trajectory drawing area;
a second display module 302, configured to determine, in response to a drawing operation within a trajectory drawing area, a target two-dimensional trajectory coordinate set corresponding to the drawing operation, and display a target two-dimensional trajectory on a model page based on the target two-dimensional trajectory coordinate set;
and a third display module 303, configured to display, by using the three-dimensional engine, a target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set.
In some embodiments, the model page further includes a model template selection control, and the third display module includes a template determination sub-module and a display sub-module, wherein,
the template determination submodule is used for responding to the triggering operation of selecting the control aiming at the model template and determining a target model template corresponding to the target two-dimensional track;
and the display sub-module is used for displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page based on the target two-dimensional track coordinate set and the target model template through the three-dimensional engine.
In some embodiments, the model page further comprises a model material selection control, and the display sub-module comprises a material determination unit and a display unit, wherein,
the material determining unit is used for responding to the trigger operation aiming at the model material selection control and determining a target model material corresponding to the target two-dimensional track;
and the display unit is used for displaying the target three-dimensional model corresponding to the target two-dimensional track on the model page through the three-dimensional engine based on the target two-dimensional track coordinate set, the target model template and the target model material.
In some embodiments, the third display module includes an identification submodule and a display submodule, wherein,
the identification submodule is used for identifying a target two-dimensional track coordinate set and determining a target model template and a target model material of a target two-dimensional track;
and the display sub-module is used for displaying the target three-dimensional model corresponding to the target two-dimensional track on the model page through the three-dimensional engine based on the target two-dimensional track coordinate set, the target model template and the target model material.
In some embodiments, the second display module includes a determination sub-module, a translation sub-module, and a display sub-module, wherein,
the determining submodule is used for responding to the operation aiming at the track drawing area, determining an initial two-dimensional track coordinate set, displaying an initial two-dimensional track on a model page based on the initial two-dimensional track coordinate set, and the model page further comprises a track conversion selection control of the initial two-dimensional track;
the conversion sub-module is used for responding to the triggering operation of the track conversion selection control and converting the initial two-dimensional track based on the initial two-dimensional track coordinate set to obtain a target two-dimensional track coordinate set;
and the display sub-module is used for displaying the target two-dimensional track on the model page based on the target two-dimensional track coordinate set.
In some embodiments, the transformation module comprises a determination unit and a transformation unit, wherein,
the determining unit is used for responding to the triggering operation of the track conversion selection control and determining a track conversion strategy of the initial two-dimensional track;
and the conversion unit is used for converting the initial two-dimensional track based on the track conversion strategy and the initial two-dimensional track coordinate set to obtain a target two-dimensional track coordinate set.
In some embodiments, the conversion unit is specifically for:
determining Bessel control coordinate points of the initial two-dimensional track based on the track conversion strategy and the initial two-dimensional track coordinate set;
and generating a Bezier curve coordinate set of the Bezier curve through the Bezier control coordinate points of the initial two-dimensional track to obtain a target two-dimensional track coordinate set.
In some embodiments, the display unit comprises a transformant unit and a display subunit, wherein,
the transformation unit is used for transforming a target two-dimensional coordinate in the target two-dimensional track coordinate set according to the target model template to obtain a target three-dimensional coordinate set;
and the display subunit is used for displaying the target three-dimensional model corresponding to the target two-dimensional track on the model page through the three-dimensional engine based on the target three-dimensional coordinate set, the target model template and the target model material.
In some embodiments, the transformant unit is specifically used for:
determining a coordinate transformation strategy corresponding to the target model template;
and respectively converting the target two-dimensional coordinates in the target two-dimensional track coordinate set into corresponding target three-dimensional coordinates based on a coordinate transformation strategy so as to obtain a target three-dimensional coordinate set.
In some embodiments, the display subunit is specifically configured to:
calling a target model creating interface in a three-dimensional engine based on a target three-dimensional coordinate set, a target model template and a target model material to generate a target three-dimensional model corresponding to a target two-dimensional track;
and displaying the target three-dimensional model on the model page.
In this application, the first display module 301 displays a model page of a client, the model page includes a trajectory drawing area, then the second display module 302 determines a target two-dimensional trajectory coordinate set corresponding to a drawing operation in response to the drawing operation in the trajectory drawing area, and displays a target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set, and finally, the third display module 303 displays a target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set through a three-dimensional engine.
In the present application, the first display module 301 may display a model page of the client, where the model page includes a trajectory drawing area; the second display module 302 determines a target two-dimensional track coordinate set corresponding to a drawing operation in response to the drawing operation in the track drawing area, and displays a target two-dimensional track on a model page based on the target two-dimensional track coordinate set, and the third display module 303 displays a target three-dimensional model corresponding to the target two-dimensional track on the model page based on the target two-dimensional track coordinate set through a three-dimensional engine, where the application can display a three-dimensional model corresponding to a two-dimensional track drawn by a user.
In addition, an embodiment of the present application further provides a computer device, where the computer device may be a terminal or a server, as shown in fig. 12, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, and specifically:
the computer device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 12 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the computer device as a whole. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user pages, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The computer device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input unit 404, the input unit 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
displaying a model page of the client, wherein the model page comprises a track drawing area; responding to drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying a target two-dimensional track on a model page based on the target two-dimensional track coordinate set; and displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target two-dimensional track coordinate set.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application further provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the three-dimensional model display methods provided in the present application. For example, the computer program may perform the steps of:
displaying a model page of the client, wherein the model page comprises a track drawing area; responding to drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying a target two-dimensional track on a model page based on the target two-dimensional track coordinate set; and displaying a target three-dimensional model corresponding to the target two-dimensional track on a model page through a three-dimensional engine based on the target two-dimensional track coordinate set.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any three-dimensional model display method provided in the embodiments of the present application, the beneficial effects that can be achieved by any three-dimensional model display method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The three-dimensional model display method, the three-dimensional model display device, the three-dimensional model storage medium and the computer device provided by the embodiments of the present application are described in detail, and specific examples are applied to illustrate the principles and embodiments of the present application, and the description of the embodiments is only used to help understanding the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (13)
1. A method for displaying a three-dimensional model, comprising:
displaying a model page of a client, wherein the model page comprises a track drawing area;
responding to drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying a target two-dimensional track on the model page based on the target two-dimensional track coordinate set;
and displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target two-dimensional track coordinate set.
2. The method of claim 1, wherein the model page further comprises a model template selection control, and wherein displaying, by the three-dimensional engine, a target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set comprises:
responding to the trigger operation of selecting a control aiming at the model template, and determining a target model template corresponding to the target two-dimensional track;
and displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target two-dimensional track coordinate set and the target model template.
3. The method of claim 2, wherein the model page further comprises a model material selection control, and the displaying, by the three-dimensional engine, the target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set and the target model template comprises:
responding to the trigger operation aiming at the model material selection control, and determining a target model material corresponding to the target two-dimensional track;
and displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target two-dimensional track coordinate set, the target model template and the target model material.
4. The method of claim 1, wherein displaying, by the three-dimensional engine, a target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set comprises:
identifying the target two-dimensional track coordinate set, and determining a target model template and a target model material of the target two-dimensional track;
and displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page by the three-dimensional engine based on the target two-dimensional track coordinate set, the target model template and the target model material.
5. The method of claim 1, wherein in response to a draw operation within the trajectory drawing region, determining a target two-dimensional trajectory coordinate set corresponding to the draw operation and displaying a target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set comprises:
responding to the operation aiming at the track drawing area, determining an initial two-dimensional track coordinate set, and displaying an initial two-dimensional track on the model page based on the initial two-dimensional track coordinate set, wherein the model page further comprises a track conversion selection control of the initial two-dimensional track;
responding to the triggering operation of the track conversion selection control, and converting the initial two-dimensional track based on the initial two-dimensional track coordinate set to obtain a target two-dimensional track coordinate set;
and displaying the target two-dimensional track on the model page based on the target two-dimensional track coordinate set.
6. The method of claim 5, wherein the transforming the initial two-dimensional trajectory based on the initial two-dimensional trajectory coordinate set to obtain a target two-dimensional trajectory coordinate set in response to a triggering operation of a selection control for the trajectory transformation comprises:
determining a track conversion strategy of the initial two-dimensional track in response to a triggering operation of a selection control for the track conversion;
and converting the initial two-dimensional track based on the track conversion strategy and the initial two-dimensional track coordinate set to obtain a target two-dimensional track coordinate set.
7. The method of claim 6, wherein the transforming the initial two-dimensional trajectory based on the trajectory transformation strategy and the initial two-dimensional trajectory coordinate set to obtain a target two-dimensional trajectory coordinate set comprises:
determining Bessel control coordinate points of the initial two-dimensional track based on the track conversion strategy and the initial two-dimensional track coordinate set;
and generating a Bezier curve coordinate set of the Bezier curve through the Bezier control coordinate points of the initial two-dimensional track so as to obtain a target two-dimensional track coordinate set.
8. The method of claim 3, wherein the displaying, by the three-dimensional engine, the target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target two-dimensional trajectory coordinate set, the target model template, and the target model material comprises:
converting the target two-dimensional coordinates in the target two-dimensional track coordinate set according to the target model template to obtain a target three-dimensional coordinate set;
and displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target three-dimensional coordinate set, the target model template and the target model material.
9. The method of claim 8, wherein transforming target two-dimensional coordinates in the target two-dimensional trajectory coordinate set to obtain a target three-dimensional coordinate set according to the target model template comprises:
determining a coordinate transformation strategy corresponding to the target model template;
and respectively converting the target two-dimensional coordinates in the target two-dimensional track coordinate set into corresponding target three-dimensional coordinates based on the coordinate transformation strategy so as to obtain a target three-dimensional coordinate set.
10. The method of claim 8, wherein displaying, by the three-dimensional engine, the target three-dimensional model corresponding to the target two-dimensional trajectory on the model page based on the target three-dimensional coordinate set, the target model template, and the target model material comprises:
calling a target model creating interface in the three-dimensional engine based on the target three-dimensional coordinate set, the target model template and the target model material to generate a target three-dimensional model corresponding to the target two-dimensional track;
and displaying the target three-dimensional model on the model page.
11. A three-dimensional model display apparatus, comprising:
the first display module is used for displaying a model page of a client, and the model page comprises a track drawing area;
the second display module is used for responding to the drawing operation in the track drawing area, determining a target two-dimensional track coordinate set corresponding to the drawing operation, and displaying a target two-dimensional track on the model page based on the target two-dimensional track coordinate set;
and the third display module is used for displaying a target three-dimensional model corresponding to the target two-dimensional track on the model page through a three-dimensional engine based on the target two-dimensional track coordinate set.
12. A storage medium, characterized in that it stores a plurality of computer programs adapted to be loaded by a processor for performing the steps of the method according to any one of claims 1 to 10.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method according to any of claims 1 to 10 are implemented when the computer program is executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110019139.0A CN112686990B (en) | 2021-01-07 | 2021-01-07 | Three-dimensional model display method and device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110019139.0A CN112686990B (en) | 2021-01-07 | 2021-01-07 | Three-dimensional model display method and device, storage medium and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112686990A true CN112686990A (en) | 2021-04-20 |
CN112686990B CN112686990B (en) | 2024-08-02 |
Family
ID=75456294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110019139.0A Active CN112686990B (en) | 2021-01-07 | 2021-01-07 | Three-dimensional model display method and device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112686990B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114401443A (en) * | 2022-01-24 | 2022-04-26 | 脸萌有限公司 | Special effect video processing method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102810008A (en) * | 2012-05-16 | 2012-12-05 | 北京捷通华声语音技术有限公司 | Air input system, method and air input acquisition equipment |
CN103823554A (en) * | 2014-01-12 | 2014-05-28 | 青岛科技大学 | Digital virtual-real interaction system and digital virtual-real interaction method |
CN104267880A (en) * | 2014-10-24 | 2015-01-07 | 福建星网视易信息系统有限公司 | Method and equipment for displaying handwriting locus on 3D (three-dimensional) interface |
CN107179839A (en) * | 2017-05-23 | 2017-09-19 | 三星电子(中国)研发中心 | Information output method, device and equipment for terminal |
CN110163942A (en) * | 2018-07-18 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of image processing method and device |
CN111192368A (en) * | 2020-01-15 | 2020-05-22 | 石家庄中扬网络科技股份有限公司 | Three-dimensional model display method, terminal device and storage medium |
-
2021
- 2021-01-07 CN CN202110019139.0A patent/CN112686990B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102810008A (en) * | 2012-05-16 | 2012-12-05 | 北京捷通华声语音技术有限公司 | Air input system, method and air input acquisition equipment |
CN103823554A (en) * | 2014-01-12 | 2014-05-28 | 青岛科技大学 | Digital virtual-real interaction system and digital virtual-real interaction method |
CN104267880A (en) * | 2014-10-24 | 2015-01-07 | 福建星网视易信息系统有限公司 | Method and equipment for displaying handwriting locus on 3D (three-dimensional) interface |
CN107179839A (en) * | 2017-05-23 | 2017-09-19 | 三星电子(中国)研发中心 | Information output method, device and equipment for terminal |
CN110163942A (en) * | 2018-07-18 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of image processing method and device |
CN111192368A (en) * | 2020-01-15 | 2020-05-22 | 石家庄中扬网络科技股份有限公司 | Three-dimensional model display method, terminal device and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114401443A (en) * | 2022-01-24 | 2022-04-26 | 脸萌有限公司 | Special effect video processing method and device, electronic equipment and storage medium |
CN114401443B (en) * | 2022-01-24 | 2023-09-01 | 脸萌有限公司 | Special effect video processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112686990B (en) | 2024-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110390704B (en) | Image processing method, image processing device, terminal equipment and storage medium | |
CN111028330B (en) | Three-dimensional expression base generation method, device, equipment and storage medium | |
US10860838B1 (en) | Universal facial expression translation and character rendering system | |
Betancourt et al. | The evolution of first person vision methods: A survey | |
EP4207080A1 (en) | Avatar generation method, apparatus and device, and medium | |
CN113362263B (en) | Method, apparatus, medium and program product for transforming an image of a virtual idol | |
CN109035415B (en) | Virtual model processing method, device, equipment and computer readable storage medium | |
CN111643899A (en) | Virtual article display method and device, electronic equipment and storage medium | |
KR101977893B1 (en) | Digital actor managing method for image contents | |
CN113709543A (en) | Video processing method and device based on virtual reality, electronic equipment and medium | |
KR101523328B1 (en) | Method of providing pose-library for three-dimensional animation character, apparatus performing the same and storage media storing the same | |
CN113610953A (en) | Information processing method and device and computer readable storage medium | |
CN113824982B (en) | Live broadcast method, live broadcast device, computer equipment and storage medium | |
CN112686990B (en) | Three-dimensional model display method and device, storage medium and computer equipment | |
Ekmen et al. | From 2D to 3D real-time expression transfer for facial animation | |
KR20210073428A (en) | Method and System for restoring objects and background and creating your own character for reality-based Social Network Services | |
CN112149599A (en) | Expression tracking method and device, storage medium and electronic equipment | |
CN115984943B (en) | Facial expression capturing and model training method, device, equipment, medium and product | |
CN111580658A (en) | AR-based conference method and device and electronic equipment | |
CN116934959A (en) | Particle image generation method and device based on gesture recognition, electronic equipment and medium | |
CN112435316B (en) | Method and device for preventing mold penetration in game, electronic equipment and storage medium | |
CN117808934A (en) | Data processing method and related equipment | |
Cannavò et al. | A sketch-based interface for facial animation in immersive virtual reality | |
CN111385489B (en) | Method, device and equipment for manufacturing short video cover and storage medium | |
CN115953520B (en) | Recording and playback method and device for virtual scene, electronic equipment and 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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40042027 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |