WO2023142345A1 - 数据处理方法、装置、电子设备及可读介质 - Google Patents

数据处理方法、装置、电子设备及可读介质 Download PDF

Info

Publication number
WO2023142345A1
WO2023142345A1 PCT/CN2022/099812 CN2022099812W WO2023142345A1 WO 2023142345 A1 WO2023142345 A1 WO 2023142345A1 CN 2022099812 W CN2022099812 W CN 2022099812W WO 2023142345 A1 WO2023142345 A1 WO 2023142345A1
Authority
WO
WIPO (PCT)
Prior art keywords
texture
current
color
virtual model
touch operation
Prior art date
Application number
PCT/CN2022/099812
Other languages
English (en)
French (fr)
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 WO2023142345A1 publication Critical patent/WO2023142345A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a data processing method, a data processing device, an electronic device, and a computer-readable medium.
  • the virtual model when the virtual model needs to be colored, the virtual model can usually be colored with a brush.
  • the brush that can be used by the virtual model can only fill the area painted by the brush with a single color, and cannot show the effect of color gradient through a single painting with the brush.
  • the existing brushes cannot show the gradient effect of eye shadow color from thick to light in a single application of eye shadow.
  • Embodiments of the present disclosure propose a data processing method, device, electronic device, and computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
  • the embodiment of the present disclosure discloses a data processing method, including:
  • the step of determining the current texture position of the texture map of the virtual model according to the current grid position includes:
  • a current texture position of a texture map of the virtual model is determined according to the target grid position.
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • a virtual camera is used to capture the historical touch area corresponding to the touch operation at the nth moment, and the rendering texture corresponding to the nth moment is obtained.
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • the preset area mask overlaps with the historical touch area corresponding to the touch operation at the nth moment, collect an area other than the overlap between the historical touch area and the area mask to obtain a rendering texture.
  • the method also includes:
  • the step of mixing the color of the historical touch area with the current color of the current texture position to obtain the target color of the current texture position includes:
  • the color of the historical touch area is mixed with the current color corresponding to the current texture position to obtain the target color of the current texture position.
  • An embodiment of the present disclosure also provides a data processing device, including:
  • the model position determination module is used to respond to the touch operation acting on the virtual model, and obtain the current grid position of the touch operation on the model grid of the virtual model at the current (n+1)th moment, wherein the Said n ⁇ 1;
  • a texture position determining module configured to determine the current texture position of the texture map of the virtual model according to the current grid position
  • the rendering texture collection module is configured to collect the rendering texture corresponding to the touch operation at the nth moment, and obtain the color information of the touch operation in the historical touch area in the rendering texture, and the rendering texture is based on the The texture generated by the color of the touch operation at the historical position of the texture map;
  • a mixing module configured to mix the color of the historical touch area with the current color of the current texture position to obtain the target color of the current texture position
  • a color update module configured to update the color at the current texture position of the texture map with the target color
  • a model updating module configured to render the virtual model at the n+1th moment according to the updated texture map.
  • the texture position determination module includes:
  • the first overlap determination submodule is used to determine whether the preset area mask overlaps with the current grid position
  • a target grid position determining submodule configured to use an area in the current grid position that overlaps with the area mask as a target grid if the preset area mask overlaps with the current grid position Location;
  • the texture position determination submodule is configured to determine the current texture position of the texture map of the virtual model according to the target grid position.
  • the rendering texture acquisition module includes:
  • the first rendering texture acquisition sub-module is configured to use a virtual camera to capture the historical touch area corresponding to the touch operation at the nth moment, and obtain the rendering texture corresponding to the nth moment.
  • the rendering texture acquisition module includes:
  • the second overlap determination submodule is used to determine whether the preset area mask overlaps with the historical touch area corresponding to the touch operation at the nth moment;
  • the second rendering texture acquisition is a sub-module, which is used to collect the historical touch area and the area mask if the preset area mask overlaps with the historical touch area corresponding to the touch operation at the nth moment Areas outside the overlap get rendered textures.
  • the device also includes:
  • the module for determining the position of the model at the first moment is configured to, for the first moment, respond to the touch operation acting on the virtual model, and obtain the current grid of the model grid of the virtual model that the touch operation operates at the first moment. Location;
  • a texture position determination module at the first moment configured to determine the current texture position of the texture map of the virtual model according to the current grid position
  • an initial color update module configured to update the color at the current texture position of the texture map with a preset initial color
  • the first moment rendering module is configured to render the virtual model at the first moment according to the updated texture map.
  • the mixing module includes:
  • a proportion determining submodule configured to determine a first mixing proportion corresponding to the historical touch area, and a second mixing proportion corresponding to the current texture position
  • a mixing submodule configured to mix the color of the historical touch area with the current color corresponding to the current texture position according to the first mixing ratio and the second mixing ratio, to obtain the color of the current texture position target color.
  • the embodiment of the present disclosure also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete mutual communication through the communication bus;
  • the memory is used to store computer programs
  • the processor is configured to implement the method described in the embodiments of the present disclosure when executing the program stored in the memory.
  • the embodiments of the present disclosure also disclose one or more computer-readable media, on which instructions are stored, and when executed by one or more processors, the processors execute the method described in the embodiments of the present disclosure.
  • the data processing method of the present disclosure in response to the touch operation acting on the virtual model, obtain the current grid position of the model grid of the virtual model by the touch operation at the current n+1th moment, where n ⁇ 1; Determine the current texture position of the texture map of the virtual model according to the current grid position; collect the rendering texture corresponding to the touch operation at the nth moment, and obtain the color information of the touch operation in the historical touch area in the rendering texture, and the rendering texture is based on The texture generated by the color of the touch operation at the historical position of the texture map; the color of the historical touch area is mixed with the current color of the current texture position to obtain the target color of the current texture position; the current texture of the texture map is updated by the target color The color at the position; the virtual model at the n+1th moment is rendered according to the updated texture map, so that the color smear effect of color gradient on the virtual model in three-dimensional space can be realized.
  • FIG. 1 is a flow chart of the steps of a data processing method provided in an embodiment of the present disclosure
  • Fig. 2 is a flow chart of the steps of a data processing method provided in an embodiment of the present disclosure
  • Fig. 3 is a schematic diagram of an area mask provided in an embodiment of the present disclosure
  • Fig. 4 is a schematic diagram of rendering a virtual model provided in an embodiment of the present disclosure.
  • Fig. 5 is a structural block diagram of a data processing device provided in an embodiment of the present disclosure.
  • FIG. 6 is a block diagram of an electronic device provided in an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a computer-readable medium provided in an embodiment of the present disclosure.
  • the user when it is necessary to apply makeup to the virtual human body model, add ink-style textures to the virtual model, etc., the user may expect to display the color gradient effect in real time during the coloring process.
  • the starting point color and the ending point color of the single operation can be determined respectively, and then determined based on the starting point color and the ending point color A single operation on the color of the middle part to form a color gradient effect.
  • the embodiment of the present disclosure identifies in real time the area where the touch operation is located at each moment, and mixes the color of the touch in the historical touch area with the current color of the current texture position to obtain the target of the current texture position Color, so that real-time coloring of the virtual model can be realized through virtual operation.
  • the continuous position change on the virtual model may involve position changes in multiple directions in the three-dimensional space, so when mapped to the texture map corresponding to the virtual model, it may appear in the texture map.
  • a case of discontinuous change In the process of coloring the virtual model, in the face of discontinuous texture maps, it is impossible to simply determine the offset of the virtual operation at each moment, so it is impossible to determine the area where the virtual model was located at the previous moment based on the offset. And extract the color of the area. Therefore, the embodiment of the present disclosure acquires the texture map color of the area where the virtual operation was located at the previous moment in advance, and obtains the rendering texture that records the color of the area, and then can easily determine the location of the virtual operation on the basis of the rendering texture. The color corresponding to the area at a time, so that color mixing can be easily completed.
  • FIG. 1 shows a flow chart of the steps of a data processing method provided in an embodiment of the present disclosure, which may specifically include the following steps:
  • Step 101 in response to a touch operation acting on the virtual model, obtain the current grid position of the touch operation on the model grid of the virtual model at the current (n+1)th moment, wherein n ⁇ 1 ;
  • the virtual model may be a three-dimensional model.
  • Each touch operation can be a continuous, uninterrupted movement, that is, each touch operation can be regarded as a single stroke drawing, which can draw a continuous pattern.
  • the current grid position of the touch operation on the model grid of the virtual model at the current (n+1)th moment can be obtained in real time, so as to determine the current position that needs to be colored.
  • the touch operation can add a preset color on the virtual model at the first moment, and then from the second moment, with the movement of the touch operation, the added color and the color of the virtual model texture Blend to achieve a smeared-in effect.
  • n the number of points on the virtual model at the first moment, and then from the second moment, with the movement of the touch operation, the added color and the color of the virtual model texture Blend to achieve a smeared-in effect.
  • the virtual model can be displayed through a display screen in an electronic device.
  • Users can issue touch operations through the touch display screen, peripheral devices connected through electronic devices, such as a mouse, a stylus, a keyboard, and the like.
  • the touch operation can point to a certain position in the display screen, so as to point to a certain position in the virtual model displayed on the display screen, so that the current grid position of the touch operation on the model grid of the virtual model can be determined.
  • the user's touch operation can be used to control a brush mask, and the current position covered by the brush mask can be considered as the current grid position of the virtual model's model grid where the touch operation is located. .
  • Step 102 determining the current texture position of the texture map of the virtual model according to the current grid position
  • the current texture position of the texture map of the virtual model corresponding to the current grid position can be further determined according to the current grid position, so as to determine the need for coloring in the texture map s position.
  • the corresponding relationship between the grid position of the model grid of the virtual model in the three-dimensional space and the texture position of the texture map can be preset, so that the current grid position of the model grid corresponding to the touch operation can be determined After that, based on the preset corresponding relationship, the current texture position of the texture map of the virtual model corresponding to the current grid position can be determined.
  • Step 103 collect the rendering texture corresponding to the touch operation at the nth moment, and obtain the color information of the touch operation in the historical touch area in the rendering texture, and the rendering texture is based on the touch operation a color generated texture at the historical location of the texture map;
  • the color of the historical touch area where the touch operation is located at the nth moment can be mixed with the current color of the current texture position, so that the target color determined at each moment is The color of the historical touch area is changed, so that the effect of gradual color change can be shown.
  • the rendering texture (Render Texture) corresponding to the nth moment in the touch operation can be collected in advance, so that when the position change of the texture map corresponding to the touch operation may be discontinuous, the touch operation can be collected in advance.
  • the texture generated by the color at the historical position of the texture map is used to record the target color at the previous moment at the current moment, so as to process the color mixing.
  • various information such as the size, dimension, and color of the historical touch area are recorded in the rendering texture. Therefore, the color information of the touch operation in the historical touch area can be obtained from the rendering texture.
  • Step 104 mixing the color of the historical touch area with the current color of the current texture position to obtain the target color of the current texture position;
  • the current texture position can be further determined from the texture map, and the current color of the current texture position can be extracted. Thereafter, the color of the historical touch area may be mixed with the current color of the current texture position to determine the target color of the current texture position.
  • Step 105 updating the color at the current texture position of the texture map with the target color
  • the target color After determining the target color to be added at the current texture position, the target color is used to update the color at the current texture position in the texture map, thereby completing the coloring of the texture corresponding to the current grid position in the virtual model.
  • the target color of the current texture position is determined based on the texture color corresponding to the historical touch area where the touch operation was performed at the nth moment and the texture color corresponding to the current touch area at the n+1th moment. Therefore, the target color can be changed based on the color of the historical touch area, referring to the current color of the current texture position, so that the color based on the color of the historical touch area can be conveniently matched with the current color of the virtual model.
  • the colors are well blended to achieve a natural color gradient effect.
  • Step 106 Render the virtual model at the n+1th moment according to the updated texture map.
  • the updated texture map can be used to render the virtual model at the (n+1)th moment, so that the process of coloring the virtual model through touch operations can be realized.
  • the coloring effect of the virtual model is displayed in real time, so that the function of providing the user with the virtual model in the three-dimensional space for real-time coloring and smearing can be realized.
  • the data processing method of the present disclosure in response to the touch operation acting on the virtual model, obtain the current grid position of the model grid of the virtual model by the touch operation at the current n+1th moment, where n ⁇ 1; Determine the current texture position of the texture map of the virtual model according to the current grid position; collect the rendering texture corresponding to the touch operation at the nth moment, and obtain the color information of the touch operation in the historical touch area in the rendering texture, and the rendering texture is based on The texture generated by the color of the touch operation at the historical position of the texture map; the color of the historical touch area is mixed with the current color of the current texture position to obtain the target color of the current texture position; the current texture of the texture map is updated by the target color The color at the position; the virtual model at the n+1th moment is rendered according to the updated texture map, so that the color smear effect of color gradient on the virtual model in three-dimensional space can be realized.
  • FIG. 2 shows a flow chart of the steps of a data processing method provided in an embodiment of the present disclosure, which may specifically include the following steps:
  • Step 201 in response to a touch operation acting on the virtual model, obtain the current grid position of the touch operation on the model grid of the virtual model at the current (n+1)th moment, where n ⁇ 1 ;
  • Each touch operation can be a continuous, uninterrupted movement, that is, each touch operation can be regarded as a single stroke drawing, which can draw a continuous pattern.
  • the current grid position of the touch operation on the model grid of the virtual model at the current (n+1)th moment can be obtained in real time, so as to determine the current position that needs to be colored.
  • the touch operation can add a preset color on the virtual model at the first moment, and then from the second moment, with the movement of the touch operation, the added color and the color of the virtual model texture Blend to achieve a smeared-in effect.
  • n the number of points on the virtual model at the first moment, and then from the second moment, with the movement of the touch operation, the added color and the color of the virtual model texture Blend to achieve a smeared-in effect.
  • the virtual model can be displayed through a display screen in an electronic device.
  • Users can issue touch operations through the touch display screen, peripheral devices connected through electronic devices, such as a mouse, a stylus, a keyboard, and the like.
  • the touch operation can point to a certain position in the display screen, so as to point to a certain position in the virtual model displayed on the display screen, so that the current grid position of the touch operation on the model grid of the virtual model can be determined.
  • the user's touch operation can be used to control a brush mask, and the current position covered by the brush mask can be considered as the current grid position of the virtual model's model grid where the touch operation is located. .
  • the method further includes:
  • the virtual model can be colored, and then as the touch operation moves at subsequent moments, other positions of the virtual model can be painted based on the color added at the first moment. Paint in so that the added color is applied naturally to other areas.
  • the current grid position of the touch operation on the model grid of the virtual model at the first moment can be obtained, so as to determine the virtual model The position that needs to be colored.
  • the current grid position corresponding to the current grid position in the texture map of the virtual model can be further determined. Texture position.
  • the corresponding relationship between the grid position of the model grid of the virtual model in the three-dimensional space and the texture position of the texture map is preset, so that after determining the current grid position of the model grid corresponding to the touch operation, That is, the current texture position of the texture map of the virtual model corresponding to the current grid position can be determined based on the preset corresponding relationship.
  • the color at the current texture position of the texture map can be updated through the preset initial color to realize the coloring of the virtual model.
  • the preset initial color may be selected and determined by the user.
  • the virtual model at the first moment can be rendered according to the updated texture map, so that a real-time color display effect can be displayed to the user.
  • Step 202 determining the current texture position of the texture map of the virtual model according to the current grid position
  • the current texture position of the texture map of the virtual model corresponding to the current grid position can be further determined according to the current grid position, so as to determine the need for coloring in the texture map s position.
  • the corresponding relationship between the grid position of the model grid of the virtual model in the three-dimensional space and the texture position of the texture map can be preset, so that the current grid position of the model grid corresponding to the touch operation can be determined After that, based on the preset corresponding relationship, the current texture position of the texture map of the virtual model corresponding to the current grid position can be determined.
  • the step of determining the current texture position of the texture map of the virtual model according to the current grid position includes:
  • the virtual model may not need to be colored at all positions, but only needs to be colored at some positions.
  • the virtual model may not need to be colored at all positions, but only needs to be colored at some positions.
  • the cheeks are colored, it is not desired to apply the color to other parts of the cheeks such as the nose and lips, but only to be colored on the cheeks. At the same time, it is not expected that the colors of other parts will affect the current coloring.
  • a preset area mask can be used to mask irrelevant areas. Therefore, after determining the current grid position of the touch operation on the model grid of the virtual model, it is necessary to further determine whether the current grid position overlaps with the area mask, so as to determine whether the current grid position contains unwanted The area to be colored.
  • the area mask overlaps with the current grid position, it can be considered that the current grid position contains an area that does not want to be colored. At this time, the uncovered area in the current grid position can be used as the target grid position to avoid coloring irrelevant areas.
  • the current texture position of the texture map of the virtual model can be determined based on the target grid position, so as to determine the area to be colored in the texture map.
  • FIG. 3 is a schematic diagram of an area mask according to an embodiment of the present disclosure. If the current grid position 302 at the n+1th frame is covered by the area mask 301, then The area in the current grid position 302 that does not overlap with the area mask 301 can be used as the target grid position, and subsequent coloring is performed based on the target grid position to avoid coloring beyond the allowable coloring area.
  • Step 203 collect the rendering texture corresponding to the touch operation at the nth moment, and obtain the color information of the touch operation in the historical touch area in the rendering texture, and the rendering texture is based on the touch operation a color generated texture at the historical location of the texture map;
  • the color of the historical touch area where the touch operation is located at the nth moment can be mixed with the current color of the current texture position, so that the target color determined at each moment is The color of the historical touch area is changed, so that the effect of gradual color change can be shown.
  • the rendering texture (Render Texture) corresponding to the nth moment in the touch operation can be collected in advance, so that when the position change of the texture map corresponding to the touch operation may be discontinuous, the touch operation can be collected in advance.
  • the texture generated by the color at the historical position of the texture map is used to record the target color at the previous moment at the current moment, so as to process the color mixing.
  • various information such as the size, dimension, and color of the historical touch area are recorded in the rendering texture. Therefore, the color information of the touch operation in the historical touch area can be obtained from the rendering texture.
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • three-dimensional processing software such as unity and houdini can provide a virtual camera function in the software, which can allow users to shoot a virtual model to obtain a rendering texture (Render Texture) at a certain moment.
  • rendering texture Render Texture
  • the virtual camera can be used to capture the historical touch area corresponding to the brush mask at the nth moment, so as to obtain the rendering texture corresponding to the nth moment, so that it cannot be simply based on the grid position on the virtual model or the texture map.
  • the texture position determines the position of the last frame of the touch operation
  • the color information of the previous moment that is, the nth moment
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • the virtual model may not need to be colored at all positions, but only needs to be colored at some positions. Therefore, in order to avoid the abnormal color mixing effect that may occur in the subsequent process due to the acquired position that has nothing to do with the coloring of the virtual model during the process of generating the rendering texture, the preset area mask can be determined when the rendering texture is collected Whether there is overlap with the historical touch area corresponding to the touch operation at the nth moment, so as to determine whether it is possible to collect color information of irrelevant positions.
  • the preset area mask overlaps with the historical touch area corresponding to the touch operation at the nth moment, then at this time, it is to avoid collecting color information of an irrelevant position. It can be collected for the area outside the overlap with the area mask in the historical touch area to obtain the rendering texture, so that the colors can be mixed normally.
  • Step 204 determining a first blending ratio corresponding to the historical touch area, and a second blending ratio corresponding to the current texture position
  • the current texture position can be further determined from the texture map, and the current color of the current texture position can be extracted. Thereafter, the color of the historical touch area may be mixed with the current color of the current texture position to determine the target color of the current texture position.
  • the proportions of different colors in the target color can be determined respectively, so as to determine the coloring effect at the current texture position.
  • the first mixing ratio corresponding to the historical touch area and the second mixing ratio corresponding to the current texture position can be respectively determined.
  • the sum of the first mixing ratio and the second mixing ratio may be 100%.
  • the values of the first mixing ratio and the second mixing ratio can be determined according to actual needs. For example, when the value of n+1 is small, in order to obtain a color closer to the preset initial color, the first mixing ratio may be set to be larger and the second mixing ratio may be set to be smaller. When the value of n+1 is larger, in order to obtain a color closer to the original color of the virtual model, the first mixing ratio can be set to be smaller and the second matching ratio can be set to be larger. For another example, when the preset initial color is relatively inconspicuous compared with the original color of the virtual model, in order to highlight the coloring effect, the first mixing ratio can be set to be larger and the second matching ratio can be set to be smaller. In the case where the preset initial color is more obvious than the original color of the virtual model, in order to avoid the contrast between the added color and the virtual model being too strong, you can set the first mixing ratio to be smaller and the second matching ratio to be larger.
  • Step 205 according to the first mixing ratio and the second mixing ratio, mix the color of the historical touch area with the current color corresponding to the current texture position to obtain the target color of the current texture position;
  • the color of the historical touch area can be mixed with the current color corresponding to the current texture position according to the first mixing ratio and the second mixing ratio, to obtain The target color of the current texture position to determine the color effect to be displayed at the current texture position.
  • the target color can be calculated using the following formula:
  • Target color color of historical brush area ⁇ first mixing ratio+color of current brush area ⁇ second mixing ratio.
  • Step 206 updating the color at the current texture position of the texture map with the target color
  • the target color After determining the target color to be added at the current texture position, the target color is used to update the color at the current texture position in the texture map, thereby completing the coloring of the texture corresponding to the current grid position in the virtual model.
  • the target color of the current texture position is determined based on the texture color corresponding to the historical touch area where the touch operation was performed at the nth moment and the texture color corresponding to the current touch area at the n+1th moment. Therefore, the target color can be changed based on the color of the historical touch area, referring to the current color of the current texture position, so that the color based on the color of the historical touch area can be conveniently matched with the current color of the virtual model.
  • the colors are well blended to achieve a natural color gradient effect.
  • Step 207 Render the virtual model at the (n+1)th moment according to the updated texture map.
  • the updated texture map can be used to render the virtual model at the (n+1)th moment, so that the process of coloring the virtual model through touch operations can be realized.
  • the coloring effect of the virtual model is displayed in real time, so that the function of providing the user with the virtual model in the three-dimensional space for real-time coloring and smearing can be realized.
  • FIG. 4 is a schematic diagram of coloring a virtual model provided in an embodiment of the present disclosure.
  • the current grid of the model grid of the virtual model by the touch operation at the first moment can be acquired in response to the touch operation acting on the virtual model position, so as to determine the position where the virtual model needs to be colored, and then determine the current texture position of the texture map of the virtual model according to the current grid position, and update the current texture map of the texture map through the preset initial color
  • the color at the texture position realizes the initial coloring of the virtual model.
  • a virtual camera may be used to capture the historical touch area corresponding to the touch operation at the first moment, to obtain the rendering texture corresponding to the first moment .
  • the response to the touch operation acting on the virtual model is to obtain the current position of the touch operation on the model grid of the virtual model at the current second moment. grid position.
  • the rendering texture corresponding to the touch operation at the first moment can be collected, so as to obtain the touch operation in the rendering texture in the historical touch Color information for the region.
  • the virtual camera may be used to capture the historical touch area corresponding to the touch operation at the second moment to obtain the rendering texture corresponding to the second moment.
  • the response to the touch operation acting on the virtual model is to obtain the current position of the touch operation on the model grid of the virtual model at the current third moment. grid position.
  • the rendering texture corresponding to the touch operation at the second moment may be collected, so as to obtain the touch operation in the rendering texture in the historical touch Color information for the region.
  • update the texture map at the current texture position with the target color color and render the virtual model at the third moment according to the updated texture map, so that the coloring effect can be displayed in the model in real time.
  • the coloring effect is shown in Figure 4(e). In this way, the coloring effect of color gradient on the virtual model can be realized.
  • FIG. 5 it shows a structural block diagram of a data processing device provided in an embodiment of the present disclosure, which may specifically include the following modules:
  • the model position determination module 501 is configured to respond to the touch operation acting on the virtual model, and obtain the current grid position of the touch operation on the model grid of the virtual model at the current (n+1)th moment, wherein, Said n ⁇ 1;
  • the rendering texture collection module 503 is configured to collect the rendering texture corresponding to the touch operation at the nth moment, and obtain the color information of the touch operation in the historical touch area in the rendering texture, and the rendering texture is based on A texture generated by the color of the touch operation at the historical position of the texture map;
  • a mixing module 504, configured to mix the color of the historical touch area with the current color of the current texture position to obtain the target color of the current texture position;
  • a color update module 505, configured to update the color at the current texture position of the texture map with the target color
  • a model updating module 506, configured to render the virtual model at the n+1th moment according to the updated texture map.
  • the texture position determination module includes:
  • the first overlap determination submodule is used to determine whether the preset area mask overlaps with the current grid position
  • a target grid position determining submodule configured to use an area in the current grid position that overlaps with the area mask as a target grid if the preset area mask overlaps with the current grid position Location;
  • the texture position determination submodule is configured to determine the current texture position of the texture map of the virtual model according to the target grid position.
  • the rendering texture acquisition module includes:
  • the first rendering texture acquisition sub-module is configured to use a virtual camera to capture the historical touch area corresponding to the touch operation at the nth moment, and obtain the rendering texture corresponding to the nth moment.
  • the rendering texture acquisition module includes:
  • the second overlap determination submodule is used to determine whether the preset area mask overlaps with the historical touch area corresponding to the touch operation at the nth moment;
  • the second rendering texture acquisition is a sub-module, which is used to collect the historical touch area and the area mask if the preset area mask overlaps with the historical touch area corresponding to the touch operation at the nth moment Areas outside the overlap get rendered textures.
  • the device also includes:
  • the module for determining the position of the model at the first moment is configured to, for the first moment, respond to the touch operation acting on the virtual model, and obtain the current grid of the model grid of the virtual model that the touch operation operates at the first moment. Location;
  • a texture position determination module at the first moment configured to determine the current texture position of the texture map of the virtual model according to the current grid position
  • an initial color update module configured to update the color at the current texture position of the texture map with a preset initial color
  • the first moment rendering module is configured to render the virtual model at the first moment according to the updated texture map.
  • the mixing module includes:
  • a proportion determining submodule configured to determine a first mixing proportion corresponding to the historical touch area, and a second mixing proportion corresponding to the current texture position
  • a mixing submodule configured to mix the color of the historical touch area with the current color corresponding to the current texture position according to the first mixing ratio and the second mixing ratio, to obtain the color of the current texture position target color.
  • the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • an embodiment of the present disclosure also provides an electronic device, as shown in FIG. 6 , including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 pass through the communication bus 604 completes the mutual communication,
  • the step of determining the current texture position of the texture map of the virtual model according to the current grid position includes:
  • the preset area mask overlaps with the current grid position, use an area in the current grid position other than the overlapping area with the area mask as the target grid position;
  • a current texture position of a texture map of the virtual model is determined according to the target grid position.
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • a virtual camera is used to capture the historical touch area corresponding to the touch operation at the nth moment, and the rendering texture corresponding to the nth moment is obtained.
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • the preset area mask overlaps with the historical touch area corresponding to the touch operation at the nth moment, collect an area other than the overlap between the historical touch area and the area mask to obtain a rendering texture.
  • the method also includes:
  • the step of mixing the color of the historical touch area with the current color of the current texture position to obtain the target color of the current texture position includes:
  • the color of the historical touch area is mixed with the current color corresponding to the current texture position to obtain the target color of the current texture position.
  • the current grid position of the touch operation on the model grid of the virtual model at the current n+1th moment is acquired, wherein, n ⁇ 1; determine the current texture position of the texture map of the virtual model according to the current grid position; collect the rendering texture corresponding to the touch operation at the nth moment, and obtain the color information of the touch operation in the historical touch area in the rendering texture,
  • the rendering texture is a texture generated according to the color of the touch operation at the historical position of the texture map; determine the first mixing ratio corresponding to the historical touch area, and the second mixing ratio corresponding to the current texture position; according to the The first mixing ratio and the second mixing ratio mix the color of the historical touch area with the current color corresponding to the current texture position to obtain the target color of the current texture position; update the texture map through the target color
  • the color at the current texture position of ; the virtual model at the n+1th moment is rendered according to the updated texture map, so that the coloring effect of color
  • the communication bus mentioned in the above-mentioned terminal may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the terminal and other devices.
  • the memory may include a random access memory (Random Access Memory, RAM for short), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • non-volatile memory such as at least one disk memory.
  • the memory may also be at least one storage device located far away from the aforementioned processor.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (Digital Signal Processing, referred to as DSP) , Application Specific Integrated Circuit (ASIC for short), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • a computer-readable storage medium 701 is also provided. Instructions are stored in the computer-readable storage medium.
  • the computer-readable storage medium is run on a computer, the computer Executing the data processing method described in the above embodiments, the following steps can be specifically implemented:
  • the step of determining the current texture position of the texture map of the virtual model according to the current grid position includes:
  • the preset area mask overlaps with the current grid position, use an area in the current grid position other than the overlapping area with the area mask as the target grid position;
  • a current texture position of a texture map of the virtual model is determined according to the target grid position.
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • the preset area mask overlaps with the historical touch area corresponding to the touch operation at the nth moment, collect an area other than the overlap between the historical touch area and the area mask to obtain a rendering texture.
  • the method also includes:
  • the step of mixing the color of the historical touch area with the current color of the current texture position to obtain the target color of the current texture position includes:
  • the color of the historical touch area is mixed with the current color corresponding to the current texture position to obtain the target color of the current texture position.
  • the current grid position of the touch operation on the model grid of the virtual model at the current n+1th moment is acquired, wherein, n ⁇ 1; determine the current texture position of the texture map of the virtual model according to the current grid position; collect the rendering texture corresponding to the touch operation at the nth moment, and obtain the color information of the touch operation in the historical touch area in the rendering texture,
  • the rendering texture is a texture generated according to the color of the touch operation at the historical position of the texture map; determine the first mixing ratio corresponding to the historical touch area, and the second mixing ratio corresponding to the current texture position; according to the The first mixing ratio and the second mixing ratio mix the color of the historical touch area with the current color corresponding to the current texture position to obtain the target color of the current texture position; update the texture map through the target color
  • the color at the current texture position of ; the virtual model at the n+1th moment is rendered according to the updated texture map, so that the coloring effect of color
  • a computer program product containing instructions is also provided, and when it is run on a computer, it causes the computer to execute the data processing method described in the above-mentioned embodiments, so as to realize the three-dimensional space In the virtual model, the coloring and smearing effect of the color gradient can be realized by the following steps:
  • the step of determining the current texture position of the texture map of the virtual model according to the current grid position includes:
  • the preset area mask overlaps with the current grid position, use an area in the current grid position other than the overlapping area with the area mask as the target grid position;
  • a current texture position of a texture map of the virtual model is determined according to the target grid position.
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • a virtual camera is used to capture the historical touch area corresponding to the touch operation at the nth moment, and the rendering texture corresponding to the nth moment is obtained.
  • the step of collecting the rendering texture corresponding to the touch operation at the nth moment includes:
  • the preset area mask overlaps with the historical touch area corresponding to the touch operation at the nth moment, collect an area other than the overlap between the historical touch area and the area mask to obtain a rendering texture.
  • the method also includes:
  • the step of mixing the color of the historical touch area with the current color of the current texture position to obtain the target color of the current texture position includes:
  • the color of the historical touch area is mixed with the current color corresponding to the current texture position to obtain the target color of the current texture position.
  • the current grid position of the touch operation on the model grid of the virtual model at the current n+1th moment is acquired, wherein, n ⁇ 1; determine the current texture position of the texture map of the virtual model according to the current grid position; collect the rendering texture corresponding to the touch operation at the nth moment, and obtain the color information of the touch operation in the historical touch area in the rendering texture,
  • the rendering texture is a texture generated according to the color of the touch operation at the historical position of the texture map; determine the first mixing ratio corresponding to the historical touch area, and the second mixing ratio corresponding to the current texture position; according to the The first mixing ratio and the second mixing ratio mix the color of the historical touch area with the current color corresponding to the current texture position to obtain the target color of the current texture position; update the texture map through the target color
  • the color at the current texture position of ; the virtual model at the n+1th moment is rendered according to the updated texture map, so that the coloring effect of color
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present disclosure will be generated.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
  • SSD Solid State Disk

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

一种数据处理方法、装置、电子设备及可读介质,其中该数据处理方法包括:响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,触控操作在虚拟模型的模型网格的当前网格位置(101);根据当前网格位置确定虚拟模型的纹理贴图的当前纹理位置(102);采集触控操作第n时刻时对应的渲染纹理,获取渲染纹理中触控操作在历史触控区域的颜色信息(103);将历史触控区域的颜色与当前纹理位置的当前颜色混合,得到当前纹理位置的目标颜色(104);通过目标颜色更新纹理贴图的当前纹理位置处的颜色(105);根据更新后的纹理贴图渲染第n+1时刻虚拟模型(106)。从而可以实现在三维空间中对虚拟模型进行颜色渐变的上色涂抹效果。

Description

数据处理方法、装置、电子设备及可读介质
相关申请的交叉引用
本公开要求于2022年01月29日提交的申请号为202210111723.3、名称为“数据处理方法、装置、电子设备及可读介质”的中国专利申请的优先权,该中国专利申请的全部内容通过引用结合在本公开中。
技术领域
本公开涉及计算机技术领域,特别是涉及一种数据处理方法、一种数据处理装置、一种电子设备以及一种计算机可读介质。
背景技术
一般来说,在需要对虚拟模型进行上色的情况下,通常可以采用笔刷对虚拟模型上色。但是,虚拟模型可以使用的笔刷通常只能在笔刷涂抹的区域填充单一的颜色,而无法通过笔刷单次涂抹展现出颜色渐变的效果。例如,在对三维人体模型的面部涂抹眼影的情况下,现有的笔刷无法展现出单次涂抹眼影的过程中眼影颜色从浓至浅的渐变效果。
发明内容
本公开实施例提出了一种克服上述问题或者至少部分地解决上述问题的一种数据处理方法、装置、电子设备以及计算机可读存储介质。
本公开实施例公开了一种数据处理方法,包括:
响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位置处的颜色生成的纹理;
将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
可选地,所述根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置的步骤,包括:
确定预设的区域遮罩是否与所述当前网格位置存在重叠;
若预设的区域遮罩与所述当前网格位置存在重叠,将所述当前网格位置中与所述区域 遮罩重叠之外的区域作为目标网格位置;
根据所述目标网格位置确定所述虚拟模型的纹理贴图的当前纹理位置。
可选地,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
采用虚拟摄像机拍摄所述触控操作在第n时刻对应的历史触控区域,得到第n时刻对应的渲染纹理。
可选地,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
确定预设的区域遮罩是否与所述触控操作在第n时刻对应的历史触控区域存在重叠;
若预设的区域遮罩与所述触控操作在第n时刻对应的历史触控区域存在重叠,采集所述历史触控区域与所述区域遮罩重叠之外的区域,得到渲染纹理。
可选地,所述方法还包括:
对于第一时刻,响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置;
根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
通过预设的初始颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
根据更新后的所述纹理贴图渲染所述第一时刻的所述虚拟模型。
可选地,所述将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色的步骤,包括:
确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;
根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色。
本公开实施例还提供一种数据处理装置,包括:
模型位置确定模块,用于响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
纹理位置确定模块,用于根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
渲染纹理采集模块,用于采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位置处的颜色生成的纹理;
混合模块,用于将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
颜色更新模块,用于通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
模型更新模块,用于根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
可选地,所述纹理位置确定模块包括:
第一重叠确定子模块,用于确定预设的区域遮罩是否与所述当前网格位置存在重叠;
目标网格位置确定子模块,用于若预设的区域遮罩与所述当前网格位置存在重叠,将所述当前网格位置中与所述区域遮罩重叠之外的区域作为目标网格位置;
纹理位置确定子模块,用于根据所述目标网格位置确定所述虚拟模型的纹理贴图的当前纹理位置。
可选地,所述渲染纹理采集模块,包括:
第一渲染纹理采集子模块,用于采用虚拟摄像机拍摄所述触控操作在第n时刻对应的历史触控区域,得到第n时刻对应的渲染纹理。
可选地,所述渲染纹理采集模块,包括:
第二重叠确定子模块,用于确定预设的区域遮罩是否与所述触控操作在第n时刻对应的历史触控区域存在重叠;
第二渲染纹理采集做子模块,用于若预设的区域遮罩与所述触控操作在第n时刻对应的历史触控区域存在重叠,采集所述历史触控区域与所述区域遮罩重叠之外的区域,得到渲染纹理。
可选地,所述装置还包括:
第一时刻模型位置确定模块,用于对于第一时刻,响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置;
第一时刻纹理位置确定模块,用于根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
初始颜色更新模块,用于通过预设的初始颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
第一时刻渲染模块,用于根据更新后的所述纹理贴图渲染所述第一时刻的所述虚拟模型。
可选地,所述混合模块,包括:
比例确定子模块,用于确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;
混合子模块,用于根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色。
本公开实施例还公开了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口以及所述存储器通过所述通信总线完成相互间的通信;
所述存储器,用于存放计算机程序;
所述处理器,用于执行存储器上所存放的程序时,实现如本公开实施例所述的方法。
本公开实施例还公开了一个或多个计算机可读介质,其上存储有指令,当由一个或多个处理器执行时,使得所述处理器执行如本公开实施例所述的方法。
本发明实施例包括以下优点:
通过本公开的数据处理方法,响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,触控操作在虚拟模型的模型网格的当前网格位置,其中,n≥1;根据当前网格位置确定虚拟模型的纹理贴图的当前纹理位置;采集触控操作在第n时刻时对应的渲染纹理,获取渲染纹理中触控操作在历史触控区域的颜色信息,渲染纹理为根据触控操作在纹理贴图的历史位置处的颜色生成的纹理;将历史触控区域的颜色与当前纹理位置的当前颜色进行混合,得到当前纹理位置的目标颜色;通过目标颜色更新纹理贴图的当前纹理位置处的颜色;根据更新后的纹理贴图渲染第n+1时刻的虚拟模型,从而可以实现在三维空间中对虚拟模型进行颜色渐变的上色涂抹效果。
附图说明
图1是本公开实施例中提供的一种数据处理方法的步骤流程图;
图2是本公开实施例中提供的一种数据处理方法的步骤流程图;
图3是本公开实施例中提供的一种区域遮罩示意图
图4是本公开实施例中提供的一种虚拟模型渲染示意图。
图5是本公开实施例中提供的一种数据处理装置的结构框图;
图6是本公开实施例中提供的一种电子设备的框图;
图7是本公开实施例中提供的一种计算机可读介质的示意图。
具体实施方式
为使本公开的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本公开作进一步详细的说明。
在本公开实施例中,在需要对虚拟人体模型进行化妆、对虚拟模型添加水墨风格的纹理等情况下,用户可以期望在上色过程中实时地展现颜色渐变效果。
若在完成单次操作之后在对虚拟模型进行上色,此时单次操作的起点与终点是确定的,那么可以分别确定单次操作的起点颜色与终点颜色,再基于起点颜色与终点颜色确定单次操作中间部分的颜色,以形成颜色渐变效果。
但是,用户往往还期望可以在上色过程中实时地观察到上色效果。由此,本公开实施例实时识别每一时刻下触控操作所处的区域,并将触控在历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到当前纹理位置的目标颜色,从而可以通过虚拟操作实现对虚拟模型的实时上色。
此外,由于虚拟模型通常是凹凸不平的,在虚拟模型上连续的位置变化,可能涉及三维空间中多个方向的位置变化,从而映射至虚拟模型对应的纹理贴图时,可能出现在纹理贴图中位置变化不连续的情况。虚拟模型进行上色的过程中,面对不连续的纹理贴图,无法简单地确定虚拟操作每一时刻移动的偏移量,因此无法基于偏移量确定虚拟模型在上一 时刻所处的区域,并提取得到该区域的颜色。由此,本公开实施例通过对虚拟操作在上一时刻所处区域的纹理贴图颜色提前进行采集,得到记载有该区域颜色的渲染纹理,其后可以基于渲染纹象简便地确定虚拟操作在上一时刻所处区域对应的颜色,从而可以简便地完成颜色混合。
参照图1,示出了本公开实施例中提供的一种数据处理方法的步骤流程图,具体可以包括如下步骤:
步骤101,响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
在本公开实施例中,虚拟模型可以为三维模型。例如,三维的人体模型、动物模型、植物模型、建筑模型等。
若用户需要对虚拟模型进行上色,可以对所述虚拟模型执行触控操作。每次触控操作可以是连续的、无中断的移动,即每次所述触控操作可以认为是单笔作画,其可以绘制出连续的图案。
在用户进行触控操作的一段时间内,可以实时地获取当前第n+1时刻时,触控操作在虚拟模型的模型网格的当前网格位置,以确定当前需要进行上色的位置。
其中,由于触控操作可以在第一时刻时在虚拟模型上添加预设的颜色,其后从第二时刻开始,随着触控操作的移动,将添加的颜色与虚拟模型纹理所具有的颜色进行混合,以实现上色涂抹的效果。从而n≥1。
具体而言,虚拟模型可以通过一电子设备中的显示屏进行展示。用户可以通过触控显示屏、通过电子设备连接的外设设备如鼠标、触控笔、键盘等发出触控操作。触控操作可以指向显示屏中的某一位置,以指向显示屏中展示的虚拟模型中的某一位置,从而可以确定触控操作在虚拟模型的模型网格的当前网格位置。
在具体实现中,用户的触控操作可以用于控制一笔刷遮罩,笔刷遮罩当前所覆盖的位置,可以认为是触控操作在虚拟模型的模型网格所处的当前网格位置。
步骤102,根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
在确定触控操作当前所处的当前网格位置之后,可以根据当前网格位置,进一步确定当前网格位置所对应的虚拟模型的纹理贴图的当前纹理位置,以确定纹理贴图中需要进行上色的位置。
在具体实现中,可以预先设置虚拟模型的模型网格在三维空间中的网格位置与纹理贴图的纹理位置之间的对应关系,从而在确定触控操作对应的模型网格的当前网格位置之后,即可以基于预设的对应关系,确定当前网格位置所对应的虚拟模型的纹理贴图的当前纹理位置。
步骤103,采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位置处的颜色生成的纹理;
具体而言,为了实现颜色渐变的效果,可以将触控操作在第n时刻所处的历史触控区域的颜色与当前纹理位置的当前颜色进行混合,以使每一时刻确定的目标颜色都是基于历史触控区域的颜色进行变化的,从而可以展现出颜色逐渐变化的效果。
由此,可以提前采集触控操作中第n时刻对应的渲染纹理(Render Texture),以便在触控操作对应的纹理贴图的位置变化可能不连续的情况下,可以通过提前采集触控操作在所述纹理贴图的历史位置处的颜色生成的纹理,实现记录当前时刻的上一时刻的目标颜色,以便处理颜色的混合。具体地,渲染纹理中记载有历史触控区域的尺寸、维度、颜色等多种信息。从而可以从渲染纹理中获取触控操作在历史触控区域的颜色信息。
步骤104,将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
在通过渲染纹理获取得到历史触控区域的颜色之后,可以进一步从纹理贴图中确定当前纹理位置,并提取当前纹理位置的当前颜色。其后,可以将历史触控区域的颜色与当前纹理位置的当前颜色进行混合,确定当前纹理位置的目标颜色。
步骤105,通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
在确定当前纹理位置的所要添加的目标颜色之后,采用目标颜色更新纹理贴图中当前纹理位置处的颜色,从而完成虚拟模型中当前网格位置对应纹理的上色。
由于当前纹理位置的目标颜色是基于第n时刻,即上一时刻触控操作所处的历史触控区域对应纹理颜色以及第n+1时刻,即当前触控区域对应的纹理颜色确定的。由此,目标颜色可以是基于历史触控区域的颜色的基础上,参考当前纹理位置的当前颜色进行变化的,从而可以中基于历史触控区域的颜色进行颜色简便的同时,与虚拟模型的当前颜色较好地进行融合,实现自然的颜色渐变效果。
步骤106,根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
在更新纹理贴图当前纹理位置处的颜色之后,可以采用更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型,从而可以实现在通过触控操作对虚拟模型进行上色的过程中,实时地展示虚拟模型的上色效果,从而可以实现为用户提供在三维空间中的虚拟模型进行实时上色涂抹的功能。
通过本公开的数据处理方法,响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,触控操作在虚拟模型的模型网格的当前网格位置,其中,n≥1;根据当前网格位置确定虚拟模型的纹理贴图的当前纹理位置;采集触控操作在第n时刻时对应的渲染纹理,获取渲染纹理中触控操作在历史触控区域的颜色信息,渲染纹理为根据触控操作在纹理贴图的历史位置处的颜色生成的纹理;将历史触控区域的颜色与当前纹理位置的当前颜色进行混合,得到当前纹理位置的目标颜色;通过目标颜色更新纹理贴图的当前纹理位置处的颜色;根据更新后的纹理贴图渲染第n+1时刻的虚拟模型,从而可以实现在三维空间中对虚拟模型进行颜色渐变的上色涂抹效果。
参照图2,示出了本公开实施例中提供的一种数据处理方法的步骤流程图,具体可以 包括如下步骤:
步骤201,响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
若用户需要对虚拟模型进行上色,可以对所述虚拟模型执行触控操作。每次触控操作可以是连续的、无中断的移动,即每次所述触控操作可以认为是单笔作画,其可以绘制出连续的图案。
在用户进行触控操作的一段时间内,可以实时地获取当前第n+1时刻时,触控操作在虚拟模型的模型网格的当前网格位置,以确定当前需要进行上色的位置。
其中,由于触控操作可以在第一时刻时在虚拟模型上添加预设的颜色,其后从第二时刻开始,随着触控操作的移动,将添加的颜色与虚拟模型纹理所具有的颜色进行混合,以实现上色涂抹的效果。从而n≥1。
具体而言,虚拟模型可以通过一电子设备中的显示屏进行展示。用户可以通过触控显示屏、通过电子设备连接的外设设备如鼠标、触控笔、键盘等发出触控操作。触控操作可以指向显示屏中的某一位置,以指向显示屏中展示的虚拟模型中的某一位置,从而可以确定触控操作在虚拟模型的模型网格的当前网格位置。
在具体实现中,用户的触控操作可以用于控制一笔刷遮罩,笔刷遮罩当前所覆盖的位置,可以认为是触控操作在虚拟模型的模型网格所处的当前网格位置。
在本公开的一种示例中,所述方法还包括:
S11,对于第一时刻,响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置;
为了实现对模型进行上色涂抹的效果,在第一时刻,可以对虚拟模型进行上色,其后随着触控操作在后续时刻的移动,基于第一时刻添加的颜色对虚拟模型其他位置进行上色,从而实现将添加的颜色自然地涂抹至其他区域的效果。
由此,对于第一时刻,可以响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,以便确定虚拟模型需要进行上色的位置。
S12,根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
在确定第一时刻下触控操作在虚拟模型的模型网格的当前网格位置之后,为了实现对虚拟模型上色,可以进一步确定虚拟模型的纹理贴图中,当前网格位置所对应的的当前纹理位置。
具体而言,预先设置虚拟模型的模型网格在三维空间中的网格位置与纹理贴图的纹理位置之间的对应关系,从而在确定触控操作对应的模型网格的当前网格位置之后,即可以基于预设的对应关系,确定当前网格位置所对应的虚拟模型的纹理贴图的当前纹理位置。
S13,通过预设的初始颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
在确定纹理贴图的当前纹理位置之后,即可以通过预设的初始颜色更新纹理贴图的当 前纹理位置处的颜色,实现对虚拟模型的上色。其中,预设的初始颜色可以由用户选择确定。
S14,根据更新后的所述纹理贴图渲染所述第一时刻的所述虚拟模型。
完成纹理贴图的更新之后,可以根据更新后的所述纹理贴图渲染第一时刻的所述虚拟模型,从而可以向用户展示实时的颜色展示效果。
步骤202,根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
在确定触控操作当前所处的当前网格位置之后,可以根据当前网格位置,进一步确定当前网格位置所对应的虚拟模型的纹理贴图的当前纹理位置,以确定纹理贴图中需要进行上色的位置。
在具体实现中,可以预先设置虚拟模型的模型网格在三维空间中的网格位置与纹理贴图的纹理位置之间的对应关系,从而在确定触控操作对应的模型网格的当前网格位置之后,即可以基于预设的对应关系,确定当前网格位置所对应的虚拟模型的纹理贴图的当前纹理位置。
在本公开的一种实施例中,所述根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置的步骤,包括:
S21,确定预设的区域遮罩是否与所述当前网格位置存在重叠;
具体而言,所述虚拟模型可能不需要在所有位置皆进行上色,而只需要在部分位置进行上色。例如,在对三维人体模型的面部进行化妆的情况下,若对面颊进行上色,可以不希望将颜色涂抹至面颊以外如鼻子、嘴唇等部位,而只希望在面颊部位进行上色。同时,也不希望其他部位所处位置的颜色对当前上色产生影响。
在此情况下,为了避免无关区域对当前上色涂抹过程产生的不良影响,可以采用预设的区域遮罩,对无关区域进行遮蔽。由此,在确定触控操作在虚拟模型的模型网格的当前网格位置之后,还所需要进一步确定当前网格位置是否与区域遮罩存在重叠,以确定当前网格位置是否包含了不希望进行上色的区域。
S22,若预设的区域遮罩与所述当前网格位置存在重叠,将所述当前网格位置中与所述区域遮罩重叠之外的区域作为目标网格位置;
若区域遮罩与当前网格位置存在重叠,则可以认为当前网格位置包含了不希望进行上色的区域。则此时可以将当前网格位置中未被覆盖的区域作为目标网格位置,以避免对无关区域进行上色。
S23,根据所述目标网格位置确定所述虚拟模型的纹理贴图的当前纹理位置。
在确定目标网格位置之后,可以基于目标网格位置确定虚拟模型的纹理贴图的当前纹理位置,以在纹理贴图中确定所需要进行上色的区域。
作为本公开的一种示例,图3为本公开实施例的一种区域遮罩示意图,若当前网格位置在第n+1帧所处的当前网格位置302被区域遮罩301覆盖,则可以将当前网格位置302中与区域遮罩301重叠之外的区域作为目标网格位置,后续基于目标网格位置进行上色, 避免上色超出允许上色区域。
步骤203,采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位置处的颜色生成的纹理;
具体而言,为了实现颜色渐变的效果,可以将触控操作在第n时刻所处的历史触控区域的颜色与当前纹理位置的当前颜色进行混合,以使每一时刻确定的目标颜色都是基于历史触控区域的颜色进行变化的,从而可以展现出颜色逐渐变化的效果。
由此,可以提前采集触控操作中第n时刻对应的渲染纹理(Render Texture),以便在触控操作对应的纹理贴图的位置变化可能不连续的情况下,可以通过提前采集触控操作在所述纹理贴图的历史位置处的颜色生成的纹理,实现记录当前时刻的上一时刻的目标颜色,以便处理颜色的混合。具体地,渲染纹理中记载有历史触控区域的尺寸、维度、颜色等多种信息。从而可以从渲染纹理中获取触控操作在历史触控区域的颜色信息。
在本公开的一种实施例中,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
S31,采用虚拟摄像机拍摄所述触控操作在第n时刻对应的历史触控区域,得到第n时刻对应的渲染纹理。
具体而言,三维处理软件如unity、houdini等,可以在软件中提供虚拟摄像机功能,其可以允许用户对虚拟模型进行拍摄,得到某一时刻下的渲染纹理(Render Texture)。
由此,可以采用虚拟摄像机拍摄笔刷遮罩在第n时刻对应的历史触控区域,以获得第n时刻对应的渲染纹理,以便在无法简单基于虚拟模型上的网格位置或者纹理贴图上的纹理位置确定触控操作上一帧所处位置的情况下,也可以根据渲染纹理获取得到上一时刻,即第n时刻的颜色信息以进行颜色混合。
在本公开的一种实施例中,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
S41,确定预设的区域遮罩是否与所述触控操作在第n时刻对应的历史触控区域存在重叠;
具体而言,所述虚拟模型可能不需要在所有位置皆进行上色,而只需要在部分位置进行上色。由此,为了避免生成渲染纹理的过程中,由于采集得到与虚拟模型上色无关的位置,从而导致后续可能出现颜色混合效果异常的情况,可以在采集渲染纹理时,确定预设的区域遮罩是否与所述触控操作在第n时刻对应的历史触控区域存在重叠,以确定是否可能采集到无关位置的颜色信息。
S42,若预设的区域遮罩与所述触控操作在第n时刻对应的历史触控区域存在重叠,采集所述历史触控区域与所述区域遮罩重叠之外的区域,得到渲染纹理。
若预设的区域遮罩与所述触控操作在第n时刻对应的历史触控区域存在重叠,则此时为了避免采集到无关位置的颜色信息。可以针对历史触控区域中与所述区域遮罩重叠之外 的区域进行采集,得到渲染纹理,以使颜色可以正常进行混合。
步骤204,确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;
在通过渲染纹理获取得到历史触控区域的颜色之后,可以进一步从纹理贴图中确定当前纹理位置,并提取当前纹理位置的当前颜色。其后,可以将历史触控区域的颜色与当前纹理位置的当前颜色进行混合,确定当前纹理位置的目标颜色。
在将历史触控区域的颜色与当前纹理位置对应的当前颜色进行混合的过程中,可以分别确定不同颜色在目标颜色中占据的比例,以确定在当前纹理位置的上色效果。由此,可以分别确定历史触控区域对应的第一混合比例,以及当前纹理位置对应的第二混合比例。其中,第一混合比例与第二配合比例之和可以为100%。
在具体实现中,第一混合比例与第二配合比例的值可以根据实际需要确定。例如,在n+1的数值较小的情况下,为了获得更接近预设的初始颜色的色彩,可以设置第一混合比例较大而第二配合比例较小。而在n+1的数值较大的情况下,为了获得更加接近虚拟模型原有颜色的色彩,可以设置第一混合比例较小而第二配合比例较大。又例如,预设的初始颜色相对于虚拟模型原有颜色较为不明显的情况下,为了突出上色效果,可以设置第一混合比例较大而第二配合比例较小。而在预设的初始颜色相对于虚拟模型原有颜色较为明显的情况下,为了避免添加的颜色与虚拟模型对比过于强烈,可以设置第一混合比例较小而第二配合比例较大。
步骤205,根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
在确定第一混合比例与第二混合比例之后,可以根据所述第一混合比例与所述第二混合比例,将历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到当前纹理位置的目标颜色,以确定当前纹理位置所要展示的颜色效果。
在具体实现中,目标颜色可以采用如下公式计算得到:
目标颜色=历史笔刷区域的颜色×第一混合比例+当前笔刷区域的颜色×第二混合比例。
步骤206,通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
在确定当前纹理位置的所要添加的目标颜色之后,采用目标颜色更新纹理贴图中当前纹理位置处的颜色,从而完成虚拟模型中当前网格位置对应纹理的上色。
由于当前纹理位置的目标颜色是基于第n时刻,即上一时刻触控操作所处的历史触控区域对应纹理颜色以及第n+1时刻,即当前触控区域对应的纹理颜色确定的。由此,目标颜色可以是基于历史触控区域的颜色的基础上,参考当前纹理位置的当前颜色进行变化的,从而可以中基于历史触控区域的颜色进行颜色简便的同时,与虚拟模型的当前颜色较好地进行融合,实现自然的颜色渐变效果。
步骤207,根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
在更新纹理贴图当前纹理位置处的颜色之后,可以采用更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型,从而可以实现在通过触控操作对虚拟模型进行上色的过程中,实时地展示虚拟模型的上色效果,从而可以实现为用户提供在三维空间中的虚拟模型进行实时上色涂抹的功能。
作为本公开的一种具体示例,图4为本公开实施例中提供的一种虚拟模型上色示意图。
如图4(a)所示,对于第一时刻,可以响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,以便确定虚拟模型需要进行上色的位置,其后根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置,通过预设的初始颜色更新所述纹理贴图的所述当前纹理位置处的颜色,实现对虚拟模型初次上色。根据更新后的所述纹理贴图渲染所述第一时刻的所述虚拟模型之后,可以采用虚拟摄像机拍摄所述触控操作在第一时刻对应的历史触控区域,得到第一时刻对应的渲染纹理。
如图4(b)所示,对于第二时刻,可以确定响应作用于虚拟模型的触控操作,获取在当前第二时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置。根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置之后,可以采集所述触控操作在第一时刻时对应的渲染纹理,以获取渲染纹理中触控操作在历史触控区域的颜色信息。将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色之后,通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色,并根据更新后的所述纹理贴图渲染所述第二时刻的所述虚拟模型,从而可以实时地在模型中展示上色效果。上色效果如图4(c)所示。其后可以再采用虚拟摄像机拍摄所述触控操作在第二时刻对应的历史触控区域,得到第二时刻对应的渲染纹理。
如图4(d)所示,对于第三时刻,可以确定响应作用于虚拟模型的触控操作,获取在当前第三时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置。根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置之后,可以采集所述触控操作在第二时刻时对应的渲染纹理,以获取渲染纹理中触控操作在历史触控区域的颜色信息。将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色之后,通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色,并根据更新后的所述纹理贴图渲染所述第三时刻的所述虚拟模型,从而可以实时地在模型中展示上色效果。上色效果如图4(e)所示。由此可以实现在虚拟模型上进行颜色渐变的上色效果。
通过本公开的数据处理方法,响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,触控操作在虚拟模型的模型网格的当前网格位置,其中,n≥1;根据当前网格位置确定虚拟模型的纹理贴图的当前纹理位置;采集触控操作在第n时刻时对应的渲染纹理,获取渲染纹理中触控操作在历史触控区域的颜色信息,渲染纹理为根据触控操作在纹理贴图的历史位置处的颜色生成的纹理;确定所述历史触控区域对应的第一混合比例,以及所 述当前纹理位置对应的第二混合比例;根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色;通过目标颜色更新纹理贴图的当前纹理位置处的颜色;根据更新后的纹理贴图渲染第n+1时刻的虚拟模型,从而可以实现在三维空间中对虚拟模型进行颜色渐变的上色涂抹效果。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开实施例并不受所描述的动作顺序的限制,因为依据本公开实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本公开实施例所必须的。
参照图5,示出了本公开实施例中提供的一种数据处理装置的结构框图,具体可以包括如下模块:
模型位置确定模块501,用于响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
纹理位置确定模块502,用于根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
渲染纹理采集模块503,用于采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位置处的颜色生成的纹理;
混合模块504,用于将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
颜色更新模块505,用于通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
模型更新模块506,用于根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
可选地,所述纹理位置确定模块包括:
第一重叠确定子模块,用于确定预设的区域遮罩是否与所述当前网格位置存在重叠;
目标网格位置确定子模块,用于若预设的区域遮罩与所述当前网格位置存在重叠,将所述当前网格位置中与所述区域遮罩重叠之外的区域作为目标网格位置;
纹理位置确定子模块,用于根据所述目标网格位置确定所述虚拟模型的纹理贴图的当前纹理位置。
可选地,所述渲染纹理采集模块,包括:
第一渲染纹理采集子模块,用于采用虚拟摄像机拍摄所述触控操作在第n时刻对应的历史触控区域,得到第n时刻对应的渲染纹理。
可选地,所述渲染纹理采集模块,包括:
第二重叠确定子模块,用于确定预设的区域遮罩是否与所述触控操作在第n时刻对应的历史触控区域存在重叠;
第二渲染纹理采集做子模块,用于若预设的区域遮罩与所述触控操作在第n时刻对应的历史触控区域存在重叠,采集所述历史触控区域与所述区域遮罩重叠之外的区域,得到渲染纹理。
可选地,所述装置还包括:
第一时刻模型位置确定模块,用于对于第一时刻,响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置;
第一时刻纹理位置确定模块,用于根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
初始颜色更新模块,用于通过预设的初始颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
第一时刻渲染模块,用于根据更新后的所述纹理贴图渲染所述第一时刻的所述虚拟模型。
可选地,所述混合模块,包括:
比例确定子模块,用于确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;
混合子模块,用于根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
另外,本公开实施例还提供一种电子设备,如图6所示,包括处理器601、通信接口602、存储器603和通信总线604,其中,处理器601,通信接口602,存储器603通过通信总线604完成相互间的通信,
存储器603,用于存放计算机程序;
处理器601,用于执行存储器603上所存放的程序时,可实现如下步骤:
响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位置处的颜色生成的纹理;
将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
可选地,所述根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置的步骤,包括:
确定预设的区域遮罩是否与所述当前网格位置存在重叠;
若预设的区域遮罩与所述当前网格位置存在重叠,将所述当前网格位置中与所述区域遮罩重叠之外的区域作为目标网格位置;
根据所述目标网格位置确定所述虚拟模型的纹理贴图的当前纹理位置。
可选地,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
采用虚拟摄像机拍摄所述触控操作在第n时刻对应的历史触控区域,得到第n时刻对应的渲染纹理。
可选地,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
确定预设的区域遮罩是否与所述触控操作在第n时刻对应的历史触控区域存在重叠;
若预设的区域遮罩与所述触控操作在第n时刻对应的历史触控区域存在重叠,采集所述历史触控区域与所述区域遮罩重叠之外的区域,得到渲染纹理。
可选地,所述方法还包括:
对于第一时刻,响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置;
根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
通过预设的初始颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
根据更新后的所述纹理贴图渲染所述第一时刻的所述虚拟模型。
可选地,所述将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色的步骤,包括:
确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;
根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色。
通过执行本公开的数据处理方法中的步骤,响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,触控操作在虚拟模型的模型网格的当前网格位置,其中,n≥1;根据当前网格位置确定虚拟模型的纹理贴图的当前纹理位置;采集触控操作在第n时刻时对应的渲染纹理,获取渲染纹理中触控操作在历史触控区域的颜色信息,渲染纹理为根据触控操作在纹理贴图的历史位置处的颜色生成的纹理;确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色;通过目标颜色更新纹理贴图的当前纹理位置处的颜色;根据更新后的纹理贴图渲染第n+1时刻的虚拟模型,从而可以实现在三维空间中对虚拟 模型进行颜色渐变的上色涂抹效果。
上述终端提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口用于上述终端与其他设备之间的通信。
存储器可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
如图7所示,在本公开提供的又一实施例中,还提供了一种计算机可读存储介质701,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中所述的数据处理方法,具体可实现如下步骤:
响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位置处的颜色生成的纹理;
将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
可选地,所述根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置的步骤,包括:
确定预设的区域遮罩是否与所述当前网格位置存在重叠;
若预设的区域遮罩与所述当前网格位置存在重叠,将所述当前网格位置中与所述区域遮罩重叠之外的区域作为目标网格位置;
根据所述目标网格位置确定所述虚拟模型的纹理贴图的当前纹理位置。
可选地,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
采用虚拟摄像机拍摄所述触控操作在第n时刻对应的历史触控区域,得到第n时刻对 应的渲染纹理。
可选地,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
确定预设的区域遮罩是否与所述触控操作在第n时刻对应的历史触控区域存在重叠;
若预设的区域遮罩与所述触控操作在第n时刻对应的历史触控区域存在重叠,采集所述历史触控区域与所述区域遮罩重叠之外的区域,得到渲染纹理。
可选地,所述方法还包括:
对于第一时刻,响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置;
根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
通过预设的初始颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
根据更新后的所述纹理贴图渲染所述第一时刻的所述虚拟模型。
可选地,所述将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色的步骤,包括:
确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;
根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色。
通过执行本公开的数据处理方法中的步骤,响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,触控操作在虚拟模型的模型网格的当前网格位置,其中,n≥1;根据当前网格位置确定虚拟模型的纹理贴图的当前纹理位置;采集触控操作在第n时刻时对应的渲染纹理,获取渲染纹理中触控操作在历史触控区域的颜色信息,渲染纹理为根据触控操作在纹理贴图的历史位置处的颜色生成的纹理;确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色;通过目标颜色更新纹理贴图的当前纹理位置处的颜色;根据更新后的纹理贴图渲染第n+1时刻的虚拟模型,从而可以实现在三维空间中对虚拟模型进行颜色渐变的上色涂抹效果。
在本公开提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中所述的数据处理方法,以实现在三维空间中对虚拟模型进行颜色渐变的上色涂抹效果,具体可实现如下步骤:
响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位 置处的颜色生成的纹理;
将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
可选地,所述根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置的步骤,包括:
确定预设的区域遮罩是否与所述当前网格位置存在重叠;
若预设的区域遮罩与所述当前网格位置存在重叠,将所述当前网格位置中与所述区域遮罩重叠之外的区域作为目标网格位置;
根据所述目标网格位置确定所述虚拟模型的纹理贴图的当前纹理位置。
可选地,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
采用虚拟摄像机拍摄所述触控操作在第n时刻对应的历史触控区域,得到第n时刻对应的渲染纹理。
可选地,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
确定预设的区域遮罩是否与所述触控操作在第n时刻对应的历史触控区域存在重叠;
若预设的区域遮罩与所述触控操作在第n时刻对应的历史触控区域存在重叠,采集所述历史触控区域与所述区域遮罩重叠之外的区域,得到渲染纹理。
可选地,所述方法还包括:
对于第一时刻,响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置;
根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
通过预设的初始颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
根据更新后的所述纹理贴图渲染所述第一时刻的所述虚拟模型。
可选地,所述将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色的步骤,包括:
确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;
根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色。
通过执行本公开的数据处理方法中的步骤,响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,触控操作在虚拟模型的模型网格的当前网格位置,其中,n≥1;根据当前网格位置确定虚拟模型的纹理贴图的当前纹理位置;采集触控操作在第n时刻时对应的渲染纹理,获取渲染纹理中触控操作在历史触控区域的颜色信息,渲染纹理为根据触控操作在纹理贴图的历史位置处的颜色生成的纹理;确定所述历史触控区域对应的第一混 合比例,以及所述当前纹理位置对应的第二混合比例;根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色;通过目标颜色更新纹理贴图的当前纹理位置处的颜色;根据更新后的纹理贴图渲染第n+1时刻的虚拟模型,从而可以实现在三维空间中对虚拟模型进行颜色渐变的上色涂抹效果。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本公开实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本公开的较佳实施例而已,并非用于限定本公开的保护范围。凡在本公开的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本公开的保护范围内。

