IP Library › Granted Patent US 11,151,773
Granted Patent B2
US 11,151,773 · App. 16/937,332 · Granted Oct 19, 2021

Method and apparatus for adjusting viewing angle in virtual environment, and readable storage medium

Inventor: Han Wang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06T15/20A63F13/5255G06F3/04815A63F13/55A63F13/822A63F13/837A63F2300/6676A63F2300/807A63F2300/8076G06T2200/24G09B9/003G09B29/003
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,151,773
App. No.
16/937,332
Granted
Oct 19, 2021
Kind
B2
Abstract

This disclosure discloses a method and an apparatus for adjusting a viewing angle in a virtual environment. The method includes: displaying a first viewing angle picture, the first viewing angle picture including a virtual object having a first orientation; receiving a drag instruction for a viewing angle adjustment control; adjusting the first viewing angle direction according to the drag instruction, to obtain a second viewing angle direction; and displaying a second viewing angle picture, the second viewing angle picture including the virtual object having the first orientation.

Claims (74)

1. A method for adjusting a viewing angle in a virtual environment, comprising:

displaying a first viewing angle picture, the first viewing angle picture being a picture of observing a virtual object in a first viewing angle direction in the virtual environment, the first viewing angle picture comprising the virtual object having a first orientation, and a viewing angle adjustment control being overlay-displayed on the first viewing angle picture, wherein the first viewing angle direction is a direction in which a camera model observes the virtual object in the virtual environment;

receiving a drag instruction for the viewing angle adjustment control;

adjusting the first viewing angle direction according to the drag instruction, to obtain a second viewing angle direction by:

determining a drag direction from the drag instruction,

making a circle corresponding to the drag direction and passing through the cameral model on a spherical surface according to the drag instruction,

rotating, according to the drag instruction, the camera model in the virtual environment along the circle with the virtual object as a rotation center and a direction corresponding to the drag direction as a rotation direction, wherein a distance between the camera model and the rotation center remains unchanged during rotation, and

determining a viewing angle direction in which the rotated camera model observes the virtual object as the second viewing angle direction; and

displaying a second viewing angle picture, the second viewing angle picture being a picture of observing the virtual object in the second viewing angle direction in the virtual environment, and the second viewing angle picture comprising the virtual object having the first orientation.

2. The method of claim 1 , wherein the method further comprises

determining a drag distance from the drag instruction; and

the rotating the camera model comprises:

rotating, according to the drag instruction, the camera model with the direction corresponding to the drag direction as the rotation direction and a rotation angle positively correlated to the drag distance.

3. The method of claim 2 , wherein determining the viewing angle direction in which the rotated camera model observes the virtual object as the second viewing angle direction comprises:

in response to detecting that the camera model is obstructed during rotation, determining a viewing angle direction where the camera model is obstructed as the second viewing angle direction.

4. The method of claim 3 , wherein determining the viewing angle direction where the camera model is obstructed as the second viewing angle direction comprises:

in response to detecting that rotation of the camera model is obstructed by a viewing angle restriction determination, determining a viewing angle direction where the camera model is obstructed by the viewing angle restriction determination as the second viewing angle direction,

wherein the viewing angle restriction determination comprises detecting whether the virtual object is capable of observing in a viewing angle direction obtained during rotation according to physical principles in the virtual environment.

5. The method of claim 3 , wherein determining the viewing angle direction where the camera model is obstructed as the second viewing angle direction comprises:

in response to detecting that the camera model is obstructed by an obstacle during rotation, determining the viewing angle direction where the camera model is obstructed by the obstacle as the second viewing angle direction.

6. The method of claim 1 , wherein subsequent to receiving the drag instruction, the method further comprises:

performing a locking operation on the first orientation of the virtual object, the locking operation preventing the first orientation of the virtual object from being changed.

7. The method of claim 1 , wherein subsequent to displaying the second viewing angle picture, the method further comprises:

detecting the drag instruction for the viewing angle adjustment control; and

in response to the drag instruction being stopped, adjusting the second viewing angle direction to the first viewing angle direction along a predetermined track.

8. The method of claim 7 , wherein subsequent to adjusting the second viewing angle direction to the first viewing angle direction, the method further comprises:

displaying the first viewing angle picture in response to a state of the virtual object being a standing state, a squatting state, or a prone state.

9. The method of claim 7 , wherein subsequent to adjusting the second viewing angle direction to the first viewing angle direction, the method further comprises:

in response to a state of the virtual object being continuous running, continuous walking, driving a vehicle, or riding a vehicle,

updating the first viewing angle picture of observing the virtual object in the first viewing angle direction to reflect movement of the virtual object in the virtual environment, the first viewing angle picture comprising the virtual object facing the first viewing angle direction, and

displaying the updated first viewing angle picture.

10. The method of claim 1 , wherein subsequent to receiving the drag instruction for the viewing angle adjustment control, the method further comprises:

displaying a third viewing angle picture, the third viewing angle picture being a picture of observing the virtual object in a transitional viewing angle direction in a process of adjusting the first viewing angle direction to the second viewing angle direction; and

translating, according to the drag instruction, the viewing angle adjustment control overlay-displayed on the third viewing angle picture along the drag direction within a predetermined translation range.

11. An apparatus for adjusting a viewing angle in a virtual environment, comprising:

a memory operable to store program code; and

a processor operable to read the program code and configured to:

display a first viewing angle picture, the first viewing angle picture being a picture of observing a virtual object in a first viewing angle direction in the virtual environment, the first viewing angle picture comprising the virtual object having a first orientation, and a viewing angle adjustment control being overlay-displayed on the first viewing angle picture, wherein the first viewing angle direction is a direction in which a camera model observes the virtual object in the virtual environment;

receive a drag instruction for the viewing angle adjustment control;

adjust the first viewing angle direction according to the drag instruction, to obtain a second viewing angle direction by:

determining a drag direction from the drag instruction,

making a circle corresponding to the drag direction and passing through the cameral model on a spherical surface according to the drag instruction,

rotating, according to the drag instruction, the camera model in the virtual environment along the circle with the virtual object as a rotation center and a direction corresponding to the drag direction as a rotation direction, wherein a distance between the camera model and the rotation center remains unchanged during rotation, and

determining a viewing angle direction in which the rotated camera model observes the virtual object as the second viewing angle direction; and

display a second viewing angle picture, the second viewing angle picture being a picture of observing the virtual object in the second viewing angle direction in the virtual environment, and the second viewing angle picture comprising the virtual object having the first orientation.

12. The apparatus of claim 11 , wherein the processor is further configured to, in response to detecting that the camera model is obstructed during rotation, determine a viewing angle direction where the camera model is obstructed as the second viewing angle direction.

13. The apparatus of claim 12 , wherein the processor is further configured to, in response to detecting that rotation of the camera model is obstructed by a viewing angle restriction determination, determine a viewing angle direction where the camera model is obstructed by the viewing angle restriction determination as the second viewing angle direction,

wherein the viewing angle restriction determination comprises detecting whether the virtual object is capable of observing in a viewing angle direction obtained during rotation according to physical principles in the virtual environment.

14. The apparatus of claim 12 , wherein that the camera model is obstructed comprises the camera model is obstructed by an obstacle; and

the processor is further configured to, in response to detecting that the camera model is obstructed by an obstacle during rotation, determine the viewing angle direction where the camera model is obstructed by the obstacle as the second viewing angle direction.

15. The apparatus of claim 11 , wherein the processor is further configured to:

perform a locking operation on the first orientation of the virtual object, the locking operation preventing the first orientation of the virtual object from being changed.

16. The apparatus of claim 11 , wherein the processor is further configured to:

detect the drag instruction for the viewing angle adjustment control;

in response to detecting that the drag instruction is stopped, adjust the second viewing angle direction to the first viewing angle direction along a predetermined track; and

display the first viewing angle picture in response to a state of the virtual object is a standing state, a squatting state, or a prone state.

17. The apparatus of claim 11 , wherein the processor is further configured to:

detect a control signal for the viewing angle adjustment control;

in response to detecting that the control signal is stopped, adjust the second viewing angle direction to the first viewing angle direction along a predetermined track; and

in response to a state of the virtual object being continuous running, continuous walking, driving a vehicle, or riding a vehicle,

update the first viewing angle picture of observing the virtual object in the first viewing angle direction to reflect movement of the virtual object in the virtual environment, the first viewing angle picture comprising the virtual object facing the first viewing angle direction, and

display the updated first viewing angle picture.

18. The apparatus of claim 11 , wherein the processor is further configured to:

display a third viewing angle picture, the third viewing angle picture being a picture of observing the virtual object in a transitional viewing angle direction in a process of adjusting the first viewing angle direction to the second viewing angle direction; and

translate, according to the drag instruction, the viewing angle adjustment control overlay-displayed on the third viewing angle picture along the drag direction within a predetermined translation range.

19. A non-transitory machine-readable medium comprising machine-readable instructions for adjusting a viewing angle in a virtual environment, the machine-readable instructions comprising instructions that, when executed, cause a machine to:

display a first viewing angle picture, the first viewing angle picture being a picture of observing a virtual object in a first viewing angle direction in a virtual environment, the first viewing angle picture comprising the virtual object having a first orientation, and a viewing angle adjustment control being overlay-displayed on the first viewing angle picture, wherein the first viewing angle direction is a direction in which a camera model observes the virtual object in the virtual environment;

receive a drag instruction for the viewing angle adjustment control;

adjust the first viewing angle direction according to the drag instruction, to obtain a second viewing angle direction by:

determining a drag direction from the drag instruction,

making a circle corresponding to the drag direction and passing through the cameral model on a spherical surface according to the drag instruction,

rotating, according to the drag instruction, the camera model in the virtual environment along the circle with the virtual object as a rotation center and a direction corresponding to the drag direction as a rotation direction, wherein a distance between the camera model and the rotation center remains unchanged during rotation, and

determining a viewing angle direction in which the rotated camera model observes the virtual object as the second viewing angle direction; and

display a second viewing angle picture, the second viewing angle picture being a picture observing the virtual object in the second viewing angle direction in the virtual environment, and the second viewing angle picture comprising the virtual object having the first orientation.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 14, 2021
From: WANG, HAN
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 057477/0510 →
Priority Claims (1)
CN 201810339749.7 · Apr 16, 2018 · national
Continuity (2)
Continuation PCTCN2019078756 · Mar 19, 2019
Related Publication 20200357163A1 · Nov 12, 2020