[go: up one dir, main page]

CN107204033A - The generation method and device of picture - Google Patents

The generation method and device of picture Download PDF

Info

Publication number
CN107204033A
CN107204033A CN201610150208.0A CN201610150208A CN107204033A CN 107204033 A CN107204033 A CN 107204033A CN 201610150208 A CN201610150208 A CN 201610150208A CN 107204033 A CN107204033 A CN 107204033A
Authority
CN
China
Prior art keywords
coordinate
textures
model
information
texture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610150208.0A
Other languages
Chinese (zh)
Other versions
CN107204033B (en
Inventor
安柏霖
肖竹青
李小猛
李成栋
孙正倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610150208.0A priority Critical patent/CN107204033B/en
Publication of CN107204033A publication Critical patent/CN107204033A/en
Application granted granted Critical
Publication of CN107204033B publication Critical patent/CN107204033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • G06T15/506Illumination models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2215/00Indexing scheme for image rendering
    • G06T2215/12Shadow map, environment map

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a kind of generation method of picture and device.Wherein, this method includes:Obtain the first coordinate of the first model of the first picture and the second coordinate of the first textures;Display elements presentation of information according to entrained by mapping relations by position of second coordinate on the first textures on the position of the first model, obtains the first model after textures in the first coordinate corresponding with the second coordinate;The convex-concave detailed information of second model is applied on the first model after textures, the first picture is generated.The present invention solves the poor technical problem of image display effect authenticity in the game of prior art.

Description

The generation method and device of picture
Technical field
The present invention relates to image processing field, in particular to the generation method and dress of a kind of picture Put.
Background technology
In existing 3D game, 3D game engines are developed mainly for single-play game or client. Since being come out from first item 3D game in 1992, the development of more than 20 years, technology hair have been had already been through Exhibition comparative maturity, has substantial amounts of commercialization engine to emerge in large numbers, such as BigWorld, Gamebryo, Illusory, Cry Engine etc..In the case where veteran fine arts team promotes, current various unit trips The reason for play is based more on client no pressure, it is unlimited to increase actor model face number and textures size to realize High-quality art effect, to realize more lively real 3D art effects.However, domestic Legacy network game is started late, and domestic internet environment is complicated, easily by player's hardware water The relatively low limitation and online number excessively excess load, development cost with network traffics etc. of product is low, make Making team's basis objective factor such as unsturdy, to cause universal end to swim art effect relatively low, for example, Cloth material effect is untrue in game, and animal fur effect is untrue, and the skin texture of personage is not true It is real etc..
, can be with the prior art for cloth material and the false problem of animal fur effect in the trip of end The hair of personage in the trip of end is drawn by way of Freehandhand-drawing.The mode of Freehandhand-drawing is to concentrate on a Color Bloom is showed above Map, is exactly the bloom effect of "false" in texture effect.But, traditional hand Paint that model face number is low, textures pixel is low, lack the convex-concave details performance of normal map, and bloom face Color is that fixed picture is dead on Diffuse Map, and all convex-concave details will not be with light position and face Color change and change, in cloth material (for example, silks and satins) and the authenticity and accuracy table of animal fur All it is weak on now.
, can be on the basis of traditional hand design textures, separately in order to pursue the art effect of more high-quality The outer other textures of addition, for describing more object surface concave-convex details and membership credentials.But, The silks and satins concave part drawn out by this method does not have the effect of Specular Highlight, and bloom can only be presented On the convex surface of normal, this disagrees with silks and satins texture present in real world, and real silks and satins are only Light is wanted, concave surface also has the bloom effect of exquisiteness, so former not in full conformity with optical anisotropic Reason, it is impossible to simulate true silks and satins texture.
On the basis of inserted sheet effect, it can be combined with anisotropic (Anisotropic) and draw game Middle cloth (for example, silks and satins) and the fur of animal.But, the computing of anisotropy material is excessive, Burden is necessarily caused to game performance, seriously beyond game load capacity.
For it is above-mentioned the problem of, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of generation method of picture and device, at least to solve existing skill The poor technical problem of image display effect authenticity in the game of art.
One side according to embodiments of the present invention there is provided a kind of generation method of picture, including: The first coordinate of the first model of the first picture and the second coordinate of the first textures are obtained, wherein, it is described First model is used to show light information, and first textures are used to carry out textures to first model, First coordinate is the three-dimensional coordinate of first model, and second coordinate is first model Two-dimensional coordinate, orientation of second coordinate on first textures and first textures The direction of the texture showed is consistent, and first coordinate and second coordinate have mapping relations; It is aobvious according to entrained by the mapping relations by position of second coordinate on first textures Show that element information is shown in the first coordinate corresponding with second coordinate in the position of first model Put, obtain the first model after textures;The convex-concave detailed information of second model is applied in the patch On the first model after figure, first picture is generated, wherein, second model is described first The model of picture, the convex-concave detailed information for showing concaveconvex structure, the face of second model Face number of the number higher than first model.
Another aspect according to embodiments of the present invention, additionally provides a kind of generating means of picture, including: Acquiring unit, sits for the first coordinate of the first model for obtaining the first picture and the second of the first textures Mark, wherein, first model is used to show light information, and first textures are used for described the One model carries out textures, and first coordinate is the three-dimensional coordinate of first model, and described second sits It is designated as the two-dimensional coordinate of first model, arrangement side of second coordinate on first textures To consistent with the direction of texture that first textures are showed, first coordinate and described second is sat Mark has mapping relations;Display unit, for according to the mapping relations by second coordinate in institute The display elements presentation of information entrained by the position on the first textures is stated to answer with second coordinate pair The first coordinate on the position of first model, obtain the first model after textures;Generation unit, It is raw for the convex-concave detailed information of the second model to be applied into the first model after the textures Into first picture, wherein, second model is the model of first picture, for showing The convex-concave detailed information of concaveconvex structure, the face number of second model is higher than the face number of first model.
In embodiments of the present invention, using the first coordinate and first for the first model for obtaining the first picture Second coordinate of textures;According to entrained by mapping relations by position of second coordinate on the first textures Display elements presentation of information on the position of the first model, is obtained in the first coordinate corresponding with the second coordinate The first model after to textures;The convex-concave detailed information of second model is applied to the first mould after textures In type, the first pictorial manner is generated.By the mapping relations of the first coordinate and the second coordinate, by second Display elements entrained by position of the coordinate on the first textures are shown in the first model sits with second Mark in corresponding first coordinate, then, the concavo-convex detailed information of the second model is applied to after textures In first model, the first model after textures is obtained, wherein, due to the second coordinate in the first textures Orientation is consistent with the grain direction that the first textures are showed, and has reached the validity for improving the picture Purpose, it is achieved thereby that drawing the technique effect of the picture of vivid effect, and then solve existing skill The poor technical problem of image display effect authenticity in the game of art.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the one of the application Part, schematic description and description of the invention is used to explain the present invention, does not constitute to this hair Bright improper restriction.In the accompanying drawings:
Fig. 1 is the Organization Chart of hardware configuration according to embodiments of the present invention;
Fig. 2 is the flow chart of the generation method of picture according to embodiments of the present invention;
Fig. 3 is a kind of optional second coordinate arrangement direction according to embodiments of the present invention and grain direction Schematic diagram;
Fig. 4 is the schematic diagram of a kind of optional first model and the second model according to embodiments of the present invention;
Fig. 5 is a kind of optional silks and satins image according to embodiments of the present invention with bloom and gray-value variation Effect diagram;
Fig. 6 is a kind of structure chart of optional default illumination model according to embodiments of the present invention;
Fig. 7 is a kind of schematic diagram of optional silks and satins texture according to embodiments of the present invention;
Fig. 8 is a kind of schematic diagram of optional details textures according to embodiments of the present invention;
Fig. 9 is a kind of size of optional animal skin according to embodiments of the present invention with details textures Schematic diagram;
Figure 10 is the schematic diagram of the generating means of picture according to embodiments of the present invention;And
Figure 11 is the hardware structure diagram of terminal according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, Obviously, described embodiment is only the embodiment of a part of the invention, rather than whole implementation Example.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work Under the premise of the every other embodiment that is obtained, should all belong to the scope of protection of the invention.
It should be noted that the term in description and claims of this specification and above-mentioned accompanying drawing " first ", " second " etc. be for distinguishing similar object, without for describe specific order or Precedence.It should be appreciated that the data so used can be exchanged in the appropriate case, to retouch here The embodiments of the invention stated can be real with the order in addition to those for illustrating or describing herein Apply.In addition, term " comprising " and " having " and their any deformation, it is intended that covering is not arranged His includes, for example, contain the process of series of steps or unit, method, system, product or Equipment is not necessarily limited to those steps clearly listed or unit, but may include not list clearly Or for the intrinsic other steps of these processes, method, product or equipment or unit.
Technical term is explained
3D game engines:Then refer in particular to scene to show for 3D, incorporate various 3D pattern algorithms and 3D The game engine of collision algorithm.
Anisotropy material (Anisotropic):Optical anisotropy's performance is primarily referred to as, due to crystalline substance The all directions refractive index of body is different, and this direction refers to the direction overlapped with the polarization direction of light, In solid space, three direction refractive indexes are all identical to be just isotropic body, only both direction phase Together, another direction difference is uniaxial crystal, and three directions are different from being biaxial crystal.
MMORPG:Massively Multiple-player Online Role-Playing Game are that is, big The online RPG of many people of type.
Bloom:Light source is irradiated to object and then when reflexing in the eyes of people, most bright that on object Point is exactly bloom, and bloom is not light, but part most bright on object, finger drawing face tune most bright one It is individual, performance be the direct reflection source of object part, be more common in the object of texture smoother. Dark portion can be produced reflective due to the reflex by surrounding objects.A reflective part as dark portion, It is typically deeper than highlights most deep intermediate colors.
Gao Mo (Highpoly Mesh):Gao Mo is the high-precision 3D models of high details, and Gao Mo takes a fancy to Details of going to be really true to life is enriched very much, the face number of model also suitable height, and high-precision model is mostly in carving Carve and completed inside software Zbrush, Mudbox.
Low mould (Lowpoly Mesh):The refinement done on the basis of Gao Mo, face number is lower than high mould, Purpose is, by Gao Mo convex-concave detailed information, to be shown by Normal Map on low mould, be it is a kind of more Efficiently, the model realization form of low consumption.
Diffuse Map (diffusing reflection textures):Color for the overall solid colour phase character of represented object Textures, are similar to the Color Map (color map) that we are referred to as.
Specular Map (specular map):It is bloom form and aspect for represented object smooth surface, strong and weak Textures.It is that reaction light is radiated at Ambient produced during the highlight area of body surface, it Effect is reflection object highlight area effect.
Normal Map (normal map):Textures for the represented object convex-concave scale of construction.Normal map It is the special texture that may apply to 3D surfaces, texture different from the past may be only used for 2D tables Face.As the extension of Z-Correct bump mapping Z-correct, it makes each pixel of each plane have height value, contained The surface information of many details, can be created that many kinds are special average without in strange object profile Stereoscopic visual effect.
Embodiment 1
There is provided a kind of generation method of picture according to embodiments of the present invention.
Alternatively, in the present embodiment, the generation method of above-mentioned picture can apply to such as Fig. 1 institutes In the hardware environment that the server 104 and terminal 102 shown is constituted.Fig. 1 is according to present invention implementation The schematic diagram of the hardware environment of example, as shown in figure 1, server 104 is entered by network with terminal 102 Row connection, above-mentioned network includes but is not limited to:Wide area network, Metropolitan Area Network (MAN) or LAN, terminal 102 is simultaneously It is not limited to computer, mobile phone, tablet personal computer etc..
Fig. 2 is the flow chart of the generation method of picture according to embodiments of the present invention.As shown in Fig. 2 The generation method of the picture comprises the following steps:
Step S202, the first coordinate of the first model of the first picture of acquisition and the second of the first textures Coordinate, wherein, the first model is used to show light information, and the first textures are used to carry out the first model Textures, the first coordinate is the three-dimensional coordinate of the first model, and the second coordinate is the two-dimensional coordinate of the first model, Orientation of second coordinate on the first textures is consistent with the direction for the texture that the first textures are showed, First coordinate and the second coordinate have mapping relations.
Specifically, the first model can be the light information and colouring information for showing the first picture Low accuracy model, the first coordinate (can again be properly termed as the low accuracy model:Low mould) three-dimensional Coordinate (for example, X/Y/Z coordinates).Second coordinate be both in the first textures two-dimensional coordinate (for example, UV coordinates), it is the two-dimensional coordinate of first model again.Wherein, above-mentioned UV coordinates are also known as UV Texture coordinate), wherein, U is the coordinate in two dimensional surface (such as the first textures) horizontal direction, V For the coordinate in two dimensional surface vertical direction.Three-dimensional coordinate on first model has with UV coordinates to be reflected Relation is penetrated, one UV coordinate of each three-dimensional coordinate correspondence therefore, it can certain on three-dimensional coordinate The point that individual point is corresponded on UV coordinates.Therefore, there is mapping to close for the first coordinate and the second coordinate System is it is to be understood that the three-dimensional coordinate in the first model may map to the second coordinate.Wherein, second The orientation of coordinate is consistent with the grain direction of the first textures, as shown in figure 3, " " institute in Fig. 3 Show as the second coordinate, " downwardly directed block arrow " represents the grain direction of the first textures, passes through Fig. 3 can be seen that the orientation of the second coordinate and grain direction is consistent.
Step S204, according to entrained by mapping relations by position of second coordinate on the first textures Display elements presentation of information on the position of the first model, is obtained in the first coordinate corresponding with the second coordinate The first model after to textures.
Specifically, the mapping relations according to the first coordinate and the second coordinate, can be by the first textures the Display elements information (for example, Lighting information) entrained by two coordinate positions is shown in the first mould In type on the first coordinate position corresponding with the second coordinate.
Step S206, the convex-concave detailed information of the second model is applied on the first model after textures, The first picture is generated, wherein, the second model is the model of the first picture, for showing concaveconvex structure Convex-concave detailed information, the face number of the second model is higher than the face number of the first model.
Specifically, in embodiments of the present invention, the second model can be for showing concavo-convex detailed information High-precision model (being properly termed as Gao Mo again).For example, when wanting the fold of prominent silks and satins cloth, In the manufacturing process of the high-precision model of the silks and satins cloth, the fold of the silks and satins cloth can be protruded The scale of construction, then, the fold that the high-precision model is completed include the low precision after above-mentioned textures In model.It should be noted that above-mentioned high-precision model and low accuracy model are the mould of the first picture Type.In another example, can be in high accuracy when wanting to protrude the concavo-convex profile of animal muscle in a certain game In the manufacturing process of model, the concavo-convex profile of prominent animal muscle, then, by the high-precision model The concavo-convex detailed information completed is applied in the first model after above-mentioned textures, in this manner it is possible to The concavo-convex profile of the animal muscle is shown in low accuracy model after textures.
It should be noted that high mould convex-concave detailed information to be applied to first after textures in animal skin The principle of silks and satins is continued to use on model, it is unique the difference is that because silks and satins can produce continuity bloom, relatively It is to carve out fur to reduce high molding work conventional in convex-concave details, animal skin, invests skin Overall structure is put down very much after rough lumber matter, lacks abundant bloom effect.Then it is prominent in high molding is made The anatomical structure of animal, exaggerates convex-concave structure relation, finally gives perfect bloom effect as far as possible.
The picture that the generation method of above-mentioned picture is generated is applied in game.Game programmer designs In a certain game (for example, game The Magic Blade) during character, it is possible to use the above method is given birth to Into the first picture.Specifically, the display that will can be carried in the first drawn textures of designer Element information is corresponding to be applied in the making of low accuracy model, and the bumps in high-precision model are thin Information application is saved into above-mentioned low accuracy model, the first picture is obtained, for example, obtaining the picture of silks and satins Or the picture of animal skin, to realize the vivid effect of silks and satins or animal skin in game.In trip During play operation, corresponding calling module the operating according to games in game engine can be passed through Corresponding picture is called in game graph storehouse, and is carried in the main interface of game.For example, calling 《The Magic Blade》In a certain personage or during animal, can be according to the scene of going game in trip The picture or animal skin picture of corresponding silks and satins are called in play shape library, and in game main interface Show the picture or animal skin picture of the silks and satins.And then, it is possible in the main interface of game The silks and satins or animal skin of fine arts personnel and technical staff designed vivid effect are shown, from And the visual experience of game player is improved, add game-play enjoyment.
As shown in figure 4, the model in left side is high-precision model, the model on right side is low precision mould Type, figure 4, it is seen that the edge of clothes occurs in that fold, low precision mould in high-precision model The edge of clothes does not occur fold in type, it can be understood as high-precision model is used to show concaveconvex structure Concavo-convex detailed information, and the face number of high-precision model is higher than low accuracy model.
In embodiments of the present invention, by the mapping relations of the first coordinate and the second coordinate, second is sat The display elements entrained by position being marked on the first textures are shown in the first model and the second coordinate In corresponding first coordinate, then, the concavo-convex detailed information of the second model is applied to after textures In one model, the first model after textures is obtained, wherein, due to the row of the second coordinate in the first textures Column direction is consistent with the grain direction that the first textures are showed, and has reached the validity of the raising picture Purpose, it is achieved thereby that drawing the technique effect of the picture of vivid effect, and then solves prior art Game in the poor technical problem of image display effect authenticity.
Alternatively, the direction of texture includes X-direction and Y direction, is obtaining the first textures Before second coordinate, method also includes:
Step S1, the direction of the abscissa of the second coordinate is set to it is consistent with X-direction, and will The direction of the ordinate of second coordinate is set to consistent with Y direction;Or
Step S2, the direction of the abscissa of the second coordinate is set to it is consistent with Y direction, and will The direction of the ordinate of second coordinate is set to consistent with X-direction.
Specifically, the direction of above-mentioned texture can be the grain direction of silks and satins, can also be animal skin Grain direction etc..In order to ensure the object belonging to the first picture (for example, silks and satins and dynamic in game Thing fur) authenticity, before the first coordinate and the second coordinate is obtained, the second coordinate can be first set Abscissa direction and the ordinate direction of the second coordinate, keep the second coordinate (that is, UV coordinates) Orientation is consistent with the grain direction that the first textures are showed.Wherein, a kind of optional method is to incite somebody to action The direction of the abscissa of second coordinate is set to the X-direction of grain direction, by the ordinate of the second coordinate Direction be set to grain direction Y it is reverse;Another optional method is by the horizontal seat of the second coordinate Target direction is set to the Y-direction of grain direction, and the direction of the ordinate of the second coordinate is set into line The X for managing direction is reverse.
Alternatively, the direction of texture includes X-direction and Y direction, and the first textures include bloom Textures, the display elements according to entrained by mapping relations by position of second coordinate on the first textures are believed Breath is shown in the first coordinate corresponding with the second coordinate and comprised the following steps on the position of the first model:
Step S1041, using default illumination model calculate respectively X-direction the first Lighting information and Second Lighting information of Y direction;
Step S1043, obtains the first weight of the first Lighting information and the second power of the second Lighting information Weight, the first weight is used to represent the degree that the texture of X-direction is blocked, and the second weight is used to represent The degree that the texture of Y direction is blocked;
Step S1045, to the first Lighting information and the product of the first weight, and the second Lighting information Summed with the product of the second weight, obtain the Lighting information of specular map;
Step S1047, according to entrained by mapping relations by position of second coordinate in specular map Lighting information is shown in the first coordinate corresponding with the second coordinate on the position of the first model.
When the first textures are specular map, Lighting information entrained in specular map can be shown Position in the first model of the first coordinate corresponding with the second coordinate.In embodiments of the present invention, may be used So that the Lighting information of specular map to be included by default illumination model (for example, Kaijya-Kay) In first model.
Specifically, model as shown in Figure 6 is Kaijya-Kay illumination models, and direction is shown in t1 The X-direction in the direction of silks and satins texture, the direction shown in t2 is the Y-axis in the direction of silks and satins texture Direction, the direction shown in w is direction of illumination, and n is the normal direction of silks and satins picture, wherein it is possible to Illumination (for example, Kaijya-Kay) is done according to the illumination model respectively in t1 directions and t2 directions, such as S1 and S2 regions shown in Fig. 6.And according to the default illumination model (for example, Kaijya-Kay Model) calculate t2 directions the first Lighting information A1 and t1 directions the second Lighting information A2.So Afterwards, the first weight P1 is obtained based on the first Lighting information, obtaining second based on the second Lighting information weighs P2 is weighed, and calculates the Lighting information of specular map and is expressed as:(A1*P1)+(A2*P2), finally will Calculating obtain Lighting information show with the first model in.
It should be noted that above-mentioned first weight and the second weight represent X-direction and Y-axis respectively The degree that direction texture is blocked, wherein, the degree blocked of texture is bigger, and weighted value is smaller;Line The coverage extent of reason is smaller, and weighted value is bigger, namely texture expose it is more.
Above-described embodiment is illustrated by taking silks and satins as an example below.
The silks and satins material of silks and satins determines its form of expression with the characteristic of common material, wherein main Difference be the performance of bloom.Due to the smooth attribute of silk, it is typically to show ratio to cause silks and satins Stronger bloom, and because silks and satins generally use crisscross weaving manner, so from entirety The bloom of upper observation silks and satins should have two, laterally (that is, X-direction) and longitudinal direction (that is, Y Direction of principal axis).By above-mentioned steps S1041 to step S1047, Kaijya-Kay can be first passed through Model calculates horizontal and vertical Lighting information, then, and the first power is determined based on horizontal Lighting information Weight, and the Lighting information based on longitudinal direction determines the second weight, and then according to the first weight and the second weight Calculate the Lighting information of specular map.
It should be noted that for game《The Magic Blade》Middle silks and satins and the fur of animal are adopted The Lighting information of specular map is added with the scheme described by above-mentioned steps S1041 to step S1047, So as to ensure that silks and satins can restore the silks and satins texture such as true silks and satins, jacquard weave silk fabric, silk fiber crops, and it can make The low accuracy model (for example, low accuracy model of animal skin) after concavo-convex detailed information must be added The abundant bloom effect of addition.
For example, due to silks and satins special raw material and weaving method, visually showing and also having different tools (Gloss textures are plotted in Normal Map blue channels in the present bloom of body surface and Gloss power In, it is a gray value textures), bloom/Gloss is stronger, shows more smooth densification, high weaker Bloom/Gloss, fabric just seems more coarse frivolous.Dark portion can be lower than general cloth lightness. Diffuse lightness can be more lower than common cloth, especially for solid colour than shallower cloth, Diffuse lightness needs the lower of drop, and must avoid being superimposed excessively coarse texture, through excessive Secondary test, specification has been done by Gloss values and Specular brightness values:Gloss gray values are typically set In 50 or so, some higher (53-58) that relatively thick and heavy silks and satins are set, relatively frivolous silks and satins More lower (45-48) that can then set, the appropriateness that is determined on a case-by-case basis regulation Gloss.Specifically As shown in figure 5, in Fig. 5 by it is left-to-right for bloom/Gloss change from low to high when, the bloom of silks and satins Effect visual situation of change.
In the embodiment of the present invention, the tangent directions using Kaijya-Kay illumination models along model Done respectively in (for example, X-direction) and binormal directions (for example, Y direction) Kajiya-Kay illumination, and according to the texture coverage extent and the first Lighting information and second got Lighting information determines the bloom rendering effect that silks and satins are finally added.Pass through the calculating of above-mentioned Lighting information Method, it may be determined that the bloom performance of silks and satins.
Alternatively, when the first picture is silks and satins image, the first textures also include texture mapping, according to Mapping relations exist the display elements presentation of information entrained by position of second coordinate on the first textures The first coordinate corresponding with the second coordinate includes on the position of the first model:In performance silks and satins image When weaving texture, the braiding according to entrained by mapping relations by position of second coordinate in texture mapping The presentation of information of texture is in the first coordinate corresponding with the second coordinate on the position of the first model.
Specifically, due in reality real silks and satins normally behave as smooth bloom, although reality in It is also to interweave out in length and breadth by silk, but it is superfine due to weaving, smooth surface is eventually exhibited as, Almost do not weave texture.In gaming more in this way, due to receiving textures size in the performance of silks and satins With the limitation of resolution ratio, game textures are also not necessarily to show these superfine textures, on the contrary can done Reduction performance precision.When there are special demands such as close-up shot, add in addition in silks and satins material ball A detail textures overlaying function is added, so can infinitely increase the precision of silks and satins material, again will not To client pressure is brought because textures are oversized.Wherein, the detail textures overlaying function is by the The mapping relations of one coordinate and the second coordinate, by the second coordinate on the position in texture mapping it is entrained Braiding texture presentation of information in the first coordinate corresponding with the second coordinate on the position of the first model. As shown in fig. 7,71 to 73 institutes can shown in the silks and satins of the online game by texture mapping Any texture shown, to increase the precision of silks and satins.In Fig. 7,71,72 and 73 represent for trip The different grain direction of silks and satins for designer's design of playing, fine arts personnel when designing the texture of silks and satins, It can use in above-mentioned three kinds of grain direction and choose the first mould that any grain direction is added to silks and satins In type, to show the texture of silks and satins when showing close-up shot, make display effect truer.
Alternatively, the first picture be animal skin image when, the first textures include noise textures, Shade textures and details textures, noise textures are used to show the reflective of animal skin, and shade textures are used for The use region of details textures is adjusted, is separately positioned in three passages of red, green, blue, red, green, Each passage includes diffusing reflection details textures, convex-concave details textures and specular map in blue three passages, Display elements information according to entrained by mapping relations by position of second coordinate on the first textures shows Show includes in the first coordinate corresponding with the second coordinate on the position of the first model:According to mapping relations By the display elements entrained by position of second coordinate on noise textures, shade textures and details textures Presentation of information is in the first coordinate corresponding with the second coordinate on the position of the first model.
Specifically, the textures of animal skin are realized according to the textures preparation method of above-mentioned silks and satins, wherein, The textures of animal skin have following difference with silks and satins, when the first picture is the image of animal skin, the One textures also include:Noise textures Noise Map, shade textures Mask Map and details textures Detail Map.And hence it is also possible to according to mapping relations by Noise Map, Mask Map and Detail Map Entrained display elements presentation of information does small in the first model corresponding with the second coordinate first On position.
Wherein, Noise Map gray value is higher, and generally 90%, to obtain narrower specular Domain, the reflective of high brightness can just show the animal cortex of high-quality;Mask Map are used to control details The use scope of textures, Mask Map are individually placed in three passages of red, green, blue, each passage A kind of detail textures can be controlled, in three kinds of passages of the red, green, blue being generally noted above, each passage All include:Diffusing reflection details textures Detail_Diffuse Map, convex-concave details textures Detail_Normal Map, specular map Detail_Specular Map.As shown in figure 8, being from left to right followed successively by unrestrained anti- Penetrate details textures Detail_Diffuse Map, convex-concave details textures Detail_Normal Map, bloom Textures Detail_Specular Map.
Alternatively, according to mapping relations by the second coordinate in noise textures, shade textures and details textures On position entrained by display elements presentation of information in the first coordinate corresponding with the second coordinate Include on the position of one model:Position according to mapping relations repeatedly by the second coordinate on details textures Entrained display elements presentation of information is in the first coordinate corresponding with the second coordinate in the first model On position.
In embodiments of the present invention, can according to mapping relations by the second coordinate in Detail_Diffuse Display member entrained by position on Map, Detail_Normal Map, Detail_Specular Map Element is shown in the first coordinate corresponding with the second coordinate on the position of the first model.
It should be noted that in embodiments of the present invention, can by details textures (for example, Detail_Diffuse Map, Detail_Normal Map, Detail_Specular Map) on it is entrained Display elements information be repeatedly shown in the first model on identical position, can also be by details textures Upper entrained display elements information is repeatedly shown on the position differed in the first model.Or can With will be every kind of in Detail_Diffuse Map, Detail_Normal Map, Detail_Specular Map Display elements information entrained by textures is simultaneously displayed in the first model on identical position, can be with By every kind of patch in Detail_Diffuse Map, Detail_Normal Map, Detail_Specular Map The entrained display elements information of figure is simultaneously displayed on the position differed in the first model.
, can be according to by adjusting details textures when fine arts personnel make animal skin in a certain game Size adjust the precision of animal skin, to change the display effect of animal skin.For example, details The size of textures is respectively 5 × 5,10 × 10, when 20 × 20, the precision display effect of animal skin As shown in figure 9, when details textures size is shown in game engine for 20 × 20 animal skin Display effect such as in Fig. 9 shown in " engine effects ".It can be seen in figure 9 that details textures are got over Greatly, the precision of animal skin is higher, and the effect embodied is more true to nature.Wherein, above-mentioned details textures Setting for size can infinitely be repeated by the two-dimensional coordinates (for example, UV coordinates) of details textures It is superimposed to realize.
The silks and satins material obtained using the above embodiment of the present invention has advantages below:(1) high accuracy, The impurity particle on textures is eliminated, one layer " purification membrane " has been loaded onto to set, continuous smooth bloom The high density of overall role is more improved, allows suit to look that precision is infinitely amplified, while silk fabric Details Map Channel is with the addition of inside satin material, more details texture can be infinitely superimposed, add silk fabric Satin precision.(2) validity.The material properties highly reduce the bloom attribute of various silks and satins, amendment The inanimate shortcoming of traditional material milli, gives suit new vitality, allows the clothes of every silks and satins texture Take on an entirely new look.
The animal skin obtained using the above embodiment of the present invention has advantages below:(1) high accuracy. Fundamentally improve the quality of animal fur, in the case of identical textures size, prior art without Limit expands the precision of textures detail textures, it is possible to achieve the fur texture of any precision size.(2) Validity.The more bloom effects of more details are realized, the texture of true fur is highly reduced, allows The animal fur of traditional method takes on an entirely new look, and realizes animal fur from rudimentary poor people to senior luxurious Transformation, has allowed in all fur texture a new step.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore by it all Be expressed as a series of combination of actions, but those skilled in the art should know, the present invention not by The limitation of described sequence of movement, because according to the present invention, some steps can be using other orders Or carry out simultaneously.Secondly, those skilled in the art should also know, reality described in this description Apply example and belong to preferred embodiment, involved action and the module not necessarily present invention are necessary.
Through the above description of the embodiments, those skilled in the art can be understood that root According to the method for above-described embodiment the mode of required general hardware platform can be added to realize by software, when So can also the former be more preferably embodiment by hardware, but in many cases.Based on such reason Solution, the part that technical scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD) in, including some instructions are make it that a station terminal equipment (can To be mobile phone, computer, server, or network equipment etc.) perform each embodiment institute of the invention The method stated.
Embodiment 2
According to embodiments of the present invention, a kind of figure for being used to implement the generation method of above-mentioned picture is additionally provided The generating means of piece, the generating means of the picture are mainly used in performing the above of embodiment of the present invention institute The generation method of the picture of offer, the generating means of the picture provided below the embodiment of the present invention are done It is specific to introduce:
Figure 10 is the schematic diagram of photograph creation device according to embodiments of the present invention, as shown in Figure 10, The generating means of the picture mainly include:
Acquiring unit 101, the first coordinate and the first textures of the first model for obtaining the first picture The second coordinate, wherein, the first model is used to show light information, and the first textures are used for the first mould Type carries out textures, and the first coordinate is the three-dimensional coordinate of the first model, and the second coordinate is the two of the first model Dimension coordinate, the side for the texture that orientation of second coordinate on the first textures is showed with the first textures To consistent, the first coordinate and the second coordinate have mapping relations.
Specifically, the first model can be the light information and colouring information for showing the first picture Low accuracy model, the first coordinate can be the three-dimensional coordinate of the low accuracy model (for example, X/Y/Z is sat Mark).Second coordinate is both the two-dimensional coordinate (for example, UV coordinates) in the first textures, be again this The two-dimensional coordinate of one model.Therefore the first coordinate and the second coordinate there are mapping relations it is to be understood that Three-dimensional coordinate in first model may map to the second coordinate.Wherein, the orientation of the second coordinate It is consistent with the grain direction of the first textures, as shown in figure 3, be the second coordinate shown in " " in Fig. 3, " downwardly directed block arrow " represents the grain direction of the first textures, as seen in Figure 3, the The orientation of two coordinates is consistent with grain direction.
Display unit 103, for the position institute according to mapping relations by the second coordinate on the first textures The display elements presentation of information of carrying is in the first coordinate corresponding with the second coordinate in the position of the first model Put, obtain the first model after textures;
Specifically, the mapping relations according to the first coordinate and the second coordinate, can be by the first textures the Display elements information (for example, high optical information) entrained by two coordinate positions is shown in the first mould In type on the first coordinate position corresponding with the second coordinate.
Generation unit 105, for the convex-concave detailed information of the second model to be applied to first after textures On model, the first picture is generated, wherein, the second model is the model of the first picture, recessed for showing The convex-concave detailed information of male structure, the face number of the second model is higher than the face number of the first model.
Specifically, in embodiments of the present invention, the second model can be for showing concavo-convex detailed information High-precision model., can be with for example, when wanting to protrude the concavo-convex profile of animal muscle in a certain game In the manufacturing process of high-precision model, the concavo-convex profile of prominent animal muscle is then, high-precision by this The concavo-convex detailed information completed in degree model is applied in the first model after above-mentioned textures, so, The concavo-convex profile of the animal muscle is shown in low accuracy model that just can be after textures.In another example, when When wanting the fold of prominent silks and satins cloth, can the high-precision model of the silks and satins cloth manufacturing process In, the scale of construction of the fold of the prominent silks and satins cloth, then, the pleat that the high-precision model is completed Wrinkle is shown in the low accuracy model after above-mentioned textures.It should be noted that above-mentioned high-precision model and Low accuracy model is the model of the first picture.
Alternatively, the direction of texture includes X-direction and Y direction, and device also includes:First Setting unit, for before the second coordinate of the first textures is obtained, by the abscissa of the second coordinate Direction is set to consistent with X-direction, and the direction of the ordinate of the second coordinate is set to and Y Direction of principal axis is consistent;Or second setting unit, for before the second coordinate of the first textures is obtained, The direction of the abscissa of second coordinate is set to it is consistent with Y direction, and by the vertical seat of the second coordinate Target direction is set to consistent with X-direction.
Alternatively, the direction of texture includes X-direction and Y direction, and the first textures include bloom Textures, display unit includes:First computing module, for calculating X respectively using default illumination model First Lighting information of direction of principal axis and the second Lighting information of Y direction;Acquisition module, for obtaining First weight of the first Lighting information and the second weight of the second Lighting information, the first weight are used to represent The degree that the texture of X-direction is blocked, the second weight is used to represent that the texture of Y direction is blocked Degree;First computing module, for the product to the first Lighting information and the first weight, Yi Ji Two Lighting informations and the product of the second weight are summed, and obtain the Lighting information of specular map;First Display module, for according to mapping relations by position of second coordinate in specular map entrained by light According to presentation of information in the first coordinate corresponding with the second coordinate on the position of the first model.
Alternatively, when the first picture is silks and satins image, the first textures also include texture mapping, display Unit includes:Second display module, for when showing the braiding texture of silks and satins image, according to mapping Relation by the presentation of information of the braiding texture entrained by position of second coordinate in texture mapping with Corresponding first coordinate of second coordinate is on the position of the first model.
Alternatively, the first picture be animal skin image when, the first textures include noise textures, Shade textures and details textures, noise textures are used to show the reflective of animal skin, and shade textures are used for The use region of details textures is adjusted, is separately positioned in three passages of red, green, blue, red, green, Each passage includes diffusing reflection details textures, convex-concave details textures and specular map in blue three passages, Display unit includes:3rd display module, for according to mapping relations by the second coordinate noise textures, Display elements presentation of information entrained by position on shade textures and details textures with the second coordinate Corresponding first coordinate is on the position of the first model.
Alternatively, the 3rd display module includes:Display sub-module, for repeatedly will according to mapping relations Display elements presentation of information entrained by position of second coordinate on details textures with the second coordinate Corresponding first coordinate is on the position of the first model.
Embodiment 3
According to embodiments of the present invention, a kind of shifting for being used to implement the generation method of above-mentioned picture is additionally provided Dynamic terminal, as shown in figure 11, the mobile terminal mainly include processor 401, display 402, number According to interface 403, memory 404 and network interface 405, wherein:
Display 402 is mainly used in showing interface, wherein, the interface includes personage, people The silks and satins worn and the fur of animal of thing.
The then main control to game for being inputted user by way of data transfer of data-interface 403 Instruction is transferred to processor 401.
Memory 404 is mainly used in character or animal character in storage game, and user The information such as game progress.
Network interface 405 is mainly used in carrying out network service with processor 401, is that the generation of picture is carried Supported for data.
Processor 401 is mainly used in performing following operation:
The first coordinate of the first model of the first picture and the second coordinate of the first textures are obtained, wherein, First model is used to show light information, and the first textures are used to carry out the first model textures, and first sits The three-dimensional coordinate of the first model is designated as, the second coordinate is the two-dimensional coordinate of the first model, and the second coordinate exists Orientation on first textures is consistent with the direction for the texture that the first textures are showed, the first coordinate and Second coordinate has mapping relations;Position institute according to mapping relations by the second coordinate on the first textures The display elements presentation of information of carrying is in the first coordinate corresponding with the second coordinate in the position of the first model Put, obtain the first model after textures;The convex-concave detailed information of second model is applied after textures The first model on, generate the first picture, wherein, the second model be the first picture model, be used for The convex-concave detailed information of concaveconvex structure is showed, the face number of the second model is higher than the face number of the first model.
Processor 401 is additionally operable to be set in the direction of the abscissa of the second coordinate and X-direction one Cause, and the direction of the ordinate of the second coordinate is set to consistent with Y direction;Or sat second The direction of target abscissa be set to it is consistent with Y direction, and by the direction of the ordinate of the second coordinate It is set to consistent with X-direction.
Processor 401 is additionally operable to include X-direction and Y direction in the direction of texture, the first patch In the case that figure includes specular map, the first light of X-direction is calculated respectively using default illumination model According to the second Lighting information of information and Y direction;Obtain the first weight and second of the first Lighting information Second weight of Lighting information, the first weight is used to represent the degree that the texture of X-direction is blocked, Second weight is used to represent the degree that the texture of Y direction is blocked;To the first Lighting information and first The product of weight, and the second Lighting information and the product of the second weight are summed, and obtain bloom patch The Lighting information of figure;Light according to entrained by mapping relations by position of second coordinate in specular map According to presentation of information in the first coordinate corresponding with the second coordinate on the position of the first model.
Processor 401 is additionally operable to when the first picture is silks and satins image, in the braiding of performance silks and satins image During texture, the braiding texture according to entrained by mapping relations by position of second coordinate in texture mapping Presentation of information in the first coordinate corresponding with the second coordinate on the position of the first model.
Processor 401 is additionally operable to when the first picture is the image of animal skin, the first textures bag Noise textures, shade textures and details textures are included, noise textures are used to show the reflective of animal skin, Shade textures are used for the use region for adjusting details textures, are separately positioned on three passages of red, green, blue In, each passage includes diffusing reflection details textures, convex-concave details patch in three passages of red, green, blue When figure and specular map, according to mapping relations by the second coordinate in noise textures, shade textures and details Display elements presentation of information entrained by position on textures is in the first coordinate corresponding with the second coordinate On the position of the first model.
Processor 401 is additionally operable to the position according to mapping relations repeatedly by the second coordinate on details textures Entrained display elements presentation of information is in the first coordinate corresponding with the second coordinate in the first model On position.
Alternatively, the specific example in the present embodiment may be referred in above-described embodiment 1 and embodiment 2 Described example, the present embodiment will not be repeated here.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, on State the program code that storage medium can be used for storing the generation method of the picture of the embodiment of the present invention.
Alternatively, in the present embodiment, above-mentioned storage medium can be located at mobile communications network, wide area At least one network equipment in multiple network equipments in the network of net, Metropolitan Area Network (MAN) or LAN.
Alternatively, in the present embodiment, storage medium, which is arranged to storage, is used to perform following steps Program code:
S1, obtains the first coordinate and the second coordinate of the first textures of the first model of the first picture, its In, first model is used to show light information, and first textures are used for first model Textures are carried out, first coordinate is the three-dimensional coordinate of first model, and second coordinate is institute State the two-dimensional coordinate of the first model, orientation and institute of second coordinate on first textures The direction for stating the texture that the first textures are showed is consistent, and first coordinate and second coordinate have Mapping relations;
S2, is taken position of second coordinate on first textures according to the mapping relations The display elements presentation of information of band is in the first coordinate corresponding with second coordinate in first mould On the position of type, the first model after textures is obtained;
S3, the convex-concave detailed information of the second model is applied on the first model after the textures, First picture is generated, wherein, second model is the model of first picture, for table The convex-concave detailed information of existing concaveconvex structure, the face number of second model is higher than the face of first model Number.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, only Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, only Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
Alternatively, the specific example in the present embodiment may be referred in above-described embodiment 1 and embodiment 2 Described example, the present embodiment will not be repeated here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
If the integrated unit in above-described embodiment realized using in the form of SFU software functional unit and as Independent production marketing or in use, the storage medium that above computer can be read can be stored in. Understood based on such, what technical scheme substantially contributed to prior art in other words The all or part of part or the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in storage medium, including some instructions are to cause one or more to calculate Machine equipment (can be personal computer, server or network equipment etc.) performs each implementation of the present invention The all or part of step of example methods described.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, some reality The part for not having to be described in detail in example is applied, the associated description of other embodiment is may refer to.
, can in several embodiments provided herein, it should be understood that disclosed client Realize by another way.Wherein, device embodiment described above be only it is schematical, The division of such as described unit, only a kind of division of logic function, can have in addition when actually realizing Dividing mode, such as multiple units or component can combine or be desirably integrated into another system, Or some features can be ignored, or do not perform.Another, shown or discussed coupling each other Close or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of unit or module or Communication connection, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, The part shown as unit can be or may not be physical location, you can with positioned at a ground Side, or can also be distributed on multiple NEs.It can select therein according to the actual needs Some or all of unit realizes the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit In or unit be individually physically present, can also two or more units be integrated in In one unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ soft The form of part functional unit is realized.
Described above is only the preferred embodiment of the present invention, it is noted that for the art For those of ordinary skill, under the premise without departing from the principles of the invention, some improvement can also be made And retouching, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (12)

1. a kind of generation method of picture, it is characterised in that including:
The first coordinate of the first model of the first picture and the second coordinate of the first textures are obtained, its In, first model is used to show light information, and first textures are used for described first Model carries out textures, and first coordinate is the three-dimensional coordinate of first model, described second Coordinate is the two-dimensional coordinate of first model, and second coordinate is on first textures Orientation is consistent with the direction for the texture that first textures are showed, first coordinate and Second coordinate has mapping relations;
Position institute according to the mapping relations by second coordinate on first textures The display elements presentation of information of carrying is in the first coordinate corresponding with second coordinate described On the position of first model, the first model after textures is obtained;
The convex-concave detailed information of second model is applied on the first model after the textures, it is raw Into first picture, wherein, second model is the model of first picture, is used for Show the convex-concave detailed information of concaveconvex structure, the face number of second model is higher than described the The face number of one model.
2. according to the method described in claim 1, it is characterised in that the direction of the texture includes X-axis Direction and Y direction, before the second coordinate of first textures is obtained, methods described is also Including:
The direction of the abscissa of second coordinate is set to it is consistent with the X-direction, and The direction of the ordinate of second coordinate is set to consistent with the Y direction;Or
The direction of the abscissa of second coordinate is set to it is consistent with the Y direction, and The direction of the ordinate of second coordinate is set to consistent with the X-direction.
3. according to the method described in claim 1, it is characterised in that the direction of the texture includes X-axis Direction and Y direction, first textures include specular map, will according to the mapping relations Display elements presentation of information entrained by position of second coordinate on first textures Include in the first coordinate corresponding with second coordinate on the position of first model:
Calculate the first Lighting information and the institute of the X-direction respectively using default illumination model State the second Lighting information of Y direction;
Obtain first Lighting information the first weight and second Lighting information second Weight, first weight is used to represent the degree that the texture of the X-direction is blocked, institute Stating the second weight is used to represent the degree that the texture of the Y direction is blocked;
To first Lighting information and the product of first weight, and second illumination The product of information and second weight is summed, and obtains the Lighting information of the specular map;
Position institute according to the mapping relations by second coordinate in the specular map The Lighting information of carrying is shown in the first coordinate corresponding with second coordinate described first On the position of model.
4. according to the method described in claim 1, it is characterised in that in first picture be silks and satins figure During picture, first textures also include texture mapping, according to the mapping relations by described second Display elements presentation of information entrained by position of the coordinate on first textures with it is described Corresponding first coordinate of second coordinate includes on the position of first model:
When showing the braiding texture of the silks and satins image, according to the mapping relations by described the Entrained by position of two coordinates in the texture mapping braiding texture presentation of information with Corresponding first coordinate of second coordinate is on the position of first model.
5. according to the method described in claim 1, it is characterised in that in first picture be Animal Skin During the image of hair, first textures include noise textures, shade textures and details textures, institute Stating noise textures is used to show the reflective of the animal skin, and the shade textures are used to adjust thin Save textures use region, be separately positioned in three passages of red, green, blue, it is described it is red, green, Each passage includes diffusing reflection details textures, convex-concave details textures and bloom in blue three passages Textures,
Position institute according to the mapping relations by second coordinate on first textures The display elements presentation of information of carrying is in the first coordinate corresponding with second coordinate described Include on the position of first model:
Second coordinate is pasted in the noise textures, the shade according to the mapping relations The display elements presentation of information entrained by position on figure and the details textures is with described the Corresponding first coordinate of two coordinates is on the position of first model.
6. method according to claim 5, it is characterised in that will be described according to the mapping relations Position institute of second coordinate on the noise textures, the shade textures and the details textures The display elements presentation of information of carrying is in the first coordinate corresponding with second coordinate described Include on the position of first model:
Position according to the mapping relations repeatedly by second coordinate on the details textures Entrained display elements presentation of information is put in the first coordinate corresponding with second coordinate to exist On the position of first model.
7. a kind of generating means of picture, it is characterised in that including:
Acquiring unit, the first coordinate and the first textures of the first model for obtaining the first picture The second coordinate, wherein, first model be used for show light information, first textures For carrying out textures to first model, first coordinate is the three-dimensional of first model Coordinate, second coordinate is the two-dimensional coordinate of first model, and second coordinate is in institute State the orientation on the first textures consistent with the direction for the texture that first textures are showed, First coordinate and second coordinate have mapping relations;
Display unit, for being pasted second coordinate described first according to the mapping relations Display elements presentation of information entrained by position on figure is corresponding with second coordinate One coordinate obtains the first model after textures on the position of first model;
Generation unit, for the convex-concave detailed information of the second model to be applied in the textures On the first model afterwards, first picture is generated, wherein, second model is described the The model of one picture, the convex-concave detailed information for showing concaveconvex structure, second model Face number is higher than the face number of first model.
8. device according to claim 7, it is characterised in that the direction of the texture includes X-axis Direction and Y direction, described device also include:
First setting unit, for before the second coordinate of first textures is obtained, by institute State the abscissa of the second coordinate direction be set to it is consistent with the X-direction, and by described The direction of the ordinate of two coordinates is set to consistent with the Y direction;Or
Second setting unit, for before the second coordinate of first textures is obtained, by institute State the abscissa of the second coordinate direction be set to it is consistent with the Y direction, and by described The direction of the ordinate of two coordinates is set to consistent with the X-direction.
9. device according to claim 7, it is characterised in that the direction of the texture includes X-axis Direction and Y direction, first textures include specular map, and the display unit includes:
First computing module, for calculating the X-direction respectively using default illumination model Second Lighting information of the first Lighting information and the Y direction;
Acquisition module, the first weight and second light for obtaining first Lighting information According to the second weight of information, first weight is used to represent that the texture of the X-direction is hidden The degree of gear, second weight is used to represent the degree that the texture of the Y direction is blocked;
First computing module, for the product to first Lighting information and first weight, And second Lighting information and the product of second weight are summed, and obtain the height The Lighting information of light textures;
First display module, for according to the mapping relations by second coordinate in the height The Lighting information entrained by position on light textures is shown in corresponding with second coordinate One coordinate is on the position of first model.
10. device according to claim 7, it is characterised in that in first picture be silks and satins figure During picture, first textures also include texture mapping, and the display unit includes:
Second display module, for when showing the braiding texture of the silks and satins image, according to institute Mapping relations are stated by the braiding entrained by position of second coordinate in the texture mapping The presentation of information of texture is in the first coordinate corresponding with second coordinate in first model Position on.
11. device according to claim 7, it is characterised in that in first picture be Animal Skin During the image of hair, first textures include noise textures, shade textures and details textures, institute Stating noise textures is used to show the reflective of the animal skin, and the shade textures are used to adjust thin Save textures use region, be separately positioned in three passages of red, green, blue, it is described it is red, green, Each passage includes diffusing reflection details textures, convex-concave details textures and bloom in blue three passages Textures,
The display unit includes:
3rd display module, for second coordinate to be made an uproar described according to the mapping relations Display elements letter entrained by position on sound textures, the shade textures and the details textures Breath is shown in the first coordinate corresponding with second coordinate on the position of first model.
12. device according to claim 11, it is characterised in that the 3rd display module includes:
Display sub-module, for according to the mapping relations repeatedly by second coordinate described Display elements presentation of information entrained by position on details textures with second coordinate pair The first coordinate answered is on the position of first model.
CN201610150208.0A 2016-03-16 2016-03-16 The generation method and device of picture Active CN107204033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610150208.0A CN107204033B (en) 2016-03-16 2016-03-16 The generation method and device of picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610150208.0A CN107204033B (en) 2016-03-16 2016-03-16 The generation method and device of picture

Publications (2)

Publication Number Publication Date
CN107204033A true CN107204033A (en) 2017-09-26
CN107204033B CN107204033B (en) 2019-01-08

Family

ID=59903551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610150208.0A Active CN107204033B (en) 2016-03-16 2016-03-16 The generation method and device of picture

Country Status (1)

Country Link
CN (1) CN107204033B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107909541A (en) * 2017-11-13 2018-04-13 杭州电魂网络科技股份有限公司 Map conversion method and device
CN108090946A (en) * 2017-12-14 2018-05-29 苏州蜗牛数字科技股份有限公司 A kind of construction method and device of material ball
CN108109194A (en) * 2017-12-29 2018-06-01 广东工业大学 The realization method and system of laser paper effect in virtual reality scenario
CN108564646A (en) * 2018-03-28 2018-09-21 腾讯科技(深圳)有限公司 Rendering intent and device, storage medium, the electronic device of object
CN109523619A (en) * 2018-11-12 2019-03-26 厦门启尚科技有限公司 A method of 3D texturing is generated by the picture of multi-angle polishing
CN109544671A (en) * 2018-11-12 2019-03-29 浙江大学 It is a kind of based on the video of screen space in three-dimensional scenic projection mapping method
CN110196746A (en) * 2019-05-30 2019-09-03 网易(杭州)网络有限公司 Interactive interface rendering method and device, electronic equipment, storage medium
CN110322535A (en) * 2019-06-25 2019-10-11 深圳市迷你玩科技有限公司 Method, terminal and the storage medium of customized three-dimensional role textures
CN112907758A (en) * 2019-11-19 2021-06-04 北京畅游天下网络技术有限公司 Data determination method and device and electronic equipment
CN113538549A (en) * 2021-08-31 2021-10-22 广州光锥元信息科技有限公司 Method and system for retaining texture of image texture in image processing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120176377A1 (en) * 2005-01-04 2012-07-12 Nvidia Corporation Block linear memory ordering of texture data techniques
US20140071124A1 (en) * 2012-09-12 2014-03-13 Fujitsu Semiconductor Limited Image processing apparatus
CN104574501A (en) * 2014-12-19 2015-04-29 浙江大学 High-quality texture mapping method aiming at complicated three-dimensional scene
CN105096358A (en) * 2015-08-05 2015-11-25 云南大学 Line enhanced simulation method for pyrography artistic effect

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120176377A1 (en) * 2005-01-04 2012-07-12 Nvidia Corporation Block linear memory ordering of texture data techniques
US20140071124A1 (en) * 2012-09-12 2014-03-13 Fujitsu Semiconductor Limited Image processing apparatus
CN104574501A (en) * 2014-12-19 2015-04-29 浙江大学 High-quality texture mapping method aiming at complicated three-dimensional scene
CN105096358A (en) * 2015-08-05 2015-11-25 云南大学 Line enhanced simulation method for pyrography artistic effect

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《中国优秀硕士学位论文全文数据库 信息科技辑》 *
王舒一: ""人物真实皮肤材质实时渲染研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
邱凯佳: ""基于图像的纺织品虚拟展示系统"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107909541B (en) * 2017-11-13 2021-01-01 杭州电魂网络科技股份有限公司 Map conversion method and device
CN107909541A (en) * 2017-11-13 2018-04-13 杭州电魂网络科技股份有限公司 Map conversion method and device
CN108090946A (en) * 2017-12-14 2018-05-29 苏州蜗牛数字科技股份有限公司 A kind of construction method and device of material ball
CN108109194A (en) * 2017-12-29 2018-06-01 广东工业大学 The realization method and system of laser paper effect in virtual reality scenario
CN108109194B (en) * 2017-12-29 2021-03-16 广东工业大学 Implementation method and system of laser paper effect in virtual reality scene
CN108564646A (en) * 2018-03-28 2018-09-21 腾讯科技(深圳)有限公司 Rendering intent and device, storage medium, the electronic device of object
CN108564646B (en) * 2018-03-28 2021-02-26 腾讯科技(深圳)有限公司 Object rendering method and device, storage medium and electronic device
CN109523619A (en) * 2018-11-12 2019-03-26 厦门启尚科技有限公司 A method of 3D texturing is generated by the picture of multi-angle polishing
CN109544671A (en) * 2018-11-12 2019-03-29 浙江大学 It is a kind of based on the video of screen space in three-dimensional scenic projection mapping method
CN109544671B (en) * 2018-11-12 2022-07-19 浙江大学 Projection mapping method of video in three-dimensional scene based on screen space
CN110196746A (en) * 2019-05-30 2019-09-03 网易(杭州)网络有限公司 Interactive interface rendering method and device, electronic equipment, storage medium
CN110196746B (en) * 2019-05-30 2022-09-30 网易(杭州)网络有限公司 Interactive interface rendering method and device, electronic equipment and storage medium
CN110322535A (en) * 2019-06-25 2019-10-11 深圳市迷你玩科技有限公司 Method, terminal and the storage medium of customized three-dimensional role textures
CN112907758A (en) * 2019-11-19 2021-06-04 北京畅游天下网络技术有限公司 Data determination method and device and electronic equipment
CN112907758B (en) * 2019-11-19 2024-06-11 北京畅游天下网络技术有限公司 Data determination method and device and electronic equipment
CN113538549A (en) * 2021-08-31 2021-10-22 广州光锥元信息科技有限公司 Method and system for retaining texture of image texture in image processing
CN113538549B (en) * 2021-08-31 2023-12-22 广州光锥元信息科技有限公司 Method and system for retaining texture of image texture during image processing