Claims (10)

  1. 一种数据处理方法,其中,包括:
    响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
    根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
    采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位置处的颜色生成的纹理;
    将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
    通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
    根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
  2. 根据权利要求1所述的方法,其中,所述根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置的步骤,包括:
    确定预设的区域遮罩是否与所述当前网格位置存在重叠;
    若预设的区域遮罩与所述当前网格位置存在重叠,将所述当前网格位置中与所述区域遮罩重叠之外的区域作为目标网格位置;
    根据所述目标网格位置确定所述虚拟模型的纹理贴图的当前纹理位置。
  3. 根据权利要求1所述的方法,其中,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
    采用虚拟摄像机拍摄所述触控操作在第n时刻对应的历史触控区域,得到第n时刻对应的渲染纹理。
  4. 根据权利要求1或3所述的方法,其中,所述采集所述触控操作在第n时刻时对应的渲染纹理的步骤,包括:
    确定预设的区域遮罩是否与所述触控操作在第n时刻对应的历史触控区域存在重叠;
    若预设的区域遮罩与所述触控操作在第n时刻对应的历史触控区域存在重叠,采集所述历史触控区域与所述区域遮罩重叠之外的区域,得到渲染纹理。
  5. 根据权利要求1所述的方法,其中,所述方法还包括:
    对于第一时刻,响应作用于虚拟模型的触控操作,获取在第一时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置;
    根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
    通过预设的初始颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
    根据更新后的所述纹理贴图渲染所述第一时刻的所述虚拟模型。
  6. 根据权利要求1所述的方法,其中,所述将所述历史触控区域的颜色与所述当前 纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色的步骤,包括:
    确定所述历史触控区域对应的第一混合比例,以及所述当前纹理位置对应的第二混合比例;
    根据所述第一混合比例与所述第二混合比例,将所述历史触控区域的颜色与所述当前纹理位置对应的当前颜色进行混合,得到所述当前纹理位置的目标颜色。
  7. 一种数据处理装置,其中,包括:
    模型位置确定模块,用于响应作用于虚拟模型的触控操作,获取在当前第n+1时刻时,所述触控操作在所述虚拟模型的模型网格的当前网格位置,其中,所述n≥1;
    纹理位置确定模块,用于根据所述当前网格位置确定所述虚拟模型的纹理贴图的当前纹理位置;
    渲染纹理采集模块,用于采集所述触控操作在第n时刻时对应的渲染纹理,获取所述渲染纹理中所述触控操作在历史触控区域的颜色信息,所述渲染纹理为根据所述触控操作在所述纹理贴图的历史位置处的颜色生成的纹理;
    混合模块,用于将所述历史触控区域的颜色与所述当前纹理位置的当前颜色进行混合,得到所述当前纹理位置的目标颜色;
    颜色更新模块,用于通过所述目标颜色更新所述纹理贴图的所述当前纹理位置处的颜色;
    模型更新模块,用于根据更新后的所述纹理贴图渲染所述第n+1时刻的所述虚拟模型。
  8. 根据权利要求1所述的装置,其中,所述纹理位置确定模块包括:
    第一重叠确定子模块,用于确定预设的区域遮罩是否与所述当前网格位置存在重叠;
    目标网格位置确定子模块,用于若预设的区域遮罩与所述当前网格位置存在重叠,将所述当前网格位置中与所述区域遮罩重叠之外的区域作为目标网格位置;
    纹理位置确定子模块,用于根据所述目标网格位置确定所述虚拟模型的纹理贴图的当前纹理位置。
  9. 一种电子设备,其中,包括处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口以及所述存储器通过所述通信总线完成相互间的通信;
    所述存储器,用于存放计算机程序;
    所述处理器,用于执行存储器上所存放的程序时,实现如权利要求1-6任一项所述的方法。
  10. 一个或多个计算机可读介质,其上存储有指令,当由一个或多个处理器执行时,使得所述处理器执行如权利要求1-6任一项所述的方法。
PCT/CN2022/099812 2022-01-29 2022-06-20 数据处理方法、装置、电子设备及可读介质 WO2023142345A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210111723.3A CN114494666A (zh) 2022-01-29 2022-01-29 数据处理方法、装置、电子设备及可读介质
CN202210111723.3 2022-01-29

Publications (1)

Publication Number Publication Date
WO2023142345A1 true WO2023142345A1 (zh) 2023-08-03

Family

ID=81478589

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099812 WO2023142345A1 (zh) 2022-01-29 2022-06-20 数据处理方法、装置、电子设备及可读介质

Country Status (2)

Country Link
CN (1) CN114494666A (zh)
WO (1) WO2023142345A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114494666A (zh) * 2022-01-29 2022-05-13 网易(杭州)网络有限公司 数据处理方法、装置、电子设备及可读介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130187939A1 (en) * 2012-01-25 2013-07-25 Google Inc. Texture Fading for Smooth Level of Detail Transitions in a Graphics Application
CN104660910A (zh) * 2014-03-03 2015-05-27 深圳市中兴移动通信有限公司 图像处理装置及图像处理方法
CN108133498A (zh) * 2017-12-05 2018-06-08 北京像素软件科技股份有限公司 场景着色融合方法、装置及电子设备
CN110665232A (zh) * 2019-08-30 2020-01-10 网易(杭州)网络有限公司 游戏中地表的渲染方法、装置、设备和存储介质
US20200357146A1 (en) * 2019-05-09 2020-11-12 Adobe Inc. Guided generation of color gradients via adjustable color map paths through color space elements of graphical interfaces
CN113936088A (zh) * 2021-11-02 2022-01-14 网易(杭州)网络有限公司 模型渲染方法和装置
CN114494666A (zh) * 2022-01-29 2022-05-13 网易(杭州)网络有限公司 数据处理方法、装置、电子设备及可读介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130187939A1 (en) * 2012-01-25 2013-07-25 Google Inc. Texture Fading for Smooth Level of Detail Transitions in a Graphics Application
CN104660910A (zh) * 2014-03-03 2015-05-27 深圳市中兴移动通信有限公司 图像处理装置及图像处理方法
CN108133498A (zh) * 2017-12-05 2018-06-08 北京像素软件科技股份有限公司 场景着色融合方法、装置及电子设备
US20200357146A1 (en) * 2019-05-09 2020-11-12 Adobe Inc. Guided generation of color gradients via adjustable color map paths through color space elements of graphical interfaces
CN110665232A (zh) * 2019-08-30 2020-01-10 网易(杭州)网络有限公司 游戏中地表的渲染方法、装置、设备和存储介质
CN113936088A (zh) * 2021-11-02 2022-01-14 网易(杭州)网络有限公司 模型渲染方法和装置
CN114494666A (zh) * 2022-01-29 2022-05-13 网易(杭州)网络有限公司 数据处理方法、装置、电子设备及可读介质

Also Published As

Publication number Publication date
CN114494666A (zh) 2022-05-13

Similar Documents

Publication Publication Date Title
US11880977B2 (en) Interactive image matting using neural networks
US10380723B2 (en) Editing dynamically selected portions of target images in a mask-based editing interface
WO2022012085A1 (zh) 人脸图像处理方法、装置、存储介质及电子设备
CA3143033C (en) Data serialization extrusion for converting two-dimensional images to three-dimensional geometry
US20160196008A1 (en) Implementing desktops on a mobile terminal
WO2023142345A1 (zh) 数据处理方法、装置、电子设备及可读介质
CN109698914A (zh) 一种闪电特效渲染方法、装置、设备及存储介质
DE112012006448T5 (de) Umsetzung einer Berührungseingabe in eine lokale Eingabe auf der Grundlage eines Umsetzungsprofils für eine Anwendung
CN109062779A (zh) 测试控制方法、主控设备、被控设备及测试系统
US20140198177A1 (en) Realtime photo retouching of live video
CN104184791B (zh) 图像效果提取
CN106406693B (zh) 图像选中方法及装置
CN114663324A (zh) 一种bim模型与gis信息的融合显示方法及相关组件
WO2022105277A1 (zh) 投影控制方法、装置、投影光机及可读存储介质
CN104391898B (zh) 数据展示方法和装置
CN111125564B (zh) 热力图生成方法、装置、计算机设备及存储介质
CN110047126A (zh) 渲染图像的方法、装置、电子设备和计算机可读存储介质
US11043015B2 (en) Generating reflections within images
US9602739B1 (en) Lookup table interpolation in a film emulation camera system
CN111563956A (zh) 一种二维图片的三维显示方法、装置、设备及介质
WO2021139178A1 (zh) 图像合成方法及相关设备
US11812153B2 (en) Systems and methods for fisheye camera calibration and bird's-eye-view image generation in a simulation environment
CN111429541B (zh) 一种图形擦除方法及装置
US20230119741A1 (en) Picture annotation method, apparatus, electronic device, and storage medium
US20230032258A1 (en) Cloud design composition negotiation system

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: 22923154

Country of ref document: EP

Kind code of ref document: A1