WO2023093428A1 - Interaction method and apparatus, computer device, and storage medium - Google Patents

Interaction method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2023093428A1
WO2023093428A1 PCT/CN2022/127459 CN2022127459W WO2023093428A1 WO 2023093428 A1 WO2023093428 A1 WO 2023093428A1 CN 2022127459 W CN2022127459 W CN 2022127459W WO 2023093428 A1 WO2023093428 A1 WO 2023093428A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
target
processed
area
picture
Prior art date
Application number
PCT/CN2022/127459
Other languages
French (fr)
Chinese (zh)
Inventor
王雪娇
李国豪
Original Assignee
北京字跳网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2023093428A1 publication Critical patent/WO2023093428A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/63Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by the player, e.g. authoring using a level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Definitions

  • the present disclosure relates to the technical field of the Internet, and in particular, to an interaction method, device, computer equipment, and storage medium.
  • the content of the game screen in the above-mentioned various games is designed during the game development, and the players cannot design it according to their own needs during the game, resulting in poor user experience.
  • Embodiments of the present disclosure at least provide an interaction method, device, computer equipment, and storage medium.
  • an embodiment of the present disclosure provides an interaction method, including: obtaining a picture to be processed associated with the target game, and determining the drawing resource obtained by the user; the drawing resource includes a color resource; responding to the picture to be processed According to the drawing request, determine the area to be drawn in the picture to be processed; determine the processed color corresponding to the area to be drawn in the picture to be processed according to the target color resource selected by the user, so as to obtain the processed color target image.
  • the determining the drawing resources obtained by the user includes: determining the prop resources obtained by the user in the target game activity; the prop resources include raw materials and/or manufacturing resources for making the color resources A tool; in response to a color resource production request, perform production according to the prop resource to obtain the color resource.
  • the acquiring the picture to be processed associated with the target game includes: acquiring game scene data when the user performs game activities in the target game; based on the game scene data, generating The picture to be processed associated with the target game scene and/or target scene props.
  • the acquiring the picture to be processed associated with the target game includes: determining at least one equipment item of the virtual character corresponding to the user in the target game; according to the at least one The selected target equipment item in the equipment item generates the picture to be processed corresponding to the target equipment item.
  • the responding to the drawing request for the picture to be processed, and determining the area to be drawn in the picture to be processed includes: responding to the drawing request for the picture to be processed, displaying A plurality of drawable areas; in response to the user's trigger operation or continuous sliding operation, at least one area to be drawn selected by the user from the plurality of drawable areas is determined.
  • the determining at least one area to be drawn selected by the user from the plurality of drawable areas in response to the user's trigger operation or continuous sliding operation includes: according to the to-be-drawn area Processing the interaction determination areas corresponding to the plurality of drawable areas in the picture, determining the target interaction determination area affected by the user's trigger operation or continuous sliding operation; the drawable area corresponding to the determined target interaction determination area The area is used as the area to be drawn.
  • the determining the processed color corresponding to the area to be drawn in the picture to be processed includes: according to the motion attribute information of the terminal device used by the user to run the target game, Determine the depth of the processed color corresponding to the area to be drawn; wherein, the motion attribute information includes at least one of the following: the direction and/or angle of the terminal device tilt; the time when the terminal device is tilted; The number of times the terminal is shaken.
  • the determining the processed color corresponding to the area to be drawn in the picture to be processed according to the target color resource selected by the user in the drawing resource includes: acquiring the color to be processed The first color of the area to be drawn in the picture before color processing; based on the first color and the second color corresponding to the target color resource, determine the third color after fusion processing corresponding to the area to be drawn color; or, according to the target color resource selected by the user in the drawing resources, determine the second color corresponding to the area to be drawn, and use the second color to replace the color of the area to be drawn before color processing first color.
  • the second color corresponding to the target color resource is determined according to the following steps: in the case that the user selects multiple target color resources, according to the order of use of the multiple target color resources, determine A color after fusion processing corresponding to the plurality of target color resources; determining the color after fusion processing as the second color corresponding to the target color resource.
  • the method further includes: responding to the color wiping operation on the area to be drawn, according to a predetermined Set the color value adjustment step to perform color lightening processing on the area to be drawn to obtain a target image after color lightening processing.
  • the method further includes: displaying the target picture in a game scene of the target game; or generating a target prop according to the target picture , and display the target prop in the game scene or equipment list of the target game.
  • the embodiment of the present disclosure also provides an interaction device, including: a first determination module, configured to acquire the picture to be processed associated with the target game, and determine the drawing resources obtained by the user; the drawing resources include color resources; a second determination module, configured to determine a region to be drawn in the image to be processed in response to a drawing request for the image to be processed; a third determination module, configured to, according to the target color resource selected by the user, Determine the processed color corresponding to the region to be drawn in the picture to be processed, so as to obtain a processed target picture.
  • the first determination module is specifically configured to: determine the prop resources acquired by the user in the target game activity when executing the determination of the drawing resources acquired by the user; the prop resources Including raw materials and/or production tools for producing the color resource; in response to a color resource production request, perform production according to the prop resource to obtain the color resource.
  • the first determining module when executing the acquiring of the pending pictures associated with the target game, is specifically configured to: acquire the image of the user performing game activities in the target game. Game scene data; based on the game scene data, generate the picture to be processed associated with the target game scene and/or target scene props.
  • the first determination module when performing the acquiring of the picture to be processed associated with the target game, is specifically configured to: determine the value of the virtual character corresponding to the user in the target game At least one type of equipment item; generating the picture to be processed corresponding to the target equipment item according to the selected target equipment item in the at least one type of equipment item.
  • the second determining module is specifically configured to: respond to the drawing request for the picture to be processed and determine the area to be drawn in the picture to be processed in response to The drawing request of the picture to be processed displays a plurality of drawable areas; in response to the user's trigger operation or continuous sliding operation, determining at least one to-be-drawable area selected by the user from the plurality of drawable areas .
  • the second determination module when performing the response to the user's trigger operation or continuous sliding operation, determines at least one to-be-drawable area selected by the user from the plurality of drawable areas.
  • it is specifically used to: determine the target interaction determination area affected by the user's trigger operation or continuous sliding operation according to the interaction determination areas corresponding to the plurality of drawable areas in the picture to be processed; The determined drawable area corresponding to the target interaction determination area is used as the area to be drawn.
  • the third determination module when performing the determination of the processed color corresponding to the area to be drawn in the picture to be processed, is specifically configured to:
  • the motion attribute information of the terminal device of the target game determines the depth of the processed color corresponding to the area to be drawn; wherein the motion attribute information includes at least one of the following: the direction in which the terminal device is tilted and/or or angle; the time when the terminal device is tilted; the number of times the terminal device is shaken.
  • the third determining module after performing the process of determining the region corresponding to the region to be drawn in the picture to be processed according to the target color resource selected by the user in the drawing resource In the case of color, it is specifically used to: acquire the first color of the area to be drawn in the picture to be processed before color processing; The fused third color corresponding to the area to be drawn; or, according to the target color resource selected by the user in the drawing resources, determine the second color corresponding to the area to be drawn, and use the second color The first color of the region to be drawn before color processing is replaced.
  • the third determination module is specifically configured to: when the user selects multiple target color resources, when performing the determination of the second color corresponding to the target color resource according to the following steps, According to the order of use of the multiple target color resources, determine the color after fusion processing corresponding to the multiple target color resources; determine the color after fusion processing as the second color corresponding to the target color resource color.
  • the third determination module is further configured to: respond to the According to the color wiping operation, the step size is adjusted according to the preset color value, and the color lightening process is performed on the area to be drawn, so as to obtain the target picture after the color lightening process.
  • the third determination module after executing the processed target picture, is further configured to: display the target picture in the game scene of the target game; or, according to The target picture generates a target prop, and the target prop is displayed in the game scene or equipment list of the target game.
  • an embodiment of the present disclosure further provides a computer device, including: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processing The processor communicates with the memory through a bus, and when the machine-readable instructions are executed by the processor, the above-mentioned first aspect, or the steps in any optional implementation manner in the first aspect are performed.
  • a computer device including: a processor, a memory, and a bus
  • the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processing
  • the processor communicates with the memory through a bus, and when the machine-readable instructions are executed by the processor, the above-mentioned first aspect, or the steps in any optional implementation manner in the first aspect are performed.
  • the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the above-mentioned first aspect, or the first aspect Steps in any of the optional implementations.
  • an embodiment of the present disclosure further provides a computer program, which executes the steps in the above first aspect or any optional implementation manner in the first aspect when the computer program is run by a processor.
  • the embodiments of the present disclosure further provide a computer program product, the computer program product carries program code, and the instructions included in the program code can be used to execute the above-mentioned first aspect, or any one of the first aspects can be Steps in selected embodiments.
  • the interactive method provided by the embodiment of the present disclosure obtains the image to be processed and the drawing resource related to the target game, determines the area to be drawn in the image to be processed, and then uses the target color resource to perform color processing on the area to be drawn to generate the target image , so that the picture to be processed can be designed according to the player's own needs, and the interactive performance of the game is improved; in addition, the target picture designed by the player can be used as the game scene, or can be used to decorate the game props, thereby enriching the game scene, and Display content of game props.
  • FIG. 1 shows a flowchart of an interaction method provided by an embodiment of the present disclosure
  • Fig. 2a shows a schematic diagram of a page displaying a picture to be processed including multiple drawable areas in the interaction method provided by an embodiment of the present disclosure
  • Fig. 2b shows a schematic diagram of a page displaying an area to be drawn in an interaction method provided by an embodiment of the present disclosure
  • Fig. 2c shows a schematic diagram showing a page where the user continuously slides among the pictures to be processed in the interaction method provided by the embodiment of the present disclosure
  • Fig. 2d shows a schematic diagram of a page displaying a drawable area b and an interaction determination area corresponding to the drawable area b in the interaction method provided by an embodiment of the present disclosure
  • Fig. 3a shows a schematic diagram of an image resource of an area to be drawn corresponding to a target color resource in the interaction method provided by an embodiment of the present disclosure
  • Fig. 3b shows a schematic diagram of an image resource of an area to be drawn corresponding to another target color resource in the interaction method provided by an embodiment of the present disclosure
  • Fig. 3c shows a schematic diagram of a page displaying a target picture in the interaction method provided by an embodiment of the present disclosure
  • Fig. 4a shows a schematic diagram of a page showing the depth of the color after color processing is performed on the area to be drawn when the tilt angle of the terminal device is 10 degrees in the interaction method provided by the embodiment of the present disclosure
  • Fig. 4b shows a schematic diagram of a page showing the depth of the color after color processing is performed on the area to be drawn when the tilt angle of the terminal device is 30 degrees in the interaction method provided by the embodiment of the present disclosure
  • Fig. 5 shows a schematic structural diagram of an interaction device provided by an embodiment of the present disclosure
  • Fig. 6 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
  • the target game in the embodiments of the present disclosure may include various types of games, such as but not limited to: third-person perspective shooting games, first-person perspective shooting games, role-playing games, action games, plot games, strategy games, Fighting games, sports games, adventure games, etc., are not specifically limited here; generally, there is at least one virtual character corresponding to the target game, and the virtual character can perform game setting tasks in the target game scene, and each virtual character is configured with At least one kind of equipment props; Among them, the virtual character may include but not limited to at least one of virtual characters, virtual animals, etc.; the equipment props configured by the virtual character may include but not limited to at least one of clothing, equipment, vehicles, etc.
  • One, clothing may include but not limited to at least one of hats, gowns, long skirts, coats, shoes, pants, jade pendants, fans, hairpins, etc.
  • Equipment for example, may include but not limited to knives, guns, swords, ruderds , Axe, Tomahawk, Hook, Fork, Cannonball, etc.; vehicles such as but not limited to at least one of carriages, sedan chairs, cars, etc.; in addition, target scene props can also be set in the target game scene , the target scene props may include, but not limited to: at least one of props that increase the life value of the virtual character, skill props, and the like.
  • the execution subject of the interaction method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities.
  • the interaction method may be implemented by the processor invoking computer-readable instructions stored in the memory.
  • FIG. 1 it is a flow chart of an interaction method provided by an embodiment of the present disclosure, which mainly includes the following steps S101-S103:
  • the picture to be processed associated with the target game may include, for example, any picture in the target game that meets the user's drawing and coloring requirements; for example, it includes but is not limited to the picture associated with the target game scene, the picture associated with the target scene prop, and the equipment of the virtual character in the target game. At least one of the picture corresponding to the prop; the drawing resource is used to draw the picture to be processed, and the drawing resource may include a color resource, which is used to perform color processing on the picture to be processed.
  • the color resource may include but not limited to: Gold powder, multicolored powder and other rock materials; during implementation, color resources can be obtained directly in the game activities of the target game, or through the raw materials and production tools for making color resources obtained in game activities, use the production tools to process the raw materials Perform processing to obtain color resources, see the following description for details.
  • game activities refer to pre-set tasks in the target game, which can be set according to actual game needs, and no specific limitation is set here.
  • the picture to be processed and the drawing resource can be obtained in the same game activity in the target game, or in different game activities. Here, it can be set according to the actual game requirements. Make specific restrictions.
  • At least one of the following methods A1-A2 can be adopted, but not limited to, to obtain the image to be processed associated with the target game:
  • A1 Obtain the game scene data when the user performs game activities in the target game; based on the game scene data, generate a picture to be processed associated with the target game scene and/or target scene props.
  • the pictures to be processed may include, but are not limited to, pictures corresponding to exciting moments in game activities; during implementation, it may be determined that the preset exciting moments are satisfied according to the acquired game scene data of the user performing game activities in the target game.
  • the game scene data of time conditions based on the game scene data satisfying the preset wonderful moment conditions, generate the picture to be processed associated with the target game scene and/or the picture to be processed associated with the props of the target scene, that is, the picture of the wonderful moment in the game activity And/or the target scene prop pictures corresponding to the exciting moments in the game activities; wherein, the preset exciting moment conditions can be set according to the actual game requirements, and there is no specific limitation here.
  • A2 Determine at least one equipment item of the virtual character corresponding to the user in the target game; generate a picture to be processed corresponding to the target equipment item according to the selected target equipment item in the at least one equipment item.
  • the equipment props possessed by the virtual character manipulated by the user in the target game may be a picture including all parts of the target equipment prop, or a picture including only some parts of the target equipment prop.
  • the drawing resources obtained by the user can be determined, wherein the way of obtaining the drawing resources can include but not limited to at least one of B1-B4 kind:
  • the drawing resource is directly acquired.
  • the prop resource used for making the drawing resource is obtained, and the drawing resource is produced through the prop resource, thereby obtaining the drawing resource.
  • the prop resource used for making the drawing resource is obtained, so that the drawing resource is produced through the prop resource, thereby obtaining the drawing resource.
  • the color resources included in the drawing resources can be obtained in the following ways: determine the prop resources acquired by the user in the target game activity; respond to the creation of color resources Request, make according to prop resources to obtain color resources.
  • the target game activity may refer to a specific game task in the target game, for example, it may include a mining task, a tool making task, etc.; the target game activity may be the same as or different from the game activity corresponding to the picture to be processed; here, the target The game can be set according to the actual game needs, and there is no specific limitation here;
  • the prop resource refers to the virtual prop used to make the color resource included in the drawing resource, and may include raw materials and/or production tools for making the color resource, among which, For example, raw materials may include at least one of ores, gems, etc., and production tools may include at least one of grinding equipment, polishing equipment, etc.; here, the raw materials and production tools used to produce color resources can be set according to actual game needs , there is no specific limitation here.
  • the user manipulates the virtual character to collect ore raw materials for making color resources and make grinding equipment for grinding the ore raw materials in the mining and blacksmithing game; then the user can trigger the target game scene
  • the color resource production touch button initiates a color resource production request.
  • computer equipment such as terminal equipment, which will not be described in detail below
  • the interaction method provided by the embodiment of the present disclosure further includes:
  • the user can manually select or delineate at least one drawable area in the picture to be processed, select the area to be drawn to be drawn, as follows: in response to the drawing request for the picture to be processed, display A plurality of drawable areas; in response to a user's trigger operation or continuous sliding operation, at least one area to be drawn selected by the user from the plurality of drawable areas is determined.
  • the trigger operation and the continuous sliding operation are both operations for selecting an area to be drawn to be drawn in multiple drawable areas;
  • the trigger operation may include but not limited to single click, continuous tap within a preset Press at least one of the following.
  • the drawable area can be indicated in the picture to be processed by highlighting, marking the drawable area with a color, setting the border of the drawable area to flicker, or setting the drawable area to flicker as a whole; in addition, After the user selects at least one area to be drawn from multiple areas to be drawn, each area to be drawn in the picture to be processed can be highlighted, marked with a color for the area to be drawn, set to flash the boundary of the area to be drawn or set to be drawn The region is highlighted by flashing as a whole to remind the user of the position of the region to be drawn in the image to be processed.
  • the multiple drawable areas included in the picture to be processed may be clickable, and the user may select the area to be drawn by clicking among the multiple drawable areas.
  • the user triggers the drawing touch control in the target game scene and initiates a drawing request.
  • the computer device responds to the drawing request for the picture to be processed, and displays multiple drawables contained in the picture to be processed.
  • Regions specifically, a page showing a picture to be processed that includes multiple drawable areas can be shown in Figure 2a, and the picture to be processed shown in Figure 2a includes 3 drawable areas, that is, the drawable area a where the sun is located , the drawable area b where the small cloud is located, and the drawable area c where the big cloud is located; in Fig.
  • As an area to be drawn; a specific page showing the area to be drawn can be shown in Figure 2b.
  • the area to be drawn in the image to be processed is highlighted by adding a dotted border to the border of the area to be drawn.
  • the user may outline the area to be drawn to be drawn by continuously sliding among the multiple drawable areas contained in the displayed picture to be processed.
  • the user continuously slides in FIG. 2a according to the boundary indication of the drawable area shown in FIG.
  • the user according to the track of the user's continuous sliding, it is determined that the user selects the drawable area b as the area to be drawn, and a specific page showing the area to be drawn can be shown in Figure 2b.
  • the user when the drawable area occupies a small area in the picture to be processed, the user may not be able to accurately select the area to be drawn in the small drawable area. In order to avoid invalid operations by the user, let The user conveniently selects the area to be drawn to be drawn.
  • a corresponding interactive judgment area is set for the drawable area. When the user's trigger operation or continuous sliding operation is located in the interactive judgment area, the user's trigger operation is determined.
  • the operation or continuous sliding operation acts on the drawable area corresponding to the interactive judgment area, and takes the drawable area as the area to be drawn, specifically: according to the interactive judgment area corresponding to the multiple drawable areas in the picture to be processed , determining the target interaction determination area on which the user's trigger operation or continuous sliding operation acts; and using the drawable area corresponding to the determined target interaction determination area as the area to be drawn.
  • a channel map can be used; where each pixel in the channel map is generally composed of red (Red, R), The color values of the three channels of green (Green, G) and blue (Blue, B) indicate that in the embodiment of the present disclosure, by converting the picture to be processed into a channel map, the corresponding R/ The value of any two channels in the three channels of G/B is set to 0, and the value of the remaining channel is set to a value in the range of [5, 255], that is, each interactive judgment area is represented by a solid color, and the adjacent interactive judgment area The channel whose color value is not 0 is different.
  • the color value of the drawable area in the interactive judgment area (the color value here refers to the color value of the channel that is not set to 0 color value) is greater than the color value of the interactive judgment area
  • the color value of the area for example, the color value of the drawable area is set to 255, and the color value of other areas in the interactive judgment area is set to be less than 255.
  • each interaction determination area in the picture to be processed is distinguished, and the interaction determination area and the drawable area are distinguished; for example, when the corresponding color value is greater than or equal to 5, it indicates that the area is an interaction determination area; the corresponding color value is 255 , characterizes the area as a drawable area in the interactive judgment area.
  • the peripheral extension of the interactive judgment area corresponding to a drawable area in the picture to be processed corresponds to the value 88/0/0 in the channel diagram R/G/B, and the channel corresponding to the drawable area in the interactive judgment area
  • the value corresponding to R/G/B in the figure is 255/0/0;
  • the peripheral extension of the interactive judgment area corresponding to a drawable area in the image to be processed corresponds to the R/G/B value in the channel graph as 0 /60/0, and the drawable area in the interactive judgment area has an R/G/B value of 0/255/0 in the channel diagram;
  • the R/G/B value of the extension part is 0/0/186 in the channel map
  • the R/G/B value of the drawable area in the channel map is 0/0/255.
  • FIG. 2a there are three drawable areas in Figure 2a; if the peripheral extension of the interactive judgment area corresponding to drawable area b in Figure 2a corresponds to R/G/B in the channel diagram, the value is 55/0/ 0. The value corresponding to R/G/B of the drawable area b in the channel diagram is 255/0/0, then the specific display page can be shown in Figure 2d. In Figure 2d, it is the interactive judgment area and the drawable area Highlighting is done by adding line shading separately.
  • the user initiates a trigger operation for the interactive judgment area of the drawable area b, and the computer device determines that the user's trigger operation acts on the drawable area b, and takes the drawable area b as the area to be drawn; the specific display area to be drawn
  • the page of can be as shown in Figure 2b.
  • the interaction method provided by the embodiment of the present disclosure further includes:
  • color processing may be performed on the area to be drawn according to the target color resource selected by the user among various color resources, so as to make the area to be drawn in the picture to be processed
  • the region is colored to generate the processed target image.
  • color processing is performed on the area to be drawn to color the area to be drawn in the picture to be processed, which can be directly color-processing the area to be drawn, or using the color of the area to be drawn corresponding to the target color resource Image resources, to replace the original image content of the area to be drawn, that is, to process image resources.
  • the picture resource of the region to be drawn corresponding to the target color resource may be obtained after color processing corresponding to the target color resource is performed on the region to be drawn in the picture to be processed.
  • a picture resource that uses green color to color-process the area to be drawn in the picture to be processed (as shown in Figure 3a, in Figure 3a, by adding line shadows in the drawable area b, it means that the area to be drawn is treated with green color
  • the picture resource after the color processing of the area to be drawn in the processing picture); another picture resource after color processing of the area to be drawn in the picture to be processed by using blue color (as shown in Figure 3b, in Figure 3b by The method of adding dot shadows in the drawable area b represents an image resource after color processing is performed on the area to be drawn in the image to be processed using blue color).
  • the image resource of the area to be drawn corresponding to the target color resource is as shown in Figure 3b
  • the image resource in Figure 3b can be used to replace the image resource corresponding to the area to be drawn in any of Figures 2b to 2d, and after replacement
  • the target picture of can be shown in Figure 3c.
  • C1-C3 when performing color processing on the area to be drawn, the following C1-C3 can be used to perform color processing on the area to be drawn in the image to be processed:
  • the preset color value adjustment step is used to represent the color value that is wiped off each time when the area to be drawn is lightened; for example, it can include 10 color values to be wiped off each time, the specific preset color value
  • the adjustment step can be set according to the actual game requirements, and there is no specific limitation here, and will not be described in detail below.
  • the second color corresponding to the target color resource when the second color corresponding to the target color resource is the same as the first color, it can be deepened on the basis of the first color; for example, the first color of the area to be drawn is red, and the corresponding The channel value of the target color resource is 80/0/0, the second color corresponding to the target color resource is also red, and the corresponding channel value is 30/0/0, then use the third color after the fusion of the first color and the second color to fuse
  • the channel value corresponding to the third color obtained after processing is 110/0/0, and the color processing is performed on the area to be drawn, that is, the original red color of the area to be drawn is deepened, and the third color with a channel value of 110/0/0
  • the color is the processed color corresponding to the region to be drawn.
  • a fusion color of the first color and the second color can be generated, for example, the first color of the area to be drawn is red, and the corresponding channel value is 80 /0/0, the second color corresponding to the target color resource is green, and the corresponding channel value is 0/30/0, then use the third color after the fusion of the first color and the second color, and the third color obtained after fusion processing
  • the channel value corresponding to the color can be 80/30/0.
  • C3. Determine the second color corresponding to the area to be drawn according to the target color resource selected by the user in the drawing resources, and use the second color to replace the first color in the area to be drawn before color processing.
  • the first color of the area to be drawn is replaced with the second color corresponding to the target color resource, that is, the second color of the target color resource is determined as the processed color corresponding to the area to be drawn.
  • the color after fusion processing corresponding to the multiple target color resources is determined; the color after fusion processing is determined as The secondary color corresponding to the target color resource.
  • the use order of the various target color resources is different, which may affect the color after fusion processing, that is, the superimposition order of the color, which may make the color expression after fusion processing different.
  • the area to be drawn after the color processing can also be drawn again, specifically in response to the redrawing of the area that has been drawn Request to perform color processing on the drawn area according to the target color resource currently selected by the user, and determine the color of the drawn area after redrawing, so as to obtain the reprocessed target image.
  • the area to be drawn after color processing can still be used as a new area to be drawn, and at least one of the above methods C1-C3 is used to Colorize the new area to be drawn.
  • the color of the processed color corresponding to the area to be drawn can be determined according to the motion attribute information of the terminal device used by the user to run the target game. depth.
  • the motion attribute information of the terminal device running the target game may affect to a certain extent the color depth of the area to be drawn when using the second color corresponding to the target color resource; the motion attribute information may include but not It is limited to at least one of: the direction and/or angle of the terminal device being tilted, the time when the terminal device is tilted, the number of times the terminal device is shaken, and the like.
  • the direction in which the terminal device is tilted/the angle at which the terminal device is tilted/the time when the terminal device is tilted/the terminal is The number of shakes will affect the outflow of the target color resource when drawing the area to be drawn.
  • the direction of terminal device tilt/angle of terminal device tilt/time of terminal device tilt/number of times the terminal is shaken is related to the area to be drawn. The depth of the color after color processing is positively correlated.
  • the outflow of target color resources gradually increases, and the color after color processing of the area to be drawn is determined to gradually change.
  • the user adjusts the inclination angle of the terminal device to become larger gradually, the outflow of target color resources will gradually increase, and the color after the color processing of the area to be drawn is determined to gradually become darker, otherwise it will gradually become lighter; the user adjusts the inclination angle of the terminal device As the tilting time increases gradually, the outflow of target color resources gradually increases, and the color after the color processing of the area to be drawn is determined to gradually become darker, otherwise it gradually becomes lighter; the number of times the user adjusts the terminal device and is shaken gradually increases, and the outflow of target color resources gradually increases , it is determined that the color of the area to be drawn will gradually become darker after color processing, and vice versa.
  • the second color corresponding to the target color resource selected by the user when using the second color corresponding to the target color resource selected by the user to perform color processing on the area to be drawn (i.e., the area to be drawn) in any of the pictures to be processed shown in Figure 2b to Figure 2d , if user a controls the inclination angle between the terminal device and the horizontal plane where the ground is located to be 10 degrees, it is determined that the color of the area to be drawn is relatively light after color processing; the specific figure 4a shows the distance between the terminal device and the horizontal plane where the ground is located The inclination angle of the area to be drawn is 10 degrees, and the depth of the color of the area to be drawn is indicated by adding line shadows in the area to be drawn in Figure 4a; if user a controls the inclination angle between the terminal device and the horizontal plane where the ground is 30 degrees, it is determined that the color of the area to be drawn after color processing is darker than the color of the area to be drawn after color processing in Figure 4a; specifically Figure 4b shows that the inclin
  • the picture after the color processing of the area to be drawn can be used as the target picture; Shallow processing, using the lightened image as the target image.
  • the step size is adjusted according to the preset color value, and the color lightening process is performed on the area to be drawn, so as to obtain the target image after the color lightening process.
  • the preset color adjustment step includes subtracting 10 from the color value every time you wipe, and if the user wipes the area to be drawn 3 times, you need to subtract 30 from the color value corresponding to the processed color corresponding to the area to be drawn. In this way, the target image after color lightening processing is obtained.
  • the target picture can be displayed in the game scene of the target game; or, the target prop is generated according to the target picture, and the target prop is displayed in the game scene or equipment list of the target game.
  • the equipment list is used to display multiple equipment items, and the user can obtain any equipment item in the equipment list by purchasing or being presented by others; It can include equipment items that the user has not obtained in the equipment list, and the specific target items can be set according to actual game needs, and there is no specific limitation here.
  • the target picture can be used as a game scene added by the user and displayed directly; the target picture can also be used as a decoration on the target prop, and the target picture can be pasted on the target prop to generate a decorated target props, and directly display the decorated target props to the user in the game scene, or place the decorated target props in the equipment list for the user to use directly/after purchase.
  • the target picture by acquiring the picture to be processed and the drawing resource related to the target game, and determining the area to be drawn in the picture to be processed, and then using the target color resource to perform color processing on the area to be drawn, the target picture can be generated.
  • the picture to be processed is designed to improve the interactive performance of the game; in addition, the target picture designed by the player can be used as the game scene or can be used to decorate the game props, thus enriching the display content of the game scene and game props .
  • the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possible
  • the inner logic is OK.
  • the embodiment of the present disclosure also provides an interaction device corresponding to the interaction method. Since the problem-solving principle of the device in the embodiment of the present disclosure is similar to the above-mentioned method in the embodiment of the present disclosure, the implementation of the device can refer to the method. implementation, the repetition will not be repeated.
  • FIG. 5 it is a schematic diagram of an interaction device 500 provided by an embodiment of the present disclosure, including:
  • the first determination module 501 is configured to acquire the picture to be processed associated with the target game, and determine the drawing resources obtained by the user; the drawing resources include color resources.
  • the second determining module 502 is configured to determine a region to be drawn in the picture to be processed in response to a drawing request for the picture to be processed.
  • the third determining module 503 is configured to determine the processed color corresponding to the area to be drawn in the image to be processed according to the target color resource selected by the user, so as to obtain a processed target image.
  • the first determining module 501 when performing the determination of the drawing resources acquired by the user, is specifically configured to: determine the prop resources acquired by the user in the target game activity; the prop resources include Making raw materials and/or making tools of the color resource; in response to a color resource making request, making according to the prop resource to obtain the color resource.
  • the first determining module 501 when performing the acquiring of the pending pictures associated with the target game, is specifically configured to: acquire the game information when the user performs game activities in the target game.
  • Scene data based on the game scene data, generate the picture to be processed associated with the target game scene and/or target scene props.
  • the first determination module 501 is specifically configured to: determine at least An equipment item; generating the picture to be processed corresponding to the target equipment item according to the selected target equipment item in the at least one type of equipment item.
  • the second determination module 502 when executing the response to the drawing request for the picture to be processed and determining the area to be drawn in the picture to be processed, is specifically configured to: respond to the drawing request for the picture to be processed displaying a plurality of drawable areas according to the drawing request of the image to be processed; and determining at least one area to be drawn selected by the user from the plurality of drawable areas in response to the user's trigger operation or continuous sliding operation.
  • the second determination module 502 determines at least one drawable area selected by the user from the plurality of drawable areas when performing the trigger operation or continuous sliding operation in response to the user. In the area, it is specifically used to: determine the target interaction determination area on which the user's trigger operation or continuous sliding operation acts according to the interaction determination areas corresponding to the plurality of drawable areas in the picture to be processed; The drawable area corresponding to the target interaction determination area is used as the area to be drawn.
  • the third determination module 503, when performing the determination of the processed color corresponding to the area to be drawn in the image to be processed, is specifically configured to: The motion attribute information of the terminal device of the target game, to determine the depth of the processed color corresponding to the area to be drawn; wherein, the motion attribute information includes at least one of the following: the direction in which the terminal device is tilted and/or angle; the time the terminal device is tilted; the number of times the terminal device is shaken.
  • the third determining module 503 determines the processed color corresponding to the area to be drawn in the picture to be processed according to the target color resource selected by the user in the drawing resource , it is specifically used to: obtain the first color of the region to be drawn in the picture to be processed before color processing; determine the color based on the first color and the second color corresponding to the target color resource The fused third color corresponding to the area to be drawn; or, according to the target color resource selected by the user in the drawing resources, determine the second color corresponding to the area to be drawn, and use the second color to replace The first color of the area to be drawn before color processing.
  • the third determination module 503 is specifically configured to determine the second color corresponding to the target color resource according to the following steps: when the user selects multiple target color resources, according to The order of use of the multiple target color resources is to determine the fused color corresponding to the multiple target color resources; and determine the fused color as the second color corresponding to the target color resource .
  • the third determination module 503, after performing the determination of the processed color corresponding to the area to be drawn in the picture to be processed, is further configured to: respond to the The color wiping operation is to adjust the step size according to the preset color value, perform color lightening processing on the area to be drawn, and obtain the target image after color lightening processing.
  • the third determination module 503, after executing the processed target picture, is further configured to: display the target picture in the game scene of the target game; or, according to the The target prop is generated from the target picture, and the target prop is displayed in the game scene or equipment list of the target game.
  • FIG. 6 it is a schematic structural diagram of a computer device 600 provided by an embodiment of the present disclosure, including a processor 601 , a memory 602 , and a bus 603 .
  • the memory 602 is used to store execution instructions, including a memory 6021 and an external memory 6022; the memory 6021 here is also called an internal memory, and is used to temporarily store calculation data in the processor 601 and exchange data with an external memory 6022 such as a hard disk.
  • the processor 601 exchanges data with the external memory 6022 through the memory 6021.
  • the processor 601 communicates with the memory 602 through the bus 603, so that the processor 601 executes the following instructions:
  • the drawing resource includes a color resource; respond to a drawing request for the picture to be processed, and determine a region to be drawn in the picture to be processed; According to the target color resource selected by the user, the processed color corresponding to the region to be drawn in the picture to be processed is determined to obtain a processed target picture.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the interaction method described in the foregoing method embodiments are executed.
  • the storage medium may be a volatile or non-volatile computer-readable storage medium.
  • Embodiments of the present disclosure further provide a computer program, which executes the steps of the interaction method described in the foregoing method embodiments when the computer program is run by a processor.
  • An embodiment of the present disclosure also provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the interaction method described in the above method embodiment, for details, please refer to the above method The embodiment will not be repeated here.
  • the above-mentioned computer program product may be specifically implemented by means of hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.
  • a software development kit Software Development Kit, SDK
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor.
  • the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides an interaction method and apparatus, a computer device, and a storage medium. The method comprises: obtaining a picture to be processed associated with a target game, and determining drawing resources obtained by a user, wherein the drawing resources comprise color resources; in response to a drawing request for the picture to be processed, determining an area to be drawn in the picture to be processed; and according to a target color resource selected by the user, determining a processed color corresponding to the area to be drawn in the picture to be processed to obtain a processed target picture.