Also Published As

Publication number Publication date
CN107204033B (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN107204033B (en) The generation method and device of picture
CN107204036B (en) The method and apparatus for generating hair image
CN103686125B (en) Depth estimation device, method and image processing apparatus, method
JP5632469B2 (en) Character generation system, character generation method and program
CN109410298B (en) Virtual model manufacturing method and expression changing method
CN112669447A (en) Model head portrait creating method and device, electronic equipment and storage medium
Lu et al. Illustrative interactive stipple rendering
CN113168280A (en) Laser Trim Design Tool
CN108876931A (en) Three-dimension object color adjustment method, device, computer equipment and computer readable storage medium
JP6362634B2 (en) Image generation system, game device, and program
US20080303830A1 (en) Automatic feature mapping in inheritance based avatar generation
CN107680167A (en) A kind of three-dimensional (3 D) manikin creation method and system based on user image
WO2008151422A1 (en) Dynamic user interface for inheritance based avatar generation
CN107180441A (en) The method and apparatus for generating eye image
CN201111142Y (en) Three-dimensional virtual fitting platform system based on network
CN108055477A (en) A kind of method and apparatus for realizing smear special efficacy
CN109472851A (en) The constructive method of 3D human visual's image and use
KR20060108271A (en) Photorealistic Virtual Draping Simulation Method for Digital Fashion Design
CN104318602A (en) Animation production method of figure whole body actions
CN109308380A (en) Embroidery art style analogy method based on feeling of unreality
EP2158949A2 (en) Image generation device and image generation method.
US20230298253A1 (en) Appearance editing method and apparatus for virtual pet, terminal, and storage medium
CN108876921A (en) Three-dimensional is dressed up model treatment method, apparatus, computer equipment and storage medium
CN110853147A (en) Three-dimensional face transformation method
CN113838189B (en) Eyelash rendering method and device

Legal Events

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