Virtual object rendering method, device, equipment and storage medium of game

文档序号:1838127 发布日期:2021-11-16 浏览:7次 中文

阅读说明:本技术 游戏的虚拟对象渲染方法、装置、设备及存储介质 (Virtual object rendering method, device, equipment and storage medium of game ) 是由 郑继峰 夏丁 于 2021-08-24 设计创作,主要内容包括:本申请提供一种游戏的虚拟对象渲染方法、装置、设备及存储介质,涉及图像处理技术领域。该方法包括:获取待显示的多个虚拟对象;根据各虚拟对象对应的待显示图像区域中各像素点的第一渲染颜色,确定各虚拟对象对应的待显示图像区域之间的颜色差异值;根据各虚拟对象对应的待显示图像区域之间的颜色差异值,对至少一个目标虚拟对象对应的待显示图像区域中各像素点的初始设定颜色进行调整,得到目标虚拟对象对应的待显示图像区域中各像素点的目标设定颜色;根据目标虚拟对象对应的待显示图像区域中各像素点的目标设定颜色,确定目标虚拟对象的第二渲染颜色,并使用第二渲染颜色渲染显示目标虚拟对象。本方法可实现颜色的动态调整。(The application provides a virtual object rendering method, device, equipment and storage medium of a game, and relates to the technical field of image processing. The method comprises the following steps: acquiring a plurality of virtual objects to be displayed; determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object; adjusting the initial set color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to the virtual objects to obtain the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object; and determining a second rendering color of the target virtual object according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, and rendering and displaying the target virtual object by using the second rendering color. The method can realize dynamic adjustment of color.)

1. A method of rendering virtual objects of a game, the method comprising:

acquiring a plurality of virtual objects to be displayed;

determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object;

adjusting the initial set color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to the virtual objects to obtain the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, wherein the target virtual object is a virtual object to be displayed which does not meet the condition of color difference, and the first rendering color of each pixel point is obtained based on the initial set color of the pixel point;

and determining a second rendering color of the target virtual object according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, and rendering and displaying the target virtual object by using the second rendering color.

2. The method according to claim 1, wherein the adjusting the initial setting color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to each virtual object comprises:

if the color difference value between an image area to be displayed corresponding to a first virtual object and an image area to be displayed corresponding to at least one second virtual object is smaller than a preset threshold value, determining the first virtual object and the second virtual object as target virtual objects, further adjusting mapping points of the image area to be displayed corresponding to the first virtual object in a color space, and adjusting mapping points of the image area to be displayed corresponding to each second virtual object in the color space, wherein the first virtual object is any one of the virtual objects, and the second virtual object is other virtual objects except the first virtual object;

according to the adjusted mapping points, respectively determining the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object;

and respectively adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object.

3. The method according to claim 2, wherein the adjusting a mapping point of an image area to be displayed corresponding to the first virtual object in a color space comprises:

respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space;

determining the adjustment direction of a mapping point of an image area to be displayed corresponding to the first virtual object in a color space according to the connecting line direction;

and adjusting mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space according to the adjustment direction, so that the color difference value between the image areas to be displayed corresponding to the first virtual objects and the image areas to be displayed corresponding to the second virtual objects is greater than or equal to a preset threshold value.

4. The method according to claim 2, wherein the adjusting, according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each of the second virtual objects, the initially set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initially set color of each pixel point in the image area to be displayed corresponding to each of the second virtual objects, respectively, comprises:

determining a new set color of each pixel point in the image area to be displayed corresponding to the first virtual object and a new set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object respectively;

and adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object according to the new set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the new set color of each pixel point in the image area to be displayed corresponding to the second virtual object respectively.

5. The method according to claim 2, wherein the determining the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each of the second virtual objects according to the adjusted mapping points comprises:

determining the color of the mapping point of the image area to be displayed corresponding to the first virtual object after adjustment in the color space;

taking the color of the mapping point of the image area to be displayed corresponding to the first virtual object after adjustment in the color space as the new color of the image area to be displayed corresponding to the first virtual object;

determining the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after adjustment in the color space;

and respectively taking the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after the mapping points are adjusted in the color space as the new colors of the image areas to be displayed corresponding to the second virtual objects.

6. The method according to claim 2, wherein after adjusting the mapping point of the image area to be displayed corresponding to the first virtual object in the color space and adjusting the mapping point of the image area to be displayed corresponding to each of the second virtual objects in the color space, the method further comprises:

if the color of the image area to be displayed corresponding to the first virtual object is determined to be the same as the color before the mapping point is adjusted according to the adjusted mapping point, not adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object;

and if the color of the image area to be displayed corresponding to the second virtual object is determined to be the same as the color before the mapping point is adjusted according to the adjusted mapping point, not adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object.

7. The method according to any one of claims 1 to 6, wherein determining a color difference value between the to-be-displayed image regions corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image region corresponding to each virtual object comprises:

calculating an average value of first rendering colors of all pixel points in a first image area to be displayed, and taking the average value as the color of the first image area to be displayed, wherein the first image area to be displayed is an image area to be displayed corresponding to any virtual object.

8. The method according to claim 7, wherein determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object comprises:

according to the color of the image area to be displayed corresponding to each virtual object, mapping the image area to be displayed corresponding to each virtual object into a color space respectively, and determining the mapping point of the image area to be displayed corresponding to each virtual object in the color space, wherein the color space is an RGB color space;

and determining a color difference value between the image areas to be displayed corresponding to the virtual objects according to the colors of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space.

9. The method according to claim 8, wherein the mapping the image area to be displayed corresponding to each virtual object into a color space according to the color of the image area to be displayed corresponding to each virtual object, and determining the mapping point of the image area to be displayed corresponding to each virtual object in the color space comprises:

determining three-dimensional coordinate information of mapping points, mapped to a color space, of the image area to be displayed according to the color of the image area to be displayed corresponding to each virtual object;

and determining the mapping point of the image area to be displayed in the color space according to the three-dimensional coordinate information.

10. The method according to claim 9, wherein determining a color difference value between the image areas to be displayed corresponding to the virtual objects according to the colors of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space comprises:

and determining the color difference value between the image areas to be displayed corresponding to the virtual objects by adopting an Euclidean distance calculation formula according to the color values of the red, green and blue channels of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space.

11. The method of claim 2, further comprising:

if the color of the image area to be displayed corresponding to the first virtual object is the same as the color of the image area to be displayed corresponding to the second virtual object, and the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object is different from the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object;

determining the color of the image area to be displayed according to the first rendering color of each pixel point in the image area to be displayed corresponding to at least one first virtual object with the same initial set color;

and taking the color of the image area to be displayed as the color of the image area to be displayed corresponding to each first virtual object.

12. The method according to claim 11, wherein the adjusting a mapping point of an image area to be displayed corresponding to the first virtual object in a color space comprises:

respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space;

determining the adjustment direction of a mapping point of an image area to be displayed corresponding to the first virtual object in a color space according to the connecting line direction;

and adjusting the mapping points of the image area to be displayed corresponding to the first virtual object in the color space according to the adjustment direction and the direction corresponding to the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object.

13. An apparatus for rendering virtual objects of a game, wherein a graphical user interface is provided through a terminal device, and a plurality of virtual objects are displayed in the graphical user interface, the apparatus comprising: the device comprises an acquisition module, a determination module and a rendering module;

the acquisition module is used for acquiring a plurality of virtual objects to be displayed;

the determining module is used for determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object;

the acquisition module is used for adjusting the initial set color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to the virtual objects to obtain the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, wherein the target virtual object is the virtual object to be displayed which does not meet the condition of color difference, and the first rendering color of the pixel point is obtained based on the initial set color of the pixel point;

and the rendering module is used for determining a second rendering color of the target virtual object according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, and rendering and displaying the target virtual object by using the second rendering color.

14. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the program instructions to perform the steps of the method according to any one of claims 1 to 12 when executed.

15. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 12.

Technical Field

The present application relates to the field of image processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for rendering a virtual object of a game.

Background

Aiming at the popular elimination games at present, most playing methods involve the color differentiation, and different players can correspond to chess pieces with different colors for elimination.

In general, different players have limited ability to distinguish colors, and it is difficult to ensure that players can accurately distinguish different types of game pieces. Under the condition of more roles, the colors of the chessmen are close to each other, and meanwhile, a scene rendering effect and a background effect exist in the game, so that the difficulty of color distinguishing is further increased.

At present, how to adjust the difference degree between different colors to ensure the player to accurately distinguish the colors is a problem to be solved.

Disclosure of Invention

An object of the present application is to provide a method, an apparatus, a device and a storage medium for rendering a virtual object of a game, so as to solve the problem in the prior art that colors of virtual items in a game are difficult to distinguish.

In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:

in a first aspect, an embodiment of the present application provides a method for rendering a virtual object of a game, where a terminal device provides a graphical user interface, and multiple virtual objects are displayed in the graphical user interface, and the method includes:

acquiring a plurality of virtual objects to be displayed;

determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object;

adjusting the initial set color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to the virtual objects to obtain the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, wherein the target virtual object is a virtual object to be displayed which does not meet the condition of color difference, and the first rendering color of each pixel point is obtained based on the initial set color of the pixel point;

and determining a second rendering color of the target virtual object according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, and rendering and displaying the target virtual object by using the second rendering color.

Optionally, the adjusting, according to the color difference value between the to-be-displayed image regions corresponding to the virtual objects, the initially set color of each pixel point in the to-be-displayed image region corresponding to the at least one target virtual object includes:

if the color difference value between an image area to be displayed corresponding to a first virtual object and an image area to be displayed corresponding to at least one second virtual object is smaller than a preset threshold value, determining the first virtual object and the second virtual object as target virtual objects, further adjusting mapping points of the image area to be displayed corresponding to the first virtual object in a color space, and adjusting mapping points of the image area to be displayed corresponding to each second virtual object in the color space, wherein the first virtual object is any one of the virtual objects, and the second virtual object is other virtual objects except the first virtual object;

according to the adjusted mapping points, respectively determining the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object;

and respectively adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object.

Optionally, the adjusting a mapping point of an image area to be displayed corresponding to the first virtual object in a color space includes:

respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space;

determining the adjustment direction of a mapping point of an image area to be displayed corresponding to the first virtual object in a color space according to the connecting line direction;

and adjusting mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space according to the adjustment direction, so that the color difference value between the image areas to be displayed corresponding to the first virtual objects and the image areas to be displayed corresponding to the second virtual objects is greater than or equal to a preset threshold value.

Optionally, the adjusting, according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object, the initial setting color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial setting color of each pixel point in the image area to be displayed corresponding to each second virtual object respectively includes:

determining a new set color of each pixel point in the image area to be displayed corresponding to the first virtual object and a new set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object respectively;

and adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object according to the new set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the new set color of each pixel point in the image area to be displayed corresponding to the second virtual object respectively.

Optionally, the determining, according to the adjusted mapping points, a new color of the image area to be displayed corresponding to the first virtual object and a new color of the image area to be displayed corresponding to each of the second virtual objects respectively includes:

determining the color of the mapping point of the image area to be displayed corresponding to the first virtual object after adjustment in the color space;

taking the color of the mapping point of the image area to be displayed corresponding to the first virtual object after adjustment in the color space as the new color of the image area to be displayed corresponding to the first virtual object;

determining the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after adjustment in the color space;

and respectively taking the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after the mapping points are adjusted in the color space as the new colors of the image areas to be displayed corresponding to the second virtual objects.

Optionally, after the adjusting the mapping point of the image area to be displayed corresponding to the first virtual object in the color space and the adjusting the mapping point of the image area to be displayed corresponding to each of the second virtual objects in the color space, the method further includes:

if the color of the image area to be displayed corresponding to the first virtual object is determined to be the same as the color before the mapping point is adjusted according to the adjusted mapping point, not adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object;

and if the color of the image area to be displayed corresponding to the second virtual object is determined to be the same as the color before the mapping point is adjusted according to the adjusted mapping point, not adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object.

Optionally, the determining, according to the first rendering color of each pixel point in the to-be-displayed image region corresponding to each virtual object, a color difference value between the to-be-displayed image regions corresponding to each virtual object includes:

calculating an average value of first rendering colors of all pixel points in a first image area to be displayed, and taking the average value as the color of the first image area to be displayed, wherein the first image area to be displayed is an image area to be displayed corresponding to any virtual object.

Optionally, the determining, according to the first rendering color of each pixel point in the to-be-displayed image region corresponding to each virtual object, a color difference value between the to-be-displayed image regions corresponding to each virtual object includes:

according to the color of the image area to be displayed corresponding to each virtual object, mapping the image area to be displayed corresponding to each virtual object into a color space respectively, and determining the mapping point of the image area to be displayed corresponding to each virtual object in the color space, wherein the color space is an RGB color space;

and determining a color difference value between the image areas to be displayed corresponding to the virtual objects according to the colors of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space.

Optionally, the mapping, according to the color of the image area to be displayed corresponding to each virtual object, the image area to be displayed corresponding to each virtual object into a color space, and determining a mapping point of the image area to be displayed corresponding to each virtual object in the color space includes:

determining three-dimensional coordinate information of mapping points, mapped to a color space, of the image area to be displayed according to the color of the image area to be displayed corresponding to each virtual object;

and determining the mapping point of the image area to be displayed in the color space according to the three-dimensional coordinate information.

Optionally, the determining, according to the color of the mapping point of the to-be-displayed image area corresponding to each virtual object in the color space, a color difference value between the to-be-displayed image areas corresponding to each virtual object includes:

and determining the color difference value between the image areas to be displayed corresponding to the virtual objects by adopting an Euclidean distance calculation formula according to the color values of the red, green and blue channels of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space.

Optionally, the method further comprises:

if the color of the image area to be displayed corresponding to the first virtual object is the same as the color of the image area to be displayed corresponding to the second virtual object, and the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object is different from the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object;

determining the color of the image area to be displayed according to the first rendering color of each pixel point in the image area to be displayed corresponding to at least one first virtual object with the same initial set color;

and taking the color of the image area to be displayed as the color of the image area to be displayed corresponding to each first virtual object.

Optionally, the adjusting a mapping point of an image area to be displayed corresponding to the first virtual object in a color space includes:

respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space;

determining the adjustment direction of a mapping point of an image area to be displayed corresponding to the first virtual object in a color space according to the connecting line direction;

and adjusting the mapping points of the image area to be displayed corresponding to the first virtual object in the color space according to the adjustment direction and the direction corresponding to the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object.

In a second aspect, an embodiment of the present application further provides a virtual object rendering apparatus for a game, where a terminal device provides a graphical user interface, and a plurality of virtual objects are displayed in the graphical user interface, and the apparatus includes: the device comprises an acquisition module, a determination module and a rendering module;

the acquisition module is used for acquiring a plurality of virtual objects to be displayed;

the determining module is used for determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object;

the acquisition module is used for adjusting the initial set color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to the virtual objects to obtain the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, wherein the target virtual object is the virtual object to be displayed which does not meet the condition of color difference, and the first rendering color of the pixel point is obtained based on the initial set color of the pixel point;

and the rendering module is used for determining a second rendering color of the target virtual object according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, and rendering and displaying the target virtual object by using the second rendering color.

Optionally, the obtaining module is specifically configured to

If the color difference value between an image area to be displayed corresponding to a first virtual object and an image area to be displayed corresponding to at least one second virtual object is smaller than a preset threshold value, determining the first virtual object and the second virtual object as target virtual objects, further adjusting mapping points of the image area to be displayed corresponding to the first virtual object in a color space, and adjusting mapping points of the image area to be displayed corresponding to each second virtual object in the color space, wherein the first virtual object is any one of the virtual objects, and the second virtual object is other virtual objects except the first virtual object;

according to the adjusted mapping points, respectively determining the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object;

and respectively adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object.

Optionally, the obtaining module is specifically configured to

Respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space;

determining the adjustment direction of a mapping point of an image area to be displayed corresponding to the first virtual object in a color space according to the connecting line direction;

and adjusting mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space according to the adjustment direction, so that the color difference value between the image areas to be displayed corresponding to the first virtual objects and the image areas to be displayed corresponding to the second virtual objects is greater than or equal to a preset threshold value.

Optionally, the obtaining module is specifically configured to

Determining a new set color of each pixel point in the image area to be displayed corresponding to the first virtual object and a new set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object respectively;

and adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object according to the new set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the new set color of each pixel point in the image area to be displayed corresponding to the second virtual object respectively.

Optionally, the obtaining module is specifically configured to

Determining the color of the mapping point of the image area to be displayed corresponding to the first virtual object after adjustment in the color space;

taking the color of the mapping point of the image area to be displayed corresponding to the first virtual object after adjustment in the color space as the new color of the image area to be displayed corresponding to the first virtual object;

determining the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after adjustment in the color space;

and respectively taking the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after the mapping points are adjusted in the color space as the new colors of the image areas to be displayed corresponding to the second virtual objects.

Optionally, the apparatus further comprises: an adjustment module;

the adjusting module is configured to, if it is determined that the color of the image area to be displayed corresponding to the first virtual object is the same as the color of the image area to be displayed corresponding to the first virtual object before the adjustment of the mapping point according to the adjusted mapping point, not adjust the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object;

and if the color of the image area to be displayed corresponding to the second virtual object is determined to be the same as the color before the mapping point is adjusted according to the adjusted mapping point, not adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object.

Optionally, the determining means is specifically configured to

Calculating an average value of first rendering colors of all pixel points in a first image area to be displayed, and taking the average value as the color of the first image area to be displayed, wherein the first image area to be displayed is an image area to be displayed corresponding to any virtual object.

Optionally, the determining means is specifically configured to

According to the color of the image area to be displayed corresponding to each virtual object, mapping the image area to be displayed corresponding to each virtual object into a color space respectively, and determining the mapping point of the image area to be displayed corresponding to each virtual object in the color space, wherein the color space is an RGB color space;

and determining a color difference value between the image areas to be displayed corresponding to the virtual objects according to the colors of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space.

Optionally, the determining means is specifically configured to

Determining three-dimensional coordinate information of mapping points, mapped to a color space, of the image area to be displayed according to the color of the image area to be displayed corresponding to each virtual object;

and determining the mapping point of the image area to be displayed in the color space according to the three-dimensional coordinate information.

Optionally, the determining means is specifically configured to

And determining the color difference value between the image areas to be displayed corresponding to the virtual objects by adopting an Euclidean distance calculation formula according to the color values of the red, green and blue channels of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space.

Optionally, the determining module is further used for

If the color of the image area to be displayed corresponding to the first virtual object is the same as the color of the image area to be displayed corresponding to the second virtual object, and the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object is different from the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object;

determining the color of the image area to be displayed according to the first rendering color of each pixel point in the image area to be displayed corresponding to at least one first virtual object with the same initial set color;

and taking the color of the image area to be displayed as the color of the image area to be displayed corresponding to each first virtual object.

Optionally, the obtaining module is further configured to

Respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space;

determining the adjustment direction of a mapping point of an image area to be displayed corresponding to the first virtual object in a color space according to the connecting line direction;

and adjusting the mapping points of the image area to be displayed corresponding to the first virtual object in the color space according to the adjustment direction and the direction corresponding to the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object.

In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is operated, the processor executing the machine-readable instructions to perform the steps of the method as provided in the first aspect when executed.

In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps of the method as provided in the first aspect.

The beneficial effect of this application is:

the application provides a virtual object rendering method, a virtual object rendering device, equipment and a storage medium for a game, wherein the method comprises the following steps: acquiring a plurality of virtual objects to be displayed; determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object; adjusting the initial set color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to the virtual objects to obtain the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object; and determining a second rendering color of the target virtual object according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, and rendering and displaying the target virtual object by using the second rendering color. In the method, based on the color of the image area to be displayed corresponding to each virtual object, the color difference value between the image areas to be displayed corresponding to each virtual object can be determined, and when the color difference value does not meet the color difference condition, the set color of each pixel point in the image area to be displayed corresponding to each virtual object is adjusted to adjust the first rendering color of each pixel point in the image area to be displayed corresponding to each virtual object, so that the virtual object is generated based on the adjusted second rendering color rendering, the dynamic adjustment of the rendering color of the virtual object can be realized, the color difference between each virtual object is effectively increased, the color resolution of a game player to the virtual object is clearer, and the game experience of the player is improved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.

Fig. 1 is a first flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure;

FIG. 2 is a schematic diagram of a graphical user interface provided by an embodiment of the present application;

fig. 3 is a second flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure;

fig. 4 is a third flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure;

FIG. 5 is a schematic diagram of a mapping point in a color space according to an embodiment of the present application;

fig. 6 is a fourth flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure;

fig. 7 is a fifth flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure;

fig. 8 is a sixth schematic flowchart of a virtual object rendering method of a game according to an embodiment of the present application;

fig. 9 is a seventh flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure;

fig. 10 is an eighth flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present application;

fig. 11 is a ninth flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present application;

FIG. 12 is a schematic diagram of a virtual object rendering apparatus for a game according to an embodiment of the present disclosure;

fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

Detailed Description

In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.