Description

一种交互方法、装置、计算机设备及存储介质An interactive method, device, computer equipment and storage medium
相关申请交叉引用Related Application Cross Reference
本申请要求于2021年11月29日提交中国专利局、申请号为202111431495.X、发明名称为“一种交互方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用并入本文。This application claims the priority of the Chinese patent application with the application number 202111431495.X and the title of the invention "an interactive method, device, computer equipment and storage medium" submitted to the China Patent Office on November 29, 2021, the entire content of which Incorporated herein by reference.
技术领域technical field
本公开涉及互联网技术领域,具体而言,涉及一种交互方法、装置、计算机设备及存储介质。The present disclosure relates to the technical field of the Internet, and in particular, to an interaction method, device, computer equipment, and storage medium.
背景技术Background technique
随着互联网技术的发展,逐渐开发出各种类型的游戏来满足用户的娱乐需求;比如,剧情类游戏,冒险类游戏、射击类游戏等;With the development of Internet technology, various types of games are gradually developed to meet the entertainment needs of users; for example, plot games, adventure games, shooting games, etc.;
上述各种游戏中的游戏画面内容,比如角色的服装道具的色彩等,都是在游戏开发时设计好的,玩家无法在游戏过程中根据自身需求对其进行设计,用户体验较差。The content of the game screen in the above-mentioned various games, such as the color of the costumes and props of the characters, is designed during the game development, and the players cannot design it according to their own needs during the game, resulting in poor user experience.
发明内容Contents of the invention
本公开实施例至少提供一种交互方法、装置、计算机设备及存储介质。Embodiments of the present disclosure at least provide an interaction method, device, computer equipment, and storage medium.
第一方面,本公开实施例提供一种交互方法,包括:获取与目标游戏关联的待处理图片,并确定用户获取的绘制资源;所述绘制资源中包括色彩资源;响应针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域;根据所述用户选中的目标色彩资源,确定所述待处理图片中的所述待绘制区域对应的处理后色彩,以得到处理后的目标图片。In the first aspect, an embodiment of the present disclosure provides an interaction method, including: obtaining a picture to be processed associated with the target game, and determining the drawing resource obtained by the user; the drawing resource includes a color resource; responding to the picture to be processed According to the drawing request, determine the area to be drawn in the picture to be processed; determine the processed color corresponding to the area to be drawn in the picture to be processed according to the target color resource selected by the user, so as to obtain the processed color target image.
一种可选的实施方式中,所述确定用户获取的绘制资源,包括:确定所述用户在目标游戏活动中获取的道具资源;所述道具资源包括制作所述色彩资源的原材料和/或制作工具;响应于色彩资源制作请求,根据所述道具资源进行制作以获得所述色彩资源。In an optional implementation manner, the determining the drawing resources obtained by the user includes: determining the prop resources obtained by the user in the target game activity; the prop resources include raw materials and/or manufacturing resources for making the color resources A tool; in response to a color resource production request, perform production according to the prop resource to obtain the color resource.
一种可选的实施方式中,所述获取与目标游戏关联的待处理图片,包括:获取所述用户在所述目标游戏中进行游戏活动时的游戏场景数据;基于所述游戏场景数据,生成与目标游戏场景和/或目标场景道具关联的所述待处理图片。In an optional implementation manner, the acquiring the picture to be processed associated with the target game includes: acquiring game scene data when the user performs game activities in the target game; based on the game scene data, generating The picture to be processed associated with the target game scene and/or target scene props.
一种可选的实施方式中,所述获取与目标游戏关联的待处理图片,包括:确定所述用户在所述目标游戏中对应的虚拟角色的至少一种装备道具;根据所述至少一种装备道具中被选中的目标装备道具,生成与所述目标装备道具对应的所述待处理图片。In an optional implementation manner, the acquiring the picture to be processed associated with the target game includes: determining at least one equipment item of the virtual character corresponding to the user in the target game; according to the at least one The selected target equipment item in the equipment item generates the picture to be processed corresponding to the target equipment item.
一种可选的实施方式中,所述响应针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域,包括:响应针对所述待处理图片的所述绘制请求,展示多个可绘制区域;响应所述用户的触发操作或连续滑动操作,确定所述用户从所述多个可绘制区域中选择的至少一个待绘制区域。In an optional implementation manner, the responding to the drawing request for the picture to be processed, and determining the area to be drawn in the picture to be processed includes: responding to the drawing request for the picture to be processed, displaying A plurality of drawable areas; in response to the user's trigger operation or continuous sliding operation, at least one area to be drawn selected by the user from the plurality of drawable areas is determined.
一种可选的实施方式中,所述响应所述用户的触发操作或连续滑动操作,确定所述 用户从所述多个可绘制区域中选择的至少一个待绘制区域,包括:根据所述待处理图片中的所述多个可绘制区域分别对应的交互判定区域,确定所述用户的触发操作或连续滑动操作所作用的目标交互判定区域;将确定的所述目标交互判定区域对应的可绘制区域作为所述待绘制区域。In an optional implementation manner, the determining at least one area to be drawn selected by the user from the plurality of drawable areas in response to the user's trigger operation or continuous sliding operation includes: according to the to-be-drawn area Processing the interaction determination areas corresponding to the plurality of drawable areas in the picture, determining the target interaction determination area affected by the user's trigger operation or continuous sliding operation; the drawable area corresponding to the determined target interaction determination area The area is used as the area to be drawn.
一种可选的实施方式中,所述确定所述待处理图片中的待绘制区域对应的处理后的色彩,包括:根据所述用户使用的运行所述目标游戏的终端设备的运动属性信息,确定所述待绘制区域对应的处理后的色彩的深浅程度;其中,所述运动属性信息包括以下至少一种:所述终端设备倾斜的方向和/或角度;所述终端设备倾斜的时间;所述终端设备被摇动的次数。In an optional implementation manner, the determining the processed color corresponding to the area to be drawn in the picture to be processed includes: according to the motion attribute information of the terminal device used by the user to run the target game, Determine the depth of the processed color corresponding to the area to be drawn; wherein, the motion attribute information includes at least one of the following: the direction and/or angle of the terminal device tilt; the time when the terminal device is tilted; The number of times the terminal is shaken.
一种可选的实施方式中,所述根据用户在所述绘制资源中选中的目标色彩资源,确定所述待处理图片中的待绘制区域对应的处理后的色彩,包括:获取所述待处理图片中的所述待绘制区域在进行色彩处理前的第一色彩;基于所述第一色彩和所述目标色彩资源对应的第二色彩,确定所述待绘制区域对应的融合处理后的第三色彩;或者,根据所述用户在所述绘制资源中选中的目标色彩资源,确定所述待绘制区域对应的第二色彩,采用所述第二色彩替换所述待绘制区域在进行色彩处理前的第一色彩。In an optional implementation manner, the determining the processed color corresponding to the area to be drawn in the picture to be processed according to the target color resource selected by the user in the drawing resource includes: acquiring the color to be processed The first color of the area to be drawn in the picture before color processing; based on the first color and the second color corresponding to the target color resource, determine the third color after fusion processing corresponding to the area to be drawn color; or, according to the target color resource selected by the user in the drawing resources, determine the second color corresponding to the area to be drawn, and use the second color to replace the color of the area to be drawn before color processing first color.
一种可选的实施方式中,根据以下步骤确定目标色彩资源对应的第二色彩:在所述用户选中多种目标色彩资源的情况下,根据所述多种目标色彩资源的使用先后顺序,确定所述多种目标色彩资源对应的融合处理后的色彩;将所述融合处理后的色彩确定为所述目标色彩资源对应的所述第二色彩。In an optional implementation manner, the second color corresponding to the target color resource is determined according to the following steps: in the case that the user selects multiple target color resources, according to the order of use of the multiple target color resources, determine A color after fusion processing corresponding to the plurality of target color resources; determining the color after fusion processing as the second color corresponding to the target color resource.
一种可选的实施方式中,所述确定所述待处理图片中的待绘制区域对应的处理后的色彩之后,所述方法还包括:响应针对所述待绘制区域的色彩擦拭操作,按照预设的色值调整步长,对所述待绘制区域进行色彩浅化处理,得到色彩浅化处理后的目标图片。In an optional implementation manner, after determining the processed color corresponding to the area to be drawn in the picture to be processed, the method further includes: responding to the color wiping operation on the area to be drawn, according to a predetermined Set the color value adjustment step to perform color lightening processing on the area to be drawn to obtain a target image after color lightening processing.
一种可选的实施方式中,所述得到处理后的目标图片之后,所述方法还包括:在所述目标游戏的游戏场景中展示所述目标图片;或者,根据所述目标图片生成目标道具,并在所述目标游戏的游戏场景或装备列表中展示所述目标道具。In an optional implementation manner, after obtaining the processed target picture, the method further includes: displaying the target picture in a game scene of the target game; or generating a target prop according to the target picture , and display the target prop in the game scene or equipment list of the target game.
第二方面,本公开实施例还提供了一种交互装置,包括:第一确定模块,用于获取与目标游戏关联的待处理图片,并确定用户获取的绘制资源;所述绘制资源中包括色彩资源;第二确定模块,用于响应于针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域;第三确定模块,用于根据所述用户选中的目标色彩资源,确定所述待处理图片中的所述待绘制区域对应的处理后色彩,以得到处理后的目标图片。In the second aspect, the embodiment of the present disclosure also provides an interaction device, including: a first determination module, configured to acquire the picture to be processed associated with the target game, and determine the drawing resources obtained by the user; the drawing resources include color resources; a second determination module, configured to determine a region to be drawn in the image to be processed in response to a drawing request for the image to be processed; a third determination module, configured to, according to the target color resource selected by the user, Determine the processed color corresponding to the region to be drawn in the picture to be processed, so as to obtain a processed target picture.
一种可选的实施方式中,所述第一确定模块,在执行所述确定用户获取的绘制资源时,具体用于:确定所述用户在目标游戏活动中获取的道具资源;所述道具资源包括制作所述色彩资源的原材料和/或制作工具;响应于色彩资源制作请求,根据所述道具资源进行制作以获得所述色彩资源。In an optional implementation manner, the first determination module is specifically configured to: determine the prop resources acquired by the user in the target game activity when executing the determination of the drawing resources acquired by the user; the prop resources Including raw materials and/or production tools for producing the color resource; in response to a color resource production request, perform production according to the prop resource to obtain the color resource.
一种可选的实施方式中,所述第一确定模块,在执行所述获取与目标游戏关联的待处理图片时,具体用于:获取所述用户在所述目标游戏中进行游戏活动时的游戏场景数据;基于所述游戏场景数据,生成与目标游戏场景和/或目标场景道具关联的所述待处理图片。In an optional implementation manner, the first determining module, when executing the acquiring of the pending pictures associated with the target game, is specifically configured to: acquire the image of the user performing game activities in the target game. Game scene data; based on the game scene data, generate the picture to be processed associated with the target game scene and/or target scene props.
一种可选的实施方式中,所述第一确定模块,在执行所述获取与目标游戏关联的待处理图片时,具体用于:确定所述用户在所述目标游戏中对应的虚拟角色的至少一种装备道具; 根据所述至少一种装备道具中被选中的目标装备道具,生成与所述目标装备道具对应的所述待处理图片。In an optional implementation manner, the first determination module, when performing the acquiring of the picture to be processed associated with the target game, is specifically configured to: determine the value of the virtual character corresponding to the user in the target game At least one type of equipment item; generating the picture to be processed corresponding to the target equipment item according to the selected target equipment item in the at least one type of equipment item.
一种可选的实施方式中,所述第二确定模块,在执行所述响应针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域时,具体用于:响应针对所述待处理图片的所述绘制请求,展示多个可绘制区域;响应所述用户的触发操作或连续滑动操作,确定所述用户从所述多个可绘制区域中选择的至少一个待绘制区域。In an optional implementation manner, the second determining module is specifically configured to: respond to the drawing request for the picture to be processed and determine the area to be drawn in the picture to be processed in response to The drawing request of the picture to be processed displays a plurality of drawable areas; in response to the user's trigger operation or continuous sliding operation, determining at least one to-be-drawable area selected by the user from the plurality of drawable areas .
一种可选的实施方式中,所述第二确定模块,在执行所述响应所述用户的触发操作或连续滑动操作,确定所述用户从所述多个可绘制区域中选择的至少一个待绘制区域时,具体用于:根据所述待处理图片中的所述多个可绘制区域分别对应的交互判定区域,确定所述用户的触发操作或连续滑动操作所作用的目标交互判定区域;将确定的所述目标交互判定区域对应的可绘制区域作为所述待绘制区域。In an optional implementation manner, the second determination module, when performing the response to the user's trigger operation or continuous sliding operation, determines at least one to-be-drawable area selected by the user from the plurality of drawable areas. When drawing an area, it is specifically used to: determine the target interaction determination area affected by the user's trigger operation or continuous sliding operation according to the interaction determination areas corresponding to the plurality of drawable areas in the picture to be processed; The determined drawable area corresponding to the target interaction determination area is used as the area to be drawn.
一种可选的实施方式中,所述第三确定模块,在执行所述确定所述待处理图片中的待绘制区域对应的处理后的色彩时,具体用于:根据所述用户使用的运行所述目标游戏的终端设备的运动属性信息,确定所述待绘制区域对应的处理后的色彩的深浅程度;其中,所述运动属性信息包括以下至少一种:所述终端设备倾斜的方向和/或角度;所述终端设备倾斜的时间;所述终端设备被摇动的次数。In an optional implementation manner, the third determination module, when performing the determination of the processed color corresponding to the area to be drawn in the picture to be processed, is specifically configured to: The motion attribute information of the terminal device of the target game determines the depth of the processed color corresponding to the area to be drawn; wherein the motion attribute information includes at least one of the following: the direction in which the terminal device is tilted and/or or angle; the time when the terminal device is tilted; the number of times the terminal device is shaken.
一种可选的实施方式中,所述第三确定模块,在执行所述根据用户在所述绘制资源中选中的目标色彩资源,确定所述待处理图片中的待绘制区域对应的处理后的色彩时,具体用于:获取所述待处理图片中的所述待绘制区域在进行色彩处理前的第一色彩;基于所述第一色彩和所述目标色彩资源对应的第二色彩,确定所述待绘制区域对应的融合处理后的第三色彩;或者,根据所述用户在所述绘制资源中选中的目标色彩资源,确定所述待绘制区域对应的第二色彩,采用所述第二色彩替换所述待绘制区域在进行色彩处理前的第一色彩。In an optional implementation manner, the third determining module, after performing the process of determining the region corresponding to the region to be drawn in the picture to be processed according to the target color resource selected by the user in the drawing resource In the case of color, it is specifically used to: acquire the first color of the area to be drawn in the picture to be processed before color processing; The fused third color corresponding to the area to be drawn; or, according to the target color resource selected by the user in the drawing resources, determine the second color corresponding to the area to be drawn, and use the second color The first color of the region to be drawn before color processing is replaced.
一种可选的实施方式中,所述第三确定模块,在执行根据以下步骤确定目标色彩资源对应的第二色彩时,具体用于:在所述用户选中多种目标色彩资源的情况下,根据所述多种目标色彩资源的使用先后顺序,确定所述多种目标色彩资源对应的融合处理后的色彩;将所述融合处理后的色彩确定为所述目标色彩资源对应的所述第二色彩。In an optional implementation manner, the third determination module is specifically configured to: when the user selects multiple target color resources, when performing the determination of the second color corresponding to the target color resource according to the following steps, According to the order of use of the multiple target color resources, determine the color after fusion processing corresponding to the multiple target color resources; determine the color after fusion processing as the second color corresponding to the target color resource color.
一种可选的实施方式中,所述第三确定模块,在执行所述确定所述待处理图片中的待绘制区域对应的处理后的色彩之后,还用于:响应针对所述待绘制区域的色彩擦拭操作,按照预设的色值调整步长,对所述待绘制区域进行色彩浅化处理,得到色彩浅化处理后的目标图片。In an optional implementation manner, the third determination module is further configured to: respond to the According to the color wiping operation, the step size is adjusted according to the preset color value, and the color lightening process is performed on the area to be drawn, so as to obtain the target picture after the color lightening process.
一种可选的实施方式中,所述第三确定模块,在执行所述得到处理后的目标图片之后,还用于:在所述目标游戏的游戏场景中展示所述目标图片;或者,根据所述目标图片生成目标道具,并在所述目标游戏的游戏场景或装备列表中展示所述目标道具。In an optional implementation manner, the third determination module, after executing the processed target picture, is further configured to: display the target picture in the game scene of the target game; or, according to The target picture generates a target prop, and the target prop is displayed in the game scene or equipment list of the target game.
第三方面,本公开实施例还提供一种计算机设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当计算机设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行上述第一方面,或第一方面中任一种可选的实施方式中的步骤。In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processing The processor communicates with the memory through a bus, and when the machine-readable instructions are executed by the processor, the above-mentioned first aspect, or the steps in any optional implementation manner in the first aspect are performed.
第四方面,本公开实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行上述第一方面,或第一方 面中任一种可选的实施方式中的步骤。In the fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the above-mentioned first aspect, or the first aspect Steps in any of the optional implementations.
第五方面,本公开实施例还提供一种计算机程序,所述计算机程序被处理器运行时执行上述第一方面,或第一方面中任一种可选的实施方式中的步骤。In a fifth aspect, an embodiment of the present disclosure further provides a computer program, which executes the steps in the above first aspect or any optional implementation manner in the first aspect when the computer program is run by a processor.
第六方面,本公开实施例还提供一种计算机程序产品,所述计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述第一方面,或第一方面中任一种可选的实施方式中的步骤。In the sixth aspect, the embodiments of the present disclosure further provide a computer program product, the computer program product carries program code, and the instructions included in the program code can be used to execute the above-mentioned first aspect, or any one of the first aspects can be Steps in selected embodiments.
本公开实施例提供的交互方法,通过获取与目标游戏相关的待处理图片、以及绘制资源,并确定待处理图片中的待绘制区域,然后利用目标色彩资源对待绘制区域进行色彩处理,生成目标图片,从而能够根据玩家的自身需求,设计待处理图片,提高了游戏的交互性能;此外,玩家设计的目标图片可以作为游戏场景、或可以用于对游戏道具进行装饰,从而丰富了游戏场景、以及游戏道具的展示内容。The interactive method provided by the embodiment of the present disclosure obtains the image to be processed and the drawing resource related to the target game, determines the area to be drawn in the image to be processed, and then uses the target color resource to perform color processing on the area to be drawn to generate the target image , so that the picture to be processed can be designed according to the player's own needs, and the interactive performance of the game is improved; in addition, the target picture designed by the player can be used as the game scene, or can be used to decorate the game props, thereby enriching the game scene, and Display content of game props.
关于上述交互的装置、计算机设备、及计算机可读存储介质的效果描述参见上述交互方法的说明,这里不再赘述。For the effect description of the above-mentioned interaction device, computer equipment, and computer-readable storage medium, refer to the description of the above-mentioned interaction method, and details will not be repeated here.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. The accompanying drawings here are incorporated into the specification and constitute a part of the specification. The drawings show the embodiments consistent with the present disclosure, and are used together with the description to explain the technical solution of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those skilled in the art, they can also make From these drawings other related drawings are obtained.
图1示出了本公开实施例所提供的一种交互方法的流程图;FIG. 1 shows a flowchart of an interaction method provided by an embodiment of the present disclosure;
图2a示出了本公开实施例所提供的交互方法中,一种展示有包含多个可绘制区域的待处理图片的页面的示意图;Fig. 2a shows a schematic diagram of a page displaying a picture to be processed including multiple drawable areas in the interaction method provided by an embodiment of the present disclosure;
图2b示出了本公开实施例所提供的交互方法中,一种展示有待绘制区域的页面的示意图;Fig. 2b shows a schematic diagram of a page displaying an area to be drawn in an interaction method provided by an embodiment of the present disclosure;
图2c示出了本公开实施例所提供的交互方法中,一种展示有用户在待处理图片中连续滑动的页面的示意图;Fig. 2c shows a schematic diagram showing a page where the user continuously slides among the pictures to be processed in the interaction method provided by the embodiment of the present disclosure;
图2d示出了本公开实施例所提供的交互方法中,一种展示有可绘制区域b、以及可绘制区域b对应的交互判定区域的页面的示意图;Fig. 2d shows a schematic diagram of a page displaying a drawable area b and an interaction determination area corresponding to the drawable area b in the interaction method provided by an embodiment of the present disclosure;
图3a示出了本公开实施例所提供的交互方法中,一种目标色彩资源对应的、待绘制区域的图片资源的示意图;Fig. 3a shows a schematic diagram of an image resource of an area to be drawn corresponding to a target color resource in the interaction method provided by an embodiment of the present disclosure;
图3b示出了本公开实施例所提供的交互方法中,另一种目标色彩资源对应的、待绘制区域的图片资源的示意图;Fig. 3b shows a schematic diagram of an image resource of an area to be drawn corresponding to another target color resource in the interaction method provided by an embodiment of the present disclosure;
图3c示出了本公开实施例所提供的交互方法中,一种展示有目标图片的页面的示意图;Fig. 3c shows a schematic diagram of a page displaying a target picture in the interaction method provided by an embodiment of the present disclosure;
图4a示出了本公开实施例所提供的交互方法中,一种展示有在终端设备的倾斜角度为10度时,对待绘制区域进行色彩处理后的色彩的深浅程度页面的示意图;Fig. 4a shows a schematic diagram of a page showing the depth of the color after color processing is performed on the area to be drawn when the tilt angle of the terminal device is 10 degrees in the interaction method provided by the embodiment of the present disclosure;
图4b示出了本公开实施例所提供的交互方法中,一种展示有在终端设备的倾斜角度为30度时,对待绘制区域进行色彩处理后的色彩的深浅程度页面的示意图;Fig. 4b shows a schematic diagram of a page showing the depth of the color after color processing is performed on the area to be drawn when the tilt angle of the terminal device is 30 degrees in the interaction method provided by the embodiment of the present disclosure;
图5示出了本公开实施例所提供的一种交互装置的结构示意图;Fig. 5 shows a schematic structural diagram of an interaction device provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的一种计算机设备的示意图。Fig. 6 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only It is a part of the embodiments of the present disclosure, but not all of them. The components of the disclosed embodiments generally described and illustrated herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the claimed disclosure, but merely represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort shall fall within the protection scope of the present disclosure.
需要说明的是,本公开实施例涉及到的在目标游戏中应用交互方法对图片进行着色处理的场景仅是一种可能的实施场景,本公开实施例不限定应用场景,所有涉及对待处理图片进行绘制着色的场景都应在本公开的保护范围内。It should be noted that the application of the interaction method in the target game to colorize the picture involved in the embodiment of the present disclosure is only a possible implementation scenario. Rendering and rendering of scenes shall be within the protection scope of the present disclosure.
本公开实施例中的目标游戏可以包括多种类型的游戏,例如可以包括但不限于:第三人称视角射击游戏、第一人称视角射击游戏、角色扮演游戏、动作游戏、剧情类游戏、策略类游戏、格斗游戏、体育竞技类游戏、冒险游戏等,在此不做具体限制;一般目标游戏中对应有至少一个虚拟角色,虚拟角色可以在目标游戏场景中执行游戏设定任务,且各虚拟角色配置有至少一种装备道具;其中,虚拟角色例如可以包括但不限于虚拟人物、虚拟动物等中的至少一种;虚拟角色配置的装备道具例如可以包括但不限于服饰、器械、载具等中的至少一种,服饰比如可以包括但不限于帽子、长衫、长裙、外套、鞋子、裤子、玉佩、扇子、发簪等中的至少一种,器械比如可以包括但不限于刀、枪、剑、戟、斧、钺、钩、叉、炮弹等中的至少一种;载具比如可以包括但不限于马车、轿子、汽车等中的至少一种;此外,目标游戏场景中还可以设置有目标场景道具,该目标场景道具例如可以包括但不限于:为虚拟角色增加生命值的道具、技能道具等中的至少一种。The target game in the embodiments of the present disclosure may include various types of games, such as but not limited to: third-person perspective shooting games, first-person perspective shooting games, role-playing games, action games, plot games, strategy games, Fighting games, sports games, adventure games, etc., are not specifically limited here; generally, there is at least one virtual character corresponding to the target game, and the virtual character can perform game setting tasks in the target game scene, and each virtual character is configured with At least one kind of equipment props; Among them, the virtual character may include but not limited to at least one of virtual characters, virtual animals, etc.; the equipment props configured by the virtual character may include but not limited to at least one of clothing, equipment, vehicles, etc. One, clothing, for example, may include but not limited to at least one of hats, gowns, long skirts, coats, shoes, pants, jade pendants, fans, hairpins, etc. Equipment, for example, may include but not limited to knives, guns, swords, halberds , Axe, Tomahawk, Hook, Fork, Cannonball, etc.; vehicles such as but not limited to at least one of carriages, sedan chairs, cars, etc.; in addition, target scene props can also be set in the target game scene , the target scene props may include, but not limited to: at least one of props that increase the life value of the virtual character, skill props, and the like.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。另外,本公开实施例中的“/”可以被理解为其前后对象之间为和/或的关系。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. In addition, "/" in the embodiments of the present disclosure can be understood as an and/or relationship between objects before and after it.
为便于对本实施例进行理解,首先对本公开实施例所公开的一种交互方法进行详细介绍,本公开实施例所提供的交互方法的执行主体一般为具有一定计算能力的计算机设备。在一些可能的实现方式中,该交互方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of this embodiment, an interaction method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the interaction method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities. In some possible implementation manners, the interaction method may be implemented by the processor invoking computer-readable instructions stored in the memory.
下面对本公开实施例的交互方法做详细说明。The interaction method of the embodiment of the present disclosure will be described in detail below.
如图1所示,为本公开实施例提供的一种交互方法的流程图,所述主要包括以下步骤S101~S103:As shown in FIG. 1, it is a flow chart of an interaction method provided by an embodiment of the present disclosure, which mainly includes the following steps S101-S103:
S101、获取与目标游戏关联的待处理图片,并确定用户获取的绘制资源;所述绘制资源中包括色彩资源。S101. Obtain the image to be processed associated with the target game, and determine the drawing resources acquired by the user; the drawing resources include color resources.
其中,目标游戏关联的待处理图片例如可以包括目标游戏中任何符合用户绘制着色需求的图片;比如包括但不限于目标游戏场景关联的图片、目标场景道具关联的图片、 目标游戏中虚拟角色的装备道具对应的图片等中的至少一种;绘制资源用于对待处理图片进行绘制,该绘制资源可以包括色彩资源,色彩资源用于为待处理图片进行色彩处理,色彩资源例如可以包括但不限于:金粉、五彩粉末等岩料;在实施时,可以直接在目标游戏的游戏活动中获取到色彩资源,也可以通过在游戏活动中获取到的制作色彩资源的原材料和制作工具,利用制作工具对原材料进行加工,得到色彩资源,详见下述说明。需要说明的是,游戏活动指的是预先设定的目标游戏中的任务,可以根据实际游戏需求设定,此处不做具体限制。Among them, the picture to be processed associated with the target game may include, for example, any picture in the target game that meets the user's drawing and coloring requirements; for example, it includes but is not limited to the picture associated with the target game scene, the picture associated with the target scene prop, and the equipment of the virtual character in the target game. At least one of the picture corresponding to the prop; the drawing resource is used to draw the picture to be processed, and the drawing resource may include a color resource, which is used to perform color processing on the picture to be processed. For example, the color resource may include but not limited to: Gold powder, multicolored powder and other rock materials; during implementation, color resources can be obtained directly in the game activities of the target game, or through the raw materials and production tools for making color resources obtained in game activities, use the production tools to process the raw materials Perform processing to obtain color resources, see the following description for details. It should be noted that game activities refer to pre-set tasks in the target game, which can be set according to actual game needs, and no specific limitation is set here.
在具体实施中,待处理图片和绘制资源可以是在目标游戏中的同一游戏活动中获取到的,还可以是在不同游戏活动中获取到的,这里可以根据实际游戏需求设定,此处不做具体限制。In a specific implementation, the picture to be processed and the drawing resource can be obtained in the same game activity in the target game, or in different game activities. Here, it can be set according to the actual game requirements. Make specific restrictions.
示例性的,可以采用但不限于下述A1~A2中的至少一种方式,获取与目标游戏关联的待处理图片:Exemplarily, at least one of the following methods A1-A2 can be adopted, but not limited to, to obtain the image to be processed associated with the target game:
A1、获取用户在目标游戏中进行游戏活动时的游戏场景数据;基于游戏场景数据,生成与目标游戏场景和/或目标场景道具关联的待处理图片。A1. Obtain the game scene data when the user performs game activities in the target game; based on the game scene data, generate a picture to be processed associated with the target game scene and/or target scene props.
示例性的,待处理图片例如可以包括但不限于游戏活动中的精彩时刻对应的图片;在实施时,可以根据获取到的用户在目标游戏中进行游戏活动的游戏场景数据,确定满足预设精彩时刻条件的游戏场景数据,基于该满足预设精彩时刻条件的游戏场景数据,生成与目标游戏场景关联的待处理图片和/或目标场景道具关联的待处理图片,即游戏活动中的精彩时刻图片和/或游戏活动中精彩时刻对应的目标场景道具图片;其中,预设精彩时刻条件可以根据实际游戏需求设定,此处不做具体限制。Exemplarily, the pictures to be processed may include, but are not limited to, pictures corresponding to exciting moments in game activities; during implementation, it may be determined that the preset exciting moments are satisfied according to the acquired game scene data of the user performing game activities in the target game. The game scene data of time conditions, based on the game scene data satisfying the preset wonderful moment conditions, generate the picture to be processed associated with the target game scene and/or the picture to be processed associated with the props of the target scene, that is, the picture of the wonderful moment in the game activity And/or the target scene prop pictures corresponding to the exciting moments in the game activities; wherein, the preset exciting moment conditions can be set according to the actual game requirements, and there is no specific limitation here.
A2、确定用户在目标游戏中对应的虚拟角色的至少一种装备道具;根据至少一种装备道具中被选中的目标装备道具,生成与目标装备道具对应的待处理图片。A2. Determine at least one equipment item of the virtual character corresponding to the user in the target game; generate a picture to be processed corresponding to the target equipment item according to the selected target equipment item in the at least one equipment item.
示例性的,还可以确定用户在目标游戏中操控的虚拟角色具有的装备道具;响应于用户在虚拟角色的至少一种装备道具(即装备道具库)中选择目标装备道具,基于该目标装备道具,生成待处理图片;这里,该待处理图片可以为包括目标装备道具全部部件的图片,还可以是仅包括目标装备道具部分部件的图片。Exemplarily, it is also possible to determine the equipment props possessed by the virtual character manipulated by the user in the target game; , to generate a picture to be processed; here, the picture to be processed may be a picture including all parts of the target equipment prop, or a picture including only some parts of the target equipment prop.
在具体实施中,在通过上述A1~A2获取到与目标游戏关联的待处理图片后,可以确定用户获取的绘制资源,其中,获取绘制资源的方式可以包括但不限于B1~B4中的至少一种:In a specific implementation, after the pictures to be processed associated with the target game are obtained through the above-mentioned A1-A2, the drawing resources obtained by the user can be determined, wherein the way of obtaining the drawing resources can include but not limited to at least one of B1-B4 kind:
B1、在获取到待处理图片的游戏活动中,直接获取到绘制资源。B1. In the game activity in which the picture to be processed is obtained, the drawing resources are directly obtained.
B2、在与获取到待处理图片的游戏活动不同的游戏活动中,直接获取到绘制资源。B2. In a game activity different from the game activity that acquires the image to be processed, the drawing resource is directly acquired.
B3、在获取到待处理图片的游戏活动中,获取到用于对绘制资源进行制作的道具资源,以通过道具资源对绘制资源进行制作,从而获取到绘制资源。B3. In the game activity in which the picture to be processed is acquired, the prop resource used for making the drawing resource is obtained, and the drawing resource is produced through the prop resource, thereby obtaining the drawing resource.
B4、在与获取到待处理图片的游戏活动不同的游戏活动中,获取到用于对绘制资源进行制作的道具资源,以通过道具资源对绘制资源进行制作,从而获取到绘制资源。B4. In a game activity different from the game activity in which the picture to be processed is acquired, the prop resource used for making the drawing resource is obtained, so that the drawing resource is produced through the prop resource, thereby obtaining the drawing resource.
针对上述B3~B4所示的获取绘制资源的方式,在实施时,可以采用下述方式获取到绘制资源中包括的色彩资源:确定用户在目标游戏活动中获取的道具资源;响应于色彩资源制作请求,根据道具资源进行制作以获得色彩资源。For the methods of obtaining drawing resources shown in B3-B4 above, during implementation, the color resources included in the drawing resources can be obtained in the following ways: determine the prop resources acquired by the user in the target game activity; respond to the creation of color resources Request, make according to prop resources to obtain color resources.
其中,目标游戏活动可以是指目标游戏中特定的游戏任务,例如可以包括挖矿任务、制作工具任务等;目标游戏活动可以与获取待处理图片对应的游戏活动相同,也可以不同;这里,目标游戏可以根据实际游戏需求设定,此处不做具体限制;道具资源表示用来对绘制资源中包括的色彩资源进行制作的虚拟道具,可以包括制作色彩资源的原材料和/或制作工具,其中,原材料例如可以包括矿石、宝石等中的至少一种,制作工具例如可以包括研磨器材、打磨器材等中的至少一种;这里,用于制作色彩资源的原材料和制作工具可以根据实际游戏需求设定,此处不做具体限制。Wherein, the target game activity may refer to a specific game task in the target game, for example, it may include a mining task, a tool making task, etc.; the target game activity may be the same as or different from the game activity corresponding to the picture to be processed; here, the target The game can be set according to the actual game needs, and there is no specific limitation here; the prop resource refers to the virtual prop used to make the color resource included in the drawing resource, and may include raw materials and/or production tools for making the color resource, among which, For example, raw materials may include at least one of ores, gems, etc., and production tools may include at least one of grinding equipment, polishing equipment, etc.; here, the raw materials and production tools used to produce color resources can be set according to actual game needs , there is no specific limitation here.
示例性的,若用户操控虚拟角色在采矿打铁游戏活动中,采集到了用于制作色彩资源的矿石原材料、并制作了用于对矿石原材料进行研磨的研磨器材;则用户可以通过触发目标游戏场景中的色彩资源制作触控按钮,发起色彩资源制作请求,计算机设备(例如可以包括终端设备,下述不再赘述)在接收到色彩资源制作请求后,可以利用研磨器材,对矿石原材料进行研磨,从而得到色彩资源。Exemplarily, if the user manipulates the virtual character to collect ore raw materials for making color resources and make grinding equipment for grinding the ore raw materials in the mining and blacksmithing game; then the user can trigger the target game scene The color resource production touch button initiates a color resource production request. After receiving the color resource production request, computer equipment (such as terminal equipment, which will not be described in detail below) can use grinding equipment to grind ore raw materials, thereby Get the color resource.
承接上述S101,本公开实施例提供的交互方法还包括:Subsequent to the above S101, the interaction method provided by the embodiment of the present disclosure further includes:
S102、响应针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域。S102. Determine a region to be drawn in the picture to be processed in response to the drawing request for the picture to be processed.
其中,待处理图片中存在至少一个可绘制区域。Wherein, there is at least one drawable area in the picture to be processed.
在具体实施中,用户可以通过手动选择或圈定的方式,在待处理图片中的至少一个可绘制区域中,选择要进行绘制的待绘制区域,具体如下:响应针对待处理图片的绘制请求,展示多个可绘制区域;响应用户的触发操作或连续滑动操作,确定用户从多个可绘制区域中选择的至少一个待绘制区域。In a specific implementation, the user can manually select or delineate at least one drawable area in the picture to be processed, select the area to be drawn to be drawn, as follows: in response to the drawing request for the picture to be processed, display A plurality of drawable areas; in response to a user's trigger operation or continuous sliding operation, at least one area to be drawn selected by the user from the plurality of drawable areas is determined.
其中,触发操作和连续滑动操作均是用于在多个可绘制区域中,选择要进行绘制的待绘制区域的操作;触发操作可以包括但不限于单击、预设时间段内连击、长按等中的至少一种。Among them, the trigger operation and the continuous sliding operation are both operations for selecting an area to be drawn to be drawn in multiple drawable areas; the trigger operation may include but not limited to single click, continuous tap within a preset Press at least one of the following.
在具体实施中,可以通过高亮、为可绘制区域标注颜色、设置可绘制区域边界闪动或者设置可绘制区域整体闪动等突出显示方式,在待处理图片中指示出可绘制区域;另外,在用户从多个待绘制区域中选择至少一个待绘制区域后,可以将待处理图片中的各待绘制区域通过高亮、为待绘制区域标注颜色、设置待绘制区域边界闪动或者设置待绘制区域整体闪动等方式进行突出显示,以提示用户待绘制区域在待处理图片中的位置。In a specific implementation, the drawable area can be indicated in the picture to be processed by highlighting, marking the drawable area with a color, setting the border of the drawable area to flicker, or setting the drawable area to flicker as a whole; in addition, After the user selects at least one area to be drawn from multiple areas to be drawn, each area to be drawn in the picture to be processed can be highlighted, marked with a color for the area to be drawn, set to flash the boundary of the area to be drawn or set to be drawn The region is highlighted by flashing as a whole to remind the user of the position of the region to be drawn in the image to be processed.
在一种可能的实施方式中,待处理图片中包含的多个可绘制区域可以是能够被点选的,用户可以在多个可绘制区域中,通过点选的方式选择待绘制区域。In a possible implementation manner, the multiple drawable areas included in the picture to be processed may be clickable, and the user may select the area to be drawn by clicking among the multiple drawable areas.
示例性的,用户触发目标游戏场景中的绘制触控控件,发起绘制请求,计算机设备在接收到绘制请求后,响应针对待处理图片的绘制请求,展示该待处理图片中包含的多个可绘制区域;具体的展示有包含多个可绘制区域的待处理图片的页面可以如图2a所示,图2a中所示的待处理图片中包括3个可绘制区域,即太阳所在的可绘制区域a、小云朵所在的可绘制区域b、大云朵所在的可绘制区域c;用户在图2a中,点选可绘制区域b,计算机设备响应用户针对可绘制区域b的触发操作,将可绘制区域b作为待绘制区域;具体的展示有待绘制区域的页面可以如图2b所示,图2b中通过在待绘制区域边界添加虚线边框的方式,将待处理图片中的待绘制区域进行突出显示。Exemplarily, the user triggers the drawing touch control in the target game scene and initiates a drawing request. After receiving the drawing request, the computer device responds to the drawing request for the picture to be processed, and displays multiple drawables contained in the picture to be processed. Regions; specifically, a page showing a picture to be processed that includes multiple drawable areas can be shown in Figure 2a, and the picture to be processed shown in Figure 2a includes 3 drawable areas, that is, the drawable area a where the sun is located , the drawable area b where the small cloud is located, and the drawable area c where the big cloud is located; in Fig. As an area to be drawn; a specific page showing the area to be drawn can be shown in Figure 2b. In Figure 2b, the area to be drawn in the image to be processed is highlighted by adding a dotted border to the border of the area to be drawn.
在另一种可能的实施方式中,用户可以在展示的待处理图片中包含的多个可绘制区域中,通过连续滑动的方式,勾勒出要进行绘制的待绘制区域。In another possible implementation manner, the user may outline the area to be drawn to be drawn by continuously sliding among the multiple drawable areas contained in the displayed picture to be processed.
示例性的,用户根据图2a中展示的可绘制区域的边界指示,在图2a中连续滑动,具体的展示有用户在待处理图片中连续滑动的页面可以如图2c所示;在用户结束连续滑动操作后,根据用户连续滑动的轨迹,确定用户选择可绘制区域b,作为待绘制区域,具体的展示有待绘制区域的页面可以如图2b所示。Exemplarily, the user continuously slides in FIG. 2a according to the boundary indication of the drawable area shown in FIG. After the sliding operation, according to the track of the user's continuous sliding, it is determined that the user selects the drawable area b as the area to be drawn, and a specific page showing the area to be drawn can be shown in Figure 2b.
在具体实施中,在可绘制区域在待处理图片中占据的面积很小的情况下,用户可能无法精准地在很小的可绘制区域中选择出待绘制区域,为了避免用户的无效操作,让用户方便地圈选出要进行绘制的待绘制区域,本公开实施例中为可绘制区域设置对应的交互判定区域,在用户的触发操作或连续滑动操作位于交互判定区域中时,确定用户的触发操作或连续滑动操作作用在了该交互判定区域对应的可绘制区域上,并将该可绘制区域作为待绘制区域,具体的:根据待处理图片中的多个可绘制区域分别对应的交互判定区域,确定所述用户的触发操作或连续滑动操作所作用的目标交互判定区域;将确定的目标交互判定区域对应的可绘制区域作为待绘制区域。In the specific implementation, when the drawable area occupies a small area in the picture to be processed, the user may not be able to accurately select the area to be drawn in the small drawable area. In order to avoid invalid operations by the user, let The user conveniently selects the area to be drawn to be drawn. In the embodiment of the present disclosure, a corresponding interactive judgment area is set for the drawable area. When the user's trigger operation or continuous sliding operation is located in the interactive judgment area, the user's trigger operation is determined. The operation or continuous sliding operation acts on the drawable area corresponding to the interactive judgment area, and takes the drawable area as the area to be drawn, specifically: according to the interactive judgment area corresponding to the multiple drawable areas in the picture to be processed , determining the target interaction determination area on which the user's trigger operation or continuous sliding operation acts; and using the drawable area corresponding to the determined target interaction determination area as the area to be drawn.
为了更好地表达各个交互判定区域及其对应的可绘制区域,作为一种图片信息的存储方式,可以采用通道图;其中,通道图中的每个像素点一般由红色(Red,R)、绿色(Green,G)、蓝色(Blue,B)这三个通道的色值表示,本公开实施例中通过将待处理图片转换为通道图,通道图中各个交互判定区域中对应的R/G/B三个通道中任意两个通道的数值设为0、剩余一个通道的数值设置为[5,255]这个范围内的值,也即各个交互判定区域采用纯色表征,相邻交互判定区域的色值不为0的通道不同,另外,交互判定区域中的可绘制区域的色值(这里的色值指的是没有设置为0色值的通道的色值)大于该交互判定区域中的区域的色值,比如,可绘制区域的色值设置为255,交互判定区域的其它区域的色值设置为小于255。以此来区分待处理图片中的各个交互判定区域、以及区分交互判定区域和可绘制区域;示例性的,对应色值大于或等于5时,表征该区域为交互判定区域;对应色值为255时,表征该区域为交互判定区域中的可绘制区域。In order to better express each interaction determination area and its corresponding drawable area, as a storage method of image information, a channel map can be used; where each pixel in the channel map is generally composed of red (Red, R), The color values of the three channels of green (Green, G) and blue (Blue, B) indicate that in the embodiment of the present disclosure, by converting the picture to be processed into a channel map, the corresponding R/ The value of any two channels in the three channels of G/B is set to 0, and the value of the remaining channel is set to a value in the range of [5, 255], that is, each interactive judgment area is represented by a solid color, and the adjacent interactive judgment area The channel whose color value is not 0 is different. In addition, the color value of the drawable area in the interactive judgment area (the color value here refers to the color value of the channel that is not set to 0 color value) is greater than the color value of the interactive judgment area The color value of the area, for example, the color value of the drawable area is set to 255, and the color value of other areas in the interactive judgment area is set to be less than 255. In this way, each interaction determination area in the picture to be processed is distinguished, and the interaction determination area and the drawable area are distinguished; for example, when the corresponding color value is greater than or equal to 5, it indicates that the area is an interaction determination area; the corresponding color value is 255 , characterizes the area as a drawable area in the interactive judgment area.
比如,待处理图片中一个可绘制区域对应的交互判定区域的外围扩展部分在通道图中R/G/B对应的数值为88/0/0,该交互判定区域中的可绘制区域对应的通道图中R/G/B对应的数值为255/0/0;再比如待处理图片中一个可绘制区域对应的交互判定区域的外围扩展部分在通道图中对应的R/G/B数值为0/60/0,而该交互判定区域中的可绘制区域在通道图中R/G/B值为0/255/0;再比如,待处理图片中一个可绘制区域对应的交互判定区域的外围扩展部分在通道图中R/G/B数值为0/0/186,而其中的可绘制区域在通道图中的R/G/B数值为0/0/255。For example, the peripheral extension of the interactive judgment area corresponding to a drawable area in the picture to be processed corresponds to the value 88/0/0 in the channel diagram R/G/B, and the channel corresponding to the drawable area in the interactive judgment area The value corresponding to R/G/B in the figure is 255/0/0; for another example, the peripheral extension of the interactive judgment area corresponding to a drawable area in the image to be processed corresponds to the R/G/B value in the channel graph as 0 /60/0, and the drawable area in the interactive judgment area has an R/G/B value of 0/255/0 in the channel diagram; for another example, the periphery of the interactive judgment area corresponding to a drawable area in the image to be processed The R/G/B value of the extension part is 0/0/186 in the channel map, and the R/G/B value of the drawable area in the channel map is 0/0/255.
示例性的,图2a中的三个可绘制区域;若图2a中的可绘制区域b对应的交互判定区域的的外围扩展部分在通道图中R/G/B对应的数值为55/0/0、可绘制区域b在通道图中R/G/B对应的数值为255/0/0,则具体的展示页面可以如图2d所示,图2d中通过为交互判定区域、以及可绘制区域分别添加线条阴影的方式,进行突出显示。Exemplarily, there are three drawable areas in Figure 2a; if the peripheral extension of the interactive judgment area corresponding to drawable area b in Figure 2a corresponds to R/G/B in the channel diagram, the value is 55/0/ 0. The value corresponding to R/G/B of the drawable area b in the channel diagram is 255/0/0, then the specific display page can be shown in Figure 2d. In Figure 2d, it is the interactive judgment area and the drawable area Highlighting is done by adding line shading separately.
用户在图2d中发起针对可绘制区域b的交互判定区域的触发操作,计算机设备确定用户的触发操作作用的为可绘制区域b,将可绘制区域b作为待绘制区域;具体的展示有待绘制区域的页面可以如图2b所示。In Figure 2d, the user initiates a trigger operation for the interactive judgment area of the drawable area b, and the computer device determines that the user's trigger operation acts on the drawable area b, and takes the drawable area b as the area to be drawn; the specific display area to be drawn The page of can be as shown in Figure 2b.
承接上述S102,本公开实施例提供的交互方法还包括:Subsequent to the above S102, the interaction method provided by the embodiment of the present disclosure further includes:
S103、根据所述用户选中的目标色彩资源,确定所述待处理图片中的所述待绘制区域对应的处理后色彩,以得到处理后的目标图片。S103. According to the target color resource selected by the user, determine the processed color corresponding to the region to be drawn in the picture to be processed, so as to obtain a processed target picture.
在具体实施中,基于上述S102确定待处理图片中的待绘制区域后,可以根据用户在多种色彩资源中,选择的目标色彩资源,对待绘制区域进行色彩处理,以为待处理图片中的待绘制区域上色,生成处理后的目标图片。In a specific implementation, after the area to be drawn in the picture to be processed is determined based on the above S102, color processing may be performed on the area to be drawn according to the target color resource selected by the user among various color resources, so as to make the area to be drawn in the picture to be processed The region is colored to generate the processed target image.
在具体实施中,对待绘制区域进行色彩处理,以为待处理图片中的待绘制区域上色,可以是直接对待绘制区域进行色彩的处理,也可以是采用与目标色彩资源对应的、待绘制区域的图片资源,来替换待绘制区域的原始图片内容,也即进行图片资源的处理。In a specific implementation, color processing is performed on the area to be drawn to color the area to be drawn in the picture to be processed, which can be directly color-processing the area to be drawn, or using the color of the area to be drawn corresponding to the target color resource Image resources, to replace the original image content of the area to be drawn, that is, to process image resources.
这里,与目标色彩资源对应的、待绘制区域的图片资源,可以是针对待处理图片中的待绘制区域进行与目标色彩资源对应的色彩处理后得到的。比如,一种利用绿色色彩对待处理图片中的待绘制区域进行色彩处理后的图片资源(如图3a所示,图3a中通过在可绘制区域b中添加线条阴影的方式,表示利用绿色色彩对待处理图片中的待绘制区域进行色彩处理后的图片资源);另一种利用蓝色色彩对待处理图片中的待绘制区域进行色彩处理后的图片资源(如图3b所示,图3b中通过在可绘制区域b中添加圆点阴影的方式,表示利用蓝色色彩对待处理图片中的待绘制区域进行色彩处理后的图片资源)。Here, the picture resource of the region to be drawn corresponding to the target color resource may be obtained after color processing corresponding to the target color resource is performed on the region to be drawn in the picture to be processed. For example, a picture resource that uses green color to color-process the area to be drawn in the picture to be processed (as shown in Figure 3a, in Figure 3a, by adding line shadows in the drawable area b, it means that the area to be drawn is treated with green color The picture resource after the color processing of the area to be drawn in the processing picture); another picture resource after color processing of the area to be drawn in the picture to be processed by using blue color (as shown in Figure 3b, in Figure 3b by The method of adding dot shadows in the drawable area b represents an image resource after color processing is performed on the area to be drawn in the image to be processed using blue color).
示例性的,若目标色彩资源对应的、待绘制区域的图片资源如图3b所示,则利用图3b中目标色彩资源对应的、待绘制区域的图片资源,对图2b~图2d中任一所示的待绘制区域(即可绘制区域b)进行色彩处理时,则可以利用图3b的图片资源,替换图2b~图2d中任一所示的待绘制区域对应的图片资源,进行替换后的目标图片可以如图3c所示。Exemplarily, if the image resource of the area to be drawn corresponding to the target color resource is as shown in Figure 3b, then use the image resource of the area to be drawn corresponding to the target color resource in Figure 3b, to any of Figures 2b to 2d When color processing is performed on the area to be drawn (i.e., area b to be drawn) as shown, the image resource in Figure 3b can be used to replace the image resource corresponding to the area to be drawn in any of Figures 2b to 2d, and after replacement The target picture of can be shown in Figure 3c.
举例来说,在对待绘制区域进行色彩的处理时,可以通过下述C1~C3,对待处理图片中的待绘制区域进行色彩处理:For example, when performing color processing on the area to be drawn, the following C1-C3 can be used to perform color processing on the area to be drawn in the image to be processed:
C1、先将待处理图片中的待绘制区域在进行色彩处理前对应的第一色彩,按照预设的色值调整步长进行色彩浅化处理,得到色彩浅化处理后的待绘制区域,然后利用用户选中的目标色彩资源对应的第二色彩,对色彩浅化处理后的待绘制区域进行上色处理,即将待绘制区域对应的色彩浅化处理后的色彩与第二色彩进行融合,将融合后的色彩确定为待绘制区域对应的处理后的色彩。C1. First, lighten the first color corresponding to the area to be drawn in the picture to be processed before color processing, according to the preset color value adjustment step, and obtain the area to be drawn after the color lightening process, and then Use the second color corresponding to the target color resource selected by the user to color the area to be drawn after the lightening process, that is, to fuse the lightened color corresponding to the area to be drawn with the second color, and merge The processed color is determined as the processed color corresponding to the area to be drawn.
其中,预设的色值调整步长用于表示对待绘制区域进行色彩浅化处理时,每次擦拭掉的色值;比如,可以包括每次擦拭掉10个色值,具体的预设色值调整步长可以根据实际游戏需求设定,此处不做具体限制,下述不再赘述。Among them, the preset color value adjustment step is used to represent the color value that is wiped off each time when the area to be drawn is lightened; for example, it can include 10 color values to be wiped off each time, the specific preset color value The adjustment step can be set according to the actual game requirements, and there is no specific limitation here, and will not be described in detail below.
C2、获取待处理图片中的待绘制区域在进行色彩处理前的第一色彩;基于第一色彩和目标色彩资源对应的第二色彩,确定待绘制区域对应的融合处理后的第三色彩。C2. Obtain the first color of the area to be drawn in the image to be processed before color processing; based on the first color and the second color corresponding to the target color resource, determine the third color after fusion processing corresponding to the area to be drawn.
具体的,利用目标色彩资源对应的第二色彩,对第一色彩的待绘制区域进行上色,将第一色彩和第二色彩进行融合,将融合后的第三色彩确定为待绘制区域对应的处理后的色彩。Specifically, use the second color corresponding to the target color resource to color the area to be drawn in the first color, fuse the first color and the second color, and determine the fused third color as the area corresponding to the area to be drawn. Color after processing.
在一种可能的实施方式中,在目标色彩资源对应的第二色彩与第一色彩相同的情况下,可以在第一色彩的基础上加深;比如,待绘制区域的第一色彩为红色、对应的通道值为80/0/0,目标色彩资源对应的第二色彩也为红色、对应的通道值为30/0/0,则利用第一色彩和第二色彩融合后的第三色彩,融合处理后得到的第三色彩对应的通道值为 110/0/0,对待绘制区域进行色彩处理,即是在待绘制区域原本的红色基础上加深,将通道值为110/0/0的第三色彩作为待绘制区域对应的处理后的色彩。In a possible implementation, when the second color corresponding to the target color resource is the same as the first color, it can be deepened on the basis of the first color; for example, the first color of the area to be drawn is red, and the corresponding The channel value of the target color resource is 80/0/0, the second color corresponding to the target color resource is also red, and the corresponding channel value is 30/0/0, then use the third color after the fusion of the first color and the second color to fuse The channel value corresponding to the third color obtained after processing is 110/0/0, and the color processing is performed on the area to be drawn, that is, the original red color of the area to be drawn is deepened, and the third color with a channel value of 110/0/0 The color is the processed color corresponding to the region to be drawn.
在目标色彩资源对应的第二色彩与第一色彩不相同的情况下,可以生成第一色彩和第二色彩的融合色彩,比如,待绘制区域的第一色彩为红色、对应的通道值为80/0/0,目标色彩资源对应的第二色彩为绿色、对应的通道值为0/30/0,则利用第一色彩和第二色彩融合后的第三色彩,融合处理后得到的第三色彩对应的通道值可以为80/30/0。In the case that the second color corresponding to the target color resource is different from the first color, a fusion color of the first color and the second color can be generated, for example, the first color of the area to be drawn is red, and the corresponding channel value is 80 /0/0, the second color corresponding to the target color resource is green, and the corresponding channel value is 0/30/0, then use the third color after the fusion of the first color and the second color, and the third color obtained after fusion processing The channel value corresponding to the color can be 80/30/0.
C3、根据用户在绘制资源中选中的目标色彩资源,确定待绘制区域对应的第二色彩,采用第二色彩替换待绘制区域在进行色彩处理前的第一色彩。C3. Determine the second color corresponding to the area to be drawn according to the target color resource selected by the user in the drawing resources, and use the second color to replace the first color in the area to be drawn before color processing.
具体的,利用目标色彩资源对应的第二色彩,替换待绘制区域的第一色彩,即将目标色彩资源的第二色彩确定为待绘制区域对应的处理后的色彩。Specifically, the first color of the area to be drawn is replaced with the second color corresponding to the target color resource, that is, the second color of the target color resource is determined as the processed color corresponding to the area to be drawn.
在具体实施中,在用户选中多种目标色彩资源的情况下,根据多种目标色彩资源的使用先后顺序,确定多种目标色彩资源对应的融合处理后的色彩;将融合处理后的色彩确定为目标色彩资源对应的第二色彩。In the specific implementation, when the user selects multiple target color resources, according to the order of use of the multiple target color resources, the color after fusion processing corresponding to the multiple target color resources is determined; the color after fusion processing is determined as The secondary color corresponding to the target color resource.
这里,多种目标色彩资源的使用先后顺序不同,可以影响融合处理后的色彩,也即的叠加顺序,可以使得融合处理后的色彩体现不同。Here, the use order of the various target color resources is different, which may affect the color after fusion processing, that is, the superimposition order of the color, which may make the color expression after fusion processing different.
在具体实施中,采用上述C1~C3中的至少一种,对待绘制区域进行色彩处理后,还可以再次对进行色彩处理后的待绘制区域进行绘制,具体的可以响应针对已绘制区域的再次绘制请求,根据用户当前选中的目标色彩资源,对已绘制区域进行色彩处理,确定已绘制区域再次绘制后的色彩,以得到重新处理后的目标图片。In a specific implementation, at least one of the above-mentioned C1-C3 is used, and after the color processing is performed on the area to be drawn, the area to be drawn after the color processing can also be drawn again, specifically in response to the redrawing of the area that has been drawn Request to perform color processing on the drawn area according to the target color resource currently selected by the user, and determine the color of the drawn area after redrawing, so as to obtain the reprocessed target image.
此处,在对进行色彩处理后的待绘制区域进行再次绘制时,依旧可以将进行色彩处理后的待绘制区域作为新的待绘制区域,并采用上述C1~C3中的至少一种方式,对新的待绘制区域进行色彩处理。Here, when redrawing the area to be drawn after color processing, the area to be drawn after color processing can still be used as a new area to be drawn, and at least one of the above methods C1-C3 is used to Colorize the new area to be drawn.
在具体实施中,在确定待处理图片中的待绘制区域对应的处理后的色彩时,可以根据用户使用的运行目标游戏的终端设备的运动属性信息,确定待绘制区域对应的处理后的色彩的深浅程度。In a specific implementation, when determining the processed color corresponding to the area to be drawn in the picture to be processed, the color of the processed color corresponding to the area to be drawn can be determined according to the motion attribute information of the terminal device used by the user to run the target game. depth.
其中,运行目标游戏的终端设备的运动属性信息可能会在一定程度上影响利用目标色彩资源对应的第二色彩,对待绘制区域进行色彩处理时的上色深浅程度;运动属性信息例如可以包括但不限于:终端设备倾斜的方向和/或角度、终端设备倾斜的时间、终端设备被摇动的次数等中的至少一种。Among them, the motion attribute information of the terminal device running the target game may affect to a certain extent the color depth of the area to be drawn when using the second color corresponding to the target color resource; the motion attribute information may include but not It is limited to at least one of: the direction and/or angle of the terminal device being tilted, the time when the terminal device is tilted, the number of times the terminal device is shaken, and the like.
具体的,在利用用户选中的目标色彩资源对应的第二色彩,对待处理图片中的待绘制区域进行色彩处理时,终端设备倾斜的方向/终端设备倾斜的角度/终端设备倾斜的时间/终端被摇动的次数,均会影响目标色彩资源在对待绘制区域进行绘制时的流出,一般终端设备倾斜的方向/终端设备倾斜的角度/终端设备倾斜的时间/终端被摇动的次数,与对待绘制区域进行色彩处理后的色彩的深浅程度呈正相关,比如,用户调整终端设备倾斜的方向逐渐靠近与地面所在水平面垂直的方向时,目标色彩资源流出逐渐增多,确定对待绘制区域进行色彩处理后的色彩逐渐变深,反之逐渐变浅;用户调整终端设备的倾斜角度逐渐变大,则目标色彩资源流出逐渐增多,确定对待绘制区域进行色彩处理后的色彩逐渐变深,反之逐渐变浅;用户调整终端设备的倾斜时间逐渐增长,则目标色彩资源流出逐渐增多,确定对待绘制区域进行色彩处理后的色彩逐渐变深,反之逐渐变浅;用户 调整终端设备被摇动的次数逐渐增多,则目标色彩资源流出逐渐增多,确定对待绘制区域进行色彩处理后的色彩逐渐变深,反之逐渐变浅。Specifically, when using the second color corresponding to the target color resource selected by the user to perform color processing on the area to be drawn in the picture to be processed, the direction in which the terminal device is tilted/the angle at which the terminal device is tilted/the time when the terminal device is tilted/the terminal is The number of shakes will affect the outflow of the target color resource when drawing the area to be drawn. Generally, the direction of terminal device tilt/angle of terminal device tilt/time of terminal device tilt/number of times the terminal is shaken is related to the area to be drawn. The depth of the color after color processing is positively correlated. For example, when the user adjusts the tilt direction of the terminal device to gradually approach the direction perpendicular to the horizontal plane where the ground is located, the outflow of target color resources gradually increases, and the color after color processing of the area to be drawn is determined to gradually change. If the user adjusts the inclination angle of the terminal device to become larger gradually, the outflow of target color resources will gradually increase, and the color after the color processing of the area to be drawn is determined to gradually become darker, otherwise it will gradually become lighter; the user adjusts the inclination angle of the terminal device As the tilting time increases gradually, the outflow of target color resources gradually increases, and the color after the color processing of the area to be drawn is determined to gradually become darker, otherwise it gradually becomes lighter; the number of times the user adjusts the terminal device and is shaken gradually increases, and the outflow of target color resources gradually increases , it is determined that the color of the area to be drawn will gradually become darker after color processing, and vice versa.
示例性的,在利用用户选中的目标色彩资源对应的第二色彩,对图2b~图2d的中任一所示的待处理图片中的待绘制区域(即可绘制区域b)进行色彩处理时,若用户a控制终端设备与地面所在水平面之间的倾斜角度为10度,则确定待绘制区域进行色彩处理后的色彩相对较浅;具体的图4a中示出终端设备与地面所在水平面之间的倾斜角度10度,还通过在图4a中的待绘制区域中添加线条阴影的方式,表示出待绘制区域的色彩的深浅程度;若用户a控制终端设备与地面所在水平面之间的倾斜角度为30度,则确定待绘制区域进行色彩处理后的色彩比图4a中待绘制区域进行色彩处理后的色彩深;具体的图4b中示出终端设备与地面所在水平面之间的倾斜角度30度,还通过在图4b中的待绘制区域中添加线条阴影的方式,表示出待绘制区域的色彩的深浅程度,这里图4b中待绘制区域中的线条阴影数量比图4a多,以此示出图4b中的待绘制区域的色彩比图4a中的待绘制区域的色彩深。Exemplarily, when using the second color corresponding to the target color resource selected by the user to perform color processing on the area to be drawn (i.e., the area to be drawn) in any of the pictures to be processed shown in Figure 2b to Figure 2d , if user a controls the inclination angle between the terminal device and the horizontal plane where the ground is located to be 10 degrees, it is determined that the color of the area to be drawn is relatively light after color processing; the specific figure 4a shows the distance between the terminal device and the horizontal plane where the ground is located The inclination angle of the area to be drawn is 10 degrees, and the depth of the color of the area to be drawn is indicated by adding line shadows in the area to be drawn in Figure 4a; if user a controls the inclination angle between the terminal device and the horizontal plane where the ground is 30 degrees, it is determined that the color of the area to be drawn after color processing is darker than the color of the area to be drawn after color processing in Figure 4a; specifically Figure 4b shows that the inclination angle between the terminal device and the horizontal plane where the ground is located is 30 degrees, Also by adding line shadows in the area to be drawn in Figure 4b, it shows the depth of the color of the area to be drawn, where the number of line shadows in the area to be drawn in Figure 4b is more than that in Figure 4a, thus showing the The color of the area to be painted in 4b is darker than the color of the area to be painted in Figure 4a.
在具体实施中,确定待处理图片中待绘制区域对应的处理后的色彩之后,可以将对待绘制区域进行色彩处理后的图片,作为目标图片;还可以再对待绘制区域对应的处理后的色彩进行浅化处理,将浅化处理后的图片作为目标图片。In a specific implementation, after determining the processed color corresponding to the area to be drawn in the picture to be processed, the picture after the color processing of the area to be drawn can be used as the target picture; Shallow processing, using the lightened image as the target image.
具体的,响应针对待绘制区域的色彩擦拭操作,按照预设的色值调整步长,对待绘制区域进行色彩浅化处理,得到色彩浅化处理后的目标图片。Specifically, in response to the color wiping operation on the area to be drawn, the step size is adjusted according to the preset color value, and the color lightening process is performed on the area to be drawn, so as to obtain the target image after the color lightening process.
示例性的,若预设的色彩调整步长包括每擦拭一次色值减10,若用户对待绘制区域擦拭了3次,则需要将待绘制区域对应的处理后的色彩对应的色值减30,从而得到色彩浅化处理后的目标图片。Exemplarily, if the preset color adjustment step includes subtracting 10 from the color value every time you wipe, and if the user wipes the area to be drawn 3 times, you need to subtract 30 from the color value corresponding to the processed color corresponding to the area to be drawn. In this way, the target image after color lightening processing is obtained.
在具体实施中,在得到处理后的目标图片后,可以在目标游戏的游戏场景中展示目标图片;或者,根据目标图片生成目标道具,并在目标游戏的游戏场景或装备列表中展示目标道具。In a specific implementation, after the processed target picture is obtained, the target picture can be displayed in the game scene of the target game; or, the target prop is generated according to the target picture, and the target prop is displayed in the game scene or equipment list of the target game.
其中,装备列表用于展示多个装备道具,用户可以通过购买或被他人赠送等方式,获取到装备列表中的任一装备道具;目标道具例如可以包括装备列表中用户已经获得的装备道具,还可以包括装备列表中用户未获得的装备道具,具体的目标道具可以根据实际游戏需求设定,此处不做具体限制。Among them, the equipment list is used to display multiple equipment items, and the user can obtain any equipment item in the equipment list by purchasing or being presented by others; It can include equipment items that the user has not obtained in the equipment list, and the specific target items can be set according to actual game needs, and there is no specific limitation here.
示例性的,在生成目标图片后,可以将目标图片作为用户自己添加游戏场景,并直接展示;还可以将目标图片作为目标道具上的装饰,将目标图片贴在目标道具,生成装饰后的目标道具,并在游戏场景中直接将装饰后的目标道具展示给用户,或将装饰后的目标道具放置在装备列表中,供用户直接使用/购买后使用。Exemplarily, after the target picture is generated, the target picture can be used as a game scene added by the user and displayed directly; the target picture can also be used as a decoration on the target prop, and the target picture can be pasted on the target prop to generate a decorated target props, and directly display the decorated target props to the user in the game scene, or place the decorated target props in the equipment list for the user to use directly/after purchase.
本公开实施例中,通过获取与目标游戏相关的待处理图片、以及绘制资源,并确定待处理图片中的待绘制区域,然后利用目标色彩资源对待绘制区域进行色彩处理,生成目标图片,从而能够根据玩家的自身需求,设计待处理图片,提高了游戏的交互性能;此外,玩家设计的目标图片可以作为游戏场景、或可以对游戏道具进行装饰,从而丰富了游戏场景、以及游戏道具的展示内容。In the embodiment of the present disclosure, by acquiring the picture to be processed and the drawing resource related to the target game, and determining the area to be drawn in the picture to be processed, and then using the target color resource to perform color processing on the area to be drawn, the target picture can be generated. According to the player's own needs, the picture to be processed is designed to improve the interactive performance of the game; in addition, the target picture designed by the player can be used as the game scene or can be used to decorate the game props, thus enriching the display content of the game scene and game props .
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功 能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of specific implementation, the writing order of each step does not mean a strict execution order and constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The inner logic is OK.
基于同一发明构思,本公开实施例中还提供了与交互方法对应的交互装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present disclosure also provides an interaction device corresponding to the interaction method. Since the problem-solving principle of the device in the embodiment of the present disclosure is similar to the above-mentioned method in the embodiment of the present disclosure, the implementation of the device can refer to the method. implementation, the repetition will not be repeated.
如图5所示,为本公开实施例提供的一种交互装置500示意图,包括:As shown in FIG. 5 , it is a schematic diagram of an interaction device 500 provided by an embodiment of the present disclosure, including:
第一确定模块501,用于获取与目标游戏关联的待处理图片,并确定用户获取的绘制资源;所述绘制资源中包括色彩资源。The first determination module 501 is configured to acquire the picture to be processed associated with the target game, and determine the drawing resources obtained by the user; the drawing resources include color resources.
第二确定模块502,用于响应于针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域。The second determining module 502 is configured to determine a region to be drawn in the picture to be processed in response to a drawing request for the picture to be processed.
第三确定模块503,用于根据所述用户选中的目标色彩资源,确定所述待处理图片中的所述待绘制区域对应的处理后色彩,以得到处理后的目标图片。The third determining module 503 is configured to determine the processed color corresponding to the area to be drawn in the image to be processed according to the target color resource selected by the user, so as to obtain a processed target image.
一种可选的实施方式中,第一确定模块501,在执行所述确定用户获取的绘制资源时,具体用于:确定所述用户在目标游戏活动中获取的道具资源;所述道具资源包括制作所述色彩资源的原材料和/或制作工具;响应于色彩资源制作请求,根据所述道具资源进行制作以获得所述色彩资源。In an optional implementation manner, the first determining module 501, when performing the determination of the drawing resources acquired by the user, is specifically configured to: determine the prop resources acquired by the user in the target game activity; the prop resources include Making raw materials and/or making tools of the color resource; in response to a color resource making request, making according to the prop resource to obtain the color resource.
一种可选的实施方式中,第一确定模块501,在执行所述获取与目标游戏关联的待处理图片时,具体用于:获取所述用户在所述目标游戏中进行游戏活动时的游戏场景数据;基于所述游戏场景数据,生成与目标游戏场景和/或目标场景道具关联的所述待处理图片。In an optional implementation manner, the first determining module 501, when performing the acquiring of the pending pictures associated with the target game, is specifically configured to: acquire the game information when the user performs game activities in the target game. Scene data: based on the game scene data, generate the picture to be processed associated with the target game scene and/or target scene props.
一种可选的实施方式中,第一确定模块501,在执行所述获取与目标游戏关联的待处理图片时,具体用于:确定所述用户在所述目标游戏中对应的虚拟角色的至少一种装备道具;根据所述至少一种装备道具中被选中的目标装备道具,生成与所述目标装备道具对应的所述待处理图片。In an optional implementation manner, the first determination module 501 is specifically configured to: determine at least An equipment item; generating the picture to be processed corresponding to the target equipment item according to the selected target equipment item in the at least one type of equipment item.
一种可选的实施方式中,第二确定模块502,在执行所述响应针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域时,具体用于:响应针对所述待处理图片的所述绘制请求,展示多个可绘制区域;响应所述用户的触发操作或连续滑动操作,确定所述用户从所述多个可绘制区域中选择的至少一个待绘制区域。In an optional implementation manner, the second determination module 502, when executing the response to the drawing request for the picture to be processed and determining the area to be drawn in the picture to be processed, is specifically configured to: respond to the drawing request for the picture to be processed displaying a plurality of drawable areas according to the drawing request of the image to be processed; and determining at least one area to be drawn selected by the user from the plurality of drawable areas in response to the user's trigger operation or continuous sliding operation.
一种可选的实施方式中,第二确定模块502,在执行所述响应所述用户的触发操作或连续滑动操作,确定所述用户从所述多个可绘制区域中选择的至少一个待绘制区域时,具体用于:根据所述待处理图片中的所述多个可绘制区域分别对应的交互判定区域,确定所述用户的触发操作或连续滑动操作所作用的目标交互判定区域;将确定的所述目标交互判定区域对应的可绘制区域作为所述待绘制区域。In an optional implementation manner, the second determination module 502 determines at least one drawable area selected by the user from the plurality of drawable areas when performing the trigger operation or continuous sliding operation in response to the user. In the area, it is specifically used to: determine the target interaction determination area on which the user's trigger operation or continuous sliding operation acts according to the interaction determination areas corresponding to the plurality of drawable areas in the picture to be processed; The drawable area corresponding to the target interaction determination area is used as the area to be drawn.
一种可选的实施方式中,第三确定模块503,在执行所述确定所述待处理图片中的待绘制区域对应的处理后的色彩时,具体用于:根据所述用户使用的运行所述目标游戏的终端设备的运动属性信息,确定所述待绘制区域对应的处理后的色彩的深浅程度;其中,所述运动属性信息包括以下至少一种:所述终端设备倾斜的方向和/或角度;所述终端设备倾斜的时间;所述终端设备被摇动的次数。In an optional implementation manner, the third determination module 503, when performing the determination of the processed color corresponding to the area to be drawn in the image to be processed, is specifically configured to: The motion attribute information of the terminal device of the target game, to determine the depth of the processed color corresponding to the area to be drawn; wherein, the motion attribute information includes at least one of the following: the direction in which the terminal device is tilted and/or angle; the time the terminal device is tilted; the number of times the terminal device is shaken.
一种可选的实施方式中,第三确定模块503,在执行所述根据用户在所述绘制资源中选中的目标色彩资源,确定所述待处理图片中的待绘制区域对应的处理后的色彩时,具体用于:获取所述待处理图片中的所述待绘制区域在进行色彩处理前的第一色彩;基于 所述第一色彩和所述目标色彩资源对应的第二色彩,确定所述待绘制区域对应的融合处理后的第三色彩;或者,根据所述用户在所述绘制资源中选中的目标色彩资源,确定所述待绘制区域对应的第二色彩,采用所述第二色彩替换所述待绘制区域在进行色彩处理前的第一色彩。In an optional implementation manner, the third determining module 503 determines the processed color corresponding to the area to be drawn in the picture to be processed according to the target color resource selected by the user in the drawing resource , it is specifically used to: obtain the first color of the region to be drawn in the picture to be processed before color processing; determine the color based on the first color and the second color corresponding to the target color resource The fused third color corresponding to the area to be drawn; or, according to the target color resource selected by the user in the drawing resources, determine the second color corresponding to the area to be drawn, and use the second color to replace The first color of the area to be drawn before color processing.
一种可选的实施方式中,第三确定模块503,在执行根据以下步骤确定目标色彩资源对应的第二色彩时,具体用于:在所述用户选中多种目标色彩资源的情况下,根据所述多种目标色彩资源的使用先后顺序,确定所述多种目标色彩资源对应的融合处理后的色彩;将所述融合处理后的色彩确定为所述目标色彩资源对应的所述第二色彩。In an optional implementation manner, the third determination module 503 is specifically configured to determine the second color corresponding to the target color resource according to the following steps: when the user selects multiple target color resources, according to The order of use of the multiple target color resources is to determine the fused color corresponding to the multiple target color resources; and determine the fused color as the second color corresponding to the target color resource .
一种可选的实施方式中,第三确定模块503,在执行所述确定所述待处理图片中的待绘制区域对应的处理后的色彩之后,还用于:响应针对所述待绘制区域的色彩擦拭操作,按照预设的色值调整步长,对所述待绘制区域进行色彩浅化处理,得到色彩浅化处理后的目标图片。In an optional implementation manner, the third determination module 503, after performing the determination of the processed color corresponding to the area to be drawn in the picture to be processed, is further configured to: respond to the The color wiping operation is to adjust the step size according to the preset color value, perform color lightening processing on the area to be drawn, and obtain the target image after color lightening processing.
一种可选的实施方式中,第三确定模块503,在执行所述得到处理后的目标图片之后,还用于:在所述目标游戏的游戏场景中展示所述目标图片;或者,根据所述目标图片生成目标道具,并在所述目标游戏的游戏场景或装备列表中展示所述目标道具。In an optional implementation manner, the third determination module 503, after executing the processed target picture, is further configured to: display the target picture in the game scene of the target game; or, according to the The target prop is generated from the target picture, and the target prop is displayed in the game scene or equipment list of the target game.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the device and the interaction flow between the modules, reference may be made to the relevant description in the above method embodiment, and details will not be described here.
基于同一技术构思,本公开实施例还提供了一种计算机设备。参照图6所示,为本公开实施例提供的计算机设备600的结构示意图,包括处理器601、存储器602、和总线603。其中,存储器602用于存储执行指令,包括内存6021和外部存储器6022;这里的内存6021也称内存储器,用于暂时存放处理器601中的运算数据,以及与硬盘等外部存储器6022交换的数据,处理器601通过内存6021与外部存储器6022进行数据交换,当计算机设备600运行时,处理器601与存储器602之间通过总线603通信,使得处理器601执行以下指令:Based on the same technical idea, the embodiment of the present disclosure also provides a computer device. Referring to FIG. 6 , it is a schematic structural diagram of a computer device 600 provided by an embodiment of the present disclosure, including a processor 601 , a memory 602 , and a bus 603 . Among them, the memory 602 is used to store execution instructions, including a memory 6021 and an external memory 6022; the memory 6021 here is also called an internal memory, and is used to temporarily store calculation data in the processor 601 and exchange data with an external memory 6022 such as a hard disk. The processor 601 exchanges data with the external memory 6022 through the memory 6021. When the computer device 600 is running, the processor 601 communicates with the memory 602 through the bus 603, so that the processor 601 executes the following instructions:
获取与目标游戏关联的待处理图片,并确定用户获取的绘制资源;所述绘制资源中包括色彩资源;响应针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域;根据所述用户选中的目标色彩资源,确定所述待处理图片中的所述待绘制区域对应的处理后色彩,以得到处理后的目标图片。Obtain a picture to be processed associated with the target game, and determine a drawing resource obtained by the user; the drawing resource includes a color resource; respond to a drawing request for the picture to be processed, and determine a region to be drawn in the picture to be processed; According to the target color resource selected by the user, the processed color corresponding to the region to be drawn in the picture to be processed is determined to obtain a processed target picture.
其中,处理器601的具体处理流程可以参照上述方法实施例的记载,这里不再赘述。Wherein, for the specific processing flow of the processor 601, reference may be made to the descriptions in the foregoing method embodiments, and details are not repeated here.
本公开实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行上述方法实施例中所述的交互方法的步骤。其中,所述存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the interaction method described in the foregoing method embodiments are executed. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序,所述计算机程序被处理器运行时执行上述方法实施例中所述的交互方法的步骤。Embodiments of the present disclosure further provide a computer program, which executes the steps of the interaction method described in the foregoing method embodiments when the computer program is run by a processor.
本公开实施例还提供一种计算机程序产品,所述计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中所述的交互方法的步骤,具体可参见上述方法实施例,在此不再赘述。An embodiment of the present disclosure also provides a computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the interaction method described in the above method embodiment, for details, please refer to the above method The embodiment will not be repeated here.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例 中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product may be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性、机械或其它的形式。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system and device can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that: the above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure, rather than limit them, and the protection scope of the present disclosure is not limited thereto, although referring to the aforementioned The embodiments have described the present disclosure in detail, and those skilled in the art should understand that any person familiar with the technical field can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present disclosure Changes can be easily imagined, or equivalent replacements can be made to some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in this disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be determined by the protection scope of the claims.

Claims (16)

  1. 一种交互方法,包括:An interactive method that includes:
    获取与目标游戏关联的待处理图片,并确定用户获取的绘制资源;所述绘制资源中包括色彩资源;Obtain the image to be processed associated with the target game, and determine the drawing resources obtained by the user; the drawing resources include color resources;
    响应针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域;Responding to a drawing request for the picture to be processed, determine a region to be drawn in the picture to be processed;
    根据所述用户选中的目标色彩资源,确定所述待处理图片中的所述待绘制区域对应的处理后色彩,以得到处理后的目标图片。According to the target color resource selected by the user, the processed color corresponding to the region to be drawn in the picture to be processed is determined to obtain a processed target picture.
  2. 根据权利要求1所述的方法,其中,所述确定用户获取的绘制资源,包括:The method according to claim 1, wherein said determining the drawing resources acquired by the user comprises:
    确定所述用户在目标游戏活动中获取的道具资源;所述道具资源包括制作所述色彩资源的原材料和/或制作工具;Determine the prop resources obtained by the user in the target game activity; the prop resources include raw materials and/or production tools for making the color resources;
    响应于色彩资源制作请求,根据所述道具资源进行制作以获得所述色彩资源。In response to a color resource making request, make according to the prop resource to obtain the color resource.
  3. 根据权利要求1或2所述的方法,其中,所述获取与目标游戏关联的待处理图片,包括:The method according to claim 1 or 2, wherein said acquiring the picture to be processed associated with the target game comprises:
    获取所述用户在所述目标游戏中进行游戏活动时的游戏场景数据;Obtain game scene data when the user performs game activities in the target game;
    基于所述游戏场景数据,生成与目标游戏场景和/或目标场景道具关联的所述待处理图片。Based on the game scene data, the to-be-processed picture associated with the target game scene and/or target scene props is generated.
  4. 根据权利要求1或2所述的方法,其中,所述获取与目标游戏关联的待处理图片,包括:The method according to claim 1 or 2, wherein said acquiring the picture to be processed associated with the target game comprises:
    确定所述用户在所述目标游戏中对应的虚拟角色的至少一种装备道具;determining at least one equipment item of the virtual character corresponding to the user in the target game;
    根据所述至少一种装备道具中被选中的目标装备道具,生成与所述目标装备道具对应的所述待处理图片。The image to be processed corresponding to the target equipment item is generated according to the selected target equipment item in the at least one type of equipment item.
  5. 根据权利要求1至4任一项所述的方法,其中,所述响应针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域,包括:The method according to any one of claims 1 to 4, wherein the responding to the drawing request of the picture to be processed, determining the area to be drawn in the picture to be processed includes:
    响应针对所述待处理图片的所述绘制请求,展示多个可绘制区域;displaying a plurality of drawable regions in response to the drawing request for the picture to be processed;
    响应所述用户的触发操作或连续滑动操作,确定所述用户从所述多个可绘制区域中选择的至少一个待绘制区域。In response to the user's trigger operation or continuous sliding operation, at least one area to be drawn selected by the user from the plurality of drawable areas is determined.
  6. 根据权利要求5所述的方法,其中,所述响应所述用户的触发操作或连续滑动操作,确定所述用户从所述多个可绘制区域中选择的至少一个待绘制区域,包括:The method according to claim 5, wherein the determining at least one area to be drawn selected by the user from the plurality of drawable areas in response to the user's trigger operation or continuous sliding operation comprises:
    根据所述待处理图片中的所述多个可绘制区域分别对应的交互判定区域,确定所述用户的触发操作或连续滑动操作所作用的目标交互判定区域;According to the interaction determination areas respectively corresponding to the plurality of drawable areas in the picture to be processed, determine the target interaction determination area on which the user's trigger operation or continuous sliding operation acts;
    将确定的所述目标交互判定区域对应的可绘制区域作为所述待绘制区域。The determined drawable area corresponding to the target interaction determination area is used as the area to be drawn.
  7. 根据权利要求1至6任一项所述的方法,其中,所述确定所述待处理图片中的所述待绘制区域对应的处理后色彩,包括:The method according to any one of claims 1 to 6, wherein said determining the processed color corresponding to the area to be drawn in the picture to be processed comprises:
    根据所述用户使用的运行所述目标游戏的终端设备的运动属性信息,确定所述待绘制区域对应的处理后的色彩的深浅程度;其中,所述运动属性信息包括以下至少一种:According to the motion attribute information of the terminal device used by the user to run the target game, determine the depth of the processed color corresponding to the area to be drawn; wherein the motion attribute information includes at least one of the following:
    所述终端设备倾斜的方向和/或角度;the direction and/or angle in which the terminal device is tilted;
    所述终端设备倾斜的时间;the time at which the terminal device is tilted;
    所述终端设备被摇动的次数。The number of times the terminal was shaken.
  8. 根据权利要求1至6任一项所述的方法,其中,所述根据所述用户选中的目标色 彩资源,确定所述待处理图片中的所述待绘制区域对应的处理后色彩,包括:The method according to any one of claims 1 to 6, wherein, according to the target color resource selected by the user, determining the processed color corresponding to the area to be drawn in the picture to be processed includes:
    获取所述待处理图片中的所述待绘制区域在进行色彩处理前的第一色彩;基于所述第一色彩和所述目标色彩资源对应的第二色彩,确定所述待绘制区域对应的融合处理后的第三色彩;或者,Acquiring the first color of the area to be drawn in the picture to be processed before color processing; based on the first color and the second color corresponding to the target color resource, determine the fusion corresponding to the area to be drawn a processed tertiary color; or,
    根据所述用户在所述绘制资源中选中的目标色彩资源,确定所述待绘制区域对应的第二色彩,采用所述第二色彩替换所述待绘制区域在进行色彩处理前的第一色彩。Determine the second color corresponding to the area to be drawn according to the target color resource selected by the user in the drawing resources, and use the second color to replace the first color of the area to be drawn before color processing.
  9. 根据权利要求8所述的方法,其中,根据以下步骤确定目标色彩资源对应的第二色彩:The method according to claim 8, wherein the second color corresponding to the target color resource is determined according to the following steps:
    在所述用户选中多种目标色彩资源的情况下,根据所述多种目标色彩资源的使用先后顺序,确定所述多种目标色彩资源对应的融合处理后的色彩;When the user selects multiple target color resources, determine the fused color corresponding to the multiple target color resources according to the order of use of the multiple target color resources;
    将所述融合处理后的色彩确定为所述目标色彩资源对应的所述第二色彩。Determining the fused color as the second color corresponding to the target color resource.
  10. 根据权利要求1至9任一项所述的方法,其中,所述确定所述待处理图片中的所述待绘制区域对应的处理后色彩之后,所述方法还包括:The method according to any one of claims 1 to 9, wherein, after determining the processed color corresponding to the area to be drawn in the picture to be processed, the method further includes:
    响应针对所述待绘制区域的色彩擦拭操作,按照预设的色值调整步长,对所述待绘制区域进行色彩浅化处理,得到色彩浅化处理后的目标图片。In response to the color wiping operation on the area to be drawn, according to the preset color value adjustment step, the color lightening process is performed on the area to be drawn to obtain a target picture after the color lightening process.
  11. 根据权利要求1至10任一项所述的方法,其中,所述得到处理后的目标图片之后,所述方法还包括:The method according to any one of claims 1 to 10, wherein, after obtaining the processed target picture, the method further comprises:
    在所述目标游戏的游戏场景中展示所述目标图片;或者,Displaying the target picture in the game scene of the target game; or,
    根据所述目标图片生成目标道具,并在所述目标游戏的游戏场景或装备列表中展示所述目标道具。Generate target props according to the target picture, and display the target props in the game scene or equipment list of the target game.
  12. 一种交互装置,包括:An interactive device comprising:
    第一确定模块,用于获取与目标游戏关联的待处理图片,并确定用户获取的绘制资源;所述绘制资源中包括色彩资源;The first determining module is used to obtain the picture to be processed associated with the target game, and determine the drawing resources obtained by the user; the drawing resources include color resources;
    第二确定模块,用于响应于针对所述待处理图片的绘制请求,确定所述待处理图片中的待绘制区域;A second determining module, configured to determine a region to be drawn in the picture to be processed in response to a drawing request for the picture to be processed;
    第三确定模块,用于根据所述用户选中的目标色彩资源,确定所述待处理图片中的所述待绘制区域对应的处理后色彩,以得到处理后的目标图片。The third determination module is configured to determine the processed color corresponding to the region to be drawn in the picture to be processed according to the target color resource selected by the user, so as to obtain a processed target picture.
  13. 一种计算机设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,所述处理器用于执行所述存储器中存储的机器可读指令,所述机器可读指令被所述处理器执行时,所述处理器执行如权利要求1至11任一项所述的交互方法的步骤。A computer device, comprising: a processor and a memory, the memory stores machine-readable instructions executable by the processor, the processor is configured to execute the machine-readable instructions stored in the memory, and the machine can When the read instruction is executed by the processor, the processor executes the steps of the interaction method according to any one of claims 1 to 11.
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被计算机设备运行时,所述计算机设备执行如权利要求1至11任一项所述的交互方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is run by a computer device, the computer device executes the method according to any one of claims 1 to 11 The steps of the interactive method.
  15. 一种计算机程序,其中,所述计算机程序被处理器运行时执行如权利要求1至11任一项所述的交互方法的步骤。A computer program, wherein the computer program executes the steps of the interactive method according to any one of claims 1 to 11 when the computer program is run by a processor.
  16. 一种计算机程序产品,其中,所述计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行如权利要求1至11任一项所述的交互方法的步骤。A computer program product, wherein the computer program product carries a program code, and the program code includes instructions that can be used to execute the steps of the interaction method according to any one of claims 1 to 11.
PCT/CN2022/127459 2021-11-29 2022-10-25 Interaction method and apparatus, computer device, and storage medium WO2023093428A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111431495.XA CN114082180A (en) 2021-11-29 2021-11-29 Interaction method, interaction device, computer equipment and storage medium
CN202111431495.X 2021-11-29

Publications (1)

Publication Number Publication Date
WO2023093428A1 true WO2023093428A1 (en) 2023-06-01

Family

ID=80305383

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/127459 WO2023093428A1 (en) 2021-11-29 2022-10-25 Interaction method and apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN114082180A (en)
WO (1) WO2023093428A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114082180A (en) * 2021-11-29 2022-02-25 北京字跳网络技术有限公司 Interaction method, interaction device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252299A (en) * 2013-06-28 2014-12-31 上海斐讯数据通信技术有限公司 Mobile terminal for controlling wallpaper to change color
CN207190539U (en) * 2017-08-16 2018-04-06 欧韦廷 The copying oil paintings of multi-level contrast modelling effect are provided using UV ink jet printers
CN112370786A (en) * 2020-11-13 2021-02-19 网易(杭州)网络有限公司 Method and device for drawing makeup in game and electronic equipment
CN112619160A (en) * 2020-12-29 2021-04-09 网易(杭州)网络有限公司 Image processing method, image processing apparatus, non-volatile storage medium, and electronic apparatus
CN113069759A (en) * 2021-03-30 2021-07-06 网易(杭州)网络有限公司 Scene processing method and device in game and electronic equipment
US20210308583A1 (en) * 2020-04-02 2021-10-07 Nintendo Co., Ltd. Information processing system, information processing apparatus, storage medium and information processing method
CN113599831A (en) * 2021-08-16 2021-11-05 北京字跳网络技术有限公司 Multimedia content generation method and device and computer storage medium
CN114082180A (en) * 2021-11-29 2022-02-25 北京字跳网络技术有限公司 Interaction method, interaction device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252299A (en) * 2013-06-28 2014-12-31 上海斐讯数据通信技术有限公司 Mobile terminal for controlling wallpaper to change color
CN207190539U (en) * 2017-08-16 2018-04-06 欧韦廷 The copying oil paintings of multi-level contrast modelling effect are provided using UV ink jet printers
US20210308583A1 (en) * 2020-04-02 2021-10-07 Nintendo Co., Ltd. Information processing system, information processing apparatus, storage medium and information processing method
CN112370786A (en) * 2020-11-13 2021-02-19 网易(杭州)网络有限公司 Method and device for drawing makeup in game and electronic equipment
CN112619160A (en) * 2020-12-29 2021-04-09 网易(杭州)网络有限公司 Image processing method, image processing apparatus, non-volatile storage medium, and electronic apparatus
CN113069759A (en) * 2021-03-30 2021-07-06 网易(杭州)网络有限公司 Scene processing method and device in game and electronic equipment
CN113599831A (en) * 2021-08-16 2021-11-05 北京字跳网络技术有限公司 Multimedia content generation method and device and computer storage medium
CN114082180A (en) * 2021-11-29 2022-02-25 北京字跳网络技术有限公司 Interaction method, interaction device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114082180A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
US11412292B2 (en) Video processing method, video processing device, and storage medium
CN105976417B (en) Animation generation method and device
US10353464B2 (en) Gaze and saccade based graphical manipulation
WO2022041663A1 (en) Method for recommending and purchasing virtual prop of game, and electronic device
EP3064257B1 (en) System, device and method of 3d printing
US20180232049A1 (en) Gaze and saccade based graphical manipulation
US20140302930A1 (en) Rendering system, rendering server, control method thereof, program, and recording medium
WO2023093428A1 (en) Interaction method and apparatus, computer device, and storage medium
JP6078684B1 (en) Program, control method, and information processing apparatus
CN110333924B (en) Image gradual change adjustment method, device, equipment and storage medium
CN113069759B (en) Scene processing method and device in game and electronic equipment
EP3516481B1 (en) Gaze and saccade based graphical manipulation
CN112657195B (en) Virtual character image processing method, device, equipment and storage medium
US20230065576A1 (en) Battle settlement interface display method, apparatus, device, and storage medium
CN111282277A (en) Special effect processing method, device and equipment and storage medium
WO2022110518A1 (en) Method and apparatus for processing dress-up prop, and storage medium and electronic device
CN113318428A (en) Game display control method, non-volatile storage medium, and electronic device
CN111494939A (en) Wearing control method and device for virtual character, computer equipment and medium
WO2023197790A1 (en) Map display method and apparatus, and electronic device and storage medium
WO2023077965A1 (en) Appearance editing method and apparatus for virtual pet, and terminal and storage medium
WO2023142616A1 (en) Item synthesis method and apparatus, storage medium and electronic device
CN113941152A (en) Virtual object control method and device, electronic equipment and storage medium
CN115888116A (en) Virtual character image replacing method and device and computer storage medium
JP6167942B2 (en) Design editing apparatus and program
CN112370786A (en) Method and device for drawing makeup in game and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22897511

Country of ref document: EP

Kind code of ref document: A1