CN108786110A - Gun sight display methods, equipment and storage medium in virtual environment - Google Patents

Gun sight display methods, equipment and storage medium in virtual environment Download PDF

Info

Publication number
CN108786110A
CN108786110A CN201810540930.4A CN201810540930A CN108786110A CN 108786110 A CN108786110 A CN 108786110A CN 201810540930 A CN201810540930 A CN 201810540930A CN 108786110 A CN108786110 A CN 108786110A
Authority
CN
China
Prior art keywords
virtual environment
picture
virtual
gun sight
sight
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
CN201810540930.4A
Other languages
Chinese (zh)
Other versions
CN108786110B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810540930.4A priority Critical patent/CN108786110B/en
Publication of CN108786110A publication Critical patent/CN108786110A/en
Application granted granted Critical
Publication of CN108786110B publication Critical patent/CN108786110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/303Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Abstract

This application discloses gun sight display methods, equipment and the storage mediums in a kind of virtual environment, are related to virtual environment field.This method includes:Show the first virtual environment picture, first virtual environment picture includes the first gun sight picture that virtual objects observe the virtual environment using reflex sight, and the aiming point in the first gun sight picture is located at first position relative to the gun sight lens barrel of the reflex sight;Control virtual objects carry out activity in virtual environment;Show the second virtual environment picture, the gun sight lens barrel in the second gun sight picture is located at the second position.The application can carry out more true emulation to the reflex sight in actual environment, to realize more true display effect, feeling of immersion of the enhancing user to virtual environment.

Description

Gun sight display methods, equipment and storage medium in virtual environment
Technical field
The invention relates to virtual environment field, more particularly to gun sight display methods in a kind of virtual environment, Equipment and storage medium.
Background technology
Much shooting element is provided in the application program based on three-dimensional virtual environment.Void in three-dimensional virtual environment Quasi- object is shot at using virtual firearms.When being equipped with gun sight on virtual firearms, virtual objects are using gun sight to target Object is aimed at.
Reflex sight is the gun sight different from optical sight, and reflex sight can generate one on gun sight The virtual image (such as red point) of a infinity, and the object of aiming is directed toward in the virtual image forever.In the related technology in three-dimensional ring In border, can by the corresponding camera model of virtual objects, the lens barrel of reflex sight, reflex sight camera lens three it Between binding positions, no matter namely how the view directions of virtual objects change under the pattern of starting shooting, the mirror of reflex sight The middle position that cylinder and camera lens can all be shown in screen remains unchanged.
Due to above-mentioned simulation process and the reflex sight characteristic in actual environment is not met, in the related technology Gun sight display methods is not true enough, and display effect is poor.
Invention content
The embodiment of the present application provides gun sight display methods, equipment and the storage medium in a kind of virtual environment, can be with It solves the reflex sight simulated in the related technology and does not meet the reflex sight characteristic in actual environment, therefore show Not true enough the and poor problem of effect.The technical solution is as follows:
On one side, the gun sight display methods in a kind of virtual environment is provided, the method includes:
Show that the first virtual environment picture, the first virtual environment picture include that virtual objects use reflex sight The the first gun sight picture for observing the virtual environment, the aiming of reflex sight described in the first virtual environment picture Mirror lens barrel is located at first position;
Control virtual objects carry out activity in the virtual environment;
Show that the second virtual environment picture, the second virtual environment picture include that the virtual objects use the reflection Formula aims at the second gun sight picture of virtual environment described in sem observation, the gun sight mirror in the second virtual environment picture Cylinder is located at the second position;
Wherein, the aiming point in the gun sight lens barrel is in the first virtual environment picture and second virtual environment Position in picture is identical.
On the other hand, the gun sight display device in a kind of virtual environment is provided, described device includes:
Display module, for showing the first virtual environment picture, the first virtual environment picture, which includes virtual objects, to be made The first gun sight picture that the virtual environment is observed with reflex sight, reflects described in the first virtual environment picture The gun sight lens barrel of formula gun sight is located at first position;
Control module, for controlling virtual objects carry out activity in the virtual environment;
The display module, for showing the second virtual environment picture, the second virtual environment picture includes the void Quasi- object observes the second gun sight picture of the virtual environment using the reflex sight, and second virtual environment is drawn The gun sight lens barrel in face is located at the second position;
Wherein, the aiming point in the gun sight lens barrel is in the first virtual environment picture and second virtual environment Position in picture is identical.
On the other hand, a kind of electronic equipment is provided, the equipment includes processor and memory, is deposited in the memory Contain at least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of journey Sequence, the code set or instruction set are loaded by the processor and are executed to realize the gun sight in virtual environment as described above Display methods.
On the other hand, a kind of computer readable storage medium is provided, at least one finger is stored in the storage medium Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or Instruction set is loaded by the processor and is executed to realize the gun sight display methods in virtual environment as described above.
On the other hand, a kind of computer program product is provided, when the computer program product is run on computers When so that computer executes the gun sight display methods in virtual environment as described above.
The advantageous effect that technical solution provided by the embodiments of the present application is brought includes at least:
After carry out activity, show that second different from the first virtual environment picture are empty in virtual environment by virtual objects Near-ring border picture, position of the gun sight lens barrel in two virtual environment pictures are different, but aiming point is in two virtual rings Position in the picture of border is identical, can carry out more true emulation to the reflex sight in actual environment, to Realize more true display effect, feeling of immersion of the enhancing user to virtual environment.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the principle schematic of reflex sight with the real world;
Fig. 2 is the aiming point location drawing of the reflex sight with the real world when different angle is observed;
Fig. 3 is structural schematic diagram when being simulated to reflex sight in virtual environment;
Fig. 4 is picture view when using reflex sight to observe virtual environment in the related technology;
Fig. 5 is the block diagram for the electronic equipment that one exemplary embodiment of the application provides;
Fig. 6 is the block diagram of the computer system of the application another exemplary embodiment offer;
Fig. 7 is the flow chart of the gun sight display methods in the virtual environment that one exemplary embodiment of the application provides;
Fig. 8 is that the interface of the gun sight display methods in the virtual environment of the application another exemplary embodiment offer shows It is intended to;
Fig. 9 is the flow of the gun sight display methods in the virtual environment of the application another exemplary embodiment offer Figure;
Figure 10 is the interface of the gun sight display methods in the virtual environment of the application another exemplary embodiment offer Schematic diagram;
Figure 11 is the principle of the gun sight display methods in the virtual environment of the application another exemplary embodiment offer Schematic diagram;
Figure 12 is the interface of the gun sight display methods in the virtual environment of the application another exemplary embodiment offer Schematic diagram;
Figure 13 is the interface of the gun sight display methods in the virtual environment of the application another exemplary embodiment offer Schematic diagram;
Figure 14 is the block diagram of the gun sight display device in the virtual environment that one exemplary embodiment of the application provides;
Figure 15 is the structure diagram for the electronic equipment that one exemplary embodiment of the application provides.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
First, several nouns involved in the embodiment of the present application are introduced:
Virtual environment:It is the virtual environment of application program display (or offer) when being run in equipment.The virtual environment can It can also be the semifictional environment of half emulation to be the simulated environment to real world, can also be pure imaginary environment.Virtually Environment can be any one in two-dimensional virtual environment, 2.5 dimension virtual environments and three-dimensional virtual environment.Following embodiments are with void Near-ring border is that three-dimensional virtual environment comes for example, but being not limited to this.Optionally, which is additionally operable to carry out extremely Virtual environment battle between few two virtual roles.For example, the virtual environment between at least two virtual roles for using Virtual firearms are fought;For another example, which uses void at least two virtual roles in designated geographic area Quasi- firearms are fought, and the designated geographic area is constantly reduced with the increase of virtual time.
Virtual objects:It refer to the movable object in virtual environment.The movable object can be virtual portrait, virtual Animal, cartoon character etc., such as:Personage, animal, plant, oil drum, wall, stone for being shown in three-dimensional virtual environment etc..It can Selection of land, virtual objects are the three-dimensional stereo models created based on animation bone technology.Each virtual objects are in three-dimensional virtual environment In have the shape and volume of itself, occupy a part of space in three-dimensional virtual environment.
View directions:When being observed in virtual environment with the first person or third person of virtual objects Direction of observation.Optionally, when first person, view directions are by camera model in virtual environment to virtual Direction when being observed in front of object;When third person, view directions are in virtual environment by being located at void The direction when camera model of quasi- data collection (such as after brain) is observed.
Optionally, camera model follows virtual objects in virtual environment automatically, that is, when virtual objects are in void When position in near-ring border changes, camera model follows position of the virtual objects in virtual environment while changing Become, and the camera model is within the scope of the pre-determined distance of virtual objects always in virtual environment.Optionally, automatically with With in the process, the relative position for imaging head model and virtual objects does not change.
Camera model:Camera model is the threedimensional model being located in three-dimensional virtual environment around virtual objects, when When using first person, which is located at the head of virtual objects nearby or positioned at the head of virtual objects, When using third person, which can be located at the rear of virtual objects and be bound with virtual objects, It can also be located at virtual objects at a distance of any position of pre-determined distance, can be aligned from different perspectives by the camera model Virtual objects in three-dimensional virtual environment are observed, and optionally, also known as " shoulder of crossing of the first person regards the third person Angle ", camera model are located at the rear in virtual objects (such as head and shoulder portion of virtual portrait).Optionally, which exists Actual displayed will not be carried out in three-dimensional virtual environment, that is, in the three-dimensional virtual environment that user interface is shown None- identified to should Camera model.
Fig. 1 shows the principle schematic of reflex sight 100 with the real world.Reflex sight 100 can be with It is red point sighting lens or holographic diffraction sight.By taking reflex sight 100 is holographic diffraction sight as an example, the reflex sight 100 Including laser 11, plane mirror 12, collimating mirror 13, holographic grating 14 and holofilm 15.The laser 11 is used for Generate the corresponding laser beam of aiming point, the laser beam that laser 11 is sent out pass through successively plane mirror 12, collimating mirror 13, After the reflection of holographic grating 14, projected after the refraction of holofilm 15.The light and reflex sight 100 finally projected The parallel superposition of observed ambient light, to form aiming point in the sight distant place of observer.
Reflex sight 100 has following feature:When the optical axis of the direction of visual lines and reflex sight 100 of observer When parallel, display location of the gun sight in camera lens is in center state, as shown in (1) in Fig. 2;When the direction of visual lines of observer When not parallel with the optical axis of reflex sight 100, some offsets can occur for the aiming point in reflex sight 100, namely Display location of the aiming point in camera lens is not at center state, as shown in (2) in Fig. 2, (3), (4).
Fig. 3 shows principle schematic when being simulated in the related technology to reflex sight.In three-dimensional ring The virtual objects 320 and reflex sight 340 of three dimensional form are provided in border 300.The virtual objects 320 can hand hold void Intend firearms, reflex sight 340 is equipped on the virtual firearms.Reflex sight 340 includes gun sight lens barrel 342 and takes aim at Quasi- eyeglass 344.It aims at and is pasted with eyeglass material on eyeglass 344, which is to be attached to aim to be used on eyeglass 344 The material of aiming point is presented.Schematically, which is to be attached to the drafting aimed on eyeglass 344 to have aiming point Image, part of the image in addition to aiming point can be transparent image or translucent image.
In general, aiming at eyeglass 344 is assemblied on the groove 343 of gun sight lens barrel 342, the eyeglass material for having aiming point is drawn Matter 345, which is attached to, to be aimed on eyeglass 344.
In the related art, the relative position of gun sight lens barrel 342, aiming eyeglass 344 and eyeglass material 345 is to maintain not Become.Namely under the pattern of starting shooting, no matter how virtual objects move in virtual environment, gun sight lens barrel 342 and eyeglass material Aiming point in matter 345 is remained unchanged positioned at the center of virtual environment picture, and virtual environment picture is with virtual Object 320 observes the gun sight picture of virtual environment using reflex sight 340, no matter as shown in figure 4, virtual objects Movement, gun sight lens barrel 342 and aiming point 40 in the related technology are respectively positioned on center Screen position and remain unchanged.
But in actual environment, arm action of the personage under armed state is slightly slower than body action.Namely personage In left and right turn, on arm armed tool turned to slightly slow speed, the aiming point that personage observes at this time relative to There are some offsets for the position of gun sight lens barrel.The gun sight that the embodiment of the present application provides in a kind of virtual environment is shown Method, equipment and storage medium can provide more true simulated effect to reflex sight.
Referring to FIG. 5, the structure diagram of the electronic equipment provided it illustrates one exemplary embodiment of the application.The electricity Sub- equipment includes:Operating system 520 and application program 522.
Operating system 520 is that the basic software of the secure access to computer hardware is provided for application program 522.
Application program 522 is to support the application program of virtual environment.Optionally, application program 522 is to support three-dimensional The application program of environment.The application program 522 can be virtual reality applications program, three-dimensional map program, Military Simulation program, Third person shooting game (Third-Personal Shooting Game, TPS), first person shooting game (First- Person shooting game, FPS), MOBA game, any one in more people's gunbattle class survival games.The application program 522 can be the application program of standalone version, such as the 3D games of standalone version.
Referring to FIG. 6, the structure diagram of the computer system provided it illustrates one exemplary embodiment of the application.It should Computer system 600 includes:First equipment 620, server 640 and the second equipment 660.
First equipment, 620 installation and operation has the application program for supporting virtual environment.The application program can be virtual existing Real application program, three-dimensional map program, Military Simulation program, TPS game, FPS game, MOBA game, the existence of more people's gunbattle classes Any one in game.First equipment 620 is the equipment that the first user uses, and the first user is controlled using the first equipment 620 The first virtual objects carry out activity in virtual environment, the activity include but not limited to:Adjustment body posture creeps, walks At least one of go, run, ride, jump, drive, pick up, shoot, attack, throw.Schematically, the first virtual objects It is the first virtual portrait, such as artificial figure role or cartoon character role.
First equipment 620 is connected by wireless network or cable network with server 640.
Server 640 includes at least one in a server, multiple servers, cloud computing platform and virtualization center Kind.Server 640 is used to that the application program of three-dimensional virtual environment to be supported to provide background service.Optionally, server 640 undertakes Main evaluation work, the first equipment 620 and the second equipment 660 undertake secondary calculation work;Alternatively, server 640 undertake it is secondary Evaluation work, the first equipment 620 and the second equipment 660 undertake main evaluation work;Alternatively, server 640, the first equipment 620 Cooperated computing is carried out using distributed computing architecture between 660 three of the second equipment.
Second equipment, 660 installation and operation has the application program for supporting virtual environment.The application program can be virtual existing In real application program, three-dimensional map program, Military Simulation program, FPS game, MOBA game, more people's gunbattle class survival games Any one.Second equipment 660 is the equipment that second user uses, and second user is located at virtual using the control of the second equipment 660 The second virtual objects carry out activity in environment, the activity include but not limited to:Adjustment body posture, creep, walking, run, At least one of ride, jump, drive, pick up, shoot, attack, throw.Schematically, the second virtual objects are the second void Anthropomorphic object, such as artificial figure role or cartoon character role.
Optionally, the first virtual portrait and the second virtual portrait are in same virtual environment.Optionally, the first visual human Object and the second virtual portrait may belong to the same troop, the same tissue, with friend relation or with provisional communication Permission.Optionally, the first virtual portrait and the second virtual portrait can also belong to different troops, different tissues or with hostile The Liang Ge groups of property.
Optionally, the application program installed in the first equipment 620 and the second equipment 660 be identical or two equipment on The application program of installation is the same type application program of different control system platforms.First equipment 620 can refer to multiple set One in standby, the second equipment 660 can refer to one in multiple equipment, and the present embodiment is only with the first equipment 620 and second Equipment 660 illustrates.The device type of first equipment 620 and the second equipment 660 is identical or different, the device type packet It includes:Game host, desktop computer, smart mobile phone, tablet computer, E-book reader, MP3 player, MP4 players and knee At least one of mo(u)ld top half pocket computer.Following embodiment is illustrated so that equipment is desktop computer.
Those skilled in the art could be aware that the quantity of above equipment can be more or less.For example above equipment can be with Only one either above equipment be tens or hundreds of or greater number.The embodiment of the present application to the quantity of equipment and Device type is not limited.
Referring to FIG. 7, the gun sight in the virtual environment provided it illustrates one exemplary embodiment of the application is shown The flow chart of method.The present embodiment is applied to electronic equipment shown in fig. 5, the first equipment shown in fig. 6 and/or figure in this way Come in second equipment shown in 6 for example, this method includes:
Step 702, the first virtual environment picture is shown, the first virtual environment picture includes that virtual objects are taken aim at using reflective First gun sight picture of quasi- sem observation virtual environment, the gun sight lens barrel position of reflex sight in the first virtual environment picture In first position;
Optionally, virtual objects are three dimensional forms.The virtual objects be artificial figure, cartoon figure, cartoon character and Any one in game charater.
Optionally, various controls can also be superimposed on the first virtual environment picture, these controls include:Moving direction control Control processed, control of opening fire, the control that drops a bomb, main weapon slot position control, auxiliary weapon slot position control, small Map OCX, map orientation refer to Draw at least one of control, teammate/enemy's unit sign.
First gun sight picture refers to the picture using the virtual environment observed by reflex sight.If reflective take aim at The camera lens of quasi- mirror is round, then the first gun sight picture is circle.Before virtual objects activity, taking aim in the first gun sight picture Quasi- mirror lens barrel is located at first position, which can be the centre position in the first virtual environment picture.
Step 704, virtual objects carry out activity in virtual environment is controlled;
It is movable in the activity space of virtual environment that equipment controls virtual objects.Wherein, activity space is in virtual environment Virtual objects, for example, in virtual environment, can be set virtual objects and be carried out in the circular Plain of hills and mountains with movable range Activity, the Plain are exactly the activity space of virtual objects, and the hills and mountains being looped around around the Plain are exactly virtual objects to live Dynamic region.
Activity in the embodiment of the present application, which refers to the body work of virtual objects, can drive arm (and the arm is held Virtual firearms and reflex sight) change position movement.The activity includes:Control virtual objects are translated, are controlled Virtual objects turn upwards towards in left right, control virtual objects switches between vertical view state and head-up state, it is virtual right to control As at least one of switching between state of looking up and head-up state.
Optionally, equipment controls virtual objects in virtual environment with First Speed carry out activity, and controls reflective take aim at The gun sight lens barrel of quasi- mirror is more than second speed in virtual environment with second speed carry out activity, First Speed.
Step 706, the second virtual environment picture is shown, the second virtual environment picture includes that virtual objects are taken aim at using reflective Second gun sight picture of quasi- sem observation virtual environment, the gun sight lens barrel in the second virtual environment picture are located at the second position.
Optionally, various controls can also be superimposed on the second virtual environment picture, these controls include:Moving direction control Control processed, control of opening fire, the control that drops a bomb, main weapon slot position control, auxiliary weapon slot position control, small Map OCX, map orientation refer to Draw at least one of control, teammate/enemy's unit sign.
Second gun sight picture refers to the picture using the virtual environment observed by reflex sight.If reflective take aim at The camera lens of quasi- mirror is round, then the second gun sight picture is circle.After virtual objects activity, in the second virtual environment picture Gun sight lens barrel is located at the second position, which can be the eccentric occlusion centre position of the second virtual environment picture.Optionally, The activity association of offset and virtual objects between the second position and first position.That is, between the second position and first position Offset direction and virtual objects activity direction on the contrary, the offset distance between the second position and first position and virtual objects Operating range correlation.
Schematically, in Fig. 8 on show the first virtual environment picture 81, in the first virtual environment picture 81 The gun sight lens barrel 342 and aiming point 40 of reflex sight are respectively positioned on the centre position of the first virtual environment picture 81.It takes aim at Quasi- mirror lens barrel 342 includes circular first gun sight picture 42, center location of the aiming point 40 in the first gun sight picture 42; In Fig. 8 following diagrams illustrate the second virtual environment picture 82, being turned to the right in virtual environment by virtual objects is influenced, this The gun sight lens barrel 342 of reflex sight in two virtual environment pictures 82 can slightly be later than the body work of virtual objects, because Relative position between this gun sight lens barrel 342 and aiming point 40 is deviated, and wherein aiming point 40 is still virtual second The centre position of environment picture 82, but gun sight lens barrel 342 and the second gun sight picture 44 are not at centre position, But in the position of center side to the left.
In conclusion gun sight display methods provided in this embodiment, is lived by virtual objects in virtual environment After dynamic, the display second virtual environment picture different from the first virtual environment picture, gun sight lens barrel is drawn in two virtual environments Position in face is different, but position of the aiming point in two virtual environment pictures be it is identical, can be to actual environment In reflex sight carry out more true emulation, to the more true display effect of realization, enhance user to virtual The feeling of immersion of environment.
Referring to FIG. 9, the gun sight in the virtual environment provided it illustrates one exemplary embodiment of the application is shown The flow chart of method.The present embodiment is applied to electronic equipment shown in fig. 5, the first equipment shown in fig. 6 and/or figure in this way Come in second equipment shown in 6 for example, the present embodiment can be to observing virtual environment using reflex sight Scene carry out analogue simulation.This method includes:
Step 901, the first virtual environment picture is shown, the first virtual environment picture includes that virtual objects are taken aim at using reflective First gun sight picture of quasi- sem observation virtual environment, the gun sight lens barrel position of reflex sight in the first virtual environment picture In first position;
Optionally, virtual objects are three dimensional forms.The virtual objects be artificial figure, cartoon figure, cartoon character and Any one in game charater.
Equipment has the ability of one or more of control virtual environment virtual objects.It is that control one is virtual with equipment For object, in virtual environment exist camera model corresponding with the virtual objects, the camera model for acquire with Picture when virtual environment is observed at the first visual angle or third visual angle of virtual objects.Optionally, when virtual objects use When reflex sight, which may be used reflex sight and is observed to obtain first virtually to virtual environment Environment picture includes the first gun sight that reflex sight observes virtual environment on the first virtual environment picture Picture.
Optionally, various controls can also be superimposed on the first virtual environment picture, these controls include:Moving direction control Control processed, control of opening fire, the control that drops a bomb, main weapon slot position control, auxiliary weapon slot position control, small Map OCX, map orientation refer to Draw at least one of control, teammate/enemy's unit sign.
First gun sight picture refers to the picture using the virtual environment observed by reflex sight.If reflective take aim at The camera lens of quasi- mirror is round, then the first gun sight picture is circle.Before virtual objects activity, in the first virtual environment picture Gun sight lens barrel is located at first position, which can be the centre position of the first virtual environment picture.
As shown in Figure 10, the camera model using virtual objects is shown to virtual ring on the first virtual environment picture 50 Picture when border is observed further includes the when being observed virtual environment using reflex sight 51 in the picture 50 One gun sight picture 52.The first gun sight picture 52 can be circular picture, be observed in the first gun sight picture 52 Virtual environment do not amplify, or it is amplified according to preset ratio (1.0,2.0,4.0,8.0 or 15.0).First is virtual Gun sight lens barrel 51 in environment picture 50 is located at first position, such as center position.
Step 902, virtual objects are controlled in virtual environment with First Speed carry out activity, and control reflex sight Gun sight lens barrel in virtual environment with second speed carry out activity, First Speed is more than second speed;
Optionally, the control signal that equipment is triggered according to user, control virtual objects are in virtual environment with First Speed Carry out activity.When the equipment is mobile phone or tablet with touch display screen, which can be that user passes through to handing over Mutual control is touched and is dragged and generated, and interactive controls include:Control control, the control virtual objects of virtual objects translation Control, the control virtual objects of control, control virtual objects jump that control, the control virtual objects of rotation are looked up/overlooked are climbed At least one of capable control;When the terminal is desktop computer, portable laptops, which can be user Dragging generation is carried out to the interactive controls by external equipment, such as:User clicks interactive controls by mouse and drags.
Activity in the embodiment of the present application, which refers to the body work of virtual objects, can drive arm (and the arm is held Virtual firearms and reflex sight) change position movement.The activity includes:Control virtual objects are translated, are controlled Virtual objects turn upwards towards in left right, control virtual objects switches between vertical view state and head-up state, it is virtual right to control As at least one of switching between state of looking up and head-up state.
For purpose is more really emulated, in virtual objects activity, the sliding speed of torso portion should be more than arm Movement in partial sliding speed namely arm can slightly sluggishness once, carry out identical or corresponding followed by torso portion Sliding.Therefore, equipment controls virtual objects in virtual environment with First Speed carry out activity, and controls reflex sight Gun sight lens barrel is more than second speed in virtual environment with second speed carry out activity, First Speed.Optionally, First Speed Difference between second speed is less than threshold value.
Step 903, the camera lens direction of the corresponding camera model of virtual objects is obtained;
Camera model has the three-dimensional coordinate and camera lens direction of itself in virtual environment.Optionally, the camera lens direction It is characterized towards vector using camera lens.The camera lens towards vector can be the Unit Vector for having azimuth, pitch angle and roll angle Amount.
Step 904, the aiming point position of the eyeglass material of reflex sight is moved on the extended line of camera lens direction;
In virtual environment, the structure of reflex sight can be with shown in reference chart 3.
The aiming point position of eyeglass material can be moved to the camera lens of camera model towards on extended line by equipment, Ye Jirang Aiming point position is constantly in the centre position of first/second virtual environment picture.Meanwhile it keeping aiming at eyeglass and gun sight The relative position of lens barrel does not change.Optionally, this step includes following sub-step:
1, camera lens is multiplied to obtain material shift value with distance parameter towards vector, distance parameter is used to indicate aiming eyeglass Distance relative to camera model;
2, the coordinate by camera model in virtual environment is added with material shift value, and the position for obtaining eyeglass material is sat Mark;
3, position of the eyeglass material in virtual environment is set according to position coordinates.
In conjunction with the left figure with reference to figure 11, it is assumed that virtual objects 61 before activity using reflex sight to virtual environment into Row observation, at this time gun sight of the camera lens of the camera model of virtual objects towards the gun sight lens barrel 62 of, reflex sight Towards being first direction 63, the center at the center and eyeglass material 66 of aiming at eyeglass 65 is respectively positioned on the extension of gun sight direction On line;After virtual objects are in activity, the camera lens of the camera model of virtual objects is oriented second direction 64, then needs at this time The central point (namely aiming point) of control eyeglass material 66 is located on the extended line of camera lens direction.If the camera lens court of camera model It is V to vector, the camera lens of camera model is L with the distance between eyeglass is aimed at, and camera model is in three-dimensional virtual environment Coordinate be S1, then:
The position coordinates S2=V*L+S1 of eyeglass material.
Equipment moves eyeglass material according to position coordinates in virtual environment.That is, eyeglass material follows aiming Eyeglass is moved.Meanwhile equipment also keeps gun sight lens barrel and the relative position of aiming eyeglass not to change.
Optionally, since eyeglass material is attached to gun sight on piece, it should not exceed and aim at eyeglass position model It encloses.Therefore equipment also detects whether material deviant is more than maximum deviation value when material deviant is calculated.If material is inclined When shifting value is more than maximum deviation value, material deviant is updated to maximum deviation value, to ensure that the eyeglass material after deviating does not surpass Go out to aim at the position range of eyeglass.Optionally, which is equal to the radius for aiming at eyeglass.
Step 905, it is drawn according to camera lens direction, gun sight lens barrel, aiming eyeglass and the second virtual environment of eyeglass Mature growing Face;
Equipment is found a view according to the camera lens of camera model towards camera is carried out, and passes through gun sight mirror according to virtual environment Cylinder forms picture after aiming at eyeglass and eyeglass material in view-finder, generates the second virtual environment picture.
Step 906, show that the second virtual screen, the second virtual environment picture include that virtual objects use reflex sight The second gun sight picture of virtual environment is observed, the gun sight lens barrel in the second virtual environment picture is located at the second position.
Equipment shows the second virtual environment picture of generation.Aiming point in gun sight lens barrel is empty described first Near-ring border picture is identical with the position in the second virtual environment picture, for example aiming point is in the first virtual environment picture and It is respectively positioned on picture center in two virtual environment pictures.
In a schematical example, when virtual objects turn to the right, the second virtual environment picture is as shown in figure 12, The steering of gun sight lens barrel is slightly later than the right turn of virtual portrait, therefore the position of gun sight lens barrel is to the left;In another signal Property example in, when virtual objects turn to the left, the second virtual environment picture is as shown in figure 13, and the steering of gun sight lens barrel is omited It is later than the left steering of virtual portrait, therefore the position of gun sight lens barrel is to the right.
Since activity of the virtual objects in virtual environment may be lasting, above-mentioned steps 903 and step 906 can be held Row is multiple, for example per second execute 24 times, per second executes 60 times etc..
In conclusion gun sight display methods provided in this embodiment, is lived by virtual objects in virtual environment After dynamic, the display second virtual environment picture different from the first virtual environment picture, gun sight lens barrel is drawn in two virtual environments Position in face is different, but position of the aiming point in two virtual environment pictures be it is identical, can be to actual environment In reflex sight carry out more true emulation, to the more true display effect of realization, enhance user to virtual The feeling of immersion of environment.
Gun sight display methods provided in this embodiment, by control virtual objects in virtual environment with First Speed into Row rotation, and control reflex sight and rotated with second speed in virtual environment so that the trunk of virtual objects is dynamic It is slightly faster than arm action, more meets the object rule in actual environment, more real character's animation is provided.
Gun sight display methods provided in this embodiment, by according to camera lens towards vector, distance parameter and video camera mould The coordinate of type generates the position of gun sight piece, even if the gun sight lens barrel of reflex sight occurs in virtual environment picture It is mobile, it is also possible that the aiming point of gun sight on piece is always situated in the center in virtual environment picture, to reduce user Three-dimensional spinning sensation when watching virtual environment picture.
Gun sight display methods provided in this embodiment, by when material deviant be more than maximum deviation value when, by material Deviant is updated to maximum deviation value, can avoid mistake of exposing the false occur in the second virtual environment picture, ensure that second is virtual The authenticity of environment picture.
The details not being described in detail in device embodiment can be referred to upper for the device embodiment of the application below State one-to-one embodiment of the method.
Figure 14 is the framework of the gun sight display device in the virtual environment that one exemplary embodiment of the application provides.It should Gun sight display device can by software, hardware or both be implemented in combination with as electronic equipment all or part of. The device includes:Display module 620 and control module 640.
Display module 620, for showing the first virtual environment picture, the first virtual environment picture includes virtual objects The first gun sight picture that the virtual environment is observed using reflex sight, it is anti-described in the first virtual environment picture The gun sight lens barrel for penetrating formula gun sight is located at first position;
Control module 640, for controlling virtual objects carry out activity in the virtual environment;
The display module 620, for showing that the second virtual environment picture, the second virtual environment picture include described Virtual objects observe the second gun sight picture of the virtual environment, second virtual environment using the reflex sight The gun sight lens barrel in picture is located at the second position.Wherein, the aiming point in the gun sight lens barrel is empty described first Near-ring border picture is identical with the position in the second virtual environment picture.
In an alternative embodiment, the reflex sight further includes aiming at eyeglass and eyeglass material, the mirror Piece material is to be attached to the material of the gun sight on piece aiming point for rendering.
The display module 620, the camera lens direction for obtaining the corresponding camera model of the virtual objects;It will be described The aiming point position of the eyeglass material of reflex sight is moved on the extended line of the camera lens direction;According to the camera lens court To, the gun sight lens barrel, the aiming eyeglass and the eyeglass Mature growing and show the second gun sight picture.
In an alternative embodiment, the camera lens direction uses camera lens towards vector representation;
Material displacement is calculated for the camera lens to be multiplied towards vector with distance parameter in the display module 620 Value, the distance parameter are used to indicate distance of the eyeglass material relative to the camera model;By the video camera mould Coordinate of the type in the virtual environment is added with the material shift value, obtains the position coordinates of the eyeglass material;According to Position of the eyeglass material in the virtual environment is arranged in the position coordinates.
In an alternative embodiment, the display module 620 is additionally operable to set the eyeglass direction for aiming at eyeglass It is set to the negative direction with the camera lens direction.
In an alternative embodiment, the control module 640 is additionally operable to control the virtual objects described virtual With First Speed carry out activity in environment, and the gun sight lens barrel of the reflex sight is controlled in the virtual environment In with second speed carry out activity, the First Speed is more than the second speed.
In an alternative embodiment, the aiming point is in the first virtual environment picture and second virtual ring Picture center is respectively positioned in the picture of border.
Figure 15 shows the structure diagram for the electronic equipment 1500 that an illustrative embodiment of the invention provides.The electronics is set Standby 1500 can be:Smart mobile phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, laptop or desktop computer.Electronics Equipment 1500 be also possible to be referred to as user equipment, portable electronic device, electronic equipment on knee, table type electronic equipment etc. other Title.
In general, electronic equipment 1500 includes:Processor 1501 and memory 1502.
Processor 1501 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- may be used in reason device 1501 Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 1501 can also include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 1501 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1501 can also wrap AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processors are for handling related machine learning Calculating operation.
Memory 1502 may include one or more computer readable storage mediums, which can To be non-transient.Memory 1502 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1502 can Storage medium is read for storing at least one instruction, at least one instruction is for performed to realize this Shen by processor 1501 Please in embodiment of the method provide virtual environment in firearms assembly method.
In some embodiments, electronic equipment 1500 is also optional includes:Peripheral device interface 1503 and at least one outer Peripheral equipment.It can be connected by bus or signal wire between processor 1501, memory 1502 and peripheral device interface 1503.Respectively A peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1503.Specifically, peripheral equipment packet It includes:Radio circuit 1504, touch display screen 1505, camera 1506, voicefrequency circuit 1507, positioning component 1508 and power supply 1509 At least one of.
Peripheral device interface 1503 can be used for I/O (Input/Output, input/output) is relevant at least one outer Peripheral equipment is connected to processor 1501 and memory 1502.In some embodiments, processor 1501, memory 1502 and periphery Equipment interface 1503 is integrated on same chip or circuit board;In some other embodiments, processor 1501, memory 1502 and peripheral device interface 1503 in any one or two can be realized on individual chip or circuit board, this implementation Example is not limited this.
Radio circuit 1504 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal. Radio circuit 1504 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1504 is by telecommunications Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 1504 include:Antenna system, one or more amplifiers, tuner, oscillator, digital signal processor, compiles solution at RF transceivers Code chipset, user identity module card etc..Radio circuit 1504 can by least one wireless communication protocol come with it is other Electronic equipment is communicated.The wireless communication protocol includes but not limited to:WWW, Metropolitan Area Network (MAN), Intranet, each third-generation mobile communication Network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.At some In embodiment, radio circuit 1504, which can also include NFC (Near Field Communication, wireless near field communication), to be had The circuit of pass, the application are not limited this.
Display screen 1505 is for showing UI (User Interface, user interface).The UI may include figure, text, Icon, video and its their arbitrary combination.When display screen 1505 is touch display screen, display screen 1505 also there is acquisition to exist The ability of the surface of display screen 1505 or the touch signal of surface.The touch signal can be used as control signal to be input to place Reason device 1501 is handled.At this point, display screen 1505 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press Button and/or soft keyboard.In some embodiments, display screen 1505 can be one, and the front panel of electronic equipment 1500 is arranged;? In other embodiments, display screen 1505 can be at least two, be separately positioned on the different surfaces of electronic equipment 1500 or be in Foldover design;In still other embodiments, display screen 1505 can be flexible display screen, and the bending in electronic equipment 1500 is arranged On surface or on fold plane.Even, display screen 1505 can also be arranged to non-rectangle irregular figure, namely abnormity screen.It is aobvious LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light- may be used in display screen 1505 Emitting Diode, Organic Light Emitting Diode) etc. materials prepare.
CCD camera assembly 1506 is for acquiring image or video.Optionally, CCD camera assembly 1506 includes front camera And rear camera.In general, the front panel in electronic equipment is arranged in front camera, rear camera is arranged in electronic equipment The back side.In some embodiments, rear camera at least two are main camera, depth of field camera, wide-angle imaging respectively Head, any one in focal length camera, to realize that main camera and the fusion of depth of field camera realize that background blurring function, master are taken the photograph As head and wide-angle camera fusion realize pan-shot and VR (Virtual Reality, virtual reality) shooting functions or Other fusion shooting functions.In some embodiments, CCD camera assembly 1506 can also include flash lamp.Flash lamp can be single Colour temperature flash lamp can also be double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, It can be used for the light compensation under different-colour.
Voicefrequency circuit 1507 may include microphone and loud speaker.Microphone is used to acquire the sound wave of user and environment, and It converts sound waves into electric signal and is input to processor 1501 and handled, or be input to radio circuit 1504 to realize that voice is logical Letter.For stereo acquisition or the purpose of noise reduction, microphone can be multiple, be separately positioned on the different portions of electronic equipment 1500 Position.Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loud speaker then be used for will come from processor 1501 or The electric signal of radio circuit 1504 is converted to sound wave.Loud speaker can be traditional wafer speaker, can also be piezoelectric ceramics Loud speaker.When loud speaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, also may be used To convert electrical signals to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1507 It can also include earphone jack.
Positioning component 1508 is used for the current geographic position of Positioning Electronic Devices 1500, to realize navigation or LBS (Location Based Service, location based service).Positioning component 1508 can be the GPS based on the U.S. The Galileo system of (Global Positioning System, global positioning system), Chinese dipper system or Russia Positioning component.
Power supply 1509 is used to be powered for the various components in electronic equipment 1500.Power supply 1509 can be alternating current, Direct current, disposable battery or rechargeable battery.When power supply 1509 includes rechargeable battery, which can have Line rechargeable battery or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is The battery to be charged by wireless coil.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, electronic equipment 1500 further include there are one or multiple sensors 1510.The one or more Sensor 1510 includes but not limited to:Acceleration transducer 1511, gyro sensor 1512, pressure sensor 1513, fingerprint Sensor 1514, optical sensor 1515 and proximity sensor 1516.
Acceleration transducer 1511 can detect adding in three reference axis of the coordinate system established with electronic equipment 1500 Velocity magnitude.For example, acceleration transducer 1511 can be used for detecting component of the acceleration of gravity in three reference axis.Processing The acceleration of gravity signal that device 1501 can be acquired according to acceleration transducer 1511, control touch display screen 1505 is laterally to regard Figure or longitudinal view carry out the display of user interface.Acceleration transducer 1511 can be also used for game or the movement number of user According to acquisition.
Gyro sensor 1512 can detect body direction and the rotational angle of electronic equipment 1500, gyro sensor 1512 can cooperate with acquisition user to act the 3D of electronic equipment 1500 with acceleration transducer 1511.Processor 1501 is according to top The data that spiral shell instrument sensor 1512 acquires, may be implemented following function:Action induction (for example changed according to the tilt operation of user Become UI), shooting when image stabilization, game control and inertial navigation.
Pressure sensor 1513 can be arranged under the side frame of electronic equipment 1500 and/or touch display screen 1505 Layer.When pressure sensor 1513 is arranged in the side frame of electronic equipment 1500, user can be detected to electronic equipment 1500 Signal is held, right-hand man's identification or quick behaviour are carried out according to the gripping signal that pressure sensor 1513 acquires by processor 1501 Make.It is aobvious to touching according to user by processor 1501 when pressure sensor 1513 is arranged in the lower layer of touch display screen 1505 The pressure operation of display screen 1505, realization control the operability control on the interfaces UI.Operability control includes button At least one of control, scroll bar control, icon control, menu control.
Fingerprint sensor 1514 is used to acquire the fingerprint of user, is collected according to fingerprint sensor 1514 by processor 1501 Fingerprint recognition user identity, alternatively, by fingerprint sensor 1514 according to the identity of collected fingerprint recognition user.Knowing When the identity for not going out user is trusted identity, the user is authorized to execute relevant sensitive operation, sensitivity behaviour by processor 1501 Work includes solving lock screen, checking encryption information, download software, payment and change setting etc..Fingerprint sensor 1514 can be set Set the front, the back side or side of electronic equipment 1500.When being provided with physical button or manufacturer Logo on electronic equipment 1500, refer to Line sensor 1514 can be integrated with physical button or manufacturer Logo.
Optical sensor 1515 is for acquiring ambient light intensity.In one embodiment, processor 1501 can be according to light The ambient light intensity that sensor 1515 acquires is learned, the display brightness of touch display screen 1505 is controlled.Specifically, work as ambient light intensity When higher, the display brightness of touch display screen 1505 is turned up;When ambient light intensity is relatively low, the aobvious of touch display screen 1505 is turned down Show brightness.In another embodiment, the ambient light intensity that processor 1501 can also be acquired according to optical sensor 1515, is moved State adjusts the acquisition parameters of CCD camera assembly 1506.
Proximity sensor 1516, also referred to as range sensor are generally arranged at the front panel of electronic equipment 1500.Close to sensing Device 1516 is used to acquire the distance between the front of user and electronic equipment 1500.In one embodiment, work as proximity sensor 1516 when detecting that the distance between the front of user and electronic equipment 1500 tapers into, and is touched by the control of processor 1501 aobvious Display screen 1505 is switched to breath screen state from bright screen state;When proximity sensor 1516 detects user with electronic equipment 1500 just When the distance between face becomes larger, touch display screen 1505 is controlled by processor 1501 and is switched to bright screen shape from breath screen state State.
It will be understood by those skilled in the art that structure shown in Figure 15 does not constitute the restriction to electronic equipment 1500, May include either combining certain components than illustrating more or fewer components or being arranged using different components.
The application also provides a kind of computer readable storage medium, and at least one instruction, at least is stored in storage medium One section of program, code set or instruction set, at least one instruction, at least one section of program, code set or instruction set are loaded by processor And the gun sight display methods in virtual environment of the execution to realize above method embodiment offer.
Present invention also provides a kind of computer program products, when it runs on an electronic device so that electronic equipment Execute the gun sight display methods in the virtual environment of above-mentioned each embodiment of the method.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware Complete, relevant hardware can also be instructed to complete by program, program can be stored in a kind of computer-readable storage In medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It these are only the preferred embodiment of the application, it is all in spirit herein and principle not to limit the application Within, any modification, equivalent replacement, improvement and so on should be included within the protection domain of the application.

Claims (14)

1. the gun sight display methods in a kind of virtual environment, which is characterized in that the method includes:
Show that the first virtual environment picture, the first virtual environment picture include that virtual objects are observed using reflex sight First gun sight picture of the virtual environment, the gun sight mirror of reflex sight described in the first virtual environment picture Cylinder is located at first position;
Control virtual objects carry out activity in the virtual environment;
Show the second virtual environment picture, the second virtual environment picture includes the virtual objects reflective to be taken aim at using described Second gun sight picture of virtual environment described in quasi- sem observation, the gun sight lens barrel position in the second virtual environment picture In the second position;
Wherein, the aiming point in the gun sight lens barrel is in the first virtual environment picture and the second virtual environment picture In position it is identical.
2. according to the method described in claim 1, it is characterized in that, the reflex sight further includes aiming at eyeglass and eyeglass Material, the eyeglass material are to be attached to the material of the gun sight on piece aiming point for rendering;
The second virtual environment picture of the display, including:
Obtain the camera lens direction of the corresponding camera model of the virtual objects;
The aiming point position of the eyeglass material of the reflex sight is moved on the extended line of the camera lens direction;
According to camera lens direction, the gun sight lens barrel, the aiming eyeglass and the eyeglass Mature growing and display Second gun sight picture.
3. according to the method described in claim 2, it is characterized in that, camera lens direction uses camera lens towards vector representation;
The aiming point position of the eyeglass material by the reflex sight is moved on the extended line of the camera lens direction, Including:
The camera lens is multiplied towards vector with distance parameter, material shift value is calculated, the distance parameter is used to indicate institute State distance of the eyeglass material relative to the camera model;
Coordinate of the camera model in the virtual environment is added with the material shift value, obtains the eyeglass material The position coordinates of matter;
According to the position coordinates, position of the eyeglass material in the virtual environment is set.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
When the material deviant is more than maximum deviation value, the material deviant is updated to the maximum deviation value.
5. method according to any one of claims 1 to 4, which is characterized in that the control virtual objects are in the void Carry out activity in near-ring border, including:
The virtual objects are controlled with First Speed carry out activity in the virtual environment, and control the reflex sight The gun sight lens barrel in the virtual environment with second speed carry out activity, the First Speed is more than second speed Degree.
6. method according to any one of claims 1 to 4, which is characterized in that the aiming point is in first virtual environment It is respectively positioned on picture center in picture and the second virtual environment picture.
7. the gun sight display device in a kind of virtual environment, which is characterized in that described device includes:
Display module, for showing that the first virtual environment picture, the first virtual environment picture include that virtual objects use instead The first gun sight picture that formula aims at virtual environment described in sem observation is penetrated, it is reflective described in the first virtual environment picture to take aim at The gun sight lens barrel of quasi- mirror is located at first position;
Control module, for controlling virtual objects carry out activity in the virtual environment;
The display module, for showing that the second virtual environment picture, the second virtual environment picture include described virtual right As using the reflex sight to observe the second gun sight picture of the virtual environment, in the second virtual environment picture The gun sight lens barrel be located at the second position;
Wherein, the aiming point in the gun sight lens barrel is in the first virtual environment picture and the second virtual environment picture In position it is identical.
8. device according to claim 7, which is characterized in that the reflex sight further includes aiming at eyeglass and eyeglass Material, the eyeglass material are to be attached to the material of the gun sight on piece aiming point for rendering;
The display module, the camera lens direction for obtaining the corresponding camera model of the virtual objects;It will be described reflective The aiming point position of the eyeglass material of gun sight is moved on the extended line of the camera lens direction;According to camera lens direction, institute It states gun sight lens barrel, the aiming eyeglass and the eyeglass Mature growing and shows the second gun sight picture.
9. device according to claim 8, which is characterized in that the camera lens direction uses camera lens towards vector representation;
Material shift value is calculated for the camera lens to be multiplied towards vector with distance parameter in the display module, described Distance parameter is used to indicate distance of the eyeglass material relative to the camera model;By the camera model described Coordinate in virtual environment is added with the material shift value, obtains the position coordinates of the eyeglass material;According to the position Position of the eyeglass material in the virtual environment is arranged in coordinate.
10. device according to claim 7, which is characterized in that
The display module is additionally operable to, when the material deviant is more than maximum deviation value, the material deviant be updated For the maximum deviation value.
11. according to any device of claim 7 to 10, which is characterized in that
The control module is additionally operable to control the virtual objects in the virtual environment with First Speed carry out activity, and The gun sight lens barrel of the reflex sight is controlled in the virtual environment with second speed carry out activity, described One speed is more than the second speed.
12. according to any device of claim 7 to 10, which is characterized in that the aiming point is in first virtual ring It is respectively positioned on picture center in border picture and the second virtual environment picture.
13. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory Contain at least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of journey Sequence, the code set or instruction set are loaded by the processor and are executed virtual as described in claim 1 to 6 is any to realize Gun sight display methods in environment.
14. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction Collection is loaded by the processor and is executed to realize that the gun sight in the virtual environment as described in claim 1 to 6 is any is shown Method.
CN201810540930.4A 2018-05-30 2018-05-30 Method, device and storage medium for displaying sighting telescope in virtual environment Active CN108786110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810540930.4A CN108786110B (en) 2018-05-30 2018-05-30 Method, device and storage medium for displaying sighting telescope in virtual environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810540930.4A CN108786110B (en) 2018-05-30 2018-05-30 Method, device and storage medium for displaying sighting telescope in virtual environment

Publications (2)

Publication Number Publication Date
CN108786110A true CN108786110A (en) 2018-11-13
CN108786110B CN108786110B (en) 2020-06-02

Family

ID=64089370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810540930.4A Active CN108786110B (en) 2018-05-30 2018-05-30 Method, device and storage medium for displaying sighting telescope in virtual environment

Country Status (1)

Country Link
CN (1) CN108786110B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110090442A (en) * 2019-05-16 2019-08-06 网易(杭州)网络有限公司 The method and device of starting shooting of game, electronic equipment, storage medium
CN110597449A (en) * 2019-09-12 2019-12-20 腾讯科技(深圳)有限公司 Prop using method, device, terminal and storage medium based on virtual environment
CN111013136A (en) * 2019-12-12 2020-04-17 腾讯科技(深圳)有限公司 Movement control method, device, equipment and storage medium in virtual scene
CN111603770A (en) * 2020-05-21 2020-09-01 腾讯科技(深圳)有限公司 Virtual environment picture display method, device, equipment and medium
CN113730909A (en) * 2021-09-14 2021-12-03 腾讯科技(深圳)有限公司 Aiming position display method and device, electronic equipment and storage medium
CN113887256A (en) * 2021-09-15 2022-01-04 福建新大陆自动识别技术有限公司 Double-camera bar code reading module with heat dissipation assembly and bar code reading method
WO2023071739A1 (en) * 2021-10-26 2023-05-04 腾讯科技(深圳)有限公司 Coordinate axis display method and apparatus used in virtual environment, terminal and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7530192B2 (en) * 2004-05-06 2009-05-12 Insight Technology Incorporated Weapon aiming device
CN102779000A (en) * 2012-05-03 2012-11-14 乾行讯科(北京)科技有限公司 User interaction system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7530192B2 (en) * 2004-05-06 2009-05-12 Insight Technology Incorporated Weapon aiming device
CN102779000A (en) * 2012-05-03 2012-11-14 乾行讯科(北京)科技有限公司 User interaction system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TEODOR STIMEC: ""Parallax free red dot sight"", 《HTTPS://OPTICS-INFO.COM/RED-DOT-SIGHTS/IMAGE2/》 *
代号画中仙: ""三角和全息各自有什么有点和缺点?"", 《HTTPS://TIEBA.BAIDU.COM/P/5659946828?PN=3》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110090442A (en) * 2019-05-16 2019-08-06 网易(杭州)网络有限公司 The method and device of starting shooting of game, electronic equipment, storage medium
CN110090442B (en) * 2019-05-16 2023-03-24 网易(杭州)网络有限公司 Game mirror opening method and device, electronic equipment and storage medium
CN110597449A (en) * 2019-09-12 2019-12-20 腾讯科技(深圳)有限公司 Prop using method, device, terminal and storage medium based on virtual environment
CN111013136A (en) * 2019-12-12 2020-04-17 腾讯科技(深圳)有限公司 Movement control method, device, equipment and storage medium in virtual scene
CN111603770A (en) * 2020-05-21 2020-09-01 腾讯科技(深圳)有限公司 Virtual environment picture display method, device, equipment and medium
CN111603770B (en) * 2020-05-21 2023-05-05 腾讯科技(深圳)有限公司 Virtual environment picture display method, device, equipment and medium
CN113730909A (en) * 2021-09-14 2021-12-03 腾讯科技(深圳)有限公司 Aiming position display method and device, electronic equipment and storage medium
CN113730909B (en) * 2021-09-14 2023-06-20 腾讯科技(深圳)有限公司 Aiming position display method and device, electronic equipment and storage medium
CN113887256A (en) * 2021-09-15 2022-01-04 福建新大陆自动识别技术有限公司 Double-camera bar code reading module with heat dissipation assembly and bar code reading method
CN113887256B (en) * 2021-09-15 2023-07-04 福建新大陆自动识别技术有限公司 Double-shooting bar code reading module with heat radiation assembly
WO2023071739A1 (en) * 2021-10-26 2023-05-04 腾讯科技(深圳)有限公司 Coordinate axis display method and apparatus used in virtual environment, terminal and medium

Also Published As

Publication number Publication date
CN108786110B (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN108717733B (en) View angle switch method, equipment and the storage medium of virtual environment
JP7264993B2 (en) Method and apparatus for controlling interaction between virtual object and projectile, and computer program
CN110115838B (en) Method, device, equipment and storage medium for generating mark information in virtual environment
CN110755841B (en) Method, device and equipment for switching props in virtual environment and readable storage medium
CN109529319B (en) Display method and device of interface control and storage medium
WO2019153750A1 (en) Method, apparatus and device for view switching of virtual environment, and storage medium
CN108786110A (en) Gun sight display methods, equipment and storage medium in virtual environment
CN110201403B (en) Method, device and medium for controlling virtual object to discard virtual article
CN110585710B (en) Interactive property control method, device, terminal and storage medium
CN111035918A (en) Reconnaissance interface display method and device based on virtual environment and readable storage medium
CN110917616B (en) Orientation prompting method, device, equipment and storage medium in virtual scene
CN110694273A (en) Method, device, terminal and storage medium for controlling virtual object to use prop
CN111659117B (en) Virtual object display method and device, computer equipment and storage medium
CN110585695B (en) Method, apparatus, device and medium for using near-war property in virtual environment
CN109634413B (en) Method, device and storage medium for observing virtual environment
CN109917910B (en) Method, device and equipment for displaying linear skills and storage medium
CN111282266B (en) Skill aiming method, device, terminal and storage medium in three-dimensional virtual environment
CN108744511A (en) Gun sight display methods, equipment and storage medium in virtual environment
CN110448908B (en) Method, device and equipment for applying sighting telescope in virtual environment and storage medium
CN112870715A (en) Virtual item putting method, device, terminal and storage medium
CN111273780B (en) Animation playing method, device and equipment based on virtual environment and storage medium
CN111013137B (en) Movement control method, device, equipment and storage medium in virtual scene
CN110448907B (en) Method and device for displaying virtual elements in virtual environment and readable storage medium
CN113134232B (en) Virtual object control method, device, equipment and computer readable storage medium
CN113289336A (en) Method, apparatus, device and medium for tagging items in a virtual environment

Legal Events

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