Display method and device of virtual three-dimensional model, storage medium and electronic device
By adjusting the lens angle and distance of the virtual camera in the game scene, the depth changes of the virtual three-dimensional model are solved, and the problem of the lack of 3D immersion in the display of virtual three-dimensional models in the prior art is solved, which improves the player experience.
Patent Information
- Application Number
- CN202411049285.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-19
AI Technical Summary
The prior art lacks 3D immersion when displaying virtual three-dimensional models, resulting in poor player gaming experience.
By using a virtual camera to shoot a virtual three-dimensional model in a game scene, and adjusting the lens angle and distance in response to the lens zoom operation, a smooth transition of viewing angle is achieved, thereby presenting depth changes in the game scene.
It improves the 3D immersion and player gaming experience of the virtual three-dimensional model, and solves the problem of lack of three-dimensionality when displaying the virtual three-dimensional model.
Smart Images

Figure CN118976243A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a display method, device, storage medium and electronic device for a virtual three-dimensional model. Background Art
[0002] With the vigorous development of game development technology, three-dimensional (3D) games have gradually become mainstream. In 3D games, players can more conveniently view the details or overall picture of the virtual three-dimensional model in the game through the zoom function, so as to better understand the game world and make corresponding decisions. The implementation of the zoom function in the relevant technology usually depends on the support of the game engine. Players can adjust the distance of the virtual camera lens through gestures or keyboard shortcuts to achieve full and partial perspective observation of the virtual three-dimensional model. However, the model performance under this lens processing method is close to the 2D game experience due to the lack of depth change, resulting in the inability to truly feel its three-dimensional sense when observing the virtual three-dimensional model, thereby affecting the user's immersion and experience.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] At least some embodiments of the present application provide a method, device, storage medium and electronic device for displaying a virtual three-dimensional model, so as to at least solve the technical problems in the related art of lack of 3D immersion and poor player gaming experience when displaying a virtual three-dimensional model.
[0005] According to one embodiment of the present application, a method for displaying a virtual three-dimensional model is provided, wherein a game scene screen is obtained by photographing a virtual camera in a game scene, and the method for displaying a virtual three-dimensional model comprises: displaying the currently photographed virtual three-dimensional model at an initial viewing angle in the game scene screen; determining a lens adjustment method of the virtual camera in response to a lens zoom operation, wherein the lens adjustment method is used to determine a change in lens angle and lens distance of the virtual camera in photographing the virtual three-dimensional model; adjusting the initial viewing angle to a target viewing angle based on the lens adjustment method; and displaying the virtual three-dimensional model at the target viewing angle in the game scene screen.
[0006] According to one embodiment of the present application, a display device for a virtual three-dimensional model is also provided. A game scene screen is obtained by shooting with a virtual camera in a game scene. The display device for the virtual three-dimensional model includes: a first display module, used to display the currently shot virtual three-dimensional model at an initial viewing angle in the game scene screen; a determination module, used to determine the lens adjustment method of the virtual camera in response to a lens zoom operation, wherein the lens adjustment method is used to determine the lens angle change and lens distance change of the virtual camera; an adjustment module, used to adjust the initial viewing angle to a target viewing angle based on the lens adjustment method; and a second display module, used to display the virtual three-dimensional model at the target viewing angle in the game scene screen.
[0007] According to one embodiment of the present application, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned virtual three-dimensional model display method in each embodiment of the present application when running.
[0008] According to one embodiment of the present application, an electronic device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the above-mentioned virtual three-dimensional model display method in each embodiment of the present application.
[0009] According to another aspect of the embodiments of the present application, a computer program product is also provided, including a computer program, which implements the above-mentioned virtual three-dimensional model display method in each embodiment of the present application when executed by a processor.
[0010] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned virtual three-dimensional model display method in each embodiment of the present application is implemented.
[0011] According to another aspect of the embodiments of the present application, a computer program is also provided. When the computer program is executed by a processor, the display method of the virtual three-dimensional model in each embodiment of the present application is implemented.
[0012] In at least some embodiments of the present application, the currently captured virtual three-dimensional model is displayed at an initial viewing angle in a game scene screen, and then in response to a lens zoom operation, a lens adjustment method of the virtual camera is determined, and the lens adjustment method is used to determine the lens angle change and lens distance change of the virtual camera shooting the virtual three-dimensional model. Subsequently, based on the lens adjustment method, the initial viewing angle is adjusted to a target viewing angle, and the virtual three-dimensional model is displayed at the target viewing angle in the game scene screen, thereby achieving the purpose of presenting depth changes in the process of switching viewing angles to display the virtual three-dimensional model, thereby achieving the technical effect of enhancing the 3D immersion and player gaming experience when displaying the virtual three-dimensional model, and thus solving the technical problems of lack of 3D immersion and poor player gaming experience when displaying virtual three-dimensional models in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0014] Figure 1 It is a schematic diagram of a display method of a virtual three-dimensional model according to the related art;
[0015] Figure 2 It is a hardware structure block diagram of a mobile terminal of a method for displaying a virtual three-dimensional model according to an embodiment of the present application;
[0016] Figure 3 is a flow chart of a method for displaying a virtual three-dimensional model according to one embodiment of the present application;
[0017] Figure 4 is a schematic diagram of a method for displaying a virtual three-dimensional model according to one embodiment of the present application;
[0018] Figure 5 is a schematic diagram of another method for displaying a virtual three-dimensional model according to one embodiment of the present application;
[0019] Figure 6 is a schematic diagram of another method for displaying a virtual three-dimensional model according to one embodiment of the present application;
[0020] Figure 7 is a schematic diagram of an initial viewing angle of a virtual three-dimensional model according to one embodiment of the present application;
[0021] Figure 8 is a schematic diagram of an intermediate perspective of a virtual three-dimensional model according to one embodiment of the present application;
[0022] Fig. 9is a target viewing angle schematic diagram of a virtual three-dimensional model according to one embodiment of the present application;
[0023] Fig.10 is a structural block diagram of a display device for a virtual three-dimensional model according to one embodiment of the present application;
[0024] Fig.11 is a schematic diagram of an electronic device according to one embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] The implementation of the zoom function in related technologies usually relies on the support of the game engine. Players can adjust the distance of the virtual camera lens through gestures or keyboard shortcuts, thereby achieving full and partial perspective observation of the virtual three-dimensional model.
[0028] like Figure 1 As shown, players can zoom in or out with two fingers, and adjust the distance of the lens with the center of the two fingers as the center point to observe the virtual 3D model. When the virtual camera lens is zoomed in or out, the center of the lens is fixed, resulting in a lack of depth change in the model performance of the virtual 3D model, which is close to a 2D experience. In addition, if the virtual 3D model is large, after the virtual camera lens is zoomed in, the observed object can only see part of itself from a positive perspective, which cannot meet the needs of 3D presence and immersion.
[0029] The above method embodiments involved in the present disclosure can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smart phone, a tablet computer, a handheld computer, a mobile Internet device, a PAD, a game console and other terminal devices. Figure 2 FIG. 1 is a hardware structure block diagram of a mobile terminal for displaying a virtual three-dimensional model according to an embodiment of the present application. Figure 2 As shown, the mobile terminal may include one or more ( Figure 2 Only one is shown in the figure) a processor 202 (the processor 202 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a field programmable logic device (FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, etc.) and a memory 204 for storing data. In one embodiment of the present application, it may also include: an input and output device 208 and a display device 210.
[0030] In some optional embodiments mainly based on game scenarios, the above-mentioned device can also provide a human-computer interaction interface with a touch-sensitive surface, which can sense finger contact and / or gestures to perform human-computer interaction with a graphical user interface (GUI). The human-computer interaction function may include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interface, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or readable storage medium executable by one or more processors.
[0031] Those skilled in the art will understand that Figure 2 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown.
[0032] According to one embodiment of the present application, an embodiment of a method for displaying a virtual three-dimensional model is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0033] Figure 3is a flow chart of a method for displaying a virtual three-dimensional model according to one embodiment of the present application, wherein a game scene image is obtained by shooting with a virtual camera in the game scene, such as Figure 3 As shown, the method comprises the following steps:
[0034] Step S31, displaying the currently captured virtual three-dimensional model at an initial viewing angle in the game scene screen;
[0035] Step S32, in response to the lens zoom operation, determining a lens adjustment mode of the virtual camera, wherein the lens adjustment mode is used to determine a change in lens angle and lens distance of the virtual camera for photographing the virtual three-dimensional model;
[0036] Step S33, adjusting the initial viewing angle to the target viewing angle based on the lens adjustment method;
[0037] Step S34, displaying the virtual three-dimensional model in the game scene screen from a target perspective.
[0038] The above-mentioned initial perspective can be the first-person perspective or third-person perspective of the player or observer in the game scene screen, that is, the position and angle of the player at the beginning of the game. The above-mentioned virtual three-dimensional model can be a three-dimensional model of objects such as characters, props, and scenes in the game, which is made by computer graphics technology and has a three-dimensional sense and realism. In the game scene, the player can observe the virtual three-dimensional model through the initial perspective, and interact and explore it.
[0039] The above-mentioned lens zooming operation can be implemented, but not limited to, by means of a mouse wheel, a slider, shortcut keys, touch screen gestures, virtual buttons, and the like. For example, a user can use a mouse wheel to implement the lens zooming operation, scrolling forward to zoom in, and scrolling backward to zoom out. Add a slider in the interface of the virtual camera, and the user can adjust the zoom ratio of the lens by dragging the slider. By setting shortcut keys to implement the lens zooming operation, the user can zoom in or out the lens by pressing a specific key combination. For devices that support touch screens, the user can implement the lens zooming operation by pinching or spreading the finger gestures. Add zoom in and zoom out buttons in the virtual camera interface, and the user can click the button to implement the lens zooming operation. Through the above interactive methods, the user can easily zoom in and out the lens of the virtual camera, improving the user experience and convenience of operation.
[0040] In response to the lens zoom operation, determine the lens adjustment method of the virtual camera. The virtual camera is a tool used in the game to simulate the functions of a real camera. It can control the perspective and lens in the game, allowing players to observe and explore different scenes in the game. The virtual camera can be controlled in different ways, such as free perspective, fixed perspective, follow the player, etc., to provide a better gaming experience and visual effects.
[0041] The above-mentioned lens adjustment method is used to determine the change in lens angle and lens distance of the virtual camera shooting the virtual three-dimensional model. Exemplarily, there is a correlation between the change in lens angle of the virtual camera shooting the virtual three-dimensional model and the change in lens distance, that is, the lens angle of the virtual camera shooting the virtual three-dimensional model will change with the change in lens distance. For example, in a science fiction adventure game, the virtual three-dimensional model is a planet model to be landed, and the virtual camera in the virtual game scene can follow the player's perspective. In response to the lens zoom operation, the virtual game character controlled by the player can land on the planet model from a high altitude. The lens distance of the virtual camera shooting the planet model will gradually decrease, and the lens angle of the virtual three-dimensional model will also change with the change in lens distance.
[0042] Based on the lens adjustment method, the initial perspective is adjusted to the target perspective, and the target perspective is the game perspective obtained after the player performs the lens zoom operation. Exemplarily, in the game scene screen, when the virtual three-dimensional model is displayed with the target perspective, first, the information of the target perspective is obtained, including the lens position, lens angle and zoom ratio, etc. Further, according to the information of the target perspective, the initial perspective is adjusted to the target perspective through the camera control script or camera component, and the smooth transition of the perspective can be achieved by interpolation operation or directly setting the position and rotation of the camera. The virtual three-dimensional model is loaded in the game scene and placed in the correct position and angle according to the information of the target perspective, so as to ensure that the virtual three-dimensional model interacts and merges with other elements of the game scene, so that it looks natural and real. Finally, the player can also test whether the adjusted perspective and virtual three-dimensional model meet the expected effect, and make fine adjustments and optimizations as needed to improve the visual experience and immersion of the game.
[0043] Based on the above steps S31 to S34, the currently captured virtual three-dimensional model is displayed at the initial viewing angle in the game scene screen, and then in response to the lens zoom operation, the lens adjustment method of the virtual camera is determined, and the lens adjustment method is used to determine the lens angle change and lens distance change of the virtual camera shooting the virtual three-dimensional model. Subsequently, based on the lens adjustment method, the initial viewing angle is adjusted to the target viewing angle, and the virtual three-dimensional model is displayed at the target viewing angle in the game scene screen, thereby achieving the purpose of presenting depth changes in the process of switching viewing angles to display the virtual three-dimensional model, thereby achieving the technical effect of enhancing the 3D immersion and player gaming experience when displaying the virtual three-dimensional model, and thus solving the technical problems of lack of 3D immersion and poor player gaming experience when displaying virtual three-dimensional models in related technologies.
[0044] The following is a further introduction to the display method of the virtual three-dimensional model in the embodiment of the present application.
[0045] Optionally, the method for displaying a virtual three-dimensional model in the embodiment of the present application further includes:
[0046] Step S301, obtaining contour information of a virtual three-dimensional model;
[0047] Step S302, determining an initial lens angle and an initial lens distance of the virtual camera based on the profile information;
[0048] Step S303, determining the initial shooting position of the virtual camera using the initial lens distance;
[0049] Step S304, at the initial shooting position, setting an initial viewing angle according to the initial lens angle.
[0050] The above-mentioned contour information can be used to determine the size of the virtual three-dimensional model, and can be obtained through edge detection algorithms or three-dimensional modeling applications according to needs and scenarios. Specifically, the edge detection algorithm processes the image multiple times, including Gaussian filtering, calculating gradients, non-maximum suppression, and double threshold processing, and finally obtains clear edge information. By performing edge detection on each face of the three-dimensional model, the contour information of the entire model can be obtained. The three-dimensional modeling application can directly generate an image or rendering result containing contour information by selecting the appropriate viewing angle and rendering settings, which is more suitable for situations where more intuitive contour information is required.
[0051] Optionally, the initial lens distance is the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
[0052] Optionally, the initial lens angle is the angle between the main optical axis of the virtual camera and the center line, and the center line is the line between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
[0053] Figure 4 is a schematic diagram of a method for displaying a virtual three-dimensional model according to one embodiment of the present application, such as Figure 4 As shown, after obtaining the contour information, the initial lens angle and initial lens distance of the virtual camera are determined based on the contour information. Specifically, first, the model center of the virtual three-dimensional model is determined according to the contour information, for example, by calculating the center point of the contour boundary box or according to the geometric shape of the contour. Then, the distance between the lens center of the virtual camera and the model center is determined as the initial lens distance. Next, the angle between the main optical axis of the virtual camera and the center line is calculated as the initial lens angle, thereby determining the starting parameters corresponding to the initial viewing angle of the virtual camera, so as to further adjust and optimize to meet specific viewing angle requirements.
[0054] Furthermore, the initial shooting position of the virtual camera is determined by using the initial lens distance, and at the initial shooting position, the initial viewing angle is set according to the initial lens angle. The initial lens angle determines the initial field of view of the virtual camera, thereby affecting the final image effect. By reasonably setting the initial lens distance and initial lens angle, it can be ensured that the virtual camera captures the expected image at the initial shooting position, thereby achieving a more vivid and realistic virtual scene.
[0055] Based on the above optional embodiment, by obtaining the contour information of the virtual three-dimensional model, it can help determine the initial lens angle and initial lens distance of the virtual camera, so as to achieve a more accurate and natural virtual scene display. By using the initial lens distance to determine the initial shooting position of the virtual camera, and setting the initial viewing angle at the initial shooting position according to the initial lens angle, the virtual scene can be made to look more real and fascinating, thereby improving the user's immersion and experience.
[0056] Optionally, in step S32, in response to the lens zoom operation, determining the lens adjustment mode of the virtual camera includes:
[0057] Step S321, in response to the lens zoom operation, obtaining relative position information between the first touch point and the second touch point, wherein the relative position information is used to determine that the first touch point and the second touch point are close to each other, or to determine that the first touch point and the second touch point are far away from each other;
[0058] Step S322, determining the lens adjustment method of the virtual camera based on the relative position information.
[0059] The first touch point and the second touch point are the touch points corresponding to the user's two fingers on the graphical user interface. The relative position information between the first touch point and the second touch point can be obtained by calculating the distance between the two touch points. When the distance between the two touch points is shortened, it can be determined that the user is performing a zoom-out operation, and when the distance between the two touch points is increased, it can be determined that the user is performing a zoom-in operation. According to the relative position information, the zoom ratio of the lens can be adjusted accordingly to achieve the effect expected by the user.
[0060] Based on the above optional embodiment, by responding to the lens zoom operation, the relative position information between the first touch point and the second touch point is obtained, and then the lens adjustment method of the virtual camera is determined based on the relative position information, so that the lens zoom function of the virtual camera can be controlled through gesture operation, thereby improving the user's interactive experience with the virtual environment. At the same time, determining the lens adjustment method based on the relative position information can control the lens more accurately and flexibly, so that the user can browse and observe the virtual scene more conveniently, further improving the user experience and operation efficiency.
[0061] Optionally, in step S322, determining the lens adjustment method of the virtual camera based on the relative position information includes:
[0062] Step S3221, determining the lens adjustment direction of the virtual camera based on the relative position information;
[0063] Step S3222, adjusting the initial lens distance to the target lens distance according to the lens adjustment direction, and adjusting the initial lens angle to the target lens angle, so as to determine the lens adjustment method.
[0064] The above-mentioned virtual camera lens adjustment direction includes zooming out the virtual camera lens from the initial shooting position, or zooming in the virtual camera lens from the initial shooting position.
[0065] Optionally, there is a negative correlation between the change in lens angle and the change in lens distance.
[0066] Specifically, when the distance S between the lens center of the virtual camera and the model center of the virtual three-dimensional model is smaller, the angle θ between the main optical axis of the virtual camera and the center line is larger; when the distance S between the lens center of the virtual camera and the model center of the virtual three-dimensional model is larger, the angle θ between the main optical axis of the virtual camera and the center line is smaller, and when the S value reaches the maximum, θ is 0.
[0067] Figure 5 is a schematic diagram of another method for displaying a virtual three-dimensional model according to one embodiment of the present application, such as Figure 5 As shown in the figure, taking the lens adjustment direction of zooming out the virtual camera from the initial shooting position as an example, the virtual camera is Figure 4 The initial lens distance shown begins to move away, that is, the distance S between the lens center of the virtual camera and the model center of the virtual three-dimensional model gradually increases, and the angle θ between the main optical axis of the virtual camera and the center line gradually decreases.
[0068] Figure 6 is a schematic diagram of another method for displaying a virtual three-dimensional model according to one embodiment of the present application, such as Figure 6 As shown, when the distance S between the lens center of the virtual camera and the model center of the virtual three-dimensional model gradually reaches a maximum value, the angle θ between the main optical axis of the virtual camera and the center line is 0, that is, the main optical axis of the virtual camera coincides with the center line.
[0069] Based on the above optional embodiments, the lens adjustment direction of the virtual camera is determined based on the relative position information, and then the initial lens distance is adjusted to the target lens distance according to the lens adjustment direction, and the initial lens angle is adjusted to the target lens angle to determine the lens adjustment method, thereby further improving the accuracy and stability of the lens adjustment and enhancing the player's 3D immersion.
[0070] Optionally, in step S3221, determining the lens adjustment direction of the virtual camera based on the relative position information includes: in response to the relative position information indicating that the first touch point and the second touch point are close to each other, determining the lens adjustment direction is to zoom in the lens of the virtual camera from an initial shooting position; and / or, in response to the relative position information indicating that the first touch point and the second touch point are away from each other, determining the lens adjustment direction is to zoom in the lens of the virtual camera from the initial shooting position.
[0071] Specifically, the lens adjustment direction of the virtual camera is determined according to the relative position information of the first touch point and the second touch point. If the two touch points are close to each other, it means that the lens is to be zoomed out, that is, the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model is reduced to capture a wider picture; if the two touch points are far away from each other, it means that the lens is to be zoomed in, that is, the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model is enlarged to capture a more detailed picture.
[0072] Optionally, in step S33, based on the lens adjustment method, adjusting the initial viewing angle to the target viewing angle includes:
[0073] Step S331, determining the target shooting position of the virtual camera using the target lens distance corresponding to the lens adjustment method;
[0074] Step S332, at the target shooting position, adjusting the initial viewing angle to the target viewing angle according to the target lens angle corresponding to the lens adjustment method.
[0075] Figure 7 is a schematic diagram of an initial viewing angle of a virtual three-dimensional model according to one embodiment of the present application, such as Figure 7 As shown, at the initial shooting position under the initial viewing angle, the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model is relatively close, and the angle between the main optical axis of the virtual camera and the center line is relatively large, so the local details of the virtual three-dimensional model can be clearly displayed.
[0076] Figure 8 is a schematic diagram of an intermediate perspective of a virtual three-dimensional model according to one embodiment of the present application, such as Figure 8 As shown, in response to the lens zoom operation, the lens of the virtual camera is pulled away from the initial shooting position. At the intermediate viewing angle, the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model becomes larger, and the angle between the main optical axis of the virtual camera and the center line becomes smaller, which can be displayed compared to Figure 7 A larger field of view for virtual 3D models.
[0077] Fig. 9is a schematic diagram of a target viewing angle of a virtual three-dimensional model according to one embodiment of the present application, such as Fig. 9 As shown, at the target shooting position, the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model is the largest, and the angle between the main optical axis of the virtual camera and the center line is 0, so the entire part of the virtual three-dimensional model can be displayed.
[0078] In by Figure 7 The initial viewing angle is shown Fig. 9 During the switching process of the target perspective shown, in response to the lens zoom operation, the lens adjustment method of the virtual camera is determined, thereby determining the lens angle change and lens distance change of the virtual camera shooting the virtual three-dimensional model, and then using the target lens distance corresponding to the lens adjustment method to determine the target shooting position of the virtual camera. At the target shooting position, the initial perspective is adjusted to the target perspective based on the target lens angle corresponding to the lens adjustment method. This allows the depth change of the virtual three-dimensional model to be reflected during the perspective switching process, better providing and conveying the sense of space of the virtual three-dimensional model, making the player more immersive, and thus bringing a better immersive adventure experience.
[0079] Optionally, a first imaging position of the lens center of the virtual camera at an initial viewing angle is different from a second imaging position of the lens center at a target viewing angle, wherein the first imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the initial viewing angle, and the second imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the target viewing angle.
[0080] Specifically, when the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model changes, the lens center of the virtual camera will move along the center line. In the related art, when the lens is zoomed in or out during a lens zoom operation, the lens center is fixed and the lens angle remains unchanged, resulting in a lack of depth change in the model performance of the virtual three-dimensional model, which is close to a 2D experience. In the embodiments of the present application, the lens center position and lens angle are different at different viewing angles, so that depth changes can be presented during the zoom display process of the virtual three-dimensional model, and the 3D immersion of the virtual three-dimensional model can be better presented in 3D games, further enhancing the player's gaming experience.
[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0082] In this embodiment, a display device for a virtual three-dimensional model is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0083] Fig.10 is a structural block diagram of a display device for a virtual three-dimensional model according to one embodiment of the present application, wherein a game scene image is obtained by shooting a virtual camera in a game scene, such as Fig.10 As shown, the device comprises:
[0084] The first display module 1001 is used to display the currently captured virtual three-dimensional model in the game scene screen at an initial viewing angle;
[0085] A determination module 1002 is used to determine a lens adjustment mode of the virtual camera in response to a lens zoom operation, wherein the lens adjustment mode is used to determine a change in lens angle and lens distance of the virtual camera for photographing a virtual three-dimensional model;
[0086] An adjustment module 1003, configured to adjust the initial viewing angle to a target viewing angle based on a lens adjustment method;
[0087] The second display module 1004 is used to display the virtual three-dimensional model in the game scene screen at a target perspective.
[0088] Optionally, the display device of the virtual three-dimensional model also includes: an acquisition module 1005, which is used to obtain contour information of the virtual three-dimensional model; the determination module 1002 is also used to determine the initial lens angle and initial lens distance of the virtual camera based on the contour information; the determination module 1002 is also used to determine the initial shooting position of the virtual camera using the initial lens distance; the setting module 1006 is also used to set the initial viewing angle at the initial shooting position according to the initial lens angle.
[0089] Optionally, the initial lens distance is the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
[0090] Optionally, the initial lens angle is the angle between the main optical axis of the virtual camera and the center line, and the center line is the line between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
[0091] Optionally, the determination module 1002 is also used to: in response to a lens zoom operation, obtain relative position information between the first touch point and the second touch point, wherein the relative position information is used to determine that the first touch point and the second touch point are close to each other, or to determine that the first touch point and the second touch point are far away from each other; determine the lens adjustment method of the virtual camera based on the relative position information.
[0092] Optionally, the determination module 1002 is further used to: determine the lens adjustment direction of the virtual camera based on the relative position information; adjust the initial lens distance to the target lens distance according to the lens adjustment direction, and adjust the initial lens angle to the target lens angle to determine the lens adjustment method.
[0093] Optionally, the determination module 1002 is also used to: in response to the relative position information indicating that the first touch point and the second touch point are close to each other, determine that the lens adjustment direction is to zoom out the lens of the virtual camera from the initial shooting position; and / or, in response to the relative position information indicating that the first touch point and the second touch point are away from each other, determine that the lens adjustment direction is to zoom in the lens of the virtual camera from the initial shooting position.
[0094] Optionally, the adjustment module 1003 is further used to: determine the target shooting position of the virtual camera using the target lens distance corresponding to the lens adjustment method; at the target shooting position, adjust the initial viewing angle to the target viewing angle according to the target lens angle corresponding to the lens adjustment method.
[0095] Optionally, there is a negative correlation between the change in lens angle and the change in lens distance.
[0096] Optionally, a first imaging position of the lens center of the virtual camera at an initial viewing angle is different from a second imaging position of the lens center at a target viewing angle, wherein the first imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the initial viewing angle, and the second imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the target viewing angle.
[0097] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0098] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0099] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0100] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.
[0101] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0102] S1, in the game scene screen, displaying the currently captured virtual 3D model at the initial viewing angle;
[0103] S2, in response to the lens zoom operation, determining a lens adjustment mode of the virtual camera, wherein the lens adjustment mode is used to determine a change in lens angle and lens distance of the virtual camera for photographing the virtual three-dimensional model;
[0104] S3, adjusting the initial viewing angle to the target viewing angle based on the lens adjustment method;
[0105] S4, in the game scene screen, the virtual three-dimensional model is displayed from a target perspective.
[0106] Optionally, the computer-readable storage medium is also configured to store program codes for executing the following steps: obtaining contour information of a virtual three-dimensional model; determining an initial lens angle and an initial lens distance of a virtual camera based on the contour information; determining an initial shooting position of the virtual camera using the initial lens distance; and at the initial shooting position, setting an initial viewing angle based on the initial lens angle.
[0107] Optionally, the initial lens distance is the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
[0108] Optionally, the initial lens angle is the angle between the main optical axis of the virtual camera and the center line, and the center line is the line between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
[0109] Optionally, the computer-readable storage medium is also configured to store program codes for executing the following steps: in response to a lens zoom operation, obtaining relative position information between a first touch point and a second touch point, wherein the relative position information is used to determine that the first touch point and the second touch point are close to each other, or to determine that the first touch point and the second touch point are far away from each other; and determining a lens adjustment method for the virtual camera based on the relative position information.
[0110] Optionally, the above-mentioned computer-readable storage medium is also configured to store program codes for executing the following steps: determining the lens adjustment direction of the virtual camera based on the relative position information; adjusting the initial lens distance to the target lens distance according to the lens adjustment direction, and adjusting the initial lens angle to the target lens angle to determine the lens adjustment method.
[0111] Optionally, the computer-readable storage medium is also configured to store program codes for executing the following steps: in response to the relative position information indicating that the first touch point and the second touch point are close to each other, determining that the lens adjustment direction is to zoom out the lens of the virtual camera from the initial shooting position; and / or, in response to the relative position information indicating that the first touch point and the second touch point are away from each other, determining that the lens adjustment direction is to zoom in the lens of the virtual camera from the initial shooting position.
[0112] Optionally, the computer-readable storage medium is also configured to store program codes for executing the following steps: determining the target shooting position of the virtual camera using the target lens distance corresponding to the lens adjustment method; at the target shooting position, adjusting the initial viewing angle to the target viewing angle according to the target lens angle corresponding to the lens adjustment method.
[0113] Optionally, there is a negative correlation between the change in lens angle and the change in lens distance.
[0114] Optionally, a first imaging position of the lens center of the virtual camera at an initial viewing angle is different from a second imaging position of the lens center at a target viewing angle, wherein the first imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the initial viewing angle, and the second imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the target viewing angle.
[0115] In the computer-readable storage medium of this embodiment, the currently captured virtual three-dimensional model is displayed at an initial viewing angle in the game scene screen, and then in response to the lens zoom operation, the lens adjustment method of the virtual camera is determined, and the lens adjustment method is used to determine the lens angle change and lens distance change of the virtual camera shooting the virtual three-dimensional model. Subsequently, based on the lens adjustment method, the initial viewing angle is adjusted to the target viewing angle, and the virtual three-dimensional model is displayed at the target viewing angle in the game scene screen, thereby achieving the purpose of presenting depth changes in the process of switching viewing angles to display the virtual three-dimensional model, thereby achieving the technical effect of enhancing the 3D immersion and player gaming experience when displaying the virtual three-dimensional model, and thus solving the technical problems of lack of 3D immersion and poor player gaming experience when displaying virtual three-dimensional models in related technologies.
[0116] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0117] In an exemplary embodiment of the present application, a program product capable of implementing the above method of the present embodiment is stored on a computer-readable storage medium. In some possible implementations, various aspects of the embodiments of the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present application described in the above "Exemplary Method" section of the present embodiment.
[0118] According to the program product for implementing the above method in the embodiment of the present application, it can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the embodiment of the present application is not limited thereto. In the embodiment of the present application, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0119] The program product may be in any combination of one or more computer-readable media. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive) of computer-readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0120] It should be noted that the program code contained in the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0121] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0122] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0123] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0124] S1, in the game scene screen, displaying the currently captured virtual 3D model at the initial viewing angle;
[0125] S2, in response to the lens zoom operation, determining a lens adjustment mode of the virtual camera, wherein the lens adjustment mode is used to determine a change in lens angle and lens distance of the virtual camera for photographing the virtual three-dimensional model;
[0126] S3, adjusting the initial viewing angle to the target viewing angle based on the lens adjustment method;
[0127] S4, in the game scene screen, the virtual three-dimensional model is displayed from a target perspective.
[0128] Optionally, the processor can also be configured to perform the following steps through a computer program: obtaining contour information of a virtual three-dimensional model; determining an initial lens angle and an initial lens distance of the virtual camera based on the contour information; determining an initial shooting position of the virtual camera using the initial lens distance; and at the initial shooting position, setting an initial viewing angle based on the initial lens angle.
[0129] Optionally, the initial lens distance is the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
[0130] Optionally, the initial lens angle is the angle between the main optical axis of the virtual camera and the center line, and the center line is the line between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
[0131] Optionally, the processor can also be configured to perform the following steps through a computer program: in response to a lens zoom operation, obtaining relative position information between the first touch point and the second touch point, wherein the relative position information is used to determine that the first touch point and the second touch point are close to each other, or to determine that the first touch point and the second touch point are far away from each other; and determining a lens adjustment method for the virtual camera based on the relative position information.
[0132] Optionally, the processor may also be configured to perform the following steps through a computer program: determining the lens adjustment direction of the virtual camera based on the relative position information; adjusting the initial lens distance to the target lens distance according to the lens adjustment direction, and adjusting the initial lens angle to the target lens angle to determine the lens adjustment method.
[0133] Optionally, the processor may also be configured to perform the following steps through a computer program: in response to relative position information indicating that the first touch point and the second touch point are close to each other, determining that the lens adjustment direction is to zoom in the lens of the virtual camera from an initial shooting position; and / or, in response to relative position information indicating that the first touch point and the second touch point are away from each other, determining that the lens adjustment direction is to zoom in the lens of the virtual camera from an initial shooting position.
[0134] Optionally, the processor can also be configured to perform the following steps through a computer program: determining the target shooting position of the virtual camera using the target lens distance corresponding to the lens adjustment method; at the target shooting position, adjusting the initial viewing angle to the target viewing angle according to the target lens angle corresponding to the lens adjustment method.
[0135] Optionally, there is a negative correlation between the change in lens angle and the change in lens distance.
[0136] Optionally, a first imaging position of the lens center of the virtual camera at an initial viewing angle is different from a second imaging position of the lens center at a target viewing angle, wherein the first imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the initial viewing angle, and the second imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the target viewing angle.
[0137] In the electronic device of this embodiment, the currently captured virtual three-dimensional model is displayed at the initial viewing angle in the game scene screen, and then the lens adjustment method of the virtual camera is determined in response to the lens zoom operation. The lens adjustment method is used to determine the lens angle change and lens distance change of the virtual camera shooting the virtual three-dimensional model. Subsequently, based on the lens adjustment method, the initial viewing angle is adjusted to the target viewing angle, and the virtual three-dimensional model is displayed at the target viewing angle in the game scene screen, thereby achieving the purpose of presenting depth changes in the process of switching viewing angles to display the virtual three-dimensional model, thereby achieving the technical effect of enhancing the 3D immersion and player gaming experience when displaying the virtual three-dimensional model, and thus solving the technical problems of lack of 3D immersion and poor player gaming experience when displaying virtual three-dimensional models in related technologies.
[0138] Fig.11 is a schematic diagram of an electronic device according to an embodiment of the present application. Fig.11 As shown, the electronic device 1100 is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0139] like Fig.11 As shown, the electronic device 1100 is in the form of a general computing device. The components of the electronic device 1100 may include but are not limited to: the at least one processor 1110, the at least one memory 1120, a bus 1130 connecting different system components (including the memory 1120 and the processor 1110), and a display 1120.
[0140] The memory 1120 stores program codes, which can be executed by the processor 1110, so that the processor 1110 executes the steps described in the method part of the embodiment of the present application according to various exemplary embodiments of the present application.
[0141] The memory 1120 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 11201 and / or a cache memory unit 11202, and may further include a read-only memory unit (ROM) 11203, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
[0142] In some examples, the memory 1120 may also include a program / utility 11204 having a set (at least one) of program modules 11205, such program modules 11205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. The memory 1120 may further include a memory remotely disposed relative to the processor 1110, and these remote memories may be connected to the electronic device 1100 via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0143] The bus 1130 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a local bus of the processor 1110, or a bus using any of a variety of bus architectures.
[0144] The display 1120 may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the electronic device 1100 .
[0145] Optionally, the electronic device 1100 may also communicate with one or more external devices 1200 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1100, and / or, may communicate with any device that enables the electronic device 1100 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 1150. Furthermore, the electronic device 1100 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 1160. Fig.11 As shown, the network adapter 1160 communicates with other modules of the electronic device 1100 via the bus 1130. It should be understood that although Fig.11 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0146] The electronic device 1100 may further include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply and / or a camera.
[0147] It can be understood by those skilled in the art that Fig.11The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig.11 More or fewer components as shown, or with Figure 2 The memory 1120 may be used to store computer programs and corresponding data, such as the computer programs and corresponding data corresponding to the method for displaying a virtual three-dimensional model in the embodiment of the present application. The processor 1110 executes various functional applications and data processing by running the computer programs stored in the memory 1120, that is, implementing the method for displaying a virtual three-dimensional model.
[0148] The embodiment of the present application further provides a computer program product. Optionally, in this embodiment, the computer program product may include a computer program, and the computer program implements the method provided in the embodiment when executed by a processor.
[0149] Optionally, the computer program included in the above-mentioned computer program product is executed by a processor to perform the following steps:
[0150] S1, in the game scene screen, displaying the currently captured virtual 3D model at the initial viewing angle;
[0151] S2, in response to the lens zoom operation, determining a lens adjustment mode of the virtual camera, wherein the lens adjustment mode is used to determine a change in lens angle and lens distance of the virtual camera for photographing the virtual three-dimensional model;
[0152] S3, adjusting the initial viewing angle to the target viewing angle based on the lens adjustment method;
[0153] S4, in the game scene screen, the virtual three-dimensional model is displayed from a target perspective.
[0154] The embodiments of the present application also provide a computer program product. Optionally, the computer program product may include a non-volatile computer-readable storage medium, which may be used to store a computer program, and when the computer program is executed by a processor, the method provided in the embodiments is implemented.
[0155] Optionally, the computer program stored in the non-volatile computer-readable storage medium is used by the processor to execute the following steps:
[0156] S1, in the game scene screen, displaying the currently captured virtual 3D model at the initial viewing angle;
[0157] S2, in response to the lens zoom operation, determining a lens adjustment mode of the virtual camera, wherein the lens adjustment mode is used to determine a change in lens angle and lens distance of the virtual camera for photographing the virtual three-dimensional model;
[0158] S3, adjusting the initial viewing angle to the target viewing angle based on the lens adjustment method;
[0159] S4, in the game scene screen, the virtual three-dimensional model is displayed from a target perspective.
[0160] The embodiment of the present application further provides a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, the method provided in the above embodiment is implemented.
[0161] Optionally, the computer program is executed by a processor to perform the following steps:
[0162] S1, in the game scene screen, displaying the currently captured virtual 3D model at the initial viewing angle;
[0163] S2, in response to the lens zoom operation, determining a lens adjustment mode of the virtual camera, wherein the lens adjustment mode is used to determine a change in lens angle and lens distance of the virtual camera for photographing the virtual three-dimensional model;
[0164] S3, adjusting the initial viewing angle to the target viewing angle based on the lens adjustment method;
[0165] S4, in the game scene screen, the virtual three-dimensional model is displayed from a target perspective.
[0166] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0167] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0168] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0169] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0170] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0171] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0172] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for displaying a virtual three-dimensional model, It is characterized in that A game scene picture is obtained by shooting with a virtual camera in the game scene, and the display method of the virtual three-dimensional model includes: In the game scene screen, the currently captured virtual three-dimensional model is displayed at an initial viewing angle; In response to the lens zoom operation, determining a lens adjustment mode of the virtual camera, wherein the lens adjustment mode is used to determine a change in lens angle and lens distance of the virtual camera for photographing the virtual three-dimensional model; Based on the lens adjustment method, adjusting the initial viewing angle to a target viewing angle; In the game scene screen, the virtual three-dimensional model is displayed at the target viewing angle.
2. The method for displaying a virtual three-dimensional model according to claim 1, It is characterized in that The method for displaying the virtual three-dimensional model further includes: Acquiring contour information of the virtual three-dimensional model; Determine an initial lens angle and an initial lens distance of the virtual camera based on the profile information; Determining an initial shooting position of the virtual camera using the initial lens distance; At the initial shooting position, the initial viewing angle is set according to the initial lens angle.
3. The method for displaying a virtual three-dimensional model according to claim 2, It is characterized in that The initial lens distance is the distance between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
4. The method for displaying a virtual three-dimensional model according to claim 2, It is characterized in that The initial lens angle is the angle between the main optical axis of the virtual camera and the center line, and the center line is the line between the lens center of the virtual camera and the model center of the virtual three-dimensional model.
5. The method for displaying a virtual three-dimensional model according to claim 2, It is characterized in that In response to the lens zoom operation, determining the lens adjustment mode of the virtual camera includes: In response to a lens zoom operation, obtaining relative position information between a first touch point and a second touch point, wherein the relative position information is used to determine that the first touch point and the second touch point are close to each other, or to determine that the first touch point and the second touch point are far away from each other; The lens adjustment method of the virtual camera is determined based on the relative position information.
6. The method for displaying a virtual three-dimensional model according to claim 5, It is characterized in that Determining the lens adjustment method of the virtual camera based on the relative position information includes: Determining a lens adjustment direction of the virtual camera based on the relative position information; The initial lens distance is adjusted to a target lens distance according to the lens adjustment direction, and the initial lens angle is adjusted to a target lens angle, so as to determine the lens adjustment mode.
7. The method for displaying a virtual three-dimensional model according to claim 6, It is characterized in that Determining the lens adjustment direction of the virtual camera based on the relative position information includes: In response to the relative position information indicating that the first touch point and the second touch point are close to each other, determining that the lens adjustment direction is to zoom out the lens of the virtual camera from the initial shooting position; and / or, In response to the relative position information indicating that the first touch point and the second touch point are moving away from each other, the lens adjustment direction is determined to be to zoom in the lens of the virtual camera from the initial shooting position.
8. The method for displaying a virtual three-dimensional model according to claim 6, It is characterized in that Based on the lens adjustment method, adjusting the initial viewing angle to the target viewing angle includes: Determine the target shooting position of the virtual camera by using the target lens distance corresponding to the lens adjustment method; At the target shooting position, the initial viewing angle is adjusted to the target viewing angle according to the target lens angle corresponding to the lens adjustment method.
9. The method for displaying a virtual three-dimensional model according to claim 1, It is characterized in that There is a negative correlation between the change in the lens angle and the change in the lens distance.
10. The method for displaying a virtual three-dimensional model according to claim 1, It is characterized in that A first imaging position of the lens center of the virtual camera at the initial viewing angle is different from a second imaging position of the lens center at the target viewing angle, wherein the first imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the initial viewing angle, and the second imaging position is the imaging position of the lens center on the surface of the virtual three-dimensional model at the target viewing angle.
11. A display device for a virtual three-dimensional model, It is characterized in that A game scene picture is obtained by shooting with a virtual camera in the game scene, and the display device of the virtual three-dimensional model includes: A first display module, used for displaying the currently captured virtual three-dimensional model at an initial viewing angle in the game scene screen; A determination module, configured to determine a lens adjustment mode of the virtual camera in response to a lens zoom operation, wherein the lens adjustment mode is used to determine a change in lens angle and lens distance of the virtual camera for photographing the virtual three-dimensional model; An adjustment module, configured to adjust the initial viewing angle to a target viewing angle based on the lens adjustment method; The second display module is used to display the virtual three-dimensional model in the game scene screen at the target viewing angle.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method for displaying a virtual three-dimensional model as claimed in any one of claims 1 to 10 when executed by a processor.
13. An electronic device comprising a memory and a processor, It is characterized in that The memory stores a computer program, and the processor is configured to run the computer program to execute the method for displaying a virtual three-dimensional model as claimed in any one of claims 1 to 10.
14. A computer program product, It is characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for displaying a virtual three-dimensional model as claimed in any one of claims 1 to 10.
