CN106293070B - Virtual role view directions control method and device - Google Patents

Virtual role view directions control method and device Download PDF

Info

Publication number
CN106293070B
CN106293070B CN201610609112.6A CN201610609112A CN106293070B CN 106293070 B CN106293070 B CN 106293070B CN 201610609112 A CN201610609112 A CN 201610609112A CN 106293070 B CN106293070 B CN 106293070B
Authority
CN
China
Prior art keywords
angle
virtual role
virtual
view directions
role
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610609112.6A
Other languages
Chinese (zh)
Other versions
CN106293070A (en
Inventor
任君宇
金融
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201610609112.6A priority Critical patent/CN106293070B/en
Publication of CN106293070A publication Critical patent/CN106293070A/en
Application granted granted Critical
Publication of CN106293070B publication Critical patent/CN106293070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure is directed to a kind of virtual role view directions control method and device, this method comprises: configuring the weight of all kinds of virtual objects;The information content of virtual objects in the virtual role visual field is calculated according to the weight of virtual objects in the view directions of virtual role and the virtual role visual field, and target is up to calculate visual angle and adjust the angle with the sum of the information content of virtual objects in the virtual role visual field;It is adjusted the angle according to the visual angle to adjust the view directions of virtual role.The disclosure is ensuring in the virtual role visual field to realize the function of automatic visual angle adjustment in the maximum situation of the sum of information content of virtual objects.

Description

Virtual role view directions control method and device
Technical field
This disclosure relates to human-computer interaction technique field, more particularly, to a kind of virtual role view directions control method And virtual role view directions control device.
Background technique
With the rapid development of mobile communication technology, occur more and more game applications on touch control terminal.It is swimming It plays in the operational process of application, touch control terminal shows various game objects according to certain layout, to be in user Existing scene of game and offer game operation interface.
Role Playing Game application on touch control terminal, such as (Action RolePlaying Game is moved ARPG Make role playing game), MMORPG (Massive Multiplayer Online Role Playing Games, large-scale more people Online role playing game) etc. in game applications, for the art effect obtained, the visual angle of virtual role can be furthered, So for a user, although having the open visual field, the behind of virtual role may have blind area.When virtual When the virtual objects for needing user to pay attention to occurs in the behind of role, user is difficult to make a response the virtual objects.For example, swimming It plays in copy, when the monster of user's emphasis collection fire occurs needing behind in game role, user is difficult to quickly find the monster And it is caused effectively to injure.
In order to solve this problem, in partial game application, user can be allowed voluntarily to manually adjust visual angle, visual angle adjustment Range can be 360 °.There is good operation in user and have the case where acumen is discovered to the appearance opportunity of virtual objects Under, visual angle can be adjusted in time.However, the shortcomings that this method, is: due to the frequent operation of user, will use family Generate feeling of fatigue;Voluntarily manually adjusting for user is not necessarily accurate;It is anticipated by user to the degree of understanding of game application and operation Know the influence of aspect, experience user not abundant is difficult to operate.
In other game applications, for especially important virtual objects, when needing fire fight bucket in open set, interface In can be set one and individually collect fiery icon.The method that visual angle is voluntarily manually adjusted relative to user, this method reduces The feeling of fatigue of user, and accuracy is improved, however, due to being limited by touch control terminal screen size, the interface UI without Method places too many collection fire icon, and institute can only be directed to especially important virtual objects in this way.That is, when existing When multiple virtual objects for needing user response, this mode is difficult to the information of all virtual objects being supplied to user.
Above two method has his own strong points, also each scarce.Although existing game application can be solved by the above method Certainly virtual role view directions control problem, but effect is bad.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide a kind of virtual role view directions control method and device, and then at least certain One or more is overcome the problems, such as caused by the limitation and defect due to the relevant technologies in degree.
According to the first aspect of the embodiments of the present disclosure, a kind of virtual role view directions control method is provided, wherein virtually Role is located at the 3D scene including an at least virtual objects;The virtual role view directions control method includes:
Configure the weight of all kinds of virtual objects;
According to the weight of the virtual objects in the view directions of the virtual role and the virtual role visual field come The information content of the virtual objects in the virtual role visual field is calculated, and with described virtual right in the virtual role visual field The sum of information content of elephant is up to target to calculate visual angle and adjust the angle;
It is adjusted the angle according to the visual angle to adjust the view directions of the virtual role.
In a kind of exemplary embodiment of the disclosure, the attribute of the virtual role has preset attribute, and the configuration is each The weight of virtual objects described in class includes:
The weight of all kinds of virtual objects is configured according to the preset attribute of the virtual role.
In a kind of exemplary embodiment of the disclosure, the letter for calculating the virtual objects in the virtual role visual field Breath amount includes:
Using the current location of the virtual role as pole, established by polar axis of the current visual angle direction of the virtual role Polar coordinate system;
According to polar angle and the void of each virtual objects in the virtual role visual field in the polar coordinate system Intend the weight of object to calculate the information content of the virtual objects.
In a kind of exemplary embodiment of the disclosure, the information content of the virtual objects is ρi cosθi, wherein ρiAnd θiThe weight of i-th virtual objects and the polar angle in the polar coordinate system in the respectively described virtual role visual field.
In a kind of exemplary embodiment of the disclosure, the calculating visual angle, which adjusts the angle, includes:
According to α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2) calculate the view Angle adjusts the angle, and wherein α is visual angle adjustment angle.
In a kind of exemplary embodiment of the disclosure, the calculating visual angle, which adjusts the angle, includes:
Calculate separately the virtual objects in the virtual role visual field under multiple default view directions information content it With;
Count corresponding default visual angle when the sum of information content of the virtual objects is maximum in the virtual role visual field Direction, and calculate the visual angle according to the default view directions and adjust the angle.
It is described to be adjusted the angle according to the visual angle to adjust the virtual role in a kind of exemplary embodiment of the disclosure View directions include:
Judge that the visual angle adjusts the angle and whether is greater than or equal to predetermined angle;
In the case where judging that the visual angle is adjusted the angle more than or equal to the predetermined angle, according to the visual angle tune Whole angle adjusts the view directions of the virtual role.
It is described to be adjusted the angle according to the visual angle to adjust the virtual role in a kind of exemplary embodiment of the disclosure View directions include:
Judge whether the virtual role is carrying out deliberate action;
Judge the virtual role in the case where carrying out the deliberate action, according to the visual angle adjust the angle come Adjust the view directions of the virtual role.
According to the second aspect of an embodiment of the present disclosure, a kind of virtual role view directions control device is provided, is applied to one Touch control terminal;The virtual role view directions control device includes:
Configuration module, for configuring the weight of all kinds of virtual objects;
Computing module, for according to described virtual in the view directions of the virtual role and the virtual role visual field The weight of object calculates the information content of the virtual objects in the virtual role visual field, and with the virtual role visual field The sum of the information content of the interior virtual objects is up to target to calculate visual angle and adjust the angle;
Module is adjusted, adjusts the view directions of the virtual role for adjusting the angle according to the visual angle.
In a kind of exemplary embodiment of the disclosure, the attribute of the virtual role has preset attribute, the configuration mould Root tuber configures the weight of all kinds of virtual objects according to the preset attribute of the virtual role.
In a kind of exemplary embodiment of the disclosure, the computing module includes the first computing unit, and described first calculates Unit is used to build using the current visual angle direction of the virtual role as polar axis using the current location of the virtual role as pole Vertical polar coordinate system, and according to polar angle of each virtual objects in the virtual role visual field in the polar coordinate system and The weight of the virtual objects calculates the information content of the virtual objects.
In a kind of exemplary embodiment of the disclosure, the apsi message of the virtual objects is shown as ρicosθi, wherein ρiWith And θiThe weight of i-th virtual objects and the pole in the polar coordinate system in the respectively described virtual role visual field Angle.
In a kind of exemplary embodiment of the disclosure, the computing module includes the second computing unit, and described second calculates Unit is used for according to α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2) described to calculate Visual angle adjusts the angle, and wherein α is visual angle adjustment angle.
In a kind of exemplary embodiment of the disclosure, the computing module further includes third computing unit, the third meter Calculate the information content that unit is used to calculate separately the virtual objects in the virtual role visual field under multiple default view directions The sum of, and count corresponding default visual angle when the sum of information content of the virtual objects is maximum in the virtual role visual field Direction, and calculate the visual angle according to the default view directions and adjust the angle.
In a kind of exemplary embodiment of the disclosure, the adjustment module includes:
Whether the first judging unit is greater than or equal to predetermined angle for judging that the visual angle adjusts the angle;
The first adjustment unit, for judging the case where visual angle is adjusted the angle more than or equal to the predetermined angle Under, it is adjusted the angle according to the visual angle to adjust the view directions of the virtual role.
In a kind of exemplary embodiment of the disclosure, the adjustment module includes:
Second judgment unit, for judging whether the virtual role is carrying out deliberate action;
Second adjustment unit, for judge the virtual role in the case where carrying out the deliberate action, according to The visual angle adjusts the angle to adjust the view directions of the virtual role.
Virtual role view directions control method and device in a kind of embodiment of the disclosure, can be according to virtual role Preset attribute configure the weights of all kinds of virtual objects, and the sum of information content of virtual objects is most in the virtual role visual field Visual angle is calculated in the case where big to adjust the angle.On the one hand, the function that automatic visual angle adjustment may be implemented is adjusted manually compared to user The mode at whole visual angle reduces operation of the user for visual angle, is easy to operate game application;On the other hand, for different Virtual objects configure different weights, and the information content that not only virtual role can be made to receive is maximum, and can make user It avoids missing the information (such as weight configures high virtual objects) for needing to pay close attention to;In another aspect, compared to collection fire is increased The mode of icon, it is possible to reduce increase icon in interface, and then can show scene of game with more pictures.Cause This, can significantly promote user experience by the disclosure.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates one of exemplary embodiment of disclosure virtual role view directions control method Flow chart;
Fig. 2 diagrammatically illustrates a kind of flow chart of step S2 in disclosure exemplary embodiment;
Fig. 3 diagrammatically illustrates the game application interface of the calculating information content in disclosure exemplary embodiment;
Fig. 4 diagrammatically illustrates another flow chart of step S2 in disclosure exemplary embodiment;
Fig. 5 diagrammatically illustrates a kind of box of virtual role view directions control device in disclosure exemplary embodiment Figure;
Fig. 6 diagrammatically illustrates a kind of block diagram of computing module in disclosure exemplary embodiment;
Fig. 7 diagrammatically illustrates another block diagram of computing module in disclosure exemplary embodiment;
Fig. 8 diagrammatically illustrates a kind of block diagram that module is adjusted in disclosure exemplary embodiment.
Specific embodiment
Illustrative embodiments are described more fully with reference to the drawings.However, illustrative embodiments can be with more Kind form is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will More fully and completely, and by the design of illustrative embodiments comprehensively it is communicated to those skilled in the art.It is described Feature, structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, Many details are provided to provide and fully understand to embodiment of the present disclosure.However, those skilled in the art will anticipate Know, can be omitted with technical solution of the disclosure one or more in the specific detail, or it can be used Its method, constituent element, device, step etc..In other cases, known solution is not shown in detail or describes to avoid noisy guest Take by force main and all aspects of this disclosure are thickened.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
A kind of virtual role view directions control method, virtual role view are provided firstly in this illustrative embodiment Angular direction control method is mainly used in a touch control terminal.The touch control terminal can be for example mobile phone, tablet computer, notebook electricity The various electronic equipments for having Touch Screen such as brain, game machine, PDA.But it should be recognized that in the non-touch control terminal in part Keyboard and mouse action may be modeled as touch control operation by modes such as simulators, this mode can equally be considered as this public affairs Touch control terminal described in opening.With reference to Fig. 1, the virtual role view directions control method be may comprise steps of:
S1. the weight of all kinds of virtual objects is configured.
The virtual objects refer to virtual role there are interactive object, in game application, the virtual objects It may include various types of objects, for example, object of attack (such as monster) or companion (such as teammate).Further, the void The weight of quasi- object refers to wishing the degree that virtual role pays close attention to the virtual objects.Therefore, all kinds of virtual objects are configured Weight means to set corresponding numerical value to the degree of concern of virtual objects according to virtual role.
In addition, in game application, different virtual roles be may have in order to make user meet different game experiencings Different preset attribute, for example, the preset attribute of virtual role can in the application of some Action Role Playing game (ARPG) To include school, the occupation etc. of virtual role;In some more online tactics sports class game (MOBA) applications of people, virtual role Preset attribute may include virtual role team positioning etc..With different preset attribute virtual roles, for same void There may be differences for the degree of concern of quasi- object.It, can also be according to the default of virtual role in this example embodiment based on this Attribute configures the weights of all kinds of virtual objects.
For example, the virtual role of output type occupation may be needed to pay close attention to object of attack emphatically, and for teammate's Concern may be relatively small.That is, the weight of object of attack is greater than the power of companion for the virtual role of output type occupation Weight.In addition, the degree of concern of the virtual role of output type occupation may be different, for example, elite for different objects of attack The weight of the object of attack (that is, causing virtual role compared with the object of attack of major injury) of class may be larger, and common attack The weight of object (that is, object of attack that smaller injury is caused to virtual role) may be smaller.In addition, some pure output type occupations Virtual role may not pay close attention to companion, in this case, the weight of companion is zero.With the virtual role of output type occupation On the contrary, may need to pay close attention to emphatically companion's information (e.g., blood volume, magic amount etc.) for the virtual role of therapeutic type occupation, this When, the weight of companion is greater than the weight of object of attack.For example, table 1 is to be configured according to the preset attribute of virtual role respectively One example of the weight of class virtual objects, but the present disclosure is not limited thereto.
Table 1
Occupation Teammate Monster a The strange b of elite Monster ...
A (without paying close attention to the occupation of teammate) 0 1 5 ……
B 1 1 5 ……
C 1 1 5 ……
D (occupation for paying close attention to teammate) 5 1 5 ……
As shown in table 1, professional A is pure output type occupation, and for the virtual role of professional A, teammate's weight is 0, strange The weight of object a is 1, and the weight of the strange b of elite is 5.Professional D be emphasis pay close attention to teammate occupation, for professional D virtual role and Speech, teammate's weight are 5, and the weight of monster a is 1, and the weight of the strange b of elite is 5.
Pass through the weight configuration mode in this example embodiment, on the one hand, can represent in digital form virtual Role is conducive to calculation processing to the degree of concern of all kinds of virtual objects;On the other hand, for different types of virtual role, Different weights is cooked up, can satisfy experience of the user to different types of virtual role.
S2. it is counted according to the weight of the virtual objects in the view directions of virtual role and the virtual role visual field The information content of the virtual objects in the virtual role visual field is calculated, and with the virtual objects in the virtual role visual field The sum of information content be up to target to calculate visual angle and adjust the angle.
With reference to shown in Fig. 2, in this illustrative embodiment, the step S2 may include:
S21. using the current location of the virtual role as pole, using the current visual angle direction of the virtual role as polar axis Establish polar coordinate system.In this example embodiment in such a way that polar coordinates are handled, has to facilitate and establish coordinate, equation letter List and it is easy to the advantages that calculating.But in other exemplary embodiments of the disclosure, other coordinate systems can also be used, such as Eulerian coordinate system carries out Modeling Calculation, therefore the present disclosure is not limited thereto.
S22. the polar angle and institute according to each virtual objects in the virtual role visual field in the polar coordinate system The weight of virtual objects is stated to calculate the information content of the virtual objects, and the apsi message of the virtual objects is shown as ρi cosθi.Wherein, ρiAnd θiThe weight of i-th virtual objects and in the pole in the respectively described virtual role visual field Polar angle in coordinate system.In this case, the information content of the virtual objects may, for example, be information content or the teammate of monster Information content.In addition, in this illustrative embodiment, in addition to using the form of cosine, can also use other three Angle function type, however, the present disclosure is not limited thereto, it alternatively, can be using other mathematical way in addition to trigonometric function To indicate the information content of the virtual objects.
With reference to Fig. 3, wherein O point is the current location of virtual role, and the direction OX is the current visual angle direction of virtual role. Using O point as pole, polar coordinate system is established by polar axis of OX, it can be seen that θ1For pole of the teammate M in the polar coordinate system Angle, if the weight of teammate M is ρ1, then the information content of teammate M is ρ1cosθ1.Similarly it can be concluded that the information content of monster a is ρ2cos θ2, the information content of the strange b of elite is ρ3cosθ3
S23. the information content of virtual objects in the virtual role visual field is added, obtains Σ ρ i cos θi
S24. the visual angle is calculated using the method for trigonometric function extreme value to adjust the angle.
Assuming that it is α that the visual angle, which adjusts the angle, in the method for the trigonometric function extreme value, target is to make the virtual angle The information content of all virtual objects is maximum in color visual field, and in this case, information content maximum formula becomes Pα=Σ ρi(cosθi + α), formula expansion can be obtained:
Pα=Σ ρi(cosθi+α)
=Σ ρi(cosθi cosα-sinθi sinα)
=Σ ρi cosθi cosα-Σρi sinθi sinα
=cos α × Σ ρi cosθi-sinα×Σρi sinθi
=((Σ ρi cosθi)2+(Σρisinθi)2)1/2×sin(α+Φ)
Wherein sin Φ=Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2
That is Φ=arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2)
Since as sin (α+Φ)=1, PαMaximum, so there is+Φ=90 ° α
α is adjusted the angle to acquire the visual angle, it may be assumed that
α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2)
The range of α are as follows: 180 ° >=α >=-180 °.When α is positive value, can indicate counterclockwise to be adjusted visual angle, and When α is negative value, can indicate clockwise to be adjusted visual angle.
With reference to Fig. 4, in the another exemplary embodiment of the disclosure, after step s 22, the step S2 can be with Include:
S25. the information of the virtual objects in the virtual role visual field under multiple default view directions is calculated separately The sum of amount.
The multiple default view directions can be certain angular interval (for example, 2 °, 5 °, 10 ° etc.) and the visual angle of acquisition Direction, but not limited to this, the multiple default view directions can also be the view directions taken with specific rule, this is exemplary Particular determination is not done in embodiment to this.
S26. it counts corresponding default when the sum of information content of the virtual objects is maximum in the virtual role visual field View directions, and calculate the visual angle according to the default view directions and adjust the angle.
In the illustrative embodiments of the disclosure, the method that visual angle adjusts the angle that calculates is given, however, the disclosure is not It is limited to this, the visual angle can be adjusted the angle by other means and calculated.
S3. it is adjusted the angle according to the visual angle to adjust the view directions of the virtual role.
Be calculated visual angle adjust the angle after, can be applied by rotatable game in virtual camera angle coverage The view directions of adjustment virtual role are adjusted the angle according to obtained visual angle.Further, since relative to virtual role, virtual objects Position change in real time, therefore visual angle calculated adjust the angle also can real-time change, when visual angle adjust the angle it is smaller when, The phenomenon that continually adjustment may be such that virtual role shakes.In order to solve the problems, such as shake, it is pre- that one can be preset If angle, when visual angle calculated, which adjusts the angle, is less than the predetermined angle, view directions will not be adjusted, it is ensured that trip The stationarity at play visual angle.May be used also that is, being adjusted the angle according to the visual angle to adjust the view directions of the virtual role To include: to judge that the visual angle adjusts the angle whether to be greater than or equal to predetermined angle;At the visual angle, adjustment angle is greater than or waits In the case where the predetermined angle, adjusted the angle according to the visual angle to adjust the view directions of the virtual role.In addition, Above-mentioned predetermined angle can be have been set in game application development process, can also by user's sets itself predetermined angle, Particular determination is not done in this illustrative embodiment to this.
In some game applications, if adjusting visual angle during virtual role is mobile, user will form The double effect that position displacement adds visual angle to rotate, may bring certain sense of discomfort to user.And it is carried out in virtual role pre- If virtual role may not move during movement, then adjustment view directions can only generate a rotating effect at this moment, avoid User's dizziness.Therefore, in this illustrative embodiments, in order to further ensure that the stationarity and suitable object for appreciation property of game application, In Before the view directions for adjusting the virtual role, it can also judge whether the virtual role is carrying out deliberate action, for example, The deliberate action can be release technical ability or it is general attack, but not limited to this.Therefore, it is adjusted the angle according to the visual angle to adjust The view directions for stating virtual role can also include: to judge whether the virtual role is carrying out deliberate action;Described in judgement Virtual role is adjusted the angle according to the visual angle in the case where carrying out the deliberate action to adjust the view of the virtual role Angular direction.
In addition, the virtual role view directions control method further includes adjusting view directions with rotational angular velocity k, turn Dynamic angular speed k indicates the angle of visual angle adjustment per second.If the time for carrying out a deliberate action is t, once preset Movement, the angle of visual angle adjustment are t × k.For example, predetermined angle is 10 °, then if it is 20 ° that calculated visual angle, which adjusts the angle, Meet the condition of visual angle adjustment.When virtual role carries out general attack, if it is 500ms and set for carrying out the primary general time attacked Rotational angular velocity be 10 °/s, then it is primary it is general attack after, the angle of visual angle adjustment is 5 °, therefore, carry out four times it is general attack after, Visual angle adjustment process terminates.
It should be noted that although describing each step of method in the disclosure in the accompanying drawings with particular order, this is simultaneously Undesired or hint must execute these steps in this particular order, or have to carry out the ability of step shown in whole Realize desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, And/or a step is decomposed into execution of multiple steps etc..
Further, a kind of virtual role view directions control device is additionally provided in this example embodiment, is applied to One touch control terminal.Described in reference diagram 5, which may include configuration module 11, computing module 12 and adjustment module 13, in which:
Configuration module 11 can be used for configuring the weight of all kinds of virtual objects;
Computing module 12 can be used for according to institute in the view directions of the virtual role and the virtual role visual field The weight of virtual objects is stated to calculate the information content of the virtual objects in the virtual role visual field, and with the virtual angle The sum of the information content of the virtual objects is up to target to calculate visual angle and adjust the angle in color visual field;
Module 13 is adjusted, can be used for being adjusted the angle according to the visual angle to adjust the view directions of the virtual role.
In the present exemplary embodiment, the attribute of the virtual role has preset attribute, and the configuration module is according to The preset attribute of virtual role configures the weights of all kinds of virtual objects.
With reference to shown in Fig. 6, in the present exemplary embodiment, the computing module 12 may include the first computing unit 121 With the second computing unit 122.Wherein:
First computing unit 121 can be used for using the current location of the virtual role as pole, with described virtual The current visual angle direction of role is polar axis to establish polar coordinate system, and according to each described virtual right in the virtual role visual field The information content of the virtual objects is calculated as the weight of polar angle and the virtual objects in the polar coordinate system;
Second computing unit 122 can be used for basis
α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2)
It is adjusted the angle to calculate the visual angle, wherein α is visual angle adjustment angle;
With reference to shown in Fig. 7, the computing module 12 may include the first computing unit 121 and third computing unit 123, Wherein:
The third computing unit 123 can be used for calculating separately the virtual role view under multiple default view directions The sum of the information content of the virtual objects in open country, and count the information content of the virtual objects in the virtual role visual field The sum of it is maximum when corresponding default view directions, and calculate the visual angle according to the default view directions and adjust the angle.
With reference to shown in Fig. 8, in the present exemplary embodiment, adjustment module 13 can also include the first judging unit 131, the Two judging units 132, the first adjustment unit 133 and second adjustment unit 134, in which:
First judging unit 131 judges that the visual angle adjusts the angle and whether is greater than or equal to predetermined angle, is judging The visual angle is adjusted the angle more than or equal in the case where the predetermined angle, and the first adjustment unit 133 is according to the view Angle adjusts the angle to adjust the view directions of the virtual role;
The second judgment unit 132 judge the virtual role whether carry out deliberate action, judge it is described virtually In the case where carrying out the deliberate action, the second adjustment unit 134 adjusts the angle to adjust according to the visual angle role The view directions of the virtual role.
The detail of each module is in corresponding virtual role control in above-mentioned virtual role control mode switch device It has carried out wanting to describe in detail in mode switching method processed, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, touch control terminal or network equipment etc.) is executed according to disclosure embodiment Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of virtual role view directions control method, wherein the virtual role is located at the 3D including an at least virtual objects Scene;It is characterized in that, the virtual role view directions control method includes:
According to the preset attribute of the virtual role, the weight of all kinds of virtual objects is configured;
It is calculated according to the weight of the virtual objects in the view directions of the virtual role and the virtual role visual field The information content of the virtual objects in the virtual role visual field, and with the virtual objects in the virtual role visual field The sum of information content is up to target to calculate visual angle and adjust the angle;
It is adjusted the angle according to the visual angle to adjust the view directions of the virtual role.
2. virtual role view directions control method according to claim 1, which is characterized in that the calculating is described virtual The information content of the virtual objects includes: in character view
Using the current location of the virtual role as pole, pole is established as polar axis using the current visual angle direction of the virtual role and is sat Mark system;
According to polar angle of each virtual objects in the virtual role visual field in the polar coordinate system and described virtual right The weight of elephant calculates the information content of the virtual objects.
3. virtual role view directions control method according to claim 2, which is characterized in that by the virtual objects Apsi message is shown as ρi cosθi,
Wherein, ρiAnd θiIt the weight of i-th virtual objects and is sat in the pole in the respectively described virtual role visual field Polar angle in mark system.
4. virtual role view directions control method according to claim 3, which is characterized in that the calculating visual angle adjustment Angle includes:
According to α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρisinθi)2)1/2) calculate the visual angle adjustment Angle, wherein α is visual angle adjustment angle.
5. virtual role view directions control method according to claim 2 or 3, which is characterized in that the calculating visual angle Adjustment angle includes:
Calculate separately the sum of the information content of the virtual objects in the virtual role visual field under multiple default view directions;
Corresponding default view directions when the sum of information content of the virtual objects is maximum in the virtual role visual field are counted, And the visual angle is calculated according to the default view directions and is adjusted the angle.
6. virtual role view directions control method according to claim 2 or 3, which is characterized in that described according to Visual angle adjusts the angle includes: the view directions that adjust the virtual role
Judge that the visual angle adjusts the angle and whether is greater than or equal to predetermined angle;
In the case where judging that the visual angle is adjusted the angle more than or equal to the predetermined angle, according to the visual angle adjusting angle It spends to adjust the view directions of the virtual role.
7. virtual role view directions control method according to claim 2 or 3, which is characterized in that described according to Visual angle adjusts the angle includes: the view directions that adjust the virtual role
Judge whether the virtual role is carrying out deliberate action;
Judging that the virtual role in the case where carrying out the deliberate action, adjusts the angle according to the visual angle and adjust The view directions of the virtual role.
8. a kind of virtual role view directions control device is applied to a touch control terminal;It is characterized in that, the virtual role view Angular direction control device includes:
Configuration module configures the weight of all kinds of virtual objects for the preset attribute according to virtual role;
Computing module, for according to the virtual objects in the view directions of the virtual role and the virtual role visual field Weight calculate the information content of the virtual objects in the virtual role visual field, and with institute in the virtual role visual field The sum of the information content for stating virtual objects is up to target to calculate visual angle and adjust the angle;
Module is adjusted, adjusts the view directions of the virtual role for adjusting the angle according to the visual angle.
9. virtual role view directions control device according to claim 8, which is characterized in that the computing module includes First computing unit, first computing unit are used for using the current location of the virtual role as pole, with the virtual angle The current visual angle direction of color is polar axis to establish polar coordinate system, and according to each virtual objects in the virtual role visual field The weight of polar angle and the virtual objects in the polar coordinate system calculates the information content of the virtual objects.
10. virtual role view directions control device according to claim 9, which is characterized in that the virtual objects Apsi message is shown as ρi cosθi,
Wherein, ρiAnd θiIt the weight of i-th virtual objects and is sat in the pole in the respectively described virtual role visual field Polar angle in mark system.
11. virtual role view directions control device according to claim 10, which is characterized in that the computing module is also Including the second computing unit, second computing unit is used for basis
α=90 °-arcsin (Σ ρicosθi/((Σρicosθi)2+(Σρi sinθi)2)1/2)
It is adjusted the angle to calculate the visual angle, wherein α is visual angle adjustment angle.
12. virtual role view directions control device according to claim 9 or 10, which is characterized in that the calculating mould Block further includes third computing unit, and the third computing unit is described virtual under multiple default view directions for calculating separately The sum of the information content of the virtual objects in character view, and count the virtual objects in the virtual role visual field The sum of information content corresponding default view directions when maximum, and the visual angle adjusting angle is calculated according to the default view directions Degree.
13. virtual role view directions control device according to claim 9 or 10, which is characterized in that the adjustment mould Block includes:
Whether the first judging unit is greater than or equal to predetermined angle for judging that the visual angle adjusts the angle;
The first adjustment unit, for judge the visual angle adjust the angle be greater than or equal to the predetermined angle in the case where, It is adjusted the angle according to the visual angle to adjust the view directions of the virtual role.
14. virtual role view directions control device according to claim 9 or 10, which is characterized in that the adjustment mould Block includes:
Second judgment unit, for judging whether the virtual role is carrying out deliberate action;
Second adjustment unit, for judging the virtual role in the case where carrying out the deliberate action, according to described Visual angle adjusts the angle to adjust the view directions of the virtual role.
CN201610609112.6A 2016-07-27 2016-07-27 Virtual role view directions control method and device Active CN106293070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610609112.6A CN106293070B (en) 2016-07-27 2016-07-27 Virtual role view directions control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610609112.6A CN106293070B (en) 2016-07-27 2016-07-27 Virtual role view directions control method and device

Publications (2)

Publication Number Publication Date
CN106293070A CN106293070A (en) 2017-01-04
CN106293070B true CN106293070B (en) 2019-11-15

Family

ID=57662524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610609112.6A Active CN106293070B (en) 2016-07-27 2016-07-27 Virtual role view directions control method and device

Country Status (1)

Country Link
CN (1) CN106293070B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106774941B (en) * 2017-01-16 2019-11-19 福建农林大学 Touch screen terminal 3D virtual role moves the solution to conflict with scene camera
CN108989268B (en) * 2017-06-01 2021-03-02 腾讯科技(深圳)有限公司 Session display method and device and computer equipment
CN109550246B (en) 2017-09-25 2022-03-25 腾讯科技(深圳)有限公司 Control method and device for game client, storage medium and electronic device
CN108245890B (en) * 2018-02-28 2021-04-27 网易(杭州)网络有限公司 Method and device for controlling movement of object in virtual scene
CN108635857B (en) 2018-05-18 2022-04-22 腾讯科技(深圳)有限公司 Interface display method and device, electronic device and computer readable storage medium
CN110448906A (en) * 2018-11-13 2019-11-15 网易(杭州)网络有限公司 The control method and device at visual angle, touch control terminal in game
CN110141869A (en) * 2019-04-11 2019-08-20 腾讯科技(深圳)有限公司 Method of controlling operation thereof, device, electronic equipment and storage medium
CN110300266B (en) * 2019-07-04 2021-04-02 珠海西山居移动游戏科技有限公司 Lens moving method and system, computing device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0942397A2 (en) * 1994-08-03 1999-09-15 Nippon Telegraph and Telephone Corporation Shared virtual space display method and apparatus using said method
CN101639927A (en) * 2008-07-31 2010-02-03 国际商业机器公司 Method and system for adjusting virtual display device in virtual world
CN105056528A (en) * 2015-07-23 2015-11-18 珠海金山网络游戏科技有限公司 Virtual character moving method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2404546B (en) * 2003-07-25 2005-12-14 Purple Interactive Ltd A method of organising and displaying material content on a display to a viewer
US20070091037A1 (en) * 2005-10-21 2007-04-26 Yee-Chun Lee Energy Efficient Compact Display For Mobile Device
CN103823705A (en) * 2013-11-08 2014-05-28 广州菲动软件科技有限公司 Virtual character turning control method and virtual character turning control system
CN104243814B (en) * 2014-07-28 2018-02-02 小米科技有限责任公司 Analysis method, image taking reminding method and the device of objects in images layout

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0942397A2 (en) * 1994-08-03 1999-09-15 Nippon Telegraph and Telephone Corporation Shared virtual space display method and apparatus using said method
CN101639927A (en) * 2008-07-31 2010-02-03 国际商业机器公司 Method and system for adjusting virtual display device in virtual world
CN105056528A (en) * 2015-07-23 2015-11-18 珠海金山网络游戏科技有限公司 Virtual character moving method and apparatus

Also Published As

Publication number Publication date
CN106293070A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106293070B (en) Virtual role view directions control method and device
US11308672B2 (en) Telepresence of users in interactive virtual spaces
JP7177288B2 (en) VIRTUAL OBJECT CONTROL METHOD, APPARATUS, DEVICE, AND COMPUTER PROGRAM
EP3347795B1 (en) Tactile interaction in virtual environments
CN104936665B (en) Cooperation augmented reality
CN102884490B (en) On the stable Virtual Space of sharing, maintain many views
WO2021043000A1 (en) Information interaction method and related device
CN105117579B (en) Object select method and apparatus
Soltani et al. Developing a gesture-based game for deaf/mute people using microsoft kinect
JP6721072B2 (en) Calculation processing execution method, calculation processing system and program
Lugrin et al. CaveUDK: a VR game engine middleware
JP7137719B2 (en) Virtual object selection method, device, terminal and program
US20190272024A1 (en) System, method and apparatus of simulating physics in a virtual environment
Ha et al. A VR serious game for fire evacuation drill with synchronized tele-collaboration among users
CN107463261A (en) Three-dimensional interaction system and method
CN113101666B (en) Game character model method, apparatus, computer device, and storage medium
Nair et al. Towards a Generalized Acoustic Minimap for Visually Impaired Gamers
CN109847350A (en) Game implementation method, game system and storage medium based on AR technology
US20220417490A1 (en) Information processing system, information processing method, and information processing program
Aitpayev et al. Collision Avatar (CA): Adding collision objects for human body in augmented reality using Kinect
Casas et al. Multi-reality games: An experience across the entire reality-virtuality continuum
Cabral et al. Batmen-Hybrid collaborative object manipulation using mobile devices
Piumsomboon et al. KITE: Platform for mobile Augmented Reality gaming and interaction using magnetic tracking and depth sensing
Rautaray et al. Manipulating objects through hand gesture recognition in virtual environment
Tahir et al. Wiimote squash: comparing DTW and WFM techniques for 3D gesture recognition.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant