CN101833777A - Real-time marble vein glaze pattern generating method based on mathematical function - Google Patents
Real-time marble vein glaze pattern generating method based on mathematical function Download PDFInfo
- Publication number
- CN101833777A CN101833777A CN 201010130899 CN201010130899A CN101833777A CN 101833777 A CN101833777 A CN 101833777A CN 201010130899 CN201010130899 CN 201010130899 CN 201010130899 A CN201010130899 A CN 201010130899A CN 101833777 A CN101833777 A CN 101833777A
- Authority
- CN
- China
- Prior art keywords
- pattern
- pixel
- layer
- color
- mathematical function
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000007620 mathematical function Methods 0.000 title claims abstract description 29
- 239000004579 marble Substances 0.000 title claims abstract description 21
- 210000003462 vein Anatomy 0.000 title abstract 8
- 238000013507 mapping Methods 0.000 claims abstract description 20
- 239000007788 liquid Substances 0.000 claims description 18
- 238000006073 displacement reaction Methods 0.000 claims description 14
- 238000000605 extraction Methods 0.000 claims description 8
- 230000008929 regeneration Effects 0.000 claims description 8
- 238000011069 regeneration method Methods 0.000 claims description 8
- 239000004744 fabric Substances 0.000 claims description 6
- 238000012552 review Methods 0.000 claims description 5
- 239000007921 spray Substances 0.000 claims description 5
- 239000003973 paint Substances 0.000 claims description 4
- 238000004040 coloring Methods 0.000 claims description 2
- 238000005070 sampling Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 15
- 238000005094 computer simulation Methods 0.000 abstract description 3
- 238000005507 spraying Methods 0.000 abstract description 3
- 230000007547 defect Effects 0.000 abstract 1
- 239000006196 drop Substances 0.000 description 25
- 239000000049 pigment Substances 0.000 description 10
- 239000012530 fluid Substances 0.000 description 7
- 239000000758 substrate Substances 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 241001474033 Acar Species 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000004088 simulation Methods 0.000 description 2
- 239000000243 solution Substances 0.000 description 2
- 235000017166 Bambusa arundinacea Nutrition 0.000 description 1
- 235000017491 Bambusa tulda Nutrition 0.000 description 1
- 241001330002 Bambuseae Species 0.000 description 1
- 235000015334 Phyllostachys viridis Nutrition 0.000 description 1
- 241001422033 Thestylus Species 0.000 description 1
- 239000011425 bamboo Substances 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 239000003889 eye drop Substances 0.000 description 1
- 229940012356 eye drops Drugs 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000002156 mixing Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000001028 reflection method Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000001179 sorption measurement Methods 0.000 description 1
- 238000003756 stirring Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Landscapes
- Image Generation (AREA)
Abstract
The invention discloses a marble vein glaze pattern real-time generating method, which comprises the following steps of: appointing the size of a vein pattern and the color of a background pattern layer; building a base pattern by means of dropping, spraying, overturning and the like; building a marble vein glaze pattern by means of user operations such as comb, stylus, wave, rotation and the like; and multiplying the density field of each layer by the color of the corresponding pattern layer and adding to obtain a final display color. The method overcomes the defects which are commonly existed in a computer simulation system of the existing marble vein glaze pattern technology such as slower speed, fuzzy generating pattern, unfriendly user interface, over-abstract physical equation parameter and the like, adopts the real-time marble vein glaze pattern generating method based on mathematical function, and guarantees that the generated marble vein glaze pattern has the characteristics of the clear boundary and the elegant pattern of the real marble vein glaze pattern by adopting the density field expressing method by means of reverse mapping, supersampling and multi-pattern layer and the iterative density field updating arithmetic.
Description
Technical field
The present invention relates to computing machine non-photorealistic rendering and image and generate the field, particularly relate to a kind of real-time marble grain glaze pattern generating method based on mathematical function.
Background technology
Marbleizing glaze technology is a traditional art of making colored flow-like pattern on paper or fabric.As a time-honored handicraft technology, the initial application of marbleizing glaze technology is to play ornamental purpose, the background patterns that can be used for the official communication is simultaneously revised and is forged preventing, developed into a kind of ancient anti-piracy technique afterwards again, it promptly is the side that the marbleizing glaze pattern is printed on book, all can make pattern look discontinuous owing to tear any one page of book, thereby effectively prevent the artificial destruction of books.The making flow process of marbleizing glaze technology mainly contains following three steps: (1) prepares a container, pours the dense thick substrate liquid of one deck at container bottom, and substrate liquid normally is made up of the adhesion agent of water and interpolation.(2) spray the pigment of various colors on substrate liquid top layer with instruments such as eyedrops drop bottle, transfer pipet or bamboo brushes, just obtained the basic pattern of a width of cloth.Carrying must be immiscible between the substrate liquid of these pigment and the pigment, and wants enough thickness, to guarantee that pigment can swim in the surface.(3) come pattern-making with instruments such as wooden stick, comb, stylus, the back and forth stirring of instrument in container makes pigment be stretched and is out of shape, thereby form various decorative patterns.A kind of complicated patterns often needs these pigment are carried out repeatable operation.(4) after design producing is finished, be positioned over liquid-covered carefully, absorb floating color, start then with material (normally paper or fabric) with characterization of adsorption, rinsing, and dry.
Traditional marbleizing glaze technological requirement user possesses rich experience, adds the restriction (as the viscosity of substrate liquid, the floatability of pigment etc.) of various physical conditions, has limited the quality of marbleizing glaze pattern to a great extent.Therefore, flourish along with computer graphics and image processing techniques, the marbleizing glaze process simulation system of some computer simulations also arises at the historic moment.
Traditional marbleizing glaze process simulation system mostly is that the utilization numerical method is found the solution the physics flow equation.2004, Akgun designed the Core Generator that a computer based has the marbleizing glaze pattern of alla turca.Referring to AKGUN, digital aft of marbled paper.Leonardo B.2004.The, 37,1,49-52..For the pattern that makes generation keeps the sharp-pointed characteristic of true marbleizing glaze pattern, researchist such as Acar and Boulanger has proposed to come this technology of emulation with the fluid model of multi-layer image, referring to ACAR, R., AND BOULANGER, marbling:amulti-scale fluid model.IEEE Transactions on Visualization and ComputerGraphics P.2006.Digital, 12,4,600-614.Since this method can not the emulation comb etc. classical marbleizing glaze process tool, after 1 year, Acar has proposed the fluid simulation algorithm based on level set method again, and an interactively marbleizing glaze pattern generation system is provided.Referring to ACAR, driven flows.ACM Trans.Graph.26 R.2007.Levelset, 4, Article No.15.Yet because these methods all are based on the CPU realization, travelling speed is slower, can not reach real-time user interactions requirement.Permitted the good grand people of grade afterwards and proposed on GPU, to find the solution Navie-Stokes physics flow equation, though on speed, can reach the requirement of real-time substantially, but can not fundamentally solve the marbleizing glaze pattern edge fuzzy problem of generation, referring to XU, J., MAO, X., AND JIN, X.2008.Nondissipative marbling.IEEE Computer Graphics and Applications, 28,2,35-43.Except the fluid method of emulation, business software Corel Painter provides picture editting's method to generate the marbleizing glaze pattern, but the speed of this software is slower, and the marbleizing glaze pattern kind that provides is less.
Summary of the invention
The invention provides a kind of real-time marble grain glaze pattern generating method based on mathematical function.This method is regarded marbleizing glaze technology as fluid motion that the two-dimensional incompressible on the unlimited extending plane contracts, and the visual this fluid motion of technology of using mathematical function to drive anamorphose has formed the marbleizing glaze pattern.The present invention provides real-time feedback and method for generating pattern that have lively fluid motion effect for design marbleizing glaze pattern.
A kind of real-time marble grain glaze pattern generating method based on mathematical function comprises following four steps:
1) user specifies size and the color of Background From Layer, wherein the color C of Background From Layer of the marbleizing glaze pattern that needs generation
bExpression;
2) user specifies the color and the relevant parameters of figure layer, figure layer, modes of operation such as selecting dropping liquid then, spray or topple over, and the mathematical function corresponding according to operation generates a width of cloth basic pattern;
3) user selects modes of operation such as comb, stylus, wave or rotation, adjust corresponding parameters then, the mathematical function corresponding according to operation, adopt the method for reverse mapping, over-extraction sample and iteration regeneration density field to review the position of the pixel of each pixel in basic pattern in the current pattern, the density value that to put copies to current pixel point then, thereby obtains the density field of current pattern;
A kind of complicated patterns often needs liquid is carried out repeatedly operation, and the user can be according to the mode of operation in the effect repeat number time step (3) of wanting to generate the marbleizing glaze pattern.
4) color of the density field of each figure layer (comprising Background From Layer) and corresponding appointment is multiplied each other and every layer result is added up to the end color value and shows the density field D of i layer
iExpression, the paint color C of every i layer
iExpression, the color C of Background From Layer
bExpression.
Described pattern of the present invention, by Background From Layer and on several figure layers form, any color of certain in the pattern is to obtain after this color adds up on the All Layers.
User of the present invention specifies the size of the marbleizing glaze pattern of generation to refer to the height and the width of marbleizing glaze pattern, the paint color of the substrate liquid in the corresponding marbleizing glaze technology of the color of Background From Layer.
Dropping liquid mode of operation of the present invention is to generate the drop of specifying size and color.Described spraying operation mode is the drop that generates at random in some and the radius.It is described that to topple over mode of operation be to generate a succession of continuous drop.For the squeezing effect between the expression drop of image, with the following method:
The color relation that is positioned at the pixel of drop inside is the color of user's appointment figure layer, and remaining pixel is done reverse mapping in order to minor function:
P represents the pixel in the current pattern in the formula, and P ' expression is traced back to corresponding pixel points in the last pattern by P, and C represents the home position of drop, and r represents the radius size of drop.
Comb mode of operation of the present invention is to be formed by the combination of function that some straight lines are represented, wherein each tooth of comb is represented straight line, and corresponding function is as follows:
d=|(P-A)·N|
P represents the pixel in the current pattern in the following formula, P ' expression is traced back to corresponding pixel points in the basic pattern by P, M represents the unit vector of this straight line, d represents the distance of P point to straight line, α and λ be the maximum displacement and the displacement gradient that move of remarked pixel respectively, A represent on the straight line more arbitrarily, the per unit system that N represents straight line to;
The function of stylus mode of operation correspondence of the present invention is as follows:
P represents the pixel in the current pattern in the formula, P ' expression is traced back to corresponding pixel points in the basic pattern by P, M represents that stylus streaks the unit vector of line segment place straight line, d represents the bee-line that the P point streaks line segment to stylus, and α and λ be the maximum displacement and the displacement gradient that move of remarked pixel respectively.
Wave user mode of operation of the present invention is divided into the wave of horizontal direction and the wave of vertical direction, and corresponding mathematical function is as follows respectively:
X, y represent the horizontal ordinate of the pixel P in the current pattern and the value of ordinate respectively in the formula, and P ' expression is traced back to corresponding pixel points in the basic pattern by P, and A represents sinusoidal wave amplitude, and ω represents sinusoidal wavelength,
Represent sinusoidal phase deviation.
The function of user's mode of operation correspondence of rotation of the present invention is as follows:
P represents the pixel in the current pattern in the following formula, and P ' expression is traced back to corresponding pixel points in the basic pattern by P, and C represents the home position that rotates, and θ represents anglec of rotation size, when θ turns clockwise for the negative interval scale, otherwise then for being rotated counterclockwise.
The mathematical function corresponding of the present invention according to operation, adopt the method for reverse mapping, over-extraction sample and iteration regeneration density field to review the position of the pixel of each pixel in basic pattern in the current pattern, the density value that will put copies to the method for current pixel point as follows then:
In order to calculate the density value that the active user operates any one pixel in the back pattern that generates, adopt the method for reverse mapping to review the pixel position of this pixel in basic pattern, and the density value that will put copy to current pixel point.For fear of the pattern that generates the phenomenon of losing shape is arranged, adopt the anti-aliasing pattern of over-extraction sample, be about to current pixel and be divided into the experimental process pixel, try to achieve pixel in the corresponding basic pattern of these sub-pixels according to function respectively then, then the density value weighted mean of these pixels is composed to current pixel point, formula is as follows:
D represents the density value of current pixel point in the formula, and n represents the number of sub-pixel point, (x
i, y
i) represent i sub-pixel, ρ
iAnd ω
iRepresent the density value and the weight of i sub-pixel respectively, the weight of all sub-pixel points is 1/n herein.
Of the present invention with each figure layer (comprising Background From Layer) density field and the color of corresponding appointment multiplies each other and every layer result added up to the end color value and the method that shows as follows:
Carry out the calculating of color value according to following formula:
C is the color of output in the formula, C
bThe color of expression Background From Layer, D
iThe density value of representing the i layer, C
iThe color value of representing the i layer, n=16 represents layer count.
It is slower that the present invention has improved in the computer simulation system of existing marbleizing glaze technology ubiquitous speed, generate dim pattern, user interface is unfriendly, shortcomings such as the physical equation parameter is too abstract, adopted real-time marble grain glaze pattern generating method based on mathematical function, it is clear that this method adopts the density field update algorithm of the density field method for expressing of reverse mapping, over-extraction sample, multi-layer image and iteration to guarantee that the marbleizing glaze pattern that generates has true marbleizing glaze pattern boundaries, the characteristics of pattern fineness.Algorithm of the present invention is clear and definite, friendly interface, robust as a result.
Description of drawings
Fig. 1 is the process flow diagram of the inventive method.
Fig. 2 is the synoptic diagram of single straight line correspondence in the comb operation.
Fig. 3 is the synoptic diagram of rotary manipulation correspondence.
Embodiment
Below in conjunction with accompanying drawing the real-time marble grain glaze pattern generating method that the present invention is based on mathematical function is elaborated by embodiment.
As shown in Figure 1, the inventive method, comprise the size of specifying textured pattern and the color of Background From Layer, by dropping liquid, mode such as spray, topple over creates basic pattern, pass through comb, users such as stylus, wave, rotation operate and create the marbleizing glaze pattern, four steps of Show Color that every layer density field and corresponding figure layer color are multiplied each other and add up to the end:
1) user specifies the size of marbleizing glaze pattern of generation and the color of Background From Layer, the wherein width and the height of size decision marbleizing glaze pattern, and the color of Background From Layer is corresponding to the paint color of substrate liquid in the marbleizing glaze technology;
2) user specifies the color and the relevant parameters of figure layer, figure layer, selects dropping liquid then, mode of operation such as sprays or topple over, and the mathematical function corresponding according to operation generates a width of cloth basic pattern;
The dropping liquid mode of operation is the drop that forms corresponding size and color by the center of circle of the definite drop in the position of the radius of interactive setup drop and click in design section.The spraying operation mode is by the radius of specifying drop and the amount of droplets of sprinkling, generates the drop of specifying the respective amount in the radius in design section at random.Toppling over mode of operation is by specifying the radius of drop, form a succession of continuous drop in design section on the path that mouse streaks.The effect that can push the drop of front for the follow-up drop that splashes into of lively embodiment, principle is as follows: according to radius and home position, first drop of liquid of dripping and the border circular areas that to form an area be a, if the area of second drop of liquid is b, and dripping with first dropping liquid has the identical center of circle, then the total area that is covered by drop should reach a+b, owing to be subjected to the influence of second drop of liquid, the point at circle centre position can move to apart from the center of circle originally
Distance, the point at drop edge place can be from the distance center of circle
Distance move to
Distance.Therefore, be positioned at C for the set point P and the center of circle, radius is the drop of r, if | P-C|<r, then putting P is exactly in circle, and the color relation that P is ordered is the color of appointment figure layer, otherwise, ask corresponding point P ' point in the last pattern that P orders with reverse reflection method, and the density value of P ' in copy is to the P point.Wherein P ' computing formula is as follows:
According to above formula, the drop that drips at last always keeps circular outward appearance, and the drop that before drips then deformation can take place.
3) user selects modes of operation such as comb, stylus, wave, rotation, adjust corresponding parameters then, the mathematical function corresponding according to operation, adopt reverse mapping, the method of over-extraction sample and iteration regeneration density field is reviewed the position of the pixel of each pixel in basic pattern in the current pattern, the density value assignment that to put is given current pixel point then, thereby obtains the density field of current pattern;
The comb instrument is a kind of instrument very general in the marbleizing glaze technology, it is that some typical marbleizing glaze patterns of generation must be obligato, user's mode of operation of comb is to be formed by the combination of function that several straight lines are represented, wherein each tooth of comb is just represented the operation of straight line correspondence.The displacement that each pixel moves and this pixel are inversely proportional to apart from d to straight line, and the stretching displacement amount with those pixels of same distance equates.As shown in Figure 2, L is this straight line (can have slope arbitrarily), N be L per unit system to, A be on the L a bit, M is the vector of unit length of straight line L, and is as follows for the mapping function of the pixel P in the current pattern:
d=|(P-A)·N|
α and the λ maximum displacement and the displacement gradient that move of remarked pixel respectively wherein just can obtain the mapping function of whole comb by the mapping function of synthetic these single straight line.
The stylus instrument is mainly used in creates some meticulous patterns (petal etc.), and the mapping function of stylus mode of operation correspondence is identical with the mapping function of straight line correspondence:
Unique difference is exactly the computing formula difference apart from d, streaks the starting point and the terminal point in path if A and B are respectively stylus, and L is the straight line at line segment AB place, existing has replaced the distance of P to straight line L with the P point to the distance of line segment AB.
User's mode of operation of wave is divided into the wave of horizontal direction and the wave of vertical direction, and corresponding mathematical function is as follows respectively with sinusoidal curve:
X, y represent the horizontal ordinate of the pixel P in the current pattern and the value of ordinate respectively in following formula, by mutual definite sinusoidal wave amplitude A, sinusoidal wavelength ω, sinusoidal phase deviation
Can be in the hope of corresponding pixel points P '.
The pattern that user's mode of operation of rotation forms is one of pattern very common in the marbleizing glaze technology, and as shown in Figure 3, the central coordinate of circle of known rotation is positioned at C, and the mapping function that radius of turn r, P are ordered is as follows:
d=|P-C|-r
α in the formula and λ be the maximum displacement and the displacement gradient that move of remarked pixel respectively.θ represents anglec of rotation size, when θ generates the pattern that turns clockwise during for negative, otherwise then for being rotated counterclockwise pattern.
Ask the mapping function of P ' to be reverse mapping in the above formula, in the image mapped algorithm, the effect of reverse mapping is better than the forward mapping, and reverse mapping algorithm is highly suitable for upward realization of GPU.The principle of reverse mapping is as follows: review the pixel position of pixel in last pattern in the current pattern, and the density value that will put copies to current pixel point.For fear of the pattern that generates the phenomenon of losing shape is arranged, adopt the anti-aliasing pattern of over-extraction sample, be about to current pixel and be divided into the experimental process pixel, try to achieve the pixel in the pattern on these sub-pixel correspondences according to function respectively then, then the density value weighted mean of these pixels is composed to current pixel point, formula is as follows:
D represents the density value of current pixel point in the formula, and n represents the number of sub-pixel point, (x
i, y
i) represent i sub-pixel, ρ
iAnd ω
iRepresent the density value and the weight of i sub-pixel respectively, the weight of all sub-pixel points is 1/n herein.
In addition, the density field update method of iteration can guarantee that the marbleizing glaze pattern that generates has clear sharp-pointed feature.If all want the regeneration density field after each operation, method is as follows:
D(P
n)=D(P
n-1)=...=D(P
1)=D(P
0)
N represents the number of times that the user operates, P
i(i=0,1 ..., n-1) expression P
I+1The back tracking point of individual pixel.After passing through multi-pass operations so, the problem that dim pattern and contrast descend can appear, even adopt the high-order interpolation method can not eliminate this blooming completely.In order to address this problem, this method has proposed the method for iteration regeneration density field, and formula is as follows:
D(P
n)=D(P
n→P
n-1→...→P
1→P
0)
The mathematical function of the mode of operation correspondence of all user's appointments is placed in the pixel coloring device of GPU each pixel P in the current pattern of iterative computation
nCorresponding pixel position P in basic pattern
0, then with P
0The density value at place copies P to
nThe place.Owing to reduced the number of times of regeneration density field, the marbleizing glaze pattern of generation is sharply marginated.
4) color of the density field of each figure layer (comprising Background From Layer) and corresponding appointment is multiplied each other and every layer result added up to the end color value and show.
Pigment in the true marbleizing glaze technology is immiscible mutually, so the pattern that generates can keep border clearly between different pigment.This method has been introduced the density field method for expressing (always having 16 layers) of multi-layer image in order to prevent the mixing between different pigment, and the color value by density field and corresponding diagram layer color multiply each other and add up to the end calculates with following formula:
In following formula, C is the color of output, C
bThe color of expression Background From Layer, D
iThe density value of representing the i layer, C
iThe color value of representing the i layer, the quantity of n presentation graphs layer.
Claims (8)
1. the real-time marble grain glaze pattern generating method based on mathematical function is characterized in that, may further comprise the steps:
(1). the user specifies the size of the marbleizing glaze pattern that needs generation and the paint color of Background From Layer;
(2). the user specifies the color and the relevant parameters of figure layer, figure layer, selects dropping liquid then, sprays or topple over mode of operation, generates a width of cloth basic pattern according to the mathematical function of correspondence;
(3). the user selects comb, stylus, wave or rotary manipulation mode, mathematical function according to correspondence, adopt the method for reverse mapping, over-extraction sample or iteration regeneration density field to review the position of the pixel of each pixel in basic pattern in the current pattern, the density value that to put copies to current pixel point then, thereby obtains the density field of current pattern;
(4). the color of the density field of each figure layer and corresponding appointment multiplied each other and every layer result added up to the end color value and show.
2. the real-time marble grain glaze pattern generating method based on mathematical function according to claim 1, it is characterized in that: described comb mode of operation is to be formed by the combination of function that some straight lines are represented, wherein each tooth of comb is just represented straight line, and corresponding function is as follows:
P represents the pixel in the current pattern in the formula, and P ' expression is traced back to corresponding pixel points in the last pattern by P, and M represents the unit vector of this straight line, and d represents the distance of P point to straight line, and α and λ be the maximum displacement and the displacement gradient that move of remarked pixel respectively.
3. the real-time marble grain glaze pattern generating method based on mathematical function according to claim 1, it is characterized in that: the function of described stylus mode of operation correspondence is as follows:
P represents the pixel in the current pattern in the formula, P ' expression is traced back to corresponding pixel points in the last pattern by P, M represents that stylus streaks the unit vector of line segment place straight line, and d represents the distance that the P point streaks line segment to stylus, and α and λ be the maximum displacement and the displacement gradient that move of remarked pixel respectively.
4. the real-time marble grain glaze pattern generating method based on mathematical function according to claim 1, it is characterized in that: described wave mode of operation is divided into the wave of horizontal direction and the wave of vertical direction, and corresponding mathematical function is as follows respectively:
X, y represent the horizontal ordinate of the pixel P in the current pattern and the value of ordinate respectively in the formula, and P ' expression is traced back to corresponding pixel points in the last pattern by P, and A represents sinusoidal wave amplitude, and ω represents sinusoidal wavelength,
Represent sinusoidal phase deviation.
5. the real-time marble grain glaze pattern generating method based on mathematical function according to claim 1, it is characterized in that: the function of described rotary manipulation mode correspondence is as follows:
P represents the pixel in the current pattern in the formula, and P ' expression is traced back to corresponding pixel points in the last pattern by P, and C represents the home position that rotates, and θ represents anglec of rotation size, when θ turns clockwise for the negative interval scale, otherwise then for being rotated counterclockwise.
6. the real-time marble grain glaze pattern generating method based on mathematical function according to claim 1 is characterized in that: when the method for employing over-extraction sample is reviewed the position of the pixel of each pixel in basic pattern in the current pattern:
Current pixel is divided into the experimental process pixel, tries to achieve the pixel in the pattern on these sub-pixel correspondences according to function respectively then, then the density value weighted mean of these sub-pixel points is composed to current pixel point, formula is as follows:
The density value of D remarked pixel point in the formula, n represents the number of sub-pixel point, (x
i, y
i) represent i sub-sampled point, ρ
iAnd ω
iRepresent the density value and the weight of i sub-sampled point respectively, the weight of all sub sampling points is 1/n herein.
7. the real-time marble grain glaze pattern generating method based on mathematical function according to claim 1 is characterized in that: when the method for employing iteration regeneration density field is reviewed the position of the pixel of each pixel in basic pattern in the current pattern:
The mathematical function of the mode of operation correspondence of all user's appointments is placed in the pixel coloring device of GPU the pixel position of each pixel correspondence in basic pattern in the current pattern of iterative computation.
8. the real-time marble grain glaze pattern generating method based on mathematical function according to claim 1, it is characterized in that: step is carried out the calculating of color value according to following formula in (4):
In the formula, C is the color of output, C
bThe color of expression Background From Layer, D
iThe density value of representing the i layer, C
iThe color of representing the i layer, the quantity of n=16 presentation graphs layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101308990A CN101833777B (en) | 2010-03-23 | 2010-03-23 | Real-time marble vein glaze pattern generating method based on mathematical function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101308990A CN101833777B (en) | 2010-03-23 | 2010-03-23 | Real-time marble vein glaze pattern generating method based on mathematical function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101833777A true CN101833777A (en) | 2010-09-15 |
CN101833777B CN101833777B (en) | 2012-08-22 |
Family
ID=42717838
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010101308990A Active CN101833777B (en) | 2010-03-23 | 2010-03-23 | Real-time marble vein glaze pattern generating method based on mathematical function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101833777B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106023292A (en) * | 2016-05-20 | 2016-10-12 | 浙江大学 | Method for generating marble solid texture in real time based on mathematical function |
CN110176058A (en) * | 2019-04-25 | 2019-08-27 | 浙江大学 | A kind of immersion fast modeling method based on sketch and Convolution Surface |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6121975A (en) * | 1995-10-12 | 2000-09-19 | Schablonentechnik Kufstein Aktiengesellschaft | Pattern forming method and system providing compensated repeat |
CN101477693A (en) * | 2008-12-10 | 2009-07-08 | 浙江大学 | Real-time marble vein simulation system based on GPU |
-
2010
- 2010-03-23 CN CN2010101308990A patent/CN101833777B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6121975A (en) * | 1995-10-12 | 2000-09-19 | Schablonentechnik Kufstein Aktiengesellschaft | Pattern forming method and system providing compensated repeat |
CN101477693A (en) * | 2008-12-10 | 2009-07-08 | 浙江大学 | Real-time marble vein simulation system based on GPU |
Non-Patent Citations (1)
Title |
---|
《IEEE Computer Graphics and Applications》 20070430 Xiaogang Jing等 Computer-Generated Marbling Textures:A GPU-Based Design System 全文 1-8 , 2 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106023292A (en) * | 2016-05-20 | 2016-10-12 | 浙江大学 | Method for generating marble solid texture in real time based on mathematical function |
CN106023292B (en) * | 2016-05-20 | 2018-11-06 | 浙江大学 | A kind of real-time marble volume textures generation method based on mathematical function |
CN110176058A (en) * | 2019-04-25 | 2019-08-27 | 浙江大学 | A kind of immersion fast modeling method based on sketch and Convolution Surface |
Also Published As
Publication number | Publication date |
---|---|
CN101833777B (en) | 2012-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Curtis et al. | Computer-generated watercolor | |
Strassmann | Hairy brushes | |
US6198489B1 (en) | Computer generated watercolor | |
US8917283B2 (en) | Polygon processing techniques in procedural painting algorithms | |
Xu et al. | A solid model based virtual hairy brush | |
CN103218846B (en) | The ink and wash analogy method of Three-dimension Tree model | |
US8676552B2 (en) | Methods and apparatus for simulation of fluid motion using procedural shape growth | |
CN102999321B (en) | Brush pen electronics paintbrush arranges device and brush pen electronics paintbrush | |
CN101833777B (en) | Real-time marble vein glaze pattern generating method based on mathematical function | |
Stanyer | The complete book of drawing techniques: a professional guide for the artist | |
Geng | The algorithms and principles of non-photorealistic graphics: artistic rendering and cartoon animation | |
CN101477693B (en) | Real-time marble vein simulation system based on GPU | |
Xu et al. | Virtual hairy brush for painterly rendering | |
Akleman et al. | Hamiltonian cycle art: Surface covering wire sculptures and duotone surfaces | |
Guo et al. | A virtual 3D interactive painting method for Chinese calligraphy and painting based on real-time force feedback technology | |
CN106023292B (en) | A kind of real-time marble volume textures generation method based on mathematical function | |
Akgun | The digital art of marbled paper | |
TWM504826U (en) | Screen printing device for towel | |
Okaichi et al. | A virtual painting knife | |
JP6712451B2 (en) | Method of manufacturing patterned cosmetics | |
Durani | Acrylic Painting Techniques: A Series of Nature Themed Acrylic Paintings. | |
Jin et al. | Image Auto-generation of Brush Modeling and Ink Diffusion Chinese Ink Paintin | |
Le Thomas | The Tricks of the Trade: Georges Braque’s Artisanal Origins | |
Geng et al. | Simulating Artistic Media for Digitized Creation of Artworks | |
Zhang | Analysis of the Application and Influence of Line in Jackson Pollock's Paintings |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |