CN109976533A - Display control method and device - Google Patents
Display control method and device Download PDFInfo
- Publication number
- CN109976533A CN109976533A CN201910298451.0A CN201910298451A CN109976533A CN 109976533 A CN109976533 A CN 109976533A CN 201910298451 A CN201910298451 A CN 201910298451A CN 109976533 A CN109976533 A CN 109976533A
- Authority
- CN
- China
- Prior art keywords
- predeterminable area
- target roles
- smallest
- big end
- big
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/01—Indexing scheme relating to G06F3/01
- G06F2203/012—Walk-in-place systems for allowing a user to walk in a virtual environment while constraining him to a given position in the physical environment
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Architecture (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present application provides a kind of display control method and device, and wherein method includes: that the first predeterminable area and the second predeterminable area are arranged in two-dimensional display area, wherein the second predeterminable area is in the first predeterminable area;Based on the first predeterminable area and the second predeterminable area setting first direction and second direction;Determine the most big end of target roles in a first direction and most big end and smallest end in smallest end and second direction;Judge whether target roles are overlapped with the second predeterminable area and the most big end on first direction and the most big end in smallest end and second direction and smallest end are between the first predeterminable area and the second predeterminable area, if it is not, then adjusting shooting angle and/or the camera site of virtual camera.The embodiment of the present application provides biggish space for target roles, so that the control to target roles is more flexible, expansibility is strong, and the user experience is improved ensuring target roles under the premise of will not remove two-dimensional display area.
Description
Technical field
This application involves field of computer technology more particularly to a kind of display control methods and device.
Background technique
With the fast development of 3-D technology, the product (such as 3D game and 3D dynamic wallpaper etc.) based on 3-D technology
It becomes increasingly abundant, user and the interaction in the virtual three-dimensional world are increasingly frequent.Usually virtual three are shown to user by virtual camera
The world is tieed up, a suitable shooting angle and camera site how is selected, user is allow preferably to observe the virtual three-dimensional world,
To become one of the key element for promoting user experience.
Currently, when virtual camera shoots a target roles in the virtual three-dimensional world, most common shooting angle and
Camera site is the center that target roles are placed in the shooting angle of virtual camera, and be kept fixed with target roles
Distance, that is, target roles are in virtual camera and are mapped within display screen according to the screen accounting of the display screen of user terminal
The center of two-dimensional display area out.It is empty when target roles deviate the center of the shooting angle of virtual camera
Quasi- video camera adjust automatically shooting angle, makes target roles return to the center of the shooting angle of virtual camera, that is, controls
Target roles are constantly in the center of two-dimensional display area, remove two-dimensional display area to avoid target roles.In target
When the distance between role and virtual camera change, control between virtual camera adjust automatically and target roles away from
From remaining unchanged the distance between target roles and virtual camera, i.e. size of the target roles in two-dimensional display area
It remains unchanged.
Obviously, in the above method, since control target roles are in the center of the shooting angle of virtual camera always
Position, and it is kept fixed position with virtual camera, so that the control to target roles is excessively inflexible, user experience is poor.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of display control method and device, to solve the control of target roles
In inflexible, the poor problem of user experience.
To achieve the above objectives, the embodiment of the present application is achieved in that
The embodiment of the present application provides a kind of display control method, applied to the virtual camera in three-dimensional virtual world
Control, the virtual camera maps out two in the display screen according to the screen accounting of the display screen in user terminal
Display area is tieed up, its virtual scene shot in the three-dimensional virtual world is mapped in two-dimentional display by the virtual camera
In region, the virtual scene includes target roles, comprising:
First predeterminable area and the second predeterminable area are set in the two-dimensional display area, wherein described second is default
Region is in first predeterminable area;
Based on first predeterminable area and second predeterminable area setting first direction and second direction;
It determines in the most big end and smallest end and the second direction of the target roles in said first direction
Most big end and smallest end;
Judge the target roles whether be overlapped with second predeterminable area and the most big end on the first direction and
Most big end in smallest end and second direction and smallest end between first predeterminable area and second predeterminable area,
If it is not, then adjusting shooting angle and/or the camera site of the virtual camera.
The embodiment of the present application also provides a kind of display control units, applied to the virtual camera shooting in three-dimensional virtual world
The control of machine, the virtual camera map out in the display screen according to the screen accounting of the display screen in user terminal
Its virtual scene shot in the three-dimensional virtual world is mapped in two dimension and shown by two-dimensional display area, the virtual camera
Show in region, the virtual scene includes target roles, comprising:
First setup module, for the first predeterminable area and the second predeterminable area to be arranged in the two-dimensional display area,
Wherein, second predeterminable area is in first predeterminable area;
Second setup module, for based on first predeterminable area and second predeterminable area setting first direction and
Second direction;
Determining module, for determining the target roles most big end in said first direction and smallest end and described
Most big end and smallest end in second direction;
Judgement adjustment module, for judging whether the target roles are overlapped and described first with second predeterminable area
Most big end and smallest end on direction and the most big end in second direction and smallest end are in first predeterminable area and described
Between second predeterminable area, if it is not, then adjusting shooting angle and/or the camera site of the virtual camera.
In the embodiment of the present application, by the way that the first predeterminable area and the second predeterminable area are arranged in two-dimensional display area, and
Second predeterminable area judges whether target roles are overlapped with the second predeterminable area and target roles exist in the first predeterminable area
Most big end in smallest end and most big end and second direction and smallest end on first direction is pre- in the first predeterminable area and second
If between region, if it is not, then adjusting shooting angle and/or the camera site of virtual camera.On the one hand, judge that target roles are
It is no to be overlapped with the second predeterminable area and the maximum in the smallest end and most big end and second direction of target roles in a first direction
End and smallest end between the first predeterminable area and the second predeterminable area, if it is not, then adjust virtual camera shooting angle and/
Or camera site, in other words, under the premise of target roles are overlapped with the second predeterminable area, as long as ensuring target roles first
Smallest end on direction and the smallest end in most big end and second direction and most big end are in the first predeterminable area and second and preset
Between region, then shooting angle and/or the camera site of virtual camera are not adjusted, that is, ensuring that target roles will not remove two
Under the premise of tieing up display area, biggish space is provided for target roles, so that the control to target roles is cleverer
Living, expansibility is strong, and the user experience is improved, and virtual camera need not be moved according to the movement of target roles in real time;Separately
On the one hand, since the first predeterminable area and the second predeterminable area can be set in any region of two-dimensional display area, into
The flexibility for increasing the control to target roles of one step.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, without creative efforts,
It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram for the display control method that one embodiment of the application provides;
Fig. 2 is the schematic diagram of the view centrum for the virtual camera that one embodiment of the application provides;
Fig. 3 is the first predeterminable area and the second predeterminable area in two-dimensional display area that one embodiment of the application provides
Schematic diagram;
Fig. 4 for one embodiment of the application provide the most big end to set the goal really role in a first direction and smallest end and
The schematic diagram of most big end and smallest end in second direction;
Fig. 5 is shooting angle and/or the camera site for the adjustment virtual camera that one embodiment of the application provides
Flow diagram;
Fig. 6 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are first
Schematic diagram of the smallest end outside the first predeterminable area on direction;
Fig. 7 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are first
Schematic diagram of the most big end outside the first predeterminable area in smallest end and second direction on direction;
Fig. 8 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are first
The schematic diagram of smallest end and most big end outside the first predeterminable area on direction;
Fig. 9 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are second
The schematic diagram of smallest end and most big end outside the first predeterminable area on direction;
Figure 10 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are first
The schematic diagram of smallest end and most big end outside the first predeterminable area in smallest end and second direction on direction;
Figure 11 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are first
Schematic diagram of the smallest end in the second predeterminable area on direction;
Figure 12 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are first
Schematic diagram of the most big end in the second predeterminable area in smallest end and second direction on direction;
Figure 13 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are first
The schematic diagram of smallest end and most big end in the second predeterminable area on direction;
Figure 14 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are second
The schematic diagram of smallest end and most big end in the second predeterminable area on direction;
Figure 15 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area, and target roles are first
The schematic diagram of most big end and smallest end on direction and the most big end and smallest end in second direction in the second predeterminable area;
Figure 16 is the schematic diagram of the rotation angle of the shooting angle for the calculating virtual camera that one embodiment of the application provides;
Figure 17 is the schematic diagram at the visual angle for the virtual camera that one embodiment of the application provides;
Figure 18 is the structural schematic diagram for the display control unit that one embodiment of the application provides;
Figure 19 is the structural schematic diagram for the display control apparatus that one embodiment of the application provides.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The application protection all should belong in technical staff's every other embodiment obtained without creative efforts
Range.
Fig. 1 is the flow diagram for the display control method that one embodiment of the application provides, and this method is applied to three-dimensional
The control of virtual camera in virtual world, the virtual camera exist according to the screen accounting of the display screen in user terminal
Two-dimensional display area is mapped out in the display screen, the virtual camera shoots it in the three-dimensional virtual world
Virtual scene is mapped in two-dimensional display area, and the virtual scene includes target roles.User terminal for example can for mobile phone,
Tablet computer, laptop etc., the present exemplary embodiment does not do particular determination to this.Fig. 2 provides for one embodiment of the application
Virtual camera view centrum schematic diagram.Virtual camera 201 is virtual camera 201 three-dimensional empty depending on centrum 202
The visual field in the quasi- world, i.e. visual range include hither plane 203 and far plane 304 depending on centrum 202, depending on close flat in centrum 202
Face 203 and far plane 204 define the visual range of virtual camera 201.Specifically, if role distance virtual camera 201
Distance be greater than far plane 204 or be less than hither plane 203, then role will not be taken by virtual camera 201, thus also not
It can show on the display screen, in other words, can virtually be taken the photograph depending on role of the centrum 202 between hither plane 203 and far plane 204
Camera 201 takes, and then shows on the display screen.Based on this, two-dimensional display area is virtual camera 201 according to user
Visual range between its hither plane 203 and far plane 204 is mapped to display screen by the screen accounting of the display screen in terminal
In region, due to regarding 202 own form of centrum, two-dimensional display area is rectangular area.As shown in Figure 1, this method
It may include step S110~S140, in which:
Step S110, the first predeterminable area and the second predeterminable area are set in the two-dimensional display area, wherein described
Second predeterminable area is in first predeterminable area;
Step S120, based on first predeterminable area and second predeterminable area setting first direction and second party
To;
Step S130, the most big end and smallest end and described second of the target roles in said first direction are determined
Most big end and smallest end on direction;
Step S140, judge whether the target roles are overlapped and on the first direction with second predeterminable area
Most big end and smallest end in most big end and smallest end and second direction are preset in first predeterminable area and described second
Between region, if it is not, then adjusting shooting angle and/or the camera site of the virtual camera.
In the embodiment of the present application, on the one hand, judge whether target roles are overlapped with the second predeterminable area and target roles exist
Most big end in smallest end and most big end and second direction and smallest end on first direction is pre- in the first predeterminable area and second
If between region, if it is not, then adjust shooting angle and/or the camera site of virtual camera, in other words, in target roles and the
Under the premise of two predeterminable areas are overlapped, as long as ensuring target roles smallest end in a first direction and most big end and second direction
On smallest end and most big end be between the first predeterminable area and the second predeterminable area, then do not adjust the shooting of virtual camera
Angle and/or camera site, i.e., ensuring that target roles under the premise of will not remove two-dimensional display area, mention for target roles
Biggish space has been supplied, so that the control to target roles is more flexible, expansibility is strong, and the user experience is improved, and
Virtual camera need not be moved according to the movement of target roles in real time;On the other hand, in advance due to the first predeterminable area and second
If region can be set in any region of two-dimensional display area, therefore, the control to target roles is further increased
Flexibility.
The display control method provided in the embodiment of the present application is described further next, with reference to Fig. 1.
In step s 110, the first predeterminable area and the second predeterminable area are set in the two-dimensional display area, wherein
Second predeterminable area is in first predeterminable area.
In the embodiment of the present application, the shape of first predeterminable area and the second predeterminable area for example can for rectangle,
Circle, triangle etc., the present exemplary embodiment does not do particular determination to this.The shape of first predeterminable area and the second predeterminable area
It may be the same or different, do not do particular determination in the present exemplary embodiment to this.First predeterminable area and the second preset areas
Domain can be set in any one of two-dimensional display area position, for example, the middle position of two-dimensional display area is set, then
For example, the position etc. in the upper left corner of two-dimensional display area is arranged in, the present exemplary embodiment does not do particular determination to this.
Since two-dimensional display area is that virtual camera is close flat by it according to the screen accounting of the display screen in user terminal
Visual range between face and far plane is mapped to the region in display screen, therefore can pass through the view vertebra in virtual camera
The first preset areas is arranged in the mode that two nested regions are arranged between the hither plane and far plane of body in two-dimensional display area
The region of domain and the second predeterminable area, two of them nesting can be the first detection zone and the second detection zone, and second examines
Region is surveyed in the first detection zone, the first detection zone is mapped to the region in two-dimensional display area is determined as first and preset
Second detection zone is mapped to the region in two-dimensional display area and is determined as the second predeterminable area by region.It should be noted that
The first predeterminable area and the second predeterminable area can be set by the shape of the first detection zone of setting and the second detection zone
Shape, can by setting the first detection zone and the second detection zone view centrum in hither plane and far plane between
Position is arranged the position of the first predeterminable area and the second predeterminable area in two-dimensional display area.
For example, Fig. 3 is that the first predeterminable area in two-dimensional display area that one embodiment of the application provides and second are pre-
If the schematic diagram in region, as can be known from Fig. 3, two-dimensional display area 301, the first predeterminable area 302 and the second predeterminable area 303
It is rectangle, and the second predeterminable area 303 is arranged in the first predeterminable area 302.
In the step s 120, first direction and second is arranged based on first predeterminable area and second predeterminable area
Direction.
In the embodiment of the present application, it can be set by point on the basis of the center of the first predeterminable area and the second predeterminable area
First direction and second direction are set, can also be set using the point of other in the first predeterminable area and the second predeterminable area as datum mark
First direction and second direction are set, the present exemplary embodiment does not do particular determination to this.It should be noted that first direction and
Two directions can be vertical, and first direction and second direction can not also do particular determination to this with out of plumb, the present exemplary embodiment.
In step s 130, the target roles most big end in said first direction and smallest end and described are determined
Most big end and smallest end in second direction.
In the embodiment of the present application, the determination process of target roles most big end in a first direction and smallest end can wrap
Include: maximum in the positive direction for determining first direction in all boundary points subpoint in a first direction of target roles is thrown
Minimum projection's point in the negative direction of shadow point and first direction, and the maximal projection point in the positive direction of first direction is determined as
Minimum projection's point in the negative direction of first direction is determined as target roles and existed by the most big end of target roles in a first direction
Smallest end on first direction.Similarly, the determination process of target roles most big end in a second direction and smallest end can wrap
It includes: the most projection in positive direction for determining second direction in all boundary points subpoint in a second direction of target roles
Minimum projection's point in a little bigger and negative direction of second direction, and the maximal projection point in the positive direction of second direction is determined as
Minimum projection's point in the negative direction of second direction is determined as target roles and existed by the most big end of target roles in a second direction
Smallest end in second direction.
For example, Fig. 4 provides the most big end and minimum of role in a first direction that set the goal really for one embodiment of the application
The schematic diagram of end and the most big end in second direction and smallest end.As shown in Figure 4, target roles 304 are a five-pointed star, two dimension
Display area 301, the first predeterminable area 302 and the second predeterminable area 303 are rectangle, first direction 305 and second direction 306
Vertically.Wherein, the positive direction in the direction 305 that the direction that arrow is directed toward in first direction 305 is first, arrow in first direction 305
The opposite direction that head is directed toward is the negative direction of first direction 305, and the direction that arrow is directed toward in second direction 306 is second direction 306
Positive direction, the opposite direction that arrow is directed toward in second direction 306 is the negative direction of second direction 306.As shown in Figure 4, subpoint
307 be the most big end in target roles 304 in a first direction 305, and subpoint 308 is in target roles 304 in a first direction 305
Smallest end, subpoint 309 be most big end of the target roles 304 in second direction 306, subpoint 310 be target roles 304
Smallest end in second direction 306.
In step S140, judge whether the target roles are overlapped and the first direction with second predeterminable area
On most big end and the most big end in smallest end and second direction and smallest end in first predeterminable area and described second
Between predeterminable area, if it is not, then adjust shooting angle and/or the camera site of the virtual camera so that target roles with
Second predeterminable area is overlapped and the most big end on first direction and the most big end in smallest end and second direction and smallest end exist
Between first predeterminable area and the second predeterminable area.
In the embodiment of the present application, Fig. 5 is the shooting angle for the adjustment virtual camera that one embodiment of the application provides
Degree and/or the flow diagram of camera site.As shown in figure 5, may comprise steps of:
Step S510, judge whether the target roles are overlapped and on the first direction with second predeterminable area
Most big end and smallest end in most big end and smallest end and second direction is in first predeterminable area.
In the embodiment of the present application, target roles can refer to that target roles are default with second with being overlapped for the second predeterminable area
Region is at least partly overlapped, and is based on this, if there is the part being overlapped in target roles and the second predeterminable area, target roles and the
Two predeterminable areas are overlapped, if target roles are not overlapped completely with the second predeterminable area, target roles and the second predeterminable area are not
It is overlapped.
Judge that the process whether target roles are overlapped with the second predeterminable area may include: to establish based on two-dimensional display area
Rectangular coordinate system;The coordinate of each point of target roles is obtained in rectangular coordinate system;It is pre- that second is obtained in rectangular coordinate system
If the coordinate of each point in region;By the coordinate of each point in target roles respectively with each point in the second predeterminable area
Coordinate be compared, and judge target roles and the second predeterminable area with the presence or absence of the identical point of coordinate according to comparison result;
If it exists, then target roles are overlapped with the second predeterminable area, and if it does not exist, then target roles are not overlapped with the second predeterminable area.
Judge the most big end of target roles in a first direction and most big end and minimum in smallest end and second direction
Whether end may include: the seat that the most big end on first direction is obtained in rectangular coordinate system in the process in the first predeterminable area
Mark, the coordinate of smallest end on first direction, the coordinate of most big end in second direction, smallest end in second direction seat
Mark;The coordinate range of the first predeterminable area is obtained in rectangular coordinate system;Judge the most big end on first direction coordinate whether
In the coordinate range of the first predeterminable area, if so, the most big end on first direction is in the first predeterminable area, if it is not, then
Most big end on first direction is outside the first predeterminable area;Due to judging the smallest end on first direction, in second direction most
Smallest end in big end and second direction whether in the first predeterminable area principle and above-mentioned judgement first direction on most
Whether principle in the first predeterminable area is identical for big end, therefore is not repeating herein.
For example, as shown in figure 4, in conjunction with above-mentioned deterministic process it is found that target roles 304 are overlapped with the second predeterminable area 303,
And the most big end in the most big end 307 and smallest end 308 and second direction 306 on 305 in a first direction of target roles 304
309 and smallest end 310 in the first predeterminable area 302.
It should be noted that the process for obtaining the coordinate of each point of target roles can be with are as follows: in virtual camera
Depending in centrum construct three-dimensional perpendicular coordinate system, wherein Z axis with view centrum hither plane and far plane it is vertical, X-axis and Y-axis composition
Plane is parallel with hither plane and far plane;Obtain coordinate of each point in target roles in three-dimensional perpendicular coordinate system;To mesh
It marks coordinate of each point in role in three-dimensional perpendicular coordinate system and carries out projective transformation and matrix algorithm, to calculate target roles
In each point from the coordinate that should be arranged in two-dimensional display area in virtual three-dimensional scene.It should be noted that can also basis
The coordinate of each point needed for above-mentioned principle acquisition above.
Step S520, if it is not, then adjusting shooting angle and/or the camera site of the virtual camera, so that the mesh
Mark role is overlapped and in most big end and smallest end and second direction on the first direction with second predeterminable area
Most big end and smallest end are in first predeterminable area.
In the embodiment of the present application, by according to following different situation to adjustment virtual camera shooting angle and/or
The process of camera site is described in detail.
The first, if the target roles be overlapped with second predeterminable area and the most big end on the first direction and
One in most big end and smallest end in smallest end and second direction then controls the void outside first predeterminable area
Quasi- direction rotary taking angle of the video camera to the end outside first predeterminable area, so that target roles and the second preset areas
Domain is overlapped and the most big end on first direction and the most big end in smallest end and second direction and smallest end are default first
In region.
In the embodiment of the present application, for example, Fig. 6 is the target roles and the second predeterminable area that one embodiment of the application provides
It is overlapped, and schematic diagram of the smallest end of target roles in a first direction outside the first predeterminable area.As can be known from Fig. 6, due to
Target roles 304 be overlapped with the second predeterminable area 303 and only target roles 304 in a first direction the smallest end 308 on 305
Outside one predeterminable area 302, therefore control the direction rotary taking angle of smallest end 308 of the virtual camera on first direction 305
Degree, so that the smallest end 308 on first direction 305 enters the first predeterminable area 302, to make target roles 304 and second in advance
If region 303 is overlapped, and the most big end 307 and smallest end 308 on first direction 305 and the most big end in second direction 306
309 and smallest end equal 310 in the first predeterminable area 302.
Similarly, if target roles be overlapped with the second predeterminable area and only the most big end of target roles in a first direction
Outside one predeterminable area, then the direction rotary taking angle of most big end of the virtual camera on first direction is controlled.If target angle
Color is overlapped with the second predeterminable area and only the most big end of target roles in a second direction then controls void outside the first predeterminable area
The direction rotary taking angle of quasi- most big end of the video camera in second direction.If target roles be overlapped with the second predeterminable area and
Only the smallest end of target roles in a second direction then controls virtual camera in second direction outside the first predeterminable area
The direction rotary taking angle of smallest end.
It should be noted that the first predeterminable area and second is preset due in the shooting angle rotation of virtual camera
Region also with rotation, therefore can according to the current location of the first predeterminable area and make end outside the first predeterminable area just into
Enter the rotation angle of the shooting angle of the position calculating virtual camera of the critical edge of the first predeterminable area;It can also be according to first
The current location of predeterminable area and the position for making the end outside the first predeterminable area be moved to designated position in the first predeterminable area are counted
The rotation angle of shooting angle etc. of virtual camera is calculated, the present exemplary embodiment does not do particular determination to this.
Second, if the target roles be overlapped with second predeterminable area and the most big end on the first direction and
One in smallest end and one in the most big end and smallest end in the second direction are outside first predeterminable area, then
The virtual camera is controlled successively to the direction rotary taking angle at two ends outside first predeterminable area, so that mesh
Mark role is overlapped with second predeterminable area and the most big end in most big end and smallest end and second direction on first direction
With smallest end in the first predeterminable area.
In the embodiment of the present application, Fig. 7 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area,
And schematic diagram of the most big end outside the first predeterminable area in the smallest end and second direction of target roles in a first direction.From figure
In 7 it is found that since target roles 304 are overlapped with the second predeterminable area 303, and target roles 304 in a first direction on 305 most
Most big end 309 on small end 308 and second direction 306 is outside the first predeterminable area 302, therefore, control virtual camera first to
308 rotary taking angle of smallest end on the first direction 305 309 rotary taking angle of most big end in second direction 306 again,
Or control virtual camera first 309 rotary taking angle of most big end in second direction 306 again on first direction 305
308 rotary taking angle of smallest end, so that most big end 309 enters the in smallest end and second direction 306 on first direction 305
One predeterminable area 302, to make target roles 304 be overlapped with the second predeterminable area 303, and the most big end on first direction 305
307 and the most big end 309 in smallest end 308 and second direction 306 and smallest end equal 310 in the first predeterminable area 302.
Similarly, if target roles be overlapped with the second predeterminable area and in most big end and second direction on first direction most
Big end outside the first predeterminable area, then control virtual camera first most big end rotary taking angle on first direction again to the
Most big end rotary taking angle on two directions, or the first most big end rotary taking in second direction of control virtual camera
The angle most big end rotary taking angle on first direction again.
If target roles are overlapped with the second predeterminable area and the smallest end in most big end and second direction on first direction
Outside the first predeterminable area, then most big end rotary taking angle of the virtual camera first on first direction is controlled again to second party
Upward smallest end rotary taking angle, or the first smallest end rotary taking angle in second direction of control virtual camera
Most big end rotary taking angle on first direction again.
If target roles are overlapped with the second predeterminable area and the smallest end in smallest end and second direction on first direction
Outside the first predeterminable area, then smallest end rotary taking angle of the virtual camera first on first direction is controlled again to second party
Upward smallest end rotary taking angle, or the first smallest end rotary taking angle in second direction of control virtual camera
Smallest end rotary taking angle on first direction again.
It should be noted that the determination principle of the rotation angle of the shooting angle of virtual camera and the first situation above
In principle it is identical, therefore do not repeating herein.
The third, if the target roles be overlapped with second predeterminable area and the most big end on the first direction and
Smallest end then controls the virtual camera and claps to the direction adjustment far from the target roles outside first predeterminable area
It acts as regent and sets, so that target roles are overlapped with second predeterminable area and the most big end on first direction and smallest end and second party
Upward most big end and smallest end are in the first predeterminable area.
In the embodiment of the present application, Fig. 8 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area,
And the schematic diagram of smallest end and most big end outside the first predeterminable area of target roles in a first direction.As can be known from Fig. 8, by
It is overlapped in target roles 304 with the second predeterminable area 303, and 305 most big end 307 and smallest end 308 exist on first direction
Outside first predeterminable area 302, therefore, control virtual camera adjusts camera site to the direction far from target roles 304, to subtract
Few target roles 304 area shared in two-dimensional display area 301 so that on first direction 305 most big end 307 and minimum
End 308 enters the first predeterminable area 302, and then is overlapped target roles 304 and on first direction with the second predeterminable area 303
Most big end 309 and smallest end 310 in 305 most big end 307 and smallest end 308 and second direction 306 is default first
In region 302.
It should be noted that can be according to the current area (area i.e. under current state) of target roles and first
Area (the face under dbjective state of target roles when most big end and smallest end on direction are just into the first predeterminable area
Product) distance of the virtual camera far from target roles is calculated, it can also be according to the current area of target roles (i.e. under current state
Area) and target angle when entering corresponding position in the first predeterminable area of most big end in a first direction and smallest end
The area (area i.e. under dbjective state) of color calculates distance etc. of the virtual camera far from target roles, the present exemplary embodiment
Particular determination is not done to this.
4th kind, if the target roles be overlapped with second predeterminable area and the most big end in the second direction and
Smallest end then controls the virtual camera and claps to the direction adjustment far from the target roles outside first predeterminable area
It acts as regent and sets, so that target roles are overlapped with second predeterminable area and the most big end on first direction and smallest end and second party
Upward most big end and smallest end are in the first predeterminable area.
In the embodiment of the present application, Fig. 9 is that the target roles that one embodiment of the application provides are overlapped with the second predeterminable area,
And the schematic diagram of smallest end and most big end outside the first predeterminable area of target roles in a second direction.As can be known from Fig. 9, mesh
Mark role 304 is overlapped with the second predeterminable area 303, and most big end 309 in second direction 306 and smallest end 310 are first
Outside predeterminable area 302, therefore, control virtual camera adjusts camera site to the direction far from target roles 304, to reduce mesh
The area shared in two-dimensional display area 301 of role 304 is marked, so that most big end 309 and smallest end in second direction 306
310 move into the first predeterminable area 302, and then are overlapped target roles 304 with the second predeterminable area 303 and 305 on first direction
Most big end 307 and most big end 309 in smallest end 308 and second direction 306 and smallest end 310 in the first predeterminable area
In 302.
It should be noted that determination of distance principle of the virtual camera far from target roles and above the third situation
In determination principle it is identical, therefore do not repeating herein.
5th kind, if the target roles be overlapped with second predeterminable area and the most big end on the first direction and
At least three in most big end and smallest end in smallest end and second direction then control institute outside first predeterminable area
It states virtual camera and adjusts camera site to the direction far from the target roles, so that target roles and second preset areas
Domain is overlapped and the most big end in most big end and smallest end and second direction on first direction and smallest end are in the first preset areas
In domain.
In the embodiment of the present application, for example, Figure 10 is the target roles and the second preset areas that one embodiment of the application provides
Domain is overlapped, and smallest end in the smallest end and second direction of target roles in a first direction and most big end are in the first preset areas
Overseas schematic diagram.As shown in Figure 10, it is overlapped due to target roles 304 with the second predeterminable area 303, and on first direction 305
Smallest end 308 and second direction 306 on most big end 309 and smallest end 310 outside the first predeterminable area 302, therefore, control
Virtual camera processed adjusts camera site to the direction far from target roles 304, to reduce target roles 304 in two-dimentional viewing area
Shared area in domain 301, so that most big end 309 in smallest end 308 and second direction 306 on first direction 305 and most
Small end 310 is moved into the first predeterminable area 302, and then is overlapped target roles 304 with the second predeterminable area 303 and first direction
Most big end 309 and smallest end 310 in upper 305 most big end 307 and smallest end 308 and second direction 306 is pre- first
If in region 302.
It should be noted that determination of distance principle of the virtual camera far from target roles and situation in above third
In determination principle it is identical, therefore do not repeating herein.
6th kind, if the target roles are not overlapped with second predeterminable area, adjust the virtual camera
The shooting angle and camera site of shooting angle or the adjustment virtual camera, so that the target roles and described second
Predeterminable area is overlapped and the most big end on the first direction and the most big end in smallest end and second direction and smallest end exist
In first predeterminable area.
In the embodiment of the present application, when target roles are not overlapped with the second predeterminable area, according to target roles and second
The positional relationship of predeterminable area rotates the shooting angle of virtual camera, is overlapped target roles with the second predeterminable area, example
Such as, target roles then rotate the shooting angle of virtual camera in the top position of the second predeterminable area upwards;For another example mesh
Role is marked in the left location of the second predeterminable area, then rotates to the left the shooting angle of virtual camera.In target roles and the
After two predeterminable areas are overlapped, can according to it is above-mentioned the first to the 5th kind of situation adjustment virtual camera shooting angle or shooting
Position is overlapped target roles with the second predeterminable area and in most big end and smallest end and second direction on first direction
Most big end and smallest end are in the first predeterminable area.It should be noted that be not overlapped with the second predeterminable area in target roles and
When not in two-dimensional display area, the camera site of virtual camera can be adjusted first, target roles is made to enter two-dimentional display
Region is overlapped target roles with the second predeterminable area further according to above-mentioned adjustment process, finally, according to it is above-mentioned the first to the 5th
The shooting angle of kind of situation adjustment virtual camera or camera site are overlapped target roles with the second predeterminable area and first party
Most big end and smallest end in upward most big end and smallest end and second direction is in the first predeterminable area.
Step S530, judge the target roles most big end in said first direction and smallest end and second direction
On most big end and smallest end whether outside second predeterminable area.
In the present example embodiment, step S530 is to be overlapped in target roles with the second predeterminable area, and target roles
Most big end and smallest end on most big end and smallest end and second in a first direction is reversed is in the first predeterminable area
On the basis of, judge the most big end of target roles in a first direction and most big end and smallest end in smallest end and second direction
Whether outside the second predeterminable area.It should be noted that due to having determined target roles and the second predeterminable area in step 520
It is overlapped, therefore in this step no longer judges whether target roles are overlapped with the second predeterminable area.
Due to judge the most big end in the most big end and smallest end and second direction of target roles in a first direction and
Smallest end whether outside the second predeterminable area principle and step S510 in judge the most big end of target roles in a first direction
Whether principle in the first predeterminable area is identical with most big end and the smallest end in smallest end and second direction, therefore herein
It is not repeating.
Step S540, if it is not, then adjusting shooting angle or the camera site of the virtual camera, so that the target angle
Color is overlapped with second predeterminable area and the maximum in most big end and smallest end and second direction on the first direction
End and smallest end are between first predeterminable area and second predeterminable area.
In the embodiment of the present application, by the shooting angle or shooting according to following different situation to adjustment virtual camera
The process of position is described in detail.
The first, if in the most big end and smallest end and second direction of the target roles in said first direction
One in most big end and smallest end then controls the virtual camera to pre- described second in second predeterminable area
If the opposite direction rotary taking angle at the end in region, so that target roles are overlapped with the second predeterminable area and on first direction
Most big end in most big end and smallest end and second direction and smallest end are between the first predeterminable area and the second predeterminable area.
In the embodiment of the present application, for example, Figure 11 is the target roles and the second preset areas that one embodiment of the application provides
Domain is overlapped, and schematic diagram of the smallest end of target roles in a first direction in the second predeterminable area.As can be known from Fig. 11, mesh
Smallest end 308 of the role 304 in a first direction on 305 is marked in the second predeterminable area 303, then controls virtual camera to first
The opposite direction rotary taking angle of smallest end 308 on direction 305, i.e., control virtual camera on first direction 305 most
The direction rotary taking angle of big end 307, so that the smallest end 308 on first direction 305 is removed in the second predeterminable area 303,
And then it is overlapped target roles 304 with second predeterminable area 303 and most big end 307 and smallest end on first direction 305
308 and the most big end 309 in second direction 306 and smallest end 310 in the first predeterminable area 302 and the second predeterminable area 303
Between.
Similarly, if the most big end of target roles in a first direction controls virtual camera in the second predeterminable area
The opposite direction rotary taking angle of most big end on first direction;If the most big end of target roles in a second direction is second
In predeterminable area, then the opposite direction rotary taking angle of most big end of the virtual camera in second direction is controlled;If target angle
The smallest end of color in a second direction then controls smallest end of the virtual camera in second direction in the second predeterminable area
Opposite direction rotary taking angle.
It should be noted that the first predeterminable area and second is preset due in the shooting angle rotation of virtual camera
Region according to the current location of the second predeterminable area and can be such that the end in the second predeterminable area moves just also with rotation
The position of the critical edge of the second predeterminable area calculates the rotation angle of the shooting angle of virtual camera out;It can also be according to second
The current location of predeterminable area and the position for making the end in the second predeterminable area be moved to the outer designated position of the second predeterminable area are counted
The rotation angle of shooting angle etc. of virtual camera is calculated, the present exemplary embodiment does not do particular determination to this.
Second, if one in the most big end and smallest end of the target roles in said first direction and described the
One in most big end and smallest end on two directions then controls the virtual camera successively in second predeterminable area
To the opposite direction rotary taking angle at two ends in second predeterminable area, so that target roles and the second predeterminable area
It is overlapped and the most big end on first direction and the most big end in smallest end and second direction and smallest end is in the first predeterminable area
And second between predeterminable area.
In the embodiment of the present application, for example, Figure 12 is the target roles and the second preset areas that one embodiment of the application provides
Domain is overlapped, and most big end the showing in the second predeterminable area in the smallest end and second direction of target roles in a first direction
It is intended to.As can be known from Fig. 12, target roles 304 in a first direction the smallest end 308 on 305 and in second direction 306 most
Big end 309 is in the second predeterminable area 303, therefore, can control smallest end of the virtual camera first on first direction 305
The opposite direction rotary taking angle of the 308 opposite direction rotary taking angle most big end 309 in second direction 306 again, or
The opposite direction rotary taking angle of most big end 309 of the virtual camera first in second direction 306 is controlled again to first direction 305
On smallest end 308 opposite direction rotary taking angle so that in smallest end 308 and second direction 306 on first direction 305
Most big end 309 remove the second predeterminable area 303, and then be overlapped target roles 304 with the second predeterminable area 303 and first party
It is pre- first to the most big end 307 and smallest end 308 on 305 and the most big end 309 in second direction 306 and smallest end 310
If between region 302 and the second predeterminable area 303.
Similarly, if the most big end in the most big end and second direction of target roles in a first direction is in the second predeterminable area
It is interior, then the opposite direction rotary taking angle of the first most big end on first direction of virtual camera is controlled again in second direction
The opposite direction rotary taking angle of most big end, or the opposite direction rotation of the first most big end in second direction of control virtual camera
Turn the opposite direction rotary taking angle of most big end of the shooting angle again on first direction;If target roles are in a first direction
One in smallest end in most big end and second direction then controls virtual camera first to first party in the second predeterminable area
The opposite direction rotary taking angle of the opposite direction rotary taking angle of the upward most big end smallest end in second direction again, or
Person control virtual camera first smallest end in second direction opposite direction rotary taking angle again on first direction most
The opposite direction rotary taking angle of big end;If the smallest end in the smallest end and second direction of target roles in a first direction exists
In second predeterminable area, then control virtual camera first smallest end on first direction anti-reverse rotation shooting angle again to
The opposite direction rotary taking angle of smallest end in second direction, or the first minimum in second direction of control virtual camera
The opposite direction rotary taking angle of the opposite direction rotary taking angle at the end smallest end on first direction again.
It should be noted that the determination principle of the rotation angle of the shooting angle of virtual camera and above the first feelings
Determination principle in condition is identical, therefore is not repeating herein.
The third, if the target roles most big end in said first direction and smallest end are in second preset areas
In domain, then control the virtual camera to close to the target roles direction adjust camera site so that target roles with
Second predeterminable area is overlapped and the most big end on first direction and the most big end in smallest end and second direction and smallest end exist
Between first predeterminable area and the second predeterminable area.
In the present example embodiment, Figure 13 is the target roles and the second predeterminable area weight that one embodiment of the application provides
It closes, and the schematic diagram of smallest end and most big end in the second predeterminable area of target roles in a first direction.Due to 13 it is found that
The smallest end 308 on 305 and most big end 307 are in the second predeterminable area 303 in a first direction for target roles 304, therefore, control
Virtual camera adjusts shooting angle to the direction close to target roles 304, to increase target roles 304 in two-dimensional display area
In shared area, and then make the smallest end 308 and most big end 307 the second predeterminable area 303 of removal on first direction 305, from
And make target roles 304 be overlapped with the second predeterminable area 303 and the most big end 307 on first direction 305 and smallest end 308 and
Most big end 309 in second direction 306 and smallest end 310 are between the first predeterminable area 302 and the second predeterminable area 303.
It should be noted that can be according to the current area (area i.e. under current state) of target roles and first
Area (the face i.e. under dbjective state of target roles when most big end and smallest end on direction are just moved out the second predeterminable area
Product) calculate virtual camera close to the distance of target roles, can also be according to the current area of target roles (i.e. under current state
Area) and target when being moved to corresponding position outside the second predeterminable area of most big end in a first direction and smallest end
The area (area i.e. under dbjective state) of role calculates virtual camera close to the distance etc. of target roles, this exemplary implementation
Example does not do particular determination to this.
It can be according to the most big end and minimum on the position of most big end and smallest end on first direction and first direction
End is just moved out the distance that the position of the second predeterminable area determines virtual camera close to target roles, can also be according to first party
The upward position of most big end and smallest end and the most big end on first direction and smallest end are moved to outside the second predeterminable area
Corresponding designated position determines that distance etc. of the virtual camera close to target roles, the present exemplary embodiment do not do special limit to this
It is fixed.
4th kind, if the target roles most big end in this second direction and smallest end are in second preset areas
In domain, then control the virtual camera to close to the target roles direction adjust camera site so that target roles with
Second predeterminable area is overlapped and the most big end on first direction and the most big end in smallest end and second direction and smallest end exist
Between first predeterminable area and the second predeterminable area.
In the present example embodiment, Figure 14 is the target roles and the second predeterminable area weight that one embodiment of the application provides
It closes, and the schematic diagram of smallest end and most big end in the second predeterminable area of target roles in a second direction.Due to 14 it is found that
Target roles 304 in the second predeterminable area 303, therefore, are controlled in the smallest end 310 in second direction 306 and most big end 309
Virtual camera adjusts shooting angle to the direction close to target roles 304, to increase target roles 304 in two-dimensional display area
In shared area, and then make the smallest end 310 and most big end 309 the second predeterminable area 303 of removal in second direction 306, from
And make target roles 304 be overlapped with the second predeterminable area 303 and the most big end 307 on first direction 305 and smallest end 308 and
Most big end 309 in second direction 306 and smallest end 310 are between the first predeterminable area 302 and the second predeterminable area 303.
It should be noted that virtual camera is in the determination of distance principle and the third situation above of target roles
Determination principle it is identical, therefore do not repeating herein.
5th kind, if in the most big end and smallest end and second direction of the target roles in said first direction
In most big end and smallest end at least three in second predeterminable area, then control the virtual camera to close to described
The direction of target roles adjusts camera site, so that target roles are overlapped with the second predeterminable area and the most big end on first direction
And most big end in smallest end and second direction and smallest end are between the first predeterminable area and the second predeterminable area.
In the embodiment of the present application, for example, Figure 15 is the target roles and the second preset areas that one embodiment of the application provides
Domain is overlapped, and the most big end of target roles in a first direction and the most big end in smallest end and second direction and smallest end exist
Schematic diagram in second predeterminable area.As shown in Figure 15, due to 307 He of most big end in target roles 304 in a first direction 305
Most big end 309 and smallest end 310 in smallest end 308 and second direction 306, therefore can be in the second predeterminable area 303
It controls virtual camera and adjusts shooting angle to the direction close to target roles 304, shown with increasing target roles 304 in two dimension
Shared area in region, and then make in the most big end 307 and smallest end 308 and second direction 306 on first direction 305
Most big end 309 and smallest end 310 remove the second predeterminable area 303, to make 303 weight of target roles 304 and the second predeterminable area
Conjunction and the most big end 307 on first direction 305 and most big end 309 and smallest end in smallest end 308 and second direction 306
310 between the first predeterminable area 302 and the second predeterminable area 303.
It should be noted that virtual camera is in the determination of distance principle and the third situation above of target roles
Determination principle it is identical, therefore do not repeating herein.
If step S550, the described target roles are overlapped with second predeterminable area and the most big end on the first direction
With in smallest end and second direction most big end and smallest end in first predeterminable area, then judge the target roles
Whether most big end and smallest end in said first direction and the most big end in second direction and smallest end are described second
Outside predeterminable area.It should be noted that the judgement in the step could be explained above later, therefore herein
It is not repeating.
Step S560, if it is not, then adjusting shooting angle or the camera site of the virtual camera, so that the target angle
Color is overlapped with second predeterminable area and the maximum in most big end and smallest end and second direction on the first direction
End and smallest end are between first predeterminable area and second predeterminable area.It should be noted that due to the process
Through being explained above, therefore do not repeating herein.
It should be noted that being overlapped in target roles with the second predeterminable area and most big end and smallest end on first direction
And the most big end in second direction and smallest end be between the first predeterminable area and second predeterminable area, not to virtually taking the photograph
The shooting angle of camera and camera site adjust.
In the following, by process of the citing to the rotation angle for the shooting angle for calculating virtual camera is illustrated.
If target roles are overlapped with the second predeterminable area, and only the smallest end of target roles in a first direction is pre- first
If outside region, then controlling the direction rotary taking angle of the smallest end of virtual camera in a first direction to target roles, making
The smallest end of target roles in a first direction enters the boundary of the first predeterminable area just, the shooting angle of virtual camera
The calculating process for rotating angle is as follows:
As shown in figure 16, three-dimensional perpendicular coordinate system is constructed in the view centrum of the virtual camera in three-dimensional virtual world,
Wherein, X-axis, Y-axis, Z axis be mutually perpendicular to and, Z axis is vertical with the hither plane of view centrum and far plane, the plane that X-axis and Y-axis are constituted
It is parallel with hither plane and far plane.
Determine coordinate (nx, ny, nz) of the smallest end N1 of target roles in a first direction in three-dimensional perpendicular coordinate system,
Determine coordinate (ox, oy, oz) of the virtual camera in three-dimensional perpendicular coordinate system;
Calculate target roles smallest end N1 in a first direction and virtual camera in three-dimensional perpendicular coordinate system away from
From L1:
The normal 601 and virtual camera and target roles for calculating the view centrum of virtual camera are in a first direction
The angle a1 of the line of smallest end N1:
Determine coordinate of the intersection point T1 of the negative direction of the first predeterminable area and first direction in three-dimensional perpendicular coordinate system
The intersection point T1 of the negative direction of first predeterminable area and first direction is moved to point T2 as shown in Figure 16 by (tx1, ty1, tz1)
(tx2, ty2, tz2) can make the smallest end N1 of target roles in a first direction move to the boundary of the first predeterminable area.Due to
During rotation, the first predeterminable area and the second predeterminable area also rotate with the shooting angle of virtual camera, and by
It is millisecond rank in the monitoring frequency of target roles hereinbefore, the distance of far plane and virtual camera is larger in addition, because
The angle that the shooting angle of this virtual camera rotates every time is all very small, therefore the first predeterminable area and second can be preset
The rotation in region can approximation regard translational motion as.Based on this, the coordinate value of the X-axis of point T2 (tx2, ty2, tz2) are as follows: tx2=
tz1*tan(a1);
Virtual camera is calculated during rotation, the intersection point T1 of the negative direction of the first predeterminable area and first direction with
The amount of first predeterminable area translation is S1, wherein S1=tx1-tx2;
The rotation angle a2 of the shooting angle of virtual camera are as follows:
It should be noted that in other cases, since the calculating of the rotation angle of the shooting angle of virtual camera is former
Reason is identical as above-mentioned principle, therefore is not repeating herein.
In the following, by being illustrated to the process for the distance for calculating the separate or close target roles of virtual camera.
Due to virtual camera far from or close to the distance of target roles and the area change amount of target roles and virtually
The visual angle of video camera is (i.e. as the angle b) in Figure 17 is related.Based on this, it is separate or close to target roles to calculate virtual camera
The process of distance may include:
The current area V1 under current state of target roles is calculated, target of the target roles under dbjective state is calculated
Area V2;
The distance d of the separate or close target roles of virtual camera are as follows:
It should be noted that due to the detection of target roles state be in real time, though virtual camera whether
During adjustment, the state of target roles is measured in real time, if virtual camera adjustment during and target
Role does not adjust also to dbjective state, if state changes in the state and adjustment before the adjustment of target roles, pause is worked as
It is preceding adjusted to the adjustment virtually imaged and according to target roles during changed state redefine virtual camera
New adjustment mode, and the basis of the state of the virtual camera before pause is according to the new virtual camera shooting of adjustment mode adjustment
Machine.For example, if target roles are overlapped with the second predeterminable area, and only the smallest end on first direction in the second predeterminable area,
Most big end in most big end and second direction and smallest end on first direction is in the second predeterminable area and the first predeterminable area
Between, then the opposite direction rotary taking angle of smallest end of the virtual camera on first direction is controlled, if at rotary taking angle
During degree, detect that smallest end in a first direction does not move out the second predeterminable area, the most big end on first direction also
It has moved into the second predeterminable area, the most big end and smallest end in second direction are in the second predeterminable area and the first predeterminable area
Between, then the shooting angle for the virtual camera that stops rotating, control virtual camera makes to close to the movement of the direction of target roles
Target roles are overlapped and the maximum in the smallest end on first direction and most big end and second direction with the second predeterminable area
End and smallest end are between the first predeterminable area and the second predeterminable area.
In conclusion judge target roles whether be overlapped with the second predeterminable area and target roles in a first direction most
Most big end in small end and most big end and second direction and smallest end between the first predeterminable area and the second predeterminable area, if
It is no, then shooting angle and/or the camera site of virtual camera are adjusted, in other words, in target roles and the second predeterminable area weight
Under the premise of conjunction, if ensure smallest end in the smallest end and most big end and second direction of target roles in a first direction and
Most big end is between the first predeterminable area and the second predeterminable area, then does not adjust the shooting angle and/or bat of virtual camera
It acts as regent and sets, i.e., ensuring that target roles under the premise of will not remove two-dimensional display area, provide biggish for target roles
Space, so that the control to target roles is more flexible, expansibility is strong, and the user experience is improved, and virtual camera
It need not be moved in real time according to the movement of target roles;In addition, since the first predeterminable area and the second predeterminable area can be set
In any region of two-dimensional display area, therefore, the flexibility of the control to target roles is further increased.
Corresponding above-mentioned display control method is applied to pair the embodiment of the present application also provides a kind of display control unit
The control of virtual camera in three-dimensional virtual world, the virtual camera are accounted for according to the screen of the display screen in user terminal
Than mapping out two-dimensional display area in the display screen, the virtual camera claps it in the three-dimensional virtual world
The virtual scene taken the photograph is mapped in two-dimensional display area, and the virtual scene includes target roles, and Figure 18 is the implementation of the application one
The structural schematic diagram for the display control unit that example provides.As shown in figure 18, which may include: the first setup module
1801, the second setup module 1802, determining module 1803, judgement adjustment module 1804, in which:
First setup module 1801 can be used in the two-dimensional display area being arranged the first predeterminable area and second in advance
If region, wherein second predeterminable area is in first predeterminable area;
Second setup module 1802 can be used for based on first predeterminable area and second predeterminable area setting the
One direction and second direction;
Determining module 1803 is determined for the most big end and smallest end of the target roles in said first direction
And most big end and smallest end in the second direction;
Judgement adjustment module 1804, can be used for judging the target roles whether be overlapped with second predeterminable area and
Most big end and smallest end on the first direction and the most big end in second direction and smallest end are in first preset areas
Between domain and second predeterminable area, if it is not, then adjusting shooting angle and/or the camera site of the virtual camera.
Optionally, the judgement adjustment module 1804 may include:
First judging unit can be used for judging whether the target roles are overlapped and described with second predeterminable area
Most big end and smallest end on first direction and the most big end in second direction and smallest end are in first predeterminable area;
The first adjustment unit can be used for if it is not, then adjusting shooting angle and/or the shooting position of the virtual camera
Set so that the target roles be overlapped with second predeterminable area and the most big end on the first direction and smallest end and
Most big end and smallest end in second direction is in first predeterminable area;
Second judgment unit can be used for judging the most big end and smallest end of the target roles in said first direction
And whether most big end in second direction and smallest end are outside second predeterminable area;
Second adjustment unit, can be used for if it is not, then adjust shooting angle or the camera site of the virtual camera, with
It is overlapped the target roles with second predeterminable area and most big end and smallest end and second on the first direction
Most big end on direction and smallest end are between first predeterminable area and second predeterminable area.
Optionally, described device 1800 can also include:
Third judging unit, if being overlapped with second predeterminable area and the first direction for the target roles
Most big end and the most big end in smallest end and second direction and smallest end in first predeterminable area, then described in judgement
The most big end of target roles in said first direction and the most big end in smallest end and second direction and smallest end whether
Outside second predeterminable area;
Third adjustment unit, for if it is not, shooting angle or the camera site of the virtual camera are then adjusted, so that institute
Target roles are stated to be overlapped with second predeterminable area and the most big end on the first direction and smallest end and second direction
On most big end and smallest end between first predeterminable area and second predeterminable area.
Optionally, the first adjustment unit may include:
The first adjustment subelement is overlapped and described first if can be used for the target roles with second predeterminable area
Most big end and smallest end on direction and one in the most big end and smallest end in second direction are in first preset areas
It is overseas, then control direction rotary taking angle of the virtual camera to the end outside first predeterminable area;
Second adjustment subelement is overlapped and described first if can be used for the target roles with second predeterminable area
One in most big end and smallest end on direction is with one in the most big end and smallest end in the second direction described
Outside first predeterminable area, then controls the virtual camera and successively revolved to the direction at two ends outside first predeterminable area
Turn shooting angle;
Third adjusts subelement, is overlapped with second predeterminable area and described first if can be used for the target roles
Most big end and smallest end on direction then controls the virtual camera to far from the target outside first predeterminable area
The direction of role adjusts camera site;
4th adjustment subelement, is overlapped and described second if can be used for the target roles with second predeterminable area
Most big end and smallest end on direction then controls the virtual camera to far from the target outside first predeterminable area
The direction of role adjusts camera site;
5th adjustment subelement, is overlapped and described first if can be used for the target roles with second predeterminable area
Most big end and smallest end on direction and at least three in the most big end and smallest end in second direction are pre- described first
If outside region, then controlling the virtual camera to the direction far from the target roles and adjusting camera site;
6th adjustment subelement, is not overlapped with second predeterminable area if can be used for the target roles, adjusts
The shooting angle of the virtual camera or shooting angle and the camera site of the adjustment virtual camera, so that the mesh
Mark role is overlapped and in most big end and smallest end and second direction on the first direction with second predeterminable area
Most big end and smallest end are in first predeterminable area.
Optionally, the second adjustment unit and third adjustment unit may each comprise:
7th adjustment subelement, if for the target roles most big end in said first direction and smallest end and
One in most big end and smallest end in second direction in second predeterminable area, then control the virtual camera to
The opposite direction rotary taking angle at the end in second predeterminable area;
8th adjustment subelement, if in the most big end and smallest end of the target roles in said first direction
One in most big end and smallest end in one and the second direction then controls the void in second predeterminable area
Quasi- video camera is successively to the opposite direction rotary taking angle at two ends in second predeterminable area;
9th adjustment subelement, if for the target roles most big end in said first direction and smallest end in institute
It states in the second predeterminable area, then controls the virtual camera to the direction close to the target roles and adjust camera site;
Tenth adjustment subelement, if for the target roles most big end in this second direction and smallest end in institute
It states in the second predeterminable area, then controls the virtual camera to the direction close to the target roles and adjust camera site;
11st adjustment subelement, if for the target roles most big end in said first direction and smallest end with
And at least three in the most big end and smallest end in second direction are in second predeterminable area, then control and described virtually take the photograph
Camera adjusts camera site to the direction close to the target roles.
Optionally, the first direction and the second direction are vertical.
In the embodiment of the present application, judge target roles whether be overlapped with the second predeterminable area and target roles in a first direction
On smallest end and most big end and second direction on most big end and smallest end the first predeterminable area and the second predeterminable area it
Between, if it is not, shooting angle and/or the camera site of virtual camera are then adjusted, in other words, in target roles and the second preset areas
Under the premise of domain is overlapped, as long as ensuring the minimum in the smallest end and most big end and second direction of target roles in a first direction
End and most big end be between the first predeterminable area and the second predeterminable area, then do not adjust virtual camera shooting angle and/
Or camera site, i.e., ensure target roles under the premise of will not remove two-dimensional display area, for target roles provide compared with
Big space, so that the control to target roles is more flexible, expansibility is strong, and the user experience is improved, and virtually takes the photograph
Camera need not be moved according to the movement of target roles in real time;In addition, since the first predeterminable area and the second predeterminable area can be with
Any region of two-dimensional display area is set, therefore, further increases the flexibility of the control to target roles.
The embodiment of the present application also provides a kind of display control apparatus, Figure 19 is the display control that one embodiment of the application provides
The structural schematic diagram of control equipment.As shown in figure 19, display control apparatus can generate bigger difference because configuration or performance are different
It is different, it may include one or more processor 1901 and memory 1902, can store one in memory 1902
Or more than one stores application program or data.Wherein, memory 1902 can be of short duration storage or persistent storage.It is stored in
The application program of reservoir 1902 may include one or more modules (diagram is not shown), and each module may include to aobvious
Show the series of computation machine executable instruction in control equipment.Further, processor 1901 can be set to and memory
1902 communications execute the series of computation machine executable instruction in memory 1902 on display control apparatus.Display control is set
Standby can also include one or more power supplys 1903, one or more wired or wireless network interfaces 1904, and one
Or more than one input/output interface 1905, one or more keyboards 1906 etc..
In a specific embodiment, display control apparatus is server, including memory, processor and is stored in institute
The computer executable instructions that can be run on memory and on the processor are stated, the computer executable instructions are described
Processor realizes following below scheme when executing:
First predeterminable area and the second predeterminable area are set in the two-dimensional display area, wherein described second is default
Region is in first predeterminable area;
Based on first predeterminable area and second predeterminable area setting first direction and second direction;
It determines in the most big end and smallest end and the second direction of the target roles in said first direction
Most big end and smallest end;
Judge the target roles whether be overlapped with second predeterminable area and the most big end on the first direction and
Most big end in smallest end and second direction and smallest end between first predeterminable area and second predeterminable area,
If it is not, then adjusting shooting angle and/or the camera site of the virtual camera.
Optionally, when the computer executable instructions are executed by the processor, the judgement target roles are
It is no to be overlapped with second predeterminable area and the maximum in most big end and smallest end and second direction on the first direction
End and smallest end are between first predeterminable area and second predeterminable area, if it is not, then adjusting the virtual camera
Shooting angle and/or camera site include:
Judge the target roles whether be overlapped with second predeterminable area and the most big end on the first direction and
Most big end and smallest end in smallest end and second direction is in first predeterminable area;
If it is not, shooting angle and/or the camera site of the virtual camera are then adjusted, so that the target roles and institute
The second predeterminable area is stated to be overlapped and the most big end on the first direction and the most big end in smallest end and second direction and most
Small end is in first predeterminable area;
Judge the maximum in the most big end and smallest end and second direction of the target roles in said first direction
Whether end and smallest end are outside second predeterminable area;
If it is not, then adjust shooting angle or the camera site of the virtual camera so that the target roles with it is described
The coincidence of second predeterminable area and the most big end on the first direction and most big end and minimum in smallest end and second direction
End is between first predeterminable area and second predeterminable area.
Optionally, when the computer executable instructions are executed by the processor, further includes:
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
And most big end in second direction and smallest end then judge the target roles described in first predeterminable area
Whether the most big end and smallest end on one direction and the most big end in second direction and smallest end are in second predeterminable area
Outside;
If it is not, then adjust shooting angle or the camera site of the virtual camera so that the target roles with it is described
The coincidence of second predeterminable area and the most big end on the first direction and most big end and minimum in smallest end and second direction
End is between first predeterminable area and second predeterminable area.
Optionally, it is described if it is not, then adjusting described virtual when the computer executable instructions are executed by the processor
The shooting angle of video camera and/or camera site, so that the target roles are overlapped and described with second predeterminable area
Most big end and smallest end on one direction and the most big end in second direction and smallest end are wrapped in first predeterminable area
It includes:
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
And one in the most big end and smallest end in second direction then controls the virtual camera shooting outside first predeterminable area
Direction rotary taking angle of the machine to the end outside first predeterminable area;
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
In one and the second direction on most big end and smallest end in one outside first predeterminable area, then control institute
Virtual camera is stated successively to the direction rotary taking angle at two ends outside first predeterminable area;
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
Outside first predeterminable area, then the virtual camera is controlled to the direction adjustment shooting position far from the target roles
It sets;
If the target roles are overlapped with second predeterminable area and most big end and smallest end in the second direction
Outside first predeterminable area, then the virtual camera is controlled to the direction adjustment shooting position far from the target roles
It sets;
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
And at least three in the most big end and smallest end in second direction then control described virtual outside first predeterminable area
Video camera adjusts camera site to the direction far from the target roles;
If the target roles are not overlapped with second predeterminable area, the shooting angle of the virtual camera is adjusted
Or shooting angle and the camera site of the adjustment virtual camera, so that the target roles and second predeterminable area
It is overlapped and the most big end on the first direction and the most big end in smallest end and second direction and smallest end is described first
In predeterminable area.
Optionally, it is described if it is not, then adjusting described virtual when the computer executable instructions are executed by the processor
The shooting angle of video camera or camera site, so that the target roles are overlapped with second predeterminable area and the first party
Most big end and smallest end in upward most big end and smallest end and second direction is in first predeterminable area and described
Include: between two predeterminable areas
If the most big end in the most big end and smallest end and second direction of the target roles in said first direction
With one in smallest end in second predeterminable area, then the virtual camera is controlled in second predeterminable area
The opposite direction rotary taking angle at interior end;
If one in the most big end and smallest end of the target roles in said first direction and the second direction
On most big end and smallest end in one in second predeterminable area, then control the virtual camera successively in institute
State the opposite direction rotary taking angle at two ends in the second predeterminable area;
If the target roles most big end in said first direction and smallest end in second predeterminable area,
It controls the virtual camera and adjusts camera site to the direction close to the target roles;
If the target roles most big end in this second direction and smallest end in second predeterminable area,
It controls the virtual camera and adjusts camera site to the direction close to the target roles;
If the most big end in the most big end and smallest end and second direction of the target roles in said first direction
With at least three in smallest end in second predeterminable area, then the virtual camera is controlled to close to the target angle
The direction of color adjusts camera site.
Optionally, when the computer executable instructions are executed by the processor, the first direction and described second
Direction is vertical.
In the embodiment of the present application, judge target roles whether be overlapped with the second predeterminable area and target roles in a first direction
On smallest end and most big end and second direction on most big end and smallest end the first predeterminable area and the second predeterminable area it
Between, if it is not, shooting angle and/or the camera site of virtual camera are then adjusted, in other words, in target roles and the second preset areas
Under the premise of domain is overlapped, as long as ensuring the minimum in the smallest end and most big end and second direction of target roles in a first direction
End and most big end be between the first predeterminable area and the second predeterminable area, then do not adjust virtual camera shooting angle and/
Or camera site, i.e., ensure target roles under the premise of will not remove two-dimensional display area, for target roles provide compared with
Big space, so that the control to target roles is more flexible, expansibility is strong, and the user experience is improved, and virtually takes the photograph
Camera need not be moved according to the movement of target roles in real time;In addition, since the first predeterminable area and the second predeterminable area can be with
Any region of two-dimensional display area is set, therefore, further increases the flexibility of the control to target roles.
Further, described computer-readable to deposit the embodiment of the present application also provides a kind of computer readable storage medium
Storage media is realized for storing computer executable instructions, when the computer executable instructions are executed by processor to flow down
Journey:
First predeterminable area and the second predeterminable area are set in the two-dimensional display area, wherein described second is default
Region is in first predeterminable area;
Based on first predeterminable area and second predeterminable area setting first direction and second direction;
It determines in the most big end and smallest end and the second direction of the target roles in said first direction
Most big end and smallest end;
Judge the target roles whether be overlapped with second predeterminable area and the most big end on the first direction and
Most big end in smallest end and second direction and smallest end between first predeterminable area and second predeterminable area,
If it is not, then adjusting shooting angle and/or the camera site of the virtual camera.
Optionally, when the computer executable instructions are executed by processor, it is described judge the target roles whether with
Second predeterminable area be overlapped and the most big end in the most big end on the first direction and smallest end and second direction and
Smallest end is between first predeterminable area and second predeterminable area, if it is not, then adjusting the bat of the virtual camera
It takes the photograph angle and/or camera site includes:
Judge the target roles whether be overlapped with second predeterminable area and the most big end on the first direction and
Most big end and smallest end in smallest end and second direction is in first predeterminable area;
If it is not, shooting angle and/or the camera site of the virtual camera are then adjusted, so that the target roles and institute
The second predeterminable area is stated to be overlapped and the most big end on the first direction and the most big end in smallest end and second direction and most
Small end is in first predeterminable area;
Judge the maximum in the most big end and smallest end and second direction of the target roles in said first direction
Whether end and smallest end are outside second predeterminable area;
If it is not, then adjust shooting angle or the camera site of the virtual camera so that the target roles with it is described
The coincidence of second predeterminable area and the most big end on the first direction and most big end and minimum in smallest end and second direction
End is between first predeterminable area and second predeterminable area.
Optionally, when the computer executable instructions are executed by processor, further includes:
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
And most big end in second direction and smallest end then judge the target roles described in first predeterminable area
Whether the most big end and smallest end on one direction and the most big end in second direction and smallest end are in second predeterminable area
Outside;
If it is not, then adjust shooting angle or the camera site of the virtual camera so that the target roles with it is described
The coincidence of second predeterminable area and the most big end on the first direction and most big end and minimum in smallest end and second direction
End is between first predeterminable area and second predeterminable area.
Optionally, it is described if it is not, then adjusting the virtual camera shooting when computer executable instructions are executed by processor
The shooting angle of machine and/or camera site, so that the target roles are overlapped with second predeterminable area and the first party
Most big end and smallest end in upward most big end and smallest end and second direction include: in first predeterminable area
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
And one in the most big end and smallest end in second direction then controls the virtual camera shooting outside first predeterminable area
Direction rotary taking angle of the machine to the end outside first predeterminable area;
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
In one and the second direction on most big end and smallest end in one outside first predeterminable area, then control institute
Virtual camera is stated successively to the direction rotary taking angle at two ends outside first predeterminable area;
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
Outside first predeterminable area, then the virtual camera is controlled to the direction adjustment shooting position far from the target roles
It sets;
If the target roles are overlapped with second predeterminable area and most big end and smallest end in the second direction
Outside first predeterminable area, then the virtual camera is controlled to the direction adjustment shooting position far from the target roles
It sets;
If the target roles are overlapped with second predeterminable area and most big end and smallest end on the first direction
And at least three in the most big end and smallest end in second direction then control described virtual outside first predeterminable area
Video camera adjusts camera site to the direction far from the target roles;
If the target roles are not overlapped with second predeterminable area, the shooting angle of the virtual camera is adjusted
Or shooting angle and the camera site of the adjustment virtual camera, so that the target roles and second predeterminable area
It is overlapped and the most big end on the first direction and the most big end in smallest end and second direction and smallest end is described first
In predeterminable area.
Optionally, it is described if it is not, then adjusting the virtual camera shooting when computer executable instructions are executed by processor
The shooting angle of machine or camera site, so that the target roles are overlapped with second predeterminable area and on the first direction
Most big end and the most big end in smallest end and second direction and smallest end in first predeterminable area and described second pre-
If including: between region
If the most big end in the most big end and smallest end and second direction of the target roles in said first direction
With one in smallest end in second predeterminable area, then the virtual camera is controlled in second predeterminable area
The opposite direction rotary taking angle at interior end;
If one in the most big end and smallest end of the target roles in said first direction and the second direction
On most big end and smallest end in one in second predeterminable area, then control the virtual camera successively in institute
State the opposite direction rotary taking angle at two ends in the second predeterminable area;
If the target roles most big end in said first direction and smallest end in second predeterminable area,
It controls the virtual camera and adjusts camera site to the direction close to the target roles;
If the target roles most big end in this second direction and smallest end in second predeterminable area,
It controls the virtual camera and adjusts camera site to the direction close to the target roles;
If the most big end in the most big end and smallest end and second direction of the target roles in said first direction
With at least three in smallest end in second predeterminable area, then the virtual camera is controlled to close to the target angle
The direction of color adjusts camera site.
Optionally, when the computer executable instructions are executed by processor, the first direction and the second direction
Vertically.
In the embodiment of the present application, judge target roles whether be overlapped with the second predeterminable area and target roles in a first direction
On smallest end and most big end and second direction on most big end and smallest end the first predeterminable area and the second predeterminable area it
Between, if it is not, shooting angle and/or the camera site of virtual camera are then adjusted, in other words, in target roles and the second preset areas
Under the premise of domain is overlapped, as long as ensuring the minimum in the smallest end and most big end and second direction of target roles in a first direction
End and most big end be between the first predeterminable area and the second predeterminable area, then do not adjust virtual camera shooting angle and/
Or camera site, i.e., ensure target roles under the premise of will not remove two-dimensional display area, for target roles provide compared with
Big space, so that the control to target roles is more flexible, expansibility is strong, and the user experience is improved, and virtually takes the photograph
Camera need not be moved according to the movement of target roles in real time;In addition, since the first predeterminable area and the second predeterminable area can be with
Any region of two-dimensional display area is set, therefore, further increases the flexibility of the control to target roles.
Wherein, the computer readable storage medium includes read-only memory (Read-Only Memory, abbreviation
ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.
Claims (12)
1. a kind of display control method, applied to the control to the virtual camera in three-dimensional virtual world, the virtual camera shooting
Machine maps out two-dimensional display area according to the screen accounting of the display screen in user terminal in the display screen, described virtual
Its virtual scene shot in the three-dimensional virtual world is mapped in two-dimensional display area by video camera, the virtual scene
Including target roles characterized by comprising
First predeterminable area and the second predeterminable area are set in the two-dimensional display area, wherein second predeterminable area
In first predeterminable area;
Based on first predeterminable area and second predeterminable area setting first direction and second direction;
Determine the maximum in the most big end and smallest end and the second direction of the target roles in said first direction
End and smallest end;
Judge whether the target roles are overlapped and most big end and minimum on the first direction with second predeterminable area
End and the most big end in second direction and smallest end between first predeterminable area and second predeterminable area, if
It is no, then adjust shooting angle and/or the camera site of the virtual camera.
2. display control method according to claim 1, which is characterized in that it is described judge the target roles whether with institute
The second predeterminable area is stated to be overlapped and the most big end on the first direction and the most big end in smallest end and second direction and most
Small end is between first predeterminable area and second predeterminable area, if it is not, then adjusting the shooting of the virtual camera
Angle and/or camera site include:
Judge whether the target roles are overlapped and most big end and minimum on the first direction with second predeterminable area
End and the most big end in second direction and smallest end are in first predeterminable area;
If it is not, then adjust shooting angle and/or the camera site of the virtual camera, so that the target roles and described the
The coincidence of two predeterminable areas and the most big end on the first direction and most big end and smallest end in smallest end and second direction
In first predeterminable area;
Judge most big end in the most big end and smallest end and second direction of the target roles in said first direction and
Whether smallest end is outside second predeterminable area;
If it is not, shooting angle or the camera site of the virtual camera are then adjusted, so that the target roles and described second
Predeterminable area is overlapped and the most big end on the first direction and the most big end in smallest end and second direction and smallest end exist
Between first predeterminable area and second predeterminable area.
3. display control method according to claim 2, which is characterized in that the method also includes:
If the target roles be overlapped with second predeterminable area and the most big end on the first direction and smallest end and
Most big end and smallest end in second direction then judge the target roles in the first party in first predeterminable area
Whether most big end and smallest end in upward most big end and smallest end and second direction are outside second predeterminable area;
If it is not, shooting angle or the camera site of the virtual camera are then adjusted, so that the target roles and described second
Predeterminable area is overlapped and the most big end on the first direction and the most big end in smallest end and second direction and smallest end exist
Between first predeterminable area and second predeterminable area.
4. display control method according to claim 2, which is characterized in that described if it is not, then adjusting the virtual camera shooting
The shooting angle of machine and/or camera site, so that the target roles are overlapped with second predeterminable area and the first party
Most big end and smallest end in upward most big end and smallest end and second direction include: in first predeterminable area
If the target roles be overlapped with second predeterminable area and the most big end on the first direction and smallest end and
One in most big end and smallest end in second direction outside first predeterminable area, then control the virtual camera to
The direction rotary taking angle at the end outside first predeterminable area;
If the target roles are overlapped with second predeterminable area and in most big ends and smallest end on the first direction
One in most big end and smallest end in one and the second direction then controls the void outside first predeterminable area
Quasi- video camera is successively to the direction rotary taking angle at two ends outside first predeterminable area;
If the target roles are overlapped with second predeterminable area and the most big end on the first direction and smallest end are in institute
It states outside the first predeterminable area, then controls the virtual camera to the direction far from the target roles and adjust camera site;
If the target roles are overlapped with second predeterminable area and the most big end in the second direction and smallest end are in institute
It states outside the first predeterminable area, then controls the virtual camera to the direction far from the target roles and adjust camera site;
If the target roles be overlapped with second predeterminable area and the most big end on the first direction and smallest end and
At least three in most big end and smallest end in second direction then control the virtual camera shooting outside first predeterminable area
Machine adjusts camera site to the direction far from the target roles;
If the target roles are not overlapped with second predeterminable area, adjust the virtual camera shooting angle or
Shooting angle and the camera site of the virtual camera are adjusted, so that the target roles are overlapped with second predeterminable area
And the most big end and smallest end on the first direction and the most big end in second direction and smallest end are default described first
In region.
5. display control method according to claim 2 or 3, which is characterized in that described described virtually to be taken the photograph if it is not, then adjusting
The shooting angle of camera or camera site, so that the target roles are overlapped with second predeterminable area and the first direction
On most big end and the most big end in smallest end and second direction and smallest end in first predeterminable area and described second
Include: between predeterminable area
If the most big end of the target roles in said first direction and the most big end in smallest end and second direction and most
One in small end then controls the virtual camera in second predeterminable area in second predeterminable area
The opposite direction rotary taking angle at end;
If in one in the most big end and smallest end of the target roles in said first direction and the second direction
One in most big end and smallest end then controls the virtual camera successively to described in second predeterminable area
The opposite direction rotary taking angle at two ends in two predeterminable areas;
If the target roles most big end in said first direction and smallest end control in second predeterminable area
The virtual camera adjusts camera site to the direction close to the target roles;
If the target roles most big end in this second direction and smallest end control in second predeterminable area
The virtual camera adjusts camera site to the direction close to the target roles;
If the most big end of the target roles in said first direction and the most big end in smallest end and second direction and most
In small end at least three in second predeterminable area, then control the virtual camera to close to the target roles
Direction adjusts camera site.
6. display control method according to any one of claims 1 to 4, which is characterized in that the first direction and institute
It is vertical to state second direction.
7. a kind of display control unit, applied to the control to the virtual camera in three-dimensional virtual world, the virtual camera shooting
Machine maps out two-dimensional display area according to the screen accounting of the display screen in user terminal in the display screen, described virtual
Its virtual scene shot in the three-dimensional virtual world is mapped in two-dimensional display area by video camera, the virtual scene
Including target roles characterized by comprising
First setup module, for the first predeterminable area and the second predeterminable area to be arranged in the two-dimensional display area, wherein
Second predeterminable area is in first predeterminable area;
Second setup module, for first direction and second to be arranged based on first predeterminable area and second predeterminable area
Direction;
Determining module, for determining the most big end and smallest end and described second of the target roles in said first direction
Most big end and smallest end on direction;
Judgement adjustment module, for judging whether the target roles are overlapped and the first direction with second predeterminable area
On most big end and the most big end in smallest end and second direction and smallest end in first predeterminable area and described second
Between predeterminable area, if it is not, then adjusting shooting angle and/or the camera site of the virtual camera.
8. display control unit according to claim 7, which is characterized in that the judgement adjusts module and includes:
First judging unit, for judging whether the target roles are overlapped and the first direction with second predeterminable area
On most big end and the most big end in smallest end and second direction and smallest end in first predeterminable area;
The first adjustment unit, for if it is not, shooting angle and/or the camera site of the virtual camera are then adjusted, so that institute
Target roles are stated to be overlapped with second predeterminable area and the most big end on the first direction and smallest end and second direction
On most big end and smallest end in first predeterminable area;
Second judgment unit, for judging the most big end and smallest end and second of the target roles in said first direction
Whether most big end and smallest end on direction are outside second predeterminable area;
Second adjustment unit, for if it is not, shooting angle or the camera site of the virtual camera are then adjusted, so that the mesh
Mark role is overlapped and in most big end and smallest end and second direction on the first direction with second predeterminable area
Most big end and smallest end are between first predeterminable area and second predeterminable area.
9. display control unit according to claim 8, which is characterized in that described device further include:
Third judging unit, if be overlapped for the target roles with second predeterminable area and on the first direction most
Most big end and smallest end in big end and smallest end and second direction then judge the target in first predeterminable area
Whether the most big end of role in said first direction and the most big end in smallest end and second direction and smallest end are described
Outside second predeterminable area;
Third adjustment unit, for if it is not, shooting angle or the camera site of the virtual camera are then adjusted, so that the mesh
Mark role is overlapped and in most big end and smallest end and second direction on the first direction with second predeterminable area
Most big end and smallest end are between first predeterminable area and second predeterminable area.
10. display control unit according to claim 8, which is characterized in that the first adjustment unit includes:
The first adjustment subelement, if being overlapped for the target roles with second predeterminable area and on the first direction
One in most big end and smallest end in most big end and smallest end and second direction is then controlled outside first predeterminable area
Make direction rotary taking angle of the virtual camera to the end outside first predeterminable area;
Second adjustment subelement, if being overlapped for the target roles with second predeterminable area and on the first direction
One in most big end and smallest end is default described first with one in the most big end and smallest end in the second direction
Outside region, then the virtual camera is controlled successively to the direction rotary taking angle at two ends outside first predeterminable area
Degree;
Third adjusts subelement, if being overlapped for the target roles with second predeterminable area and on the first direction
Most big end and smallest end then control the virtual camera to the side far from the target roles outside first predeterminable area
To adjustment camera site;
4th adjustment subelement, if being overlapped for the target roles with second predeterminable area and in the second direction
Most big end and smallest end then control the virtual camera to the side far from the target roles outside first predeterminable area
To adjustment camera site;
5th adjustment subelement, if being overlapped for the target roles with second predeterminable area and on the first direction
At least three in most big end and smallest end in most big end and smallest end and second direction outside first predeterminable area,
It then controls the virtual camera and adjusts camera site to the direction far from the target roles;
6th adjustment subelement adjusts described virtual if not being overlapped for the target roles with second predeterminable area
The shooting angle and camera site of the shooting angle of video camera or the adjustment virtual camera so that the target roles with
Second predeterminable area be overlapped and the most big end in the most big end on the first direction and smallest end and second direction and
Smallest end is in first predeterminable area.
11. display control unit according to claim 8 or claim 9, which is characterized in that the second adjustment unit and third tune
Whole unit includes:
7th adjustment subelement, if most big end and smallest end and second for the target roles in said first direction
One in most big end and smallest end on direction then controls the virtual camera in institute in second predeterminable area
State the opposite direction rotary taking angle at the end in the second predeterminable area;
8th adjustment subelement, if for one in the most big end and smallest end of the target roles in said first direction
With one in the most big end and smallest end in the second direction in second predeterminable area, then controls and described virtually take the photograph
Camera is successively to the opposite direction rotary taking angle at two ends in second predeterminable area;
9th adjustment subelement, if for the target roles most big end in said first direction and smallest end described the
In two predeterminable areas, then the virtual camera is controlled to the direction close to the target roles and adjusts camera site;
Tenth adjustment subelement, if for the target roles most big end in this second direction and smallest end described the
In two predeterminable areas, then the virtual camera is controlled to the direction close to the target roles and adjusts camera site;
11st adjustment subelement, if for the target roles most big end in said first direction and smallest end and the
At least three in most big end and smallest end on two directions then control the virtual camera in second predeterminable area
Camera site is adjusted to the direction close to the target roles.
12. the display control unit according to any one of claim 7~10, which is characterized in that the first direction and
The second direction is vertical.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910298451.0A CN109976533B (en) | 2019-04-15 | 2019-04-15 | Display control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910298451.0A CN109976533B (en) | 2019-04-15 | 2019-04-15 | Display control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109976533A true CN109976533A (en) | 2019-07-05 |
CN109976533B CN109976533B (en) | 2022-06-03 |
Family
ID=67084576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910298451.0A Active CN109976533B (en) | 2019-04-15 | 2019-04-15 | Display control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109976533B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115999150A (en) * | 2023-03-20 | 2023-04-25 | 北京云庐科技有限公司 | Interaction method, device and medium containing visual angle control in 3D virtual scene |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW594453B (en) * | 2002-07-26 | 2004-06-21 | Gwo-Jen Jan | Method for presenting fisheye-camera images |
CN101040518A (en) * | 2004-10-20 | 2007-09-19 | 夏普株式会社 | Image projecting method, projector, and computer program |
EP2471583A2 (en) * | 2010-12-29 | 2012-07-04 | Nintendo Co., Ltd. | Display control program, display control method, and display control system |
CN104732560A (en) * | 2015-02-03 | 2015-06-24 | 长春理工大学 | Virtual camera shooting method based on motion capture system |
CN104994293A (en) * | 2015-06-30 | 2015-10-21 | 广东欧珀移动通信有限公司 | Control method of wide angle camera and electronic terminal |
CN105005970A (en) * | 2015-06-26 | 2015-10-28 | 广东欧珀移动通信有限公司 | Augmented reality implementation method and apparatus |
CN107147841A (en) * | 2017-04-25 | 2017-09-08 | 北京小鸟看看科技有限公司 | A kind of binocular camera method of adjustment, device and system |
CN107710283A (en) * | 2016-12-02 | 2018-02-16 | 深圳市大疆创新科技有限公司 | A kind of filming control method, device and control device |
CN108476288A (en) * | 2017-05-24 | 2018-08-31 | 深圳市大疆创新科技有限公司 | Filming control method and device |
-
2019
- 2019-04-15 CN CN201910298451.0A patent/CN109976533B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW594453B (en) * | 2002-07-26 | 2004-06-21 | Gwo-Jen Jan | Method for presenting fisheye-camera images |
CN101040518A (en) * | 2004-10-20 | 2007-09-19 | 夏普株式会社 | Image projecting method, projector, and computer program |
EP2471583A2 (en) * | 2010-12-29 | 2012-07-04 | Nintendo Co., Ltd. | Display control program, display control method, and display control system |
CN104732560A (en) * | 2015-02-03 | 2015-06-24 | 长春理工大学 | Virtual camera shooting method based on motion capture system |
CN105005970A (en) * | 2015-06-26 | 2015-10-28 | 广东欧珀移动通信有限公司 | Augmented reality implementation method and apparatus |
CN104994293A (en) * | 2015-06-30 | 2015-10-21 | 广东欧珀移动通信有限公司 | Control method of wide angle camera and electronic terminal |
CN107710283A (en) * | 2016-12-02 | 2018-02-16 | 深圳市大疆创新科技有限公司 | A kind of filming control method, device and control device |
CN107147841A (en) * | 2017-04-25 | 2017-09-08 | 北京小鸟看看科技有限公司 | A kind of binocular camera method of adjustment, device and system |
CN108476288A (en) * | 2017-05-24 | 2018-08-31 | 深圳市大疆创新科技有限公司 | Filming control method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115999150A (en) * | 2023-03-20 | 2023-04-25 | 北京云庐科技有限公司 | Interaction method, device and medium containing visual angle control in 3D virtual scene |
Also Published As
Publication number | Publication date |
---|---|
CN109976533B (en) | 2022-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11703993B2 (en) | Method, apparatus and device for view switching of virtual environment, and storage medium | |
US11151773B2 (en) | Method and apparatus for adjusting viewing angle in virtual environment, and readable storage medium | |
US11087537B2 (en) | Method, device and medium for determining posture of virtual object in virtual environment | |
CN106097245B (en) | A kind for the treatment of method and apparatus of panorama 3D video image | |
CN102281455B (en) | Image display system, device and method | |
CN110148178B (en) | Camera positioning method, device, terminal and storage medium | |
US11074755B2 (en) | Method, device, terminal device and storage medium for realizing augmented reality image | |
CN109074083A (en) | Control method for movement, mobile robot and computer storage medium | |
KR20170089854A (en) | Display control device, display control method, and program | |
US11798223B2 (en) | Potentially visible set determining method and apparatus, device, and storage medium | |
RU2015134345A (en) | DEVICE, METHOD AND SYSTEM FOR RECONSTRUCTION OF 3D OBJECT MODEL | |
US20230360343A1 (en) | Method for observing virtual environment, device, and storage medium | |
CN106611441B (en) | The treating method and apparatus of three-dimensional map | |
US20240066404A1 (en) | Perspective rotation method and apparatus, device, and storage medium | |
CN116057577A (en) | Map for augmented reality | |
CN110361005A (en) | Positioning method, positioning device, readable storage medium and electronic equipment | |
CN106527887A (en) | Virtual object selection method and apparatus, and VR system | |
CN108064397A (en) | Establish method, crowdsourcing platform and the system of object three-dimensional image model | |
CN110120098A (en) | Scene size estimation and augmented reality control method, device and electronic equipment | |
CN105975172A (en) | Method and device for adjustment of panoramic video and mobile terminal | |
CN109976533A (en) | Display control method and device | |
CN110119189A (en) | The initialization of SLAM system, AR control method, device and system | |
CN107092348A (en) | A kind of vision positioning mark layout method in immersive VR roaming system | |
CN113034347B (en) | Oblique photography image processing method, device, processing equipment and storage medium | |
CN107025680A (en) | A kind of map rendering intent and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220726 Address after: No.16 and 17, unit 1, North District, Kailin center, No.51 Jinshui East Road, Zhengzhou area (Zhengdong), Henan pilot Free Trade Zone, Zhengzhou City, Henan Province, 450000 Patentee after: Zhengzhou Apas Technology Co.,Ltd. Address before: E301-27, building 1, No.1, hagongda Road, Tangjiawan Town, Zhuhai City, Guangdong Province Patentee before: ZHUHAI TIANYAN TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |