Visual field picture display method, device, equipment and storage medium

文档序号:1725180 发布日期:2019-12-20 浏览:16次 中文

阅读说明:本技术 视野画面显示方法、装置、设备及存储介质 (Visual field picture display method, device, equipment and storage medium ) 是由 刘智洪 于 2019-09-20 设计创作,主要内容包括:本申请公开了一种视野画面显示方法、装置、设备及存储介质,属于计算机技术领域。本申请实施例提供了一种视野画面显示方法,在当前所控制的虚拟对象位于投掷类虚拟道具的打击范围内时调整视角,可以既获取当前的第一视野画面,也获取调整视角后的第二视野画面,从而重叠显示两个视野画面,而不是单纯的显示白屏,这样可以真实模拟现实场景中的中弹效果,人物产生眩晕,显示效果更好。(The application discloses a method, a device, equipment and a storage medium for displaying a visual field picture, and belongs to the technical field of computers. The embodiment of the application provides a visual field picture display method, which can adjust a visual angle when a currently controlled virtual object is located in a striking range of a throwing type virtual prop, can acquire a current first visual field picture and also acquire a second visual field picture after the visual angle is adjusted, so that two visual field pictures are displayed in an overlapped mode instead of a pure white screen, a middle-elastic effect in a real scene can be truly simulated, a character is dizzy, and the display effect is better.)

1. A method for displaying a visual field, the method comprising:

when the currently controlled virtual object is located in the hitting range of the throwing type virtual prop and a visual angle adjusting instruction is received, acquiring a current first visual field picture;

acquiring a second visual field picture according to the visual angle adjusting instruction, wherein the second visual field picture is the visual field picture with the visual angle adjusted according to the visual angle adjusting instruction;

and in a user graphical interface, overlapping and displaying the first view picture and the second view picture.

2. The method according to claim 1, wherein the displaying the first view screen and the second view screen in an overlapping manner in the user graphical interface includes any one of:

acquiring the transparency of two visual field pictures, and respectively displaying the first visual field picture and the second visual field picture in an overlapping manner according to the transparency of the two visual field pictures in the user graphical interface;

acquiring the transparency of two view pictures, generating a third view picture according to the transparency of the two view pictures, the first view picture and the second view picture, wherein the third view picture comprises the first view picture and the second view picture which are overlapped, and displaying the third view picture in the user graphical interface.

3. The method according to claim 1, wherein the acquiring the current first view picture comprises any one of:

intercepting a picture currently displayed by the user graphical interface as the first view picture;

and generating a first visual field picture according to the current visual angle of the virtual scene.

4. The method according to claim 1, wherein the obtaining a second view according to the view angle adjustment instruction comprises:

acquiring a target rotation angle of the visual angle of the virtual scene according to the visual angle adjusting instruction;

and acquiring a view picture of the visual angle after the visual angle rotates the target rotation angle according to the target rotation angle.

5. The method of claim 1, wherein the second view picture is a next frame of the first view picture;

the currently controlled virtual object is positioned in a hitting range of the throwing type virtual prop, and the hitting range comprises the following steps: and the distance between the currently controlled virtual object and the drop point position of the throwing type virtual prop is smaller than the target distance.

6. The method of claim 1, further comprising:

acquiring target transparency according to the time length of the virtual object influenced by the throwing type virtual prop, wherein the target transparency is positively correlated with the time length, and the target transparency is not equal to 0;

and displaying a white picture in the user graphical interface according to the target transparency.

7. The method of claim 1, further comprising:

when the currently controlled virtual object is located in the hitting range of the throwing type virtual prop, the virtual object is controlled to make a target action, and the target action is used for representing that the virtual object is influenced by the throwing type virtual prop.

8. The method of claim 1, further comprising:

canceling the display of a control in the user graphical interface, wherein the control is used for controlling the virtual object or the virtual scene;

when touch operation on the user graphical interface is detected, if the position of the touch operation is located in a trigger area of the control, a control instruction corresponding to the control is obtained;

and controlling the virtual object or the virtual scene according to the control instruction.

9. The method according to claim 8, wherein the controlling the virtual object or the virtual scene according to the control instruction comprises:

when the control instruction is a movement control instruction for the virtual object, acquiring a target movement speed of the virtual object according to the control instruction, wherein the target movement speed is smaller than the movement speed of the virtual object when the virtual object is not influenced by the throwing type virtual prop;

and controlling the virtual object to move according to the target moving speed.

10. The method according to claim 1, wherein the acquiring a current first view picture when the currently controlled virtual object is located in a hitting range of the throwing-type virtual prop and a view angle adjusting instruction is received comprises:

when the currently controlled virtual object is located in the striking range of the throwing virtual prop and a visual angle adjusting instruction is received, acquiring the type of the throwing virtual prop;

and when the type of the throwing type virtual prop is a target type, executing the step of acquiring the current first view picture.

11. The method of claim 1, further comprising:

and when the time length of the virtual object influenced by the throwing virtual prop reaches the target time length, canceling the display of the first view field picture.

12. The method according to any one of claims 1-11, further comprising:

and sending at least one of the first view picture, the second view picture and the visual angle adjusting instruction as display data to a block chain system, and storing the display data to a block chain by the block chain system.

13. A visual field image display apparatus, comprising:

the acquisition module is used for acquiring a current first view picture when the currently controlled virtual object is positioned in the striking range of the throwing virtual prop and receives a view angle adjusting instruction;

the acquisition module is further configured to acquire a second view picture according to the view angle adjustment instruction, where the second view picture is a view picture with a view angle adjusted according to the view angle adjustment instruction;

and the display module is used for displaying the first view picture and the second view picture in an overlapping manner in a user graphical interface.

14. An electronic device, comprising one or more processors and one or more memories having at least one program code stored therein, the program code being loaded into and executed by the one or more processors to implement the operations performed by the viewscreen display method of any one of claims 1 to 12.

15. A computer-readable storage medium, wherein at least one program code is stored therein, and the program code is loaded and executed by a processor to implement the operations performed by the visual field screen display method according to any one of claims 1 to 12.

25页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:虚拟环境中从飞行器着陆的方法、装置及可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类