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

Virtual role view directions control method and device Download PDF

Info

Publication number
CN106293070A
CN106293070A CN201610609112.6A CN201610609112A CN106293070A CN 106293070 A CN106293070 A CN 106293070A CN 201610609112 A CN201610609112 A CN 201610609112A CN 106293070 A CN106293070 A CN 106293070A
Authority
CN
China
Prior art keywords
virtual role
angle
described 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.)
Granted
Application number
CN201610609112.6A
Other languages
Chinese (zh)
Other versions
CN106293070B (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, the method includes: configure the weight of all kinds of virtual objects;The quantity of information of virtual objects in the weight of virtual objects calculates this virtual role visual field in view directions according to virtual role and the virtual role visual field, and be target to the maximum with the quantity of information sum of virtual objects in this virtual role visual field and adjust angle to calculate visual angle;Adjust angle according to this visual angle and adjust the view directions of virtual role.The disclosure is in the case of the quantity of information sum maximum guaranteeing virtual objects in the virtual role visual field, it is achieved that the function of automatic visual angle adjustment.

Description

Virtual role view directions control method and device
Technical field
It relates to human-computer interaction technique field, more particularly, to a kind of virtual role view directions control method And virtual role view directions controls device.
Background technology
Along with the fast development of mobile communication technology, touch control terminal occurs in that application of more and more playing.In trip Play application running in, various game objects are shown by touch control terminal according to certain layout, in order to user in Existing scene of game and offer game operation interface.
Role Playing Game application on touch control terminal, and such as ARPG (Action RolePlaying Game, dynamic Make RPG (Role-playing game)), MMORPG (Massive Multiplayer Online Role Playing Games, large-scale many people Online RPG (Role-playing game)) etc. in game application, for the art effect obtained, can be furthered in the visual angle of virtual role, The most for a user, although there is the open visual field, but the behind of virtual role may exist blind area.When virtual When the virtual objects needing user to note occurs in the behind of role, user is difficult to respond this virtual objects.Such as, in trip In play copy, occurring needing the monster of user's emphasis collection fire behind once game role, user is difficult to quickly find this monster And it is caused effective injury.
In order to solve this problem, in partial game is applied, user can be allowed to manually adjust visual angle voluntarily, visual angle adjusts Scope can be 360 °.In the situation that user has a good operation and the appearance to virtual objects has acumen to discover the opportunity Under, visual angle can be adjusted in time.But, the shortcoming of this method is: due to the frequent operation of user, can make user Produce feeling of fatigue;Manually adjusting voluntarily of user is the most accurate;Degree of understanding and the operation applied game by user are anticipated Impact in terms of knowledge, the user that experience is not enriched is difficult to operate.
In other game application, for the virtual objects of particular importance, when needing fire fight bucket in open set, interface In can arrange one single collection fire icon.The method manually adjusting visual angle relative to user voluntarily, this method reduces The feeling of fatigue of user, and accuracy is improved, but, owing to being limited by touch control terminal screen size, UI interface without Method places too many collection fire icon, by this way can only be for the virtual objects of particular importance.It is to say, when existing During the virtual objects that multiple users of needs respond, this mode is difficult to the information of all virtual objects is supplied to user.
Above two method has his own strong points, and has also respectively lacked.Although existing game application can be solved by said method Certainly virtual role view directions control problem, but effect is the best.
It should be noted that be only used for strengthening the reason of background of this disclosure in information disclosed in above-mentioned background section Solve, therefore can include not constituting the information to prior art known to persons of ordinary skill in the art.
Summary of the invention
The purpose of the disclosure is to provide a kind of virtual role view directions control method and device, and then at least necessarily One or more problem caused due to restriction and the defect of correlation technique is overcome in degree.
First aspect according to disclosure embodiment, it is provided that a kind of virtual role view directions control method, the most virtual Role is positioned at the 3D scene including at least one virtual objects;Described virtual role view directions control method includes:
Configure the weight of all kinds of described virtual objects;
In view directions according to described virtual role and the described virtual role visual field, the weight of described virtual objects is come Calculate the quantity of information of described virtual objects in the described virtual role visual field, and with described virtual right in the described virtual role visual field The quantity of information sum of elephant is target to the maximum and adjusts angle to calculate visual angle;
Adjust angle according to described visual angle and adjust the view directions of described virtual role.
In a kind of exemplary embodiment of the disclosure, the attribute of described virtual role has preset attribute, and described configuration is each The weight of virtual objects described in class includes:
Described preset attribute according to described virtual role configures the weight of all kinds of described virtual objects.
In a kind of exemplary embodiment of the disclosure, the letter of described virtual objects in the described calculating described virtual role visual field Breath amount includes:
With the current location of described virtual role as limit, set up with the current visual angle direction of described virtual role for pole axis Polar coordinate system;
According to described virtual objects each in described virtual role visual field polar angle in described polar coordinate system and described void The weight intending object calculates the quantity of information of described virtual objects.
In a kind of exemplary embodiment of the disclosure, the quantity of information of described virtual objects is ρi cosθi, wherein, ρiAnd θiIt is respectively the weight of virtual objects described in i-th in the described virtual role visual field and the polar angle in described polar coordinate system.
In a kind of exemplary embodiment of the disclosure, described calculating visual angle adjusts angle and includes:
According to α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2) regard described in calculating Angle adjusts angle, and wherein α is that described visual angle adjusts angle.
In a kind of exemplary embodiment of the disclosure, described calculating visual angle adjusts angle and includes:
Calculate respectively under multiple default view directions in the described virtual role visual field quantity of information of described virtual objects it With;
Count default visual angle corresponding during the quantity of information sum maximum of described virtual objects in the described virtual role visual field Direction, and calculate described visual angle adjustment angle according to described default view directions.
In a kind of exemplary embodiment of the disclosure, described according to described visual angle adjust angle adjust described virtual role View directions include:
Judge that whether described visual angle adjusts angle more than or equal to predetermined angle;
In the case of judging that described visual angle adjustment angle is more than or equal to described predetermined angle, adjust according to described visual angle Whole angle adjusts the view directions of described virtual role.
In a kind of exemplary embodiment of the disclosure, described according to described visual angle adjust angle adjust described virtual role View directions include:
Judge whether described virtual role is carrying out deliberate action;
Judging that described virtual role, in the case of carrying out described deliberate action, adjusts angle according to described visual angle and comes Adjust the view directions of described virtual role.
Second aspect according to disclosure embodiment, it is provided that a kind of virtual role view directions controls device, is applied to one Touch control terminal;Described virtual role view directions controls device and includes:
Configuration module, for configuring the weight of all kinds of virtual objects;
Computing module, described virtual in the view directions according to described virtual role and the described virtual role visual field The weight of object calculates the quantity of information of described virtual objects in the described virtual role visual field, and with the described virtual role visual field The quantity of information sum of interior described virtual objects is target to the maximum and adjusts angle to calculate visual angle;
Adjusting module, adjusts the view directions of described virtual role for adjusting angle according to described visual angle.
In a kind of exemplary embodiment of the disclosure, the attribute of described virtual role has preset attribute, described configuration mould Tuber configures the weight of all kinds of described virtual objects according to the described preset attribute of described virtual role.
In a kind of exemplary embodiment of the disclosure, described computing module includes the first computing unit, and described first calculates Unit is for the current location of described virtual role as limit, building with the current visual angle direction of described virtual role for pole axis Vertical polar coordinate system, and according to described virtual objects each in described virtual role visual field polar angle in described polar coordinate system and The weight of described virtual objects calculates the quantity of information of described virtual objects.
In a kind of exemplary embodiment of the disclosure, the apsi message of described virtual objects is shown as ρicosθi, wherein, ρiWith And θiIt is respectively the weight of virtual objects described in i-th in the described virtual role visual field and the pole in described polar coordinate system Angle.
In a kind of exemplary embodiment of the disclosure, described computing module includes the second computing unit, and described second calculates Unit is for according to α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2) calculate described Visual angle adjusts angle, and wherein α is that described visual angle adjusts angle.
In a kind of exemplary embodiment of the disclosure, described computing module also includes the 3rd computing unit, described 3rd meter Calculate unit for calculating under multiple default view directions the quantity of information of described virtual objects in the described virtual role visual field respectively Sum, and count default visual angle corresponding during the quantity of information sum maximum of described virtual objects in the described virtual role visual field Direction, and calculate described visual angle adjustment angle according to described default view directions.
In a kind of exemplary embodiment of the disclosure, described adjusting module includes:
First judging unit, is used for judging that whether described visual angle adjusts angle more than or equal to predetermined angle;
First adjustment unit, for judging that described visual angle adjusts the angle situation more than or equal to described predetermined angle Under, adjust angle according to described visual angle and adjust the view directions of described virtual role.
In a kind of exemplary embodiment of the disclosure, described adjusting module includes:
Second judging unit, is used for judging whether described virtual role is carrying out deliberate action;
Second adjustment unit, for judge described virtual role in the case of carrying out described deliberate action, according to Described visual angle adjusts angle and adjusts the view directions of described virtual role.
Virtual role view directions control method in a kind of embodiment of the disclosure and device, can be according to virtual role Preset attribute configure the weight of all kinds of virtual objects, and the quantity of information sum of virtual objects is in the virtual role visual field Calculate visual angle in the case of great and adjust angle.On the one hand, it is possible to achieve the function of automatic visual angle adjustment, manually adjust compared to user The mode at whole visual angle, decreases user's operation for visual angle, makes game apply easy left-hand seat;On the other hand, for different The weight that virtual objects is differently configured, the quantity of information that virtual role not only can be made to receive is maximum, and so that user Avoid missing the information (virtual objects that such as weight configuration is high) needing to pay close attention to;Another further aspect, compared to increasing collection fire The mode of icon, it is possible to reduce increase icon in interface, and then scene of game can be shown with more picture.Cause This, can significantly promote Consumer's Experience by the disclosure.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe The disclosure can be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the disclosure Example, and for explaining the principle of the disclosure together with description.It should be evident that the accompanying drawing in describing below is only the disclosure Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to These accompanying drawings obtain other accompanying drawing.In the accompanying drawings:
Fig. 1 diagrammatically illustrates a kind of virtual role view directions control method in the exemplary embodiment of the disclosure 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 calculating quantity of information in disclosure exemplary embodiment;
Fig. 4 diagrammatically illustrates the another kind of flow chart of step S2 in disclosure exemplary embodiment;
Fig. 5 diagrammatically illustrates a kind of virtual role view directions in disclosure exemplary embodiment and controls the square frame of device Figure;
Fig. 6 diagrammatically illustrates a kind of block diagram of computing module in disclosure exemplary embodiment;
Fig. 7 diagrammatically illustrates the another kind of block diagram of computing module in disclosure exemplary embodiment;
Fig. 8 diagrammatically illustrates a kind of block diagram of adjusting module in disclosure exemplary embodiment.
Detailed description of the invention
It is described more fully with illustrative embodiments referring now to accompanying drawing.But, illustrative embodiments can be with many The form of kind is implemented, and is not understood as limited to example set forth herein;On the contrary, it is provided that these embodiments make the disclosure incite somebody to action More fully and completely, and by the design of illustrative embodiments those skilled in the art is conveyed to all sidedly.Described Feature, structure or characteristic can be combined in one or more embodiment in any suitable manner.In the following description, Many details are provided thus provide fully understanding of embodiment of this disclosure.But, those skilled in the art will anticipate Knowledge is arrived, the technical scheme of the disclosure can be put into practice and omit in described specific detail one or more, or can be used it Its method, constituent element, device, step etc..In other cases, it is not shown in detail or describes known solution to avoid noisy guest Take by force main and each side of the disclosure is thickened.
Additionally, accompanying drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Accompanying drawing mark identical in figure Note represents same or similar part, thus will omit repetition thereof.Some block diagrams shown in accompanying drawing are merits Energy entity, it is not necessary to must be corresponding with the most independent entity.Software form can be used to realize these merits Energy entity, or in one or more hardware modules or integrated circuit, realize these functional entitys, or at heterogeneous networks and/or place Reason device device and/or microcontroller device realize these functional entitys.
Provide firstly a kind of virtual role view directions control method in this illustrative embodiments, this virtual role regards Angular direction control method is mainly used in a touch control terminal.This touch control terminal can be such as mobile phone, panel computer, notebook electricity The various electronic equipments possessing Touch Screen such as brain, game machine, PDA.But it should be recognized that in part non-touch-control terminal also By modes such as simulators, keyboard and mouse action may be modeled as touch control operation, this mode is equally considered as these public affairs Touch control terminal described in opening.With reference to Fig. 1, described virtual role view directions control method may comprise steps of:
S1. the weight of all kinds of virtual objects is configured.
Described virtual objects refers to there is interactive object with virtual role, in game application, and described virtual objects Various types of object, such as, object of attack (such as monster) or companion (such as teammate) etc. can be included.Further, described void The weight intending object refers to wish the degree that virtual role pays close attention to described virtual objects.Therefore, all kinds of virtual objects is configured Weight means, according to virtual role, the degree of concern of virtual objects is set corresponding numerical value.
Additionally, in order to make user meet different game experiencings, in game application, different virtual roles may have Different preset attribute, such as, in some ARPGs game (ARPG) application, the preset attribute of virtual role can To include the school of virtual role, occupation etc.;In some many people online tactics sports class game (MOBA) application, virtual role Preset attribute can include the team location etc. of virtual role.There is different preset attribute virtual roles, for same void The degree of concern intending object there may be difference.Based on this, can also presetting according to virtual role in this example embodiment Attribute configures the weight of all kinds of virtual objects.
Such as, for the virtual role of output type occupation, it may need to pay close attention to emphatically object of attack, and for teammate's Paying close attention to may be relatively small.It is to say, for the virtual role of output type occupation, the weight of object of attack is more than the power of companion Weight.Additionally, for different objects of attack, the degree of concern of the virtual role of output type occupation may be different, such as, elite The weight of the object of attack (that is, virtual role causes the object of attack of relatively major injury) of class may be relatively big, and common attack The weight of object (that is, virtual role causes the object of attack of less injury) may be less.It addition, some pure output type occupations Virtual role may will not pay close attention to companion, in this case, the weight of companion is zero.Virtual role with output type occupation Conversely, for the virtual role of therapeutic type occupation, it may need to pay close attention to emphatically companion's information (e.g., blood volume, magic amount etc.), this Time, the weight of companion is more than the weight of object of attack.For example, table 1 is that the preset attribute according to virtual role configures respectively One example of the weight of class virtual objects, but the disclosure is not limited to this.
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 (pays close attention to the occupation of teammate) 5 1 5 ……
As shown in table 1, occupation A is the occupation of pure output type, and for the virtual role of occupation A, teammate's weight is 0, strange The weight of thing a is 1, and the weight of the strange b of elite is 5.Occupation D attach most importance to pay close attention to teammate occupation, for occupation D virtual role and Speech, teammate's weight is 5, and the weight of monster a is 1, and the weight of the strange b of elite is 5.
By the weight configuration mode in this example embodiment, on the one hand, can represent virtual in digital form Role's degree of concern to all kinds of virtual objects, beneficially calculating process;On the other hand, for different types of virtual role, Cook up different weights, user's experience to different types of virtual role can be met.
S2. count according to the weight of described virtual objects in the view directions of virtual role and the described virtual role visual field Calculate the quantity of information of described virtual objects in the described virtual role visual field, and with described virtual objects in the described virtual role visual field Quantity of information sum be to the maximum target to calculate visual angle adjust angle.
With reference to shown in Fig. 2, in this illustrative embodiments, described step S2 may include that
S21. with the current location of described virtual role as limit, with the current visual angle direction of described virtual role as pole axis Set up polar coordinate system.This example embodiment uses polar coordinate carry out the mode processed, have and conveniently set up coordinate, equation letter List and be prone to the advantages such as calculating.But in other exemplary embodiments of the disclosure, it is also possible to use other coordinate systems, such as Eulerian coordinate system is modeled calculating, and therefore the disclosure is not limited to this.
S22. according to described virtual objects each in described virtual role visual field polar angle in described polar coordinate system and institute State the weight of virtual objects to calculate the quantity of information of described virtual objects, and the apsi message of described virtual objects is shown as ρi cosθi.Wherein, ρiAnd θiIt is respectively the weight of virtual objects described in i-th in the described virtual role visual field and in described pole Polar angle in coordinate system.In this case, the quantity of information of described virtual objects can the e.g. quantity of information of monster or teammate Quantity of information.Additionally, in this illustrative embodiments, in addition to using the form of cosine, it is also possible to use other three Angle function type, but, the disclosure is not limited to this, alternately, can use other mathematical way in addition to trigonometric function Represent the quantity of information of described virtual objects.
With reference to Fig. 3, wherein, O point is the current location of virtual role, and OX direction is the current visual angle direction of virtual role. Using O point as limit, set up polar coordinate system with OX for pole axis, it can be seen that θ1For teammate M pole in described polar coordinate system Angle, if the weight of teammate M is ρ1, then the quantity of information of teammate M is ρ1cosθ1.The quantity of information that in like manner can draw monster a is ρ2cos θ2, the quantity of information of the strange b of elite is ρ3cosθ3
S23. the quantity of information of virtual objects in the described virtual role visual field is added, obtains Σ ρ i cos θi
S24. the method using trigonometric function extreme value calculates described visual angle and adjusts angle.
Assuming that described visual angle adjusts angle is α, and in the method for described trigonometric function extreme value, target is to make described virtual angle In color visual field, the quantity of information of all virtual objects is maximum, and in this case, quantity of information maximum formula becomes Pα=Σ ρi(cosθi + α), launch to obtain by this formula:
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
I.e. Φ=arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2)
Because as sin (α+Φ)=1, PαMaximum, so there being α+Φ=90 °
Thus try to achieve described visual angle and adjust angle [alpha], it may be assumed that
α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2)
α in the range of: 180 ° >=α >=-180 °.When α be on the occasion of time, can represent and counterclockwise visual angle is adjusted, and When α is negative value, can represent and clockwise visual angle is adjusted.
With reference to Fig. 4, in the another exemplary embodiment of the disclosure, after step s 22, described step S2 is all right Including:
Calculate under multiple default view directions the information of described virtual objects in the described virtual role visual field the most respectively Amount sum.
The plurality of default view directions can be certain angular interval (such as, 2 °, 5 °, 10 ° etc.) and the visual angle that obtains Direction, but it is not limited to this, the plurality of default view directions can also is that the view directions taken with specific rule, and this is exemplary This is not done particular determination by embodiment.
S26. corresponding presetting during the quantity of information sum maximum of described virtual objects in the described virtual role visual field is counted View directions, and calculate described visual angle adjustment angle according to described default view directions.
In the illustrative embodiments of the disclosure, give the method that visual angle adjusts angle that calculates, but, the disclosure is not It is limited to this, by other means described visual angle can be adjusted angle and calculate.
S3. adjust angle according to described visual angle and adjust the view directions of described virtual role.
After being calculated visual angle adjustment angle, the angle coverage of the virtual video camera in can being applied by rotatable game The view directions of angle adjustment virtual role is adjusted according to the visual angle obtained.Additionally, due to relative to virtual role, virtual objects Position change in real time, the visual angle that therefore calculated adjust angle also can real-time change, when visual angle adjust angle less time, Adjust the phenomenon that may make virtual role that shake occurs continually.In order to solve the problem of shake, one can be preset pre- If angle, when the visual angle calculated adjusts angle less than this predetermined angle, view directions will not be adjusted, it is ensured that trip The stationarity at play visual angle.Adjust the view directions of described virtual role also may be used it is to say, adjust angle according to described visual angle To include: judge that whether described visual angle adjusts angle more than or equal to predetermined angle;Described visual angle adjust angle more than or etc. In the case of described predetermined angle, adjust angle according to described visual angle and adjust the view directions of described virtual role.It addition, Above-mentioned predetermined angle can be played and be set in application development process, it is also possible to by this predetermined angle of user's sets itself, This is not done particular determination by this illustrative embodiments.
In some game application, if adjusting visual angle during virtual role moves, then can be formed for user Position displacement adds the double effect that visual angle rotates, and may bring certain sense of discomfort to user.And carry out pre-at virtual role If during action, virtual role may will not move, and adjusts view directions the most at this moment and only can produce a rotating effect, it is to avoid User's dizziness.Therefore, in this illustrative embodiments, in order to further ensure that the stationarity of game application and suitable object for appreciation property, Before adjusting the view directions of described virtual role, it is also possible to judge whether described virtual role is carrying out deliberate action, such as, Described deliberate action can be release technical ability or general attack, but is not limited to this.Therefore, adjust angle according to described visual angle and adjust institute The view directions stating virtual role can also include: judges whether described virtual role is carrying out deliberate action;Described in judging Virtual role, in the case of carrying out described deliberate action, adjusts angle according to described visual angle and adjusts regarding of described virtual role Angular direction.
Additionally, described virtual role view directions control method also includes with rotational angular velocity k to adjust view directions, turn Dynamic angular velocity k represents the angle that visual angle per second adjusts.Time if carried out a deliberate action is t, the most once presets Action, the angle that visual angle adjusts is t × k.Such as, if it is 20 ° that the visual angle calculated adjusts angle, predetermined angle is 10 °, then Meet the condition that visual angle adjusts.When virtual role carries out general attacking, it is 500ms and set if carried out the most general time attacked Rotational angular velocity be 10 °/s, the most general attack after, visual angle adjust angle be 5 °, therefore, carry out four times general attack after, Visual angle adjusts process and terminates.
Although it should be noted that, describe each step of method in the disclosure with particular order in the accompanying drawings, but, this is also Undesired or hint must perform these steps according to this particular order, or has to carry out the most shown step ability Realize desired result.Additional or alternative, it is convenient to omit some step, multiple steps are merged into a step and performs, And/or a step is decomposed into multiple step execution etc..
Further, this example embodiment additionally provides a kind of virtual role view directions and controls device, be applied to One touch control terminal.Described in reference diagram 5, this virtual role view directions controls device 1 and can include configuring module 11, computing module 12 and adjusting module 13, wherein:
Configuration module 11, may be used for configuring the weight of all kinds of virtual objects;
Computing module 12, may be used for institute in the view directions according to described virtual role and the described virtual role visual field State the weight of virtual objects to calculate the quantity of information of described virtual objects in the described virtual role visual field, and with described virtual angle In color visual field, the quantity of information sum of described virtual objects is target to the maximum to calculate visual angle adjustment angle;
Adjusting module 13, may be used for adjusting angle according to described visual angle and adjusts the view directions of described virtual role.
In this exemplary embodiment, the attribute of described virtual role has preset attribute, and described configuration module is according to described The described preset attribute of virtual role configures the weight of all kinds of described virtual objects.
With reference to shown in Fig. 6, in this exemplary embodiment, described computing module 12 can include the first computing unit 121 With the second computing unit 122.Wherein:
Described first computing unit 121 may be used for the current location of described virtual role as limit, with described virtual The current visual angle direction of role be pole axis to set up polar coordinate system, and according to each described virtual right in the described virtual role visual field As the weight of the polar angle in described polar coordinate system and described virtual objects calculates the quantity of information of described virtual objects;
Described second computing unit 122 may be used for basis
α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2)
Calculating described visual angle and adjust angle, wherein α is that described visual angle adjusts angle;
With reference to shown in Fig. 7, described computing module 12 can include the first computing unit 121 and the 3rd computing unit 123, Wherein:
Described 3rd computing unit 123 may be used for calculating respectively described virtual role under multiple default view directions and regards The quantity of information sum of described virtual objects in wild, and count the quantity of information of described virtual objects in the described virtual role visual field Default view directions corresponding during sum maximum, and calculate described visual angle adjustment angle according to described default view directions.
With reference to shown in Fig. 8, in this exemplary embodiment, adjusting module 13 can also include the first judging unit 131, the Two judging unit the 132, first adjustment unit 133 and the second adjustment units 134, wherein:
Described first judging unit 131 judges that described visual angle adjusts whether angle is more than or equal to predetermined angle, is judging Adjustment angle in described visual angle is more than or equal in the case of described predetermined angle, and described first adjustment unit 133 regards according to described Angle adjusts angle and adjusts the view directions of described virtual role;
Described second judging unit 132 judges whether described virtual role is carrying out deliberate action, judge described virtual Role is in the case of carrying out described deliberate action, and described second adjustment unit 134 adjusts angle according to described visual angle and adjusts The view directions of described virtual role.
In above-mentioned virtual role control mode switch device, the detail of each module is in corresponding virtual role control Having carried out in mode switching method processed wanting in detail to describe, therefore here is omitted.
Although it should be noted that, being referred to some modules or the list of the equipment for action executing in above-detailed Unit, but this division is the most enforceable.It practice, according to embodiment of the present disclosure, above-described two or more Module or the feature of unit and function can embody in a module or unit.Otherwise, an above-described mould Block or the feature of unit and function can embody with Further Division for by multiple modules or unit.
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 be realized by software, it is also possible to realizes by the way of software combines necessary hardware.Therefore, according to the disclosure The technical scheme of embodiment can embody with the form of software product, this software product can be stored in one non-volatile In property storage medium (can be CD-ROM, USB flash disk, portable hard drive etc.) or on network, including some instructions so that a calculating Equipment (can be personal computer, server, touch control terminal or the network equipment etc.) performs according to disclosure embodiment Method.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modification, purposes or Person's adaptations is followed the general principle of the disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (16)

1. a virtual role view directions control method, wherein said virtual role is positioned at the 3D including at least one virtual objects Scene;It is characterized in that, described virtual role view directions control method includes:
Configure the weight of all kinds of described virtual objects;
In view directions according to described virtual role and the described virtual role visual field, the weight of described virtual objects calculates The quantity of information of described virtual objects in the described virtual role visual field, and with described virtual objects in the described virtual role visual field Quantity of information sum is target to the maximum and adjusts angle to calculate visual angle;
Adjust angle according to described visual angle and adjust the view directions of described virtual role.
Virtual role view directions control method the most according to claim 1, it is characterised in that the genus of described virtual role Property has preset attribute, and the weight of all kinds of described virtual objects of described configuration includes:
Described preset attribute according to described virtual role configures the weight of all kinds of described virtual objects.
Virtual role view directions control method the most according to claim 1, it is characterised in that described calculating is described virtual In character view, the quantity of information of described virtual objects includes:
With the current location of described virtual role as limit, set up pole with the current visual angle direction of described virtual role for pole axis and sit Mark system;
According to described virtual objects each in described virtual role visual field polar angle in described polar coordinate system and described virtual right The weight of elephant calculates the quantity of information of described virtual objects.
Virtual role view directions control method the most according to claim 3, it is characterised in that by described virtual objects Apsi message is shown as ρi cosθi,
Wherein, ρiAnd θiIt is respectively the weight of virtual objects described in i-th in the described virtual role visual field and sits in described pole Polar angle in mark system.
Virtual role view directions control method the most according to claim 4, it is characterised in that described calculating visual angle adjusts Angle includes:
According to α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2) calculate described visual angle tune Whole angle, wherein α is that described visual angle adjusts angle.
6. according to the virtual role view directions control method described in claim 3 or 4, it is characterised in that described calculating visual angle Adjustment angle includes:
Calculate under multiple default view directions the quantity of information sum of described virtual objects in the described virtual role visual field respectively;
Count default view directions corresponding during the quantity of information sum maximum of described virtual objects in the described virtual role visual field, And calculate described visual angle adjustment angle according to described default view directions.
7. according to the virtual role view directions control method described in claim 3 or 4, it is characterised in that described in described basis Visual angle adjustment angle adjusts the view directions of described virtual role and includes:
Judge that whether described visual angle adjusts angle more than or equal to predetermined angle;
In the case of judging that described visual angle adjustment angle is more than or equal to described predetermined angle, according to adjustment angle, described visual angle Degree adjusts the view directions of described virtual role.
8. according to the virtual role view directions control method described in claim 3 or 4, it is characterised in that described in described basis Visual angle adjustment angle adjusts the view directions of described virtual role and includes:
Judge whether described virtual role is carrying out deliberate action;
Judging that described virtual role, in the case of carrying out described deliberate action, adjusts angle according to described visual angle and adjusts The view directions of described virtual role.
9. virtual role view directions controls a device, is applied to a touch control terminal;It is characterized in that, described virtual role regards Angular direction controls device and includes:
Configuration module, for configuring the weight of all kinds of virtual objects;
Computing module, described virtual objects in the view directions according to described virtual role and the described virtual role visual field Weight calculate the quantity of information of described virtual objects in the described virtual role visual field, and with institute in the described virtual role visual field The quantity of information sum stating virtual objects is target to the maximum to calculate visual angle adjustment angle;
Adjusting module, adjusts the view directions of described virtual role for adjusting angle according to described visual angle.
Virtual role view directions the most according to claim 9 controls device, it is characterised in that described virtual role Attribute has preset attribute, and described configuration module configures all kinds of described virtual according to the described preset attribute of described virtual role The weight of object.
11. virtual role view directions according to claim 9 control device, it is characterised in that described computing module bag Including the first computing unit, described first computing unit is for the current location of described virtual role as limit, with described virtual The current visual angle direction of role be pole axis to set up polar coordinate system, and according to each described virtual right in the described virtual role visual field As the weight of the polar angle in described polar coordinate system and described virtual objects calculates the quantity of information of described virtual objects.
12. virtual role view directions according to claim 11 control device, it is characterised in that described virtual objects Apsi message is shown as ρi cosθi,
Wherein, ρiAnd θiIt is respectively the weight of virtual objects described in i-th in the described virtual role visual field and sits in described pole Polar angle in mark system.
13. virtual role view directions according to claim 12 control device, it is characterised in that described computing module is also Including the second computing unit, described second computing unit is used for basis
α=90 °-arcsin (Σ ρi cosθi/((Σρi cosθi)2+(Σρi sinθi)2)1/2)
Calculating described visual angle and adjust angle, wherein α is that described visual angle adjusts angle.
14. control device according to the virtual role view directions described in claim 11 or 12, it is characterised in that described calculating mould Block also includes the 3rd computing unit, and described 3rd computing unit is described virtual for calculating under multiple default view directions respectively The quantity of information sum of described virtual objects in character view, and count described virtual objects in the described virtual role visual field Default view directions corresponding during quantity of information sum maximum, and calculate adjustment angle, described visual angle according to described default view directions Degree.
15. control device according to the virtual role view directions described in claim 11 or 12, it is characterised in that described adjustment mould Block includes:
First judging unit, is used for judging that whether described visual angle adjusts angle more than or equal to predetermined angle;
First adjustment unit, is used in the case of judging that described visual angle adjustment angle is more than or equal to described predetermined angle, Adjust angle according to described visual angle and adjust the view directions of described virtual role.
16. control device according to the virtual role view directions described in claim 11 or 12, it is characterised in that described adjustment mould Block includes:
Second judging unit, is used for judging whether described virtual role is carrying out deliberate action;
Second adjustment unit, for judge described virtual role in the case of carrying out described deliberate action, according to described Visual angle adjusts angle and adjusts the view directions of described 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 true CN106293070A (en) 2017-01-04
CN106293070B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106774941A (en) * 2017-01-16 2017-05-31 福建农林大学 The solution that touch screen terminal 3D virtual roles conflict with scene camera motion
CN108245890A (en) * 2018-02-28 2018-07-06 网易(杭州)网络有限公司 The method and apparatus for controlling object of which movement in virtual scene
CN108989268A (en) * 2017-06-01 2018-12-11 腾讯科技(深圳)有限公司 Session methods of exhibiting, device and computer equipment
WO2019057091A1 (en) * 2017-09-25 2019-03-28 腾讯科技(深圳)有限公司 Method for controlling game client, device, storage medium and electronic device
CN110300266A (en) * 2019-07-04 2019-10-01 珠海西山居移动游戏科技有限公司 A kind of camera lens moving method and system, a kind of calculating equipment and storage medium
CN110448906A (en) * 2018-11-13 2019-11-15 网易(杭州)网络有限公司 The control method and device at visual angle, touch control terminal in game
WO2019218790A1 (en) * 2018-05-18 2019-11-21 腾讯科技(深圳)有限公司 Interface display method and apparatus, electronic device and computer readable storage medium
WO2020207206A1 (en) * 2019-04-11 2020-10-15 腾讯科技(深圳)有限公司 Operation control method and apparatus, and electronic device and storage medium