In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.

It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.

Fig. 1 is a first flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure; FIG. 2 is a schematic diagram of a graphical user interface provided by an embodiment of the present application; when the terminal device is the terminal device, the terminal device may locally execute the following method, determine the second rendering color of the target virtual object, and render and display the plurality of virtual objects on the terminal device according to the second rendering color. And when the server is used, the method can be executed on the server, and a second rendering color of the target virtual object is determined and sent to the terminal equipment, so that the terminal equipment renders and displays the plurality of virtual objects according to the second rendering color. As shown in fig. 1, the method may include:

s101, acquiring a plurality of virtual objects to be displayed.

The plurality of virtual objects to be displayed may be virtual objects to be displayed in a set game screen in the game development process. Obtaining relevant information of a plurality of virtual objects to be displayed, for example: rendering colors of virtual objects to be displayed, and the like.

S102, determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object.

It should be noted that the method of the present application may be applied to an elimination-type game, where virtual objects with different colors may represent objects to be eliminated by different players, when there are more game players, virtual objects with more colors may be presented in the graphical user interface, and since the number of colors in the color space is limited and many colors are similar, it may be difficult for a game player to distinguish the virtual objects with different colors, which may cause erroneous elimination, affect game experience, and the like.

The virtual object in this embodiment may be a game piece, and the game player wins the win by eliminating the game piece with the color corresponding to the game player. Optionally, a plurality of virtual objects may be displayed on the graphical user interface of the terminal device, and the plurality of virtual objects may present different colors, where the presented colors are colors in which the full art effect and the post-processing effect are superimposed. As shown in fig. 2, it is assumed in fig. 2(a) that 9 virtual objects are displayed on the graphical user interface, which are respectively presented as red, green, blue, and gray. Different virtual objects correspondingly occupy one area of the graphical user interface, and optionally, the image area to be displayed corresponding to each virtual object may be defined to obtain the division result shown in fig. 2(b), and the virtual objects of the same color may be represented by the same image area to be displayed number, for example: the number of the image area to be displayed corresponding to the green virtual object is indicated as area 1. It should be noted that, since the virtual objects in this embodiment are represented by rectangles, after the image areas to be displayed corresponding to the virtual objects are divided, the boundaries of the image areas to be displayed corresponding to the virtual objects overlap with the boundaries of the virtual objects themselves, that is, the shapes of the virtual objects themselves overlap with the shapes of the image areas to be displayed corresponding to the virtual objects, so that the shapes of the image areas to be displayed are not displayed in the drawings.

Optionally, the color of the image area to be displayed corresponding to each virtual object may be determined based on a first rendering color of each pixel point included in the image area to be displayed corresponding to each virtual object, where the first rendering color of each pixel point is also a color actually presented in the graphical user interface finally. The color here can refer to the color value of red, green and blue channels of the pixel. The color of the image area to be displayed corresponding to each virtual object can be represented by the average color of the first rendering color of each pixel point in the area. As shown in fig. 2(c), the colors of the image areas to be displayed corresponding to the virtual objects with the same color are theoretically the same, and are represented by the same color identifier, for example: the colors of the image areas to be displayed corresponding to the green virtual objects are all color 1.

In some embodiments, based on the color of the to-be-displayed image region corresponding to each virtual object, color difference values between the to-be-displayed image regions corresponding to any two virtual objects may be respectively calculated two by two, where the color difference values of the to-be-displayed image regions may be represented by the spatial distance between the colors of the to-be-displayed image regions corresponding to any two virtual objects. It is worth noting that the larger the spatial distance, the larger the color difference value.

S103, adjusting the initial set color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to the virtual objects to obtain the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, wherein the target virtual object is the virtual object to be displayed which does not meet the color difference condition, and the first rendering color of the pixel point is obtained based on the initial set color of the pixel point.

In some embodiments, according to the obtained color difference value between the to-be-displayed image areas corresponding to the virtual objects, the color of at least one target virtual object whose color difference value does not satisfy the color difference condition may be adjusted, and optionally, the adjustment of the color of the target virtual object is also the adjustment of the color of each pixel point in the to-be-displayed image area corresponding to the target virtual object. Optionally, a preset threshold is set for the color difference, and if the color difference value between the to-be-displayed image areas corresponding to the virtual objects is smaller than the preset threshold, the virtual object is determined as a target virtual object that does not satisfy the color difference condition. The preset threshold value can be obtained through intelligent analysis according to the sensory experience data of the color of the user through an artificial intelligence technology.

Alternatively, each virtual object corresponds to a set color before being rendered, and the rendered color of the virtual object may be calculated based on the set color through a series of functions f, including but not limited to superposition, color filtering, addition with other colors, multiplication, light and shadow calculation, and superposed on the 2D or 3D material in the image area to be displayed corresponding to the virtual object, which may be understood as { rendering color } ═ f (set color). The rendering color or the setting color may refer to a first rendering color of each pixel point in the image region to be displayed corresponding to the virtual object or a setting color of each pixel point, that is, the color of the virtual object is formed by the colors of the pixel points constituting the virtual object.

In this embodiment, when the color difference value does not satisfy the color difference condition, the initial setting color of each pixel point in the to-be-displayed image region corresponding to the target virtual object may be adjusted to obtain the target setting color.

S104, according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, determining a second rendering color of the target virtual object, and rendering and displaying the target virtual object by using the second rendering color.

Optionally, based on the target set color of each pixel point in the to-be-displayed image region corresponding to the target virtual object, an inverse function may be obtained based on the rendering color and the set color relational expression, and a second rendering color of the target virtual object is calculated, that is, the second rendering color of each pixel point in the to-be-displayed image region corresponding to the target virtual object is determined, so that the target virtual object may be obtained by rendering using the second rendering color and the rendering function and displayed in the graphical user interface, and thus the rendering color of the target virtual object is adjusted, so that the color presented by the target virtual object may be greatly different from the colors presented by other virtual objects, and the color difference between the virtual objects is increased.

It should be noted that the second rendering color and the "first" and "second" in the above-mentioned first rendering color do not have any practical meaning, and are only used for distinguishing the rendering colors of different virtual objects.

To sum up, the method for rendering a virtual object of a game provided by this embodiment includes: acquiring a plurality of virtual objects to be displayed; determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object; adjusting the initial set color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to the virtual objects to obtain the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object; and determining a second rendering color of the target virtual object according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, and rendering and displaying the target virtual object by using the second rendering color. In the method, based on the color of the image area to be displayed corresponding to each virtual object, the color difference value between the image areas to be displayed corresponding to each virtual object can be determined, and when the color difference value does not meet the color difference condition, the set color of each pixel point in the image area to be displayed corresponding to each virtual object is adjusted to adjust the first rendering color of each pixel point in the image area to be displayed corresponding to each virtual object, so that the virtual object is generated based on the adjusted second rendering color rendering, the dynamic adjustment of the rendering color of the virtual object can be realized, the color difference between each virtual object is effectively increased, the color resolution of a game player to the virtual object is clearer, and the game experience of the player is improved.

Fig. 3 is a second flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure; optionally, in step S103, adjusting the initial setting color of each pixel point in the image area to be displayed corresponding to the at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to each virtual object, which may include:

s301, if the color difference value between the image area to be displayed corresponding to the first virtual object and the image area to be displayed corresponding to the at least one second virtual object is smaller than a preset threshold value, determining the first virtual object and the second virtual object as target virtual objects, further adjusting the mapping points of the image area to be displayed corresponding to the first virtual object in the color space, and adjusting the mapping points of the image area to be displayed corresponding to each second virtual object in the color space, wherein the first virtual object is any one of the virtual objects, and the second virtual object is other virtual objects except the first virtual object.

In an implementation manner, whether the color difference value between the to-be-displayed image region corresponding to the first virtual object and the to-be-displayed image region corresponding to the at least one second virtual object is smaller than a preset threshold may be calculated, where the first virtual object is any one of the plurality of virtual objects, and the second virtual object is another virtual object except the first virtual object. That is, for any one virtual object, the color difference values between the image area to be displayed corresponding to the virtual object and the image areas to be displayed corresponding to all other virtual objects are calculated respectively.

Optionally, if the color difference value is smaller than the preset threshold, the mapping point of the to-be-displayed image area corresponding to the first virtual object in the color space may be adjusted, and the mapping point of the to-be-displayed image area corresponding to each second virtual object in the color space may be adjusted at the same time. Assuming that the first virtual object is a virtual object 1, at least one virtual object is a virtual object 2, a virtual object 3 and a virtual object 4, assuming that a color difference value between an image area to be displayed corresponding to the virtual object 1 and an image area to be displayed corresponding to the virtual object 2 is less than a preset threshold value, a color difference value between the image area to be displayed corresponding to the virtual object 1 and the image area to be displayed corresponding to the virtual object 3 is greater than or equal to the preset threshold value, and a color difference value between the image area to be displayed corresponding to the virtual object 1 and the image area to be displayed corresponding to the virtual object 4 is less than the preset threshold value, the mapping point of the image area to be displayed corresponding to the virtual object 1 in the color space, the mapping point of the image area to be displayed corresponding to the virtual object 2 in the color space, and the mapping point of the image area to be displayed corresponding to the virtual object 4 in the color space can be adjusted respectively. Since the color difference value between the virtual object 1 and the virtual object 3 satisfies the color difference condition, there is no need to adjust the mapping point of the image area to be displayed corresponding to the virtual object 3 in the color space.

And S302, respectively determining the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object according to the adjusted mapping points.

Alternatively, based on each adjusted mapping point, the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object may be reversely derived. The color of the image area to be displayed corresponding to the virtual object and the mapping point of the image area to be displayed corresponding to the virtual object in the color space have a certain mapping relationship, and the mapping point of the image area to be displayed corresponding to the virtual object in the color space can be determined positively according to the color of the image area to be displayed corresponding to the virtual object. Similarly, the color of the image area to be displayed corresponding to the virtual object can be deduced reversely according to the mapping point of the image area to be displayed corresponding to the virtual object in the color space.

The mapping points are adjusted, so that the color of the image area to be displayed corresponding to the virtual object is changed, and the new color of the image area to be displayed is obtained.

And S303, respectively adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object.

Optionally, because the color of the to-be-displayed image area corresponding to the virtual object is calculated according to the first rendered color of each pixel point in the to-be-displayed image area corresponding to the virtual object, and the first rendered color of each pixel point in the to-be-displayed image area corresponding to the virtual object is calculated according to the initial set color of each pixel point in the to-be-displayed image area corresponding to the virtual object, that is, a certain mapping relationship exists between the color of the to-be-displayed image area corresponding to the virtual object, the first rendered color of each pixel point in the to-be-displayed image area corresponding to the virtual object, and the initial set color of each pixel point in the to-be-displayed image area corresponding to the virtual object, based on the relationship, the new color of the to-be-displayed image area corresponding to the first virtual object can be adopted to adjust the initial set color of each pixel point in the to-be-displayed image area corresponding to the first virtual object, and adjusting the initial set color of each pixel point in the image area to be displayed corresponding to each second virtual object by adopting the new color of the image area to be displayed corresponding to each second virtual object.

Fig. 4 is a third flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure; fig. 5 is a schematic diagram of a mapping point in a color space according to an embodiment of the present disclosure. Optionally, in step S301, adjusting a mapping point of an image area to be displayed corresponding to the first virtual object in the color space may include:

s401, respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space.

As will be understood from fig. 5, it is assumed that the mapping point of the image region to be displayed corresponding to the first virtual object in the color space is P1, and the mapping points of the image regions to be displayed corresponding to the second virtual objects in the color space are P2, P3, and P4, respectively. Assuming that the color difference values between the image area to be displayed corresponding to the first virtual object and the image area to be displayed corresponding to each second virtual object are all smaller than the preset threshold, that is, the color difference values between P1-P2, P1-P3, and P1-P4 are all smaller than the preset threshold, the connection lines can be respectively made along P2-P1, P3-P1, and P4-P1, and it is determined that the connection line direction from P2 to P1 is direction 1, the connection line direction from P3 to P1 is direction 2, and the connection line direction from P4 to P1 is direction 3.

S402, according to the connecting line direction, determining the adjustment direction of the mapping point of the image area to be displayed corresponding to the first virtual object in the color space.

Alternatively, based on direction 1, direction 2, and direction 3, the direction of the resultant force between direction 1 and direction 2 and direction 3 may be determined, where the determination may be made using a formula in physics that calculates the direction of the resultant force. The resultant direction is assumed to be the direction 4, that is, the adjustment direction of the mapping point of the image area to be displayed corresponding to the first virtual object in the color space is assumed to be the direction 4.

And S403, according to the adjustment direction, adjusting the mapping point of the image area to be displayed corresponding to the first virtual object in the color space, so that the color difference value between the image area to be displayed corresponding to the first virtual object and the image area to be displayed corresponding to each second virtual object is greater than or equal to a preset threshold value.

Alternatively, for the first virtual object, the mapping point P1 of the image area to be displayed corresponding to the first virtual object in the color space may be adjusted along the above determined adjustment direction 4.

It should be noted that the first virtual object may be any one of the virtual objects, and then, corresponding to fig. 5, when the mapping point of the image area to be displayed corresponding to the first virtual object in the color space is P1, the mapping points of the image area to be displayed corresponding to each second virtual object in the color space are respectively P2, P3 and P4, and when the mapping point of the image area to be displayed corresponding to the first virtual object in the color space is P2, the mapping points of the image area to be displayed corresponding to each second virtual object in the color space are respectively P1, P3 and P4, therefore, based on the determination manner of the adjustment direction of the mapping point of the image area to be displayed corresponding to the first virtual object in the color space, the adjustment directions of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space can be respectively determined.

In an implementation manner, based on the adjustment directions of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space, the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space may be moved according to the respective adjustment directions, and when the color difference value between the image areas to be displayed corresponding to the virtual objects is greater than or equal to the preset threshold, the adjustment is stopped, and the adjusted mapping points of the virtual objects are obtained respectively.

Fig. 6 is a fourth flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure; optionally, in step S303, adjusting, according to the new color of the to-be-displayed image region corresponding to the first virtual object and the new color of the to-be-displayed image region corresponding to each second virtual object, the initial setting color of each pixel point in the to-be-displayed image region corresponding to the first virtual object and the initial setting color of each pixel point in the to-be-displayed image region corresponding to each second virtual object respectively, may include:

s601, determining new set colors of all pixel points in the image area to be displayed corresponding to the first virtual object and new set colors of all pixel points in the image area to be displayed corresponding to the second virtual object according to the new colors of the image area to be displayed corresponding to the first virtual object and the new colors of the image area to be displayed corresponding to the second virtual object respectively.

As mentioned in the foregoing embodiment, a certain mapping relationship exists between the color of the image area to be displayed corresponding to the virtual object, the first rendering color of each pixel point in the image area to be displayed corresponding to the virtual object, and the initial setting color of each pixel point in the image area to be displayed corresponding to the virtual object, based on the new color of the image area to be displayed corresponding to the first virtual object, the new rendering color of each pixel point in the image area to be displayed corresponding to the first virtual object may be calculated first, and based on the new rendering color of each pixel point in the image area to be displayed corresponding to the first virtual object, the new setting color of each pixel point in the image area to be displayed corresponding to the first virtual object may be calculated by using a functional relationship between the rendering colors and the setting colors.

S602, respectively adjusting the initial set color of each pixel point in the to-be-displayed image region corresponding to the first virtual object and the initial set color of each pixel point in the to-be-displayed image region corresponding to the second virtual object according to the new set color of each pixel point in the to-be-displayed image region corresponding to the first virtual object and the new set color of each pixel point in the to-be-displayed image region corresponding to the second virtual object.

Optionally, the initial setting color of each pixel point in the to-be-displayed image region corresponding to the first virtual object may be changed to the calculated new setting color of each pixel point in the to-be-displayed image region corresponding to the first virtual object, so that based on the new setting color of each pixel point in the to-be-displayed image region corresponding to the first virtual object, a new dyeing color of each pixel point in the to-be-displayed image region corresponding to the first virtual object may be calculated, and the new rendering color may be used to render the new first virtual object, thereby adjusting the rendering color of the first virtual object, which is presented in the screen, and increasing the color difference between the first virtual object and other virtual objects.

Similarly, the same processing method as described above may be adopted to adjust the initial setting color of each pixel point in the to-be-displayed image region corresponding to each second virtual object, and details are not repeated here.

Fig. 7 is a fifth flowchart illustrating a method for rendering a game virtual object according to an embodiment of the present application; optionally, in step S302, determining a new color of the image area to be displayed corresponding to the first virtual object and a new color of the image area to be displayed corresponding to each second virtual object according to the adjusted mapping points, respectively, may include:

s701, determining the colors of the mapping points of the image area to be displayed corresponding to the first virtual object after adjustment in the color space.

The color space in this embodiment refers to an RGB color space, and the color of each point in the space refers to a color value of three channels, red, green, and blue, of the point, and based on the mapping point of the to-be-displayed image area corresponding to the first virtual object after adjustment in the color space, the color of the mapping point of the to-be-displayed image area corresponding to the first virtual object after adjustment in the color space can be obtained.

S702, taking the color of the mapping point of the image area to be displayed corresponding to the first virtual object after the adjustment in the color space as the new color of the image area to be displayed corresponding to the first virtual object.

Optionally, the color of the mapping point of the image area to be displayed corresponding to the determined first virtual object after being adjusted in the color space may be used as a new color of the image area to be displayed corresponding to the first virtual object.

And S703, determining the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after the adjustment in the color space.

And S704, taking the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after the mapping points are adjusted in the color space as the new colors of the image areas to be displayed corresponding to the second virtual objects.

Similarly, for each second virtual object, the new color of the image area to be displayed corresponding to each second virtual object is determined by the same method as described above.

Optionally, in step S301, after adjusting the mapping point of the to-be-displayed image area corresponding to the first virtual object in the color space and adjusting the mapping point of the to-be-displayed image area corresponding to each second virtual object in the color space, the method of the present application may further include:

and if the color of the image area to be displayed corresponding to the first virtual object is determined to be the same as the color before the mapping point is adjusted according to the adjusted mapping point, not adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object.

And if the color of the image area to be displayed corresponding to the second virtual object is determined to be the same as the color before the mapping point is adjusted according to the adjusted mapping point, not adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object.

It should be noted that, in some cases, after the mapping point of the to-be-displayed image region corresponding to the first virtual object in the color space is adjusted, it is determined that the color of the to-be-displayed image region corresponding to the first virtual object calculated according to the adjusted mapping point is the same as the color before the mapping point is not adjusted, that is, the color of the to-be-displayed image region corresponding to the first virtual object calculated according to the adjusted mapping point is the same as the initial color of the to-be-displayed image region corresponding to the first virtual object, then the rendering color of each pixel point in the to-be-displayed image region corresponding to the first virtual object is kept unchanged, that is, the initial set color of each pixel point in the to-be-displayed image region corresponding to the first virtual object is not adjusted. Similarly, each second virtual object is not adjusted if the above condition is satisfied.

Optionally, in step S102, determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object may include: and calculating the average value of the first rendering colors of all the pixel points in the first image area to be displayed, and taking the average value as the color of the first image area to be displayed, wherein the first image area to be displayed is the image area to be displayed corresponding to any virtual object.

In an implementation manner, the calculation of the color of the image area to be displayed corresponding to any virtual object may be to calculate an average value of first rendering colors of each pixel point in the image area to be displayed, and use the average value as the color of the image area to be displayed. Assuming that the image area to be displayed includes pixel point 1, pixel point 2, pixel point 3, pixel point 4, the first rendering color of pixel point 1 is (R:10, G:20, B:30), the first rendering color of pixel point 2 is (R:15, G:18, B:40), the first rendering color of pixel point 3 is (R:30, G:40, B:50), and the first rendering color of pixel point 4 is (R:25, G:55, B:60), the color of the image area to be displayed may be calculated as follows: r ═ 10+15+30+ 25)/4, G ═ 20+18+40+55)/4, and B ═ 30+40+50+ 60)/4.

Fig. 8 is a sixth schematic flowchart of a virtual object rendering method of a game according to an embodiment of the present application; optionally, in step S102, determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object may include:

s801, according to the color of the image area to be displayed corresponding to each virtual object, mapping the image area to be displayed corresponding to each virtual object into a color space respectively, and determining the mapping point of the image area to be displayed corresponding to each virtual object in the color space.

Wherein, the color space is an RGB color space. Optionally, the image area to be displayed corresponding to the virtual object may be mapped into the color space based on the color of the image area to be displayed corresponding to the virtual object, so as to determine a mapping point of the image area to be displayed corresponding to the virtual object in the color space, so as to calculate a color difference value between the image areas to be displayed corresponding to each virtual object through the mapping point.

S802, according to the colors of mapping points of the image areas to be displayed corresponding to the virtual objects in the color space, determining the color difference value between the image areas to be displayed corresponding to the virtual objects.

Alternatively, the spatial distance between the virtual objects may be calculated by the colors of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space, so that the spatial distance between the virtual objects is used as the color difference value between the image areas to be displayed corresponding to the virtual objects.

Fig. 9 is a seventh flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present disclosure; optionally, in step S801, mapping the image area to be displayed corresponding to each virtual object into a color space according to the color of the image area to be displayed corresponding to each virtual object, and determining a mapping point of the image area to be displayed corresponding to each virtual object in the color space may include:

s901, determining three-dimensional coordinate information of mapping points of the image area to be displayed, which is mapped to the color space, according to the color of the image area to be displayed corresponding to each virtual object.

Optionally, since the color of the to-be-displayed image region corresponding to the virtual object is an RGB value, the to-be-displayed image region corresponds to a specific point in a three-dimensional color space, that is, the three-dimensional coordinate information of the point in the color space can be determined according to the color of the to-be-displayed image region corresponding to the virtual object.

And S902, determining a mapping point of the image area to be displayed in the color space according to the three-dimensional coordinate information.

Based on the determined three-dimensional coordinate information, the location of a particular mapping point may then be determined, thereby determining the mapping point of the image area to be displayed in the color space.

Optionally, in step S802, determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the colors of the mapping points of the to-be-displayed image areas corresponding to the virtual objects in the color space, may include: and determining the color difference value between the image areas to be displayed corresponding to the virtual objects by adopting an Euclidean distance calculation formula according to the color values of red, green and blue channels of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space.

In an implementation manner, the simplest euclidean distance calculation formula can be used to calculate the color difference value between the image areas to be displayed corresponding to the virtual objects. Assuming that the color value of the red, green and blue channels of the mapping point of the image region to be displayed corresponding to the first virtual object in the color space is (R1, G1, B1), and the color value of the red, green and blue channels of the mapping point of the image region to be displayed corresponding to the second virtual object in the color space is (R2, G2, B2), the color difference value between the image region to be displayed corresponding to the first virtual object and the image region to be displayed corresponding to the second virtual object can be calculated as follows:

of course, in practical applications, the calculation formula used includes but is not limited to the euclidean distance calculation formula, and other color difference value calculation methods may also be adopted, which is not limited in this application.

Fig. 10 is an eighth flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present application; optionally, the method of the present application may further include:

s1001, if the color of the image area to be displayed corresponding to the first virtual object is the same as the color of the image area to be displayed corresponding to the second virtual object, and the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object is different from the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object.

In some cases, for the virtual objects with different initial setting colors, that is, the first virtual object and the second virtual object with different rendering colors originally intended to be presented on the screen, because the processing manners of light and shadow or material of different areas of the whole screen are different during rendering, there may be a case where the rendering colors for rendering the first virtual object and the second virtual object presented on the screen are the same, so that the color of the image area to be displayed corresponding to the first virtual object is also the same as the color of the image area to be displayed corresponding to the second virtual object, and thus, the mapping point of the image area to be displayed corresponding to the first virtual object in the color space overlaps with the mapping point of the image area to be displayed corresponding to the second virtual object in the color space, thereby avoiding the calculation of the color difference value between the image area to be displayed corresponding to the first virtual object and the image area to be displayed corresponding to the first virtual object, therefore, the colors of the image areas to be displayed corresponding to the virtual objects can be calculated in the following manner when it is determined that the color of the image area to be displayed corresponding to the first virtual object is the same as the color of the image area to be displayed corresponding to the second virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object is different from the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object based on the occurrence of the situation.

And S1002, determining the color of the image area to be displayed according to the rendering color of each pixel point in the image area to be displayed corresponding to at least one first virtual object with the same initial set color.

Alternatively, the color of the image area to be displayed may be calculated by taking the image areas to be displayed corresponding to all virtual objects with the same initial setting color as a whole, for example: the number of the virtual objects with the initial setting colors being green is three, and the virtual objects correspond to three image areas to be displayed respectively, so that the average value of the rendering colors of all pixel points in the three image areas to be displayed can be calculated, and the color of the image area to be displayed can be obtained.

And S1003, taking the color of the image area to be displayed as the color of the image area to be displayed corresponding to each first virtual object.

Optionally, the colors of the image area to be displayed obtained by the above calculation may be used as the colors of the image area to be displayed corresponding to all the green virtual objects. The calculation of the color of the image area to be displayed of the virtual object with other colors is similar to that of the image area to be displayed of the virtual object with other colors, and is not repeated.

Fig. 11 is a ninth flowchart illustrating a virtual object rendering method of a game according to an embodiment of the present application; optionally, in step S301, adjusting a mapping point of an image area to be displayed corresponding to the first virtual object in the color space may include:

s1101, respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space.

Alternatively, based on the step S1001, since the calculation of the color of the image area to be displayed corresponding to the virtual object is updated, the adjustment of the mapping point in the color space of the image area to be displayed corresponding to the virtual object is also updated accordingly.

And S1102, determining the adjustment direction of the mapping point of the image area to be displayed corresponding to the first virtual object in the color space according to the connecting line direction.

And S1103, adjusting the mapping points of the image area to be displayed corresponding to the first virtual object in the color space according to the adjustment direction and the direction corresponding to the initial setting color of each pixel point in the image area to be displayed corresponding to the first virtual object.

Optionally, the implementation of this embodiment is different from the implementation of steps S401 to S403 only in that, on the basis of determining the direction 1, the direction 2, and the direction 3, the direction corresponding to the initial setting color of each pixel point in the image area to be displayed corresponding to the first virtual object is further added to the calculation, that is, the direction 1, the direction 2, and the direction 3 and the direction corresponding to the initial setting color of each pixel point in the image area to be displayed corresponding to the first virtual object are subjected to resultant force direction calculation to comprehensively determine the adjustment direction. Wherein, weight can be added to the direction corresponding to the initial setting color, and the weight can support flexible control adjustment.

In summary, the method for rendering a virtual object of a game provided in this embodiment includes: acquiring a plurality of virtual objects to be displayed; determining a color difference value between the to-be-displayed image areas corresponding to the virtual objects according to the first rendering color of each pixel point in the to-be-displayed image area corresponding to each virtual object; adjusting the initial set color of each pixel point in the image area to be displayed corresponding to at least one target virtual object according to the color difference value between the image areas to be displayed corresponding to the virtual objects to obtain the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object; and determining a second rendering color of the target virtual object according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, and rendering and displaying the target virtual object by using the second rendering color. In the method, based on the color of the image area to be displayed corresponding to each virtual object, the color difference value between the image areas to be displayed corresponding to each virtual object can be determined, and when the color difference value does not meet the color difference condition, the set color of each pixel point in the image area to be displayed corresponding to each virtual object is adjusted to adjust the first rendering color of each pixel point in the image area to be displayed corresponding to each virtual object, so that the virtual object is generated based on the adjusted second rendering color rendering, the dynamic adjustment of the rendering color of the virtual object can be realized, the color difference between each virtual object is effectively increased, the color resolution of a game player to the virtual object is clearer, and the game experience of the player is improved.

Specific implementation processes and technical effects of apparatuses, devices, storage media and the like for executing the virtual object rendering method of the game provided by the present application are described below, and are not described in detail below.

Fig. 12 is a schematic diagram of a virtual object rendering apparatus of a game according to an embodiment of the present application, where functions implemented by the virtual object rendering apparatus of the game correspond to steps executed by the foregoing method. The apparatus may be understood as the terminal device or the server or the processor of the server, and may also be understood as a component which is independent of the server or the processor and implements the functions of the present application under the control of the server, as shown in the figure, the apparatus may include: an acquisition module 120, a determination module 121, and a rendering module 122;

an obtaining module 120, configured to obtain a plurality of virtual objects to be displayed;

a determining module 121, configured to determine, according to a first rendering color of each pixel point in the to-be-displayed image region corresponding to each virtual object, a color difference value between the to-be-displayed image regions corresponding to each virtual object;

the obtaining module 120 is configured to adjust an initial setting color of each pixel point in the to-be-displayed image region corresponding to at least one target virtual object according to a color difference value between the to-be-displayed image regions corresponding to the virtual objects, to obtain a target setting color of each pixel point in the to-be-displayed image region corresponding to the target virtual object, where the target virtual object is a to-be-displayed virtual object that does not satisfy a color difference condition, and a first rendering color of the pixel point is obtained based on the initial setting color of the pixel point;

the rendering module 122 is configured to determine a second rendering color of the target virtual object according to the target set color of each pixel point in the image area to be displayed corresponding to the target virtual object, and render and display the target virtual object using the second rendering color.

Optionally, the obtaining module 120 is specifically configured for

If the color difference value between the image area to be displayed corresponding to the first virtual object and the image area to be displayed corresponding to at least one second virtual object is smaller than a preset threshold value, determining the first virtual object and the second virtual object as target virtual objects, further adjusting mapping points of the image area to be displayed corresponding to the first virtual object in a color space, and adjusting mapping points of the image area to be displayed corresponding to each second virtual object in the color space, wherein the first virtual object is any one of the virtual objects, and the second virtual objects are other virtual objects except the first virtual object;

respectively determining the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object according to the adjusted mapping points;

and respectively adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object.

Optionally, the obtaining module 120 is specifically configured for

Respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space;

determining the adjustment direction of the mapping point of the image area to be displayed corresponding to the first virtual object in the color space according to the connection direction;

and adjusting the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space according to the adjustment direction, so that the color difference value between the image areas to be displayed corresponding to the first virtual objects and the image areas to be displayed corresponding to the second virtual objects is greater than or equal to a preset threshold value.

Optionally, the obtaining module 120 is specifically configured for

Determining a new set color of each pixel point in the image area to be displayed corresponding to the first virtual object and a new set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new color of the image area to be displayed corresponding to the first virtual object and the new color of the image area to be displayed corresponding to each second virtual object;

and adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the initial set color of each pixel point in the image area to be displayed corresponding to each second virtual object according to the new set color of each pixel point in the image area to be displayed corresponding to the first virtual object and the new set color of each pixel point in the image area to be displayed corresponding to each second virtual object respectively.

Optionally, the obtaining module 120 is specifically configured for

Determining the color of the mapping point of the image area to be displayed corresponding to the first virtual object after adjustment in the color space;

taking the color of the mapping point of the image area to be displayed corresponding to the first virtual object after the adjustment in the color space as the new color of the image area to be displayed corresponding to the first virtual object;

determining the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after adjustment in the color space;

and respectively taking the colors of the mapping points of the image areas to be displayed corresponding to the second virtual objects after the mapping points are adjusted in the color space as the new colors of the image areas to be displayed corresponding to the second virtual objects.

Optionally, the apparatus further comprises: an adjustment module;

the adjusting module is used for not adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object if the color of the image area to be displayed corresponding to the first virtual object is determined to be the same as the color of the image area before the mapping point is adjusted according to the adjusted mapping point;

and if the color of the image area to be displayed corresponding to the second virtual object is determined to be the same as the color before the mapping point is adjusted according to the adjusted mapping point, not adjusting the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object.

Optionally, the determining module 121 is specifically configured to

And calculating the average value of the first rendering colors of all the pixel points in the first image area to be displayed, and taking the average value as the color of the first image area to be displayed, wherein the first image area to be displayed is the image area to be displayed corresponding to any virtual object.

Optionally, the determining module 121 is specifically configured to

Mapping the image areas to be displayed corresponding to the virtual objects into color spaces respectively according to the colors of the image areas to be displayed corresponding to the virtual objects, and determining the mapping points of the image areas to be displayed corresponding to the virtual objects in the color spaces, wherein the color spaces are RGB color spaces;

and determining a color difference value between the image areas to be displayed corresponding to the virtual objects according to the colors of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space.

Optionally, the determining module 121 is specifically configured to

Determining three-dimensional coordinate information of mapping points of the image area to be displayed, which is mapped to a color space, according to the color of the image area to be displayed corresponding to each virtual object;

and determining the mapping point of the image area to be displayed in the color space according to the three-dimensional coordinate information.

Optionally, the determining module 121 is specifically configured to

And determining the color difference value between the image areas to be displayed corresponding to the virtual objects by adopting an Euclidean distance calculation formula according to the color values of red, green and blue channels of the mapping points of the image areas to be displayed corresponding to the virtual objects in the color space.

Optionally, the determining module 121 is further configured to

If the color of the image area to be displayed corresponding to the first virtual object is the same as the color of the image area to be displayed corresponding to the second virtual object, and the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object is different from the initial set color of each pixel point in the image area to be displayed corresponding to the second virtual object;

determining the color of the image area to be displayed according to the rendering color of each pixel point in the image area to be displayed corresponding to at least one first virtual object with the same initial set color;

and taking the color of the image area to be displayed as the color of the image area to be displayed corresponding to each first virtual object.

Optionally, the obtaining module 120 is further used for

Respectively determining the connection direction of the mapping points of the image areas to be displayed corresponding to the second virtual objects in the color space pointing to the mapping points of the image areas to be displayed corresponding to the first virtual objects in the color space;

determining the adjustment direction of the mapping point of the image area to be displayed corresponding to the first virtual object in the color space according to the connection direction;

and adjusting the mapping points of the image area to be displayed corresponding to the first virtual object in the color space according to the adjustment direction and the direction corresponding to the initial set color of each pixel point in the image area to be displayed corresponding to the first virtual object.

The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.

These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

The modules may be connected or in communication with each other via a wired or wireless connection. The wired connection may include a metal cable, an optical cable, a hybrid cable, etc., or any combination thereof. The wireless connection may comprise a connection over a LAN, WAN, bluetooth, ZigBee, NFC, or the like, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application.

It should be noted that the above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, the modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).

Fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device may be a computing device with a data processing function.

The apparatus comprises: a processor 801 and a memory 802.

The memory 802 is used for storing programs, and the processor 801 calls the programs stored in the memory 802 to execute the above-mentioned method embodiments. The specific implementation and technical effects are similar, and are not described herein again.

Wherein the memory 802 stores program code that, when executed by the processor 801, causes the processor 801 to perform various steps in methods according to various exemplary embodiments of the present application described in the "exemplary methods" section above in this description.

The Processor 801 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware components, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.

Memory 802, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charged Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 802 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.

Optionally, the present application also provides a program product, such as a computer readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

32页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:游戏画面的处理方法、装置、设备、存储介质及程序产品

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类