Citations (7)

* 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
US20050022139A1 (en) * 2003-07-25 2005-01-27 David Gettman Information display
WO2007050311A3 (en) * 2005-10-21 2007-06-21 Digidelve Technologies Inc Energy efficient compact display for mobile device
CN101639927A (en) * 2008-07-31 2010-02-03 国际商业机器公司 Method and system for adjusting virtual display device in virtual world
CN103823705A (en) * 2013-11-08 2014-05-28 广州菲动软件科技有限公司 Virtual character turning control method and virtual character turning control system
CN104243814A (en) * 2014-07-28 2014-12-24 小米科技有限责任公司 Analysis method for object layout in image and image shoot reminding method and device
CN105056528A (en) * 2015-07-23 2015-11-18 珠海金山网络游戏科技有限公司 Virtual character moving method and apparatus

Patent Citations (7)

* 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
US20050022139A1 (en) * 2003-07-25 2005-01-27 David Gettman Information display
WO2007050311A3 (en) * 2005-10-21 2007-06-21 Digidelve Technologies Inc Energy efficient compact display for mobile device
CN101639927A (en) * 2008-07-31 2010-02-03 国际商业机器公司 Method and system for adjusting virtual display device in virtual world
CN103823705A (en) * 2013-11-08 2014-05-28 广州菲动软件科技有限公司 Virtual character turning control method and virtual character turning control system
CN104243814A (en) * 2014-07-28 2014-12-24 小米科技有限责任公司 Analysis method for object layout in image and image shoot reminding method and device
CN105056528A (en) * 2015-07-23 2015-11-18 珠海金山网络游戏科技有限公司 Virtual character moving method and apparatus

Cited By (14)

* 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
CN106774941A (en) * 2017-01-16 2017-05-31 福建农林大学 The solution that touch screen terminal 3D virtual roles conflict with scene camera motion
CN108989268B (en) * 2017-06-01 2021-03-02 腾讯科技(深圳)有限公司 Session display method and device and computer equipment
CN108989268A (en) * 2017-06-01 2018-12-11 腾讯科技(深圳)有限公司 Session methods of exhibiting, device and computer equipment
WO2019057091A1 (en) * 2017-09-25 2019-03-28 腾讯科技(深圳)有限公司 Method for controlling game client, device, storage medium and electronic device
US11007426B2 (en) 2017-09-25 2021-05-18 Tencent Technology (Shenzhen) Company Ltd Game client control method and apparatus, storage medium, and electronic apparatus
CN108245890A (en) * 2018-02-28 2018-07-06 网易(杭州)网络有限公司 The method and apparatus for controlling object of which movement in virtual scene
CN108245890B (en) * 2018-02-28 2021-04-27 网易(杭州)网络有限公司 Method and device for controlling movement of object in virtual scene
WO2019218790A1 (en) * 2018-05-18 2019-11-21 腾讯科技(深圳)有限公司 Interface display method and apparatus, electronic device and computer readable storage medium
US11325036B2 (en) 2018-05-18 2022-05-10 Tencent Technology (Shenzhen) Company Limited Interface display method and apparatus, 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
WO2020207206A1 (en) * 2019-04-11 2020-10-15 腾讯科技(深圳)有限公司 Operation control method and apparatus, and electronic device and storage medium
CN110300266A (en) * 2019-07-04 2019-10-01 珠海西山居移动游戏科技有限公司 A kind of camera lens moving method and system, a kind of calculating equipment and storage medium
CN110300266B (en) * 2019-07-04 2021-04-02 珠海西山居移动游戏科技有限公司 Lens moving method and system, computing device and storage medium

Also Published As

Publication number Publication date
CN106293070B (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN106293070A (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
Soltani et al. Developing a gesture-based game for deaf/mute people using microsoft kinect
Bates et al. Gaze interaction with virtual on-line communities: levelling the playing field for disabled users
Kosmalla et al. Exploring rock climbing in mixed reality environments
JP7009508B2 (en) Simulated box garden system
CN106681683A (en) Device and method for voice-based game operation control
Ha et al. A VR serious game for fire evacuation drill with synchronized tele-collaboration among users
US20190272024A1 (en) System, method and apparatus of simulating physics in a virtual environment
Greuter et al. Spacewalk: Movement and interaction in virtual space with commodity hardware
Grabski et al. Kinaptic-Techniques and insights for creating competitive accessible 3D games for sighted and visually impaired users
Nair et al. Towards a Generalized Acoustic Minimap for Visually Impaired Gamers
Bang et al. Interactive experience room using infrared sensors and user's poses
Spiers et al. Flatland: an immersive theatre experience centered on shape changing haptic navigation technology
CN108187301A (en) Treadmill man-machine interaction method, device and treadmill
US12015759B2 (en) Information processing system, information processing method, and information processing program
Rinman et al. Ghost in the cave–An interactive collaborative game using non-verbal communication
Casas et al. Multi-reality games: An experience across the entire reality-virtuality continuum
Xia et al. Effective Gesture-Based User Interfaces on Mobile Mixed Reality
Cabral et al. Batmen-Hybrid collaborative object manipulation using mobile devices
Lim et al. Development of visual-based rehabilitation using sensors for stroke patient
Begum et al. Augmented Reality in Interactive Multiplayer Game Application
Loviska et al. Immersed gaming in Minecraft
Sookhanaphibarn et al. Virtual reality system for fire evacuation training in a 3D virtual world

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