CN104933746A - Method and device for setting dynamic shadow for plane image - Google Patents

Method and device for setting dynamic shadow for plane image Download PDF

Info

Publication number
CN104933746A
CN104933746A CN201510263281.4A CN201510263281A CN104933746A CN 104933746 A CN104933746 A CN 104933746A CN 201510263281 A CN201510263281 A CN 201510263281A CN 104933746 A CN104933746 A CN 104933746A
Authority
CN
China
Prior art keywords
plane picture
light source
plane
current location
projection
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
CN201510263281.4A
Other languages
Chinese (zh)
Other versions
CN104933746B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510263281.4A priority Critical patent/CN104933746B/en
Publication of CN104933746A publication Critical patent/CN104933746A/en
Application granted granted Critical
Publication of CN104933746B publication Critical patent/CN104933746B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and a device for setting a dynamic shadow for a plane image. The method for setting the dynamic shadow for the plane picture comprises the steps of: obtaining a current position of a light source in real time, obtaining the distance between the central point of the plane picture and the current position of the light source, and obtaining an angle formed by the connection line of the central point of the plane image and the current position of the light source, and the coordinate axis; and determining the position of the current shadow of the plane image and a projection image according to the currently obtained distance, the angle and an offset factor, and displaying the projection image in the position of the shadow. According to the method disclosed by the invention, the dynamic shadow of the position is changed along the change of the relative positions of the light source and the plane picture; and the problems of an existing processing mode that the shadow in a virtual scene is inconsistent with the shadow in a real scene and the whole effect of the picture is influenced because attribute parameters cannot be changed once the shadow is set on the picture are solved.

Description

A kind of method and the device of dynamic shadow are set for plane picture
Technical field
The present invention relates to graphics process field, especially relate to and a kind of method and the device of dynamic shadow are set for plane picture.
Background technology
In the process of cartoon making, sometimes need the function for plane picture presentation shade.Generally, the shade added for plane picture is interior shade, and namely refer under light illuminate condition, the dark side that moulding entity backlight direction is formed, this shade can embody the direction of light source irradiation and the depth of view information of graphic entity.The current Shadows Processing mode to plane picture is mainly divided into two classes:
The first, be in advance picture interpolation Shadows Processing in photo handling software (as Photoshop), be then plotted on picture and derive use together;
The second, in photo handling software, make the picture of shade, after deriving separately, use in the application.
Above-mentioned two kinds of processing modes have an obvious shortcoming, be exactly shade once be set to after on picture, just cannot change the position of shade, shape and the parameter such as deep or light again, cause the shade in virtual scene in shade and reality scene inconsistent, affect picture whole structure.
Summary of the invention
The invention provides and a kind of method and the device of dynamic shadow are set for plane picture, solve the problem that the shade of shade and reality scene in virtual scene in prior art is inconsistent, virtual scene can be made more true to nature.
First aspect, the invention provides and a kind ofly arrange the method for dynamic shadow for plane picture, comprising:
The current location of Real-time Obtaining light source, obtains the distance between the central point of plane picture and the current location of described light source, obtains the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed;
According to the current described distance, described angle and the displacement factor that get, determine position and the projection image of the shade that described plane picture is current, the position of described projection image at described shade is shown.
Second aspect, the invention provides and a kind ofly arrange the device of dynamic shadow for plane picture, comprising:
Acquiring unit, for the current location of Real-time Obtaining light source, obtains the distance between the central point of plane picture and the current location of described light source, obtains the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed;
Determining unit, for according to the current described distance, described angle and the displacement factor that get, determines position and the projection image of the shade that described plane picture is current, is shown the position of described projection image at described shade.
The invention provides and a kind of method and the device of dynamic shadow are set for plane picture, by the current location of Real-time Obtaining light source, obtain the distance between the central point of plane picture and the current location of described light source, obtain the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed; And according to the current described distance, described angle and the displacement factor that get, determine position and the projection image of the shade that described plane picture is current, the position of described projection image at described shade is shown.It is the object that plane picture generates dynamic shade in real time that the present invention realizes according to the relative position of light source and plane picture, solves the problem that the shade of shade and reality scene in virtual scene in prior art is inconsistent, virtual scene can be made more true to nature.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing the embodiment of the present invention is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the content of the embodiment of the present invention and these accompanying drawings.
Fig. 1 is the process flow diagram arranging the method for dynamic shadow for plane picture that first embodiment of the invention provides;
Fig. 2 is the process flow diagram arranging the method for dynamic shadow for plane picture that second embodiment of the invention provides;
Fig. 3 is the process flow diagram arranging the method for dynamic shadow for plane picture that third embodiment of the invention provides;
Fig. 3-1 is that in third embodiment of the invention, light source and plane picture are the perspective view of XY plane at projection plane;
Fig. 4 is the structural representation arranging the device of dynamic shadow for plane picture that fourth embodiment of the invention provides;
Fig. 5 is the structural representation arranging the device of dynamic shadow for plane picture that fifth embodiment of the invention provides.
Embodiment
The technical matters solved for making the present invention, the technical scheme of employing and the technique effect that reaches are clearly, be described in further detail below in conjunction with the technical scheme of accompanying drawing to the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Technical scheme of the present invention is further illustrated by embodiment below in conjunction with accompanying drawing.
First embodiment
Fig. 1 is the process flow diagram arranging the method for dynamic shadow for plane picture that first embodiment of the invention provides.With reference to shown in Fig. 1, described the method for dynamic shadow is set for plane picture, comprises the steps:
Step S110: the current location of Real-time Obtaining light source, obtains the distance between the central point of plane picture and the current location of described light source, obtains the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed.
When the relative position of light source and plane picture changes, the shade presented in plane picture lower floor is also different.First, the position of monitoring light source, the current location of Real-time Obtaining light source, that is, according to the acquisition cycle T preset, per elapsed time T, then obtain the position of primary source, be designated as P light, and obtain the central point of the plane picture in order to represent plane Pictures location, be designated as P image.Distance Distance is between the two calculated according to the coordinate of the central point of plane picture and the current location of described light source.Connect the central point of plane picture and the current location of described light source, determine line and the coordinate axis angulation Direct of the central point of described plane picture and the current location of described light source.
Step S120: according to the current described distance, described angle and the displacement factor that get, determines position and the projection image of the shade that described plane picture is current, is shown the position of described projection image at described shade.
In the present embodiment, after often obtaining the angle that the line of distance, the central point of plane picture and the current location of light source between the current location of primary source, the central point of plane picture and the current location of light source and coordinate axis formed, just perform a step 120.
Described displacement factor is the zoom factor of the deviation post of shade and plane picture.When displacement factor is larger, shadow distance plane picture is far away, and display effect rises just as plane picture from screen.In two-dimensional coordinate system, described displacement factor is preset by user; But in three-dimensional system of coordinate, described displacement factor is that the distance between the projection of projection plane obtains by the central point of Calculation Plane picture and the current location of described light source.
The shade of plane picture is the congruent figures of the described plane picture being positioned at projection plane or proportionally compresses the congruent figures of described plane picture or projection image that the operation that stretches obtains.
In two-dimensional coordinate system, after determining the center position of the shade that described plane picture is current, in real time using the congruent figures of described plane picture as the position display of projection image at determined shade, using the dynamic shadow as described plane picture.But, in three-dimensional system of coordinate, after determining the center position of the shade that described plane picture is current, according to the zoom factor calculating width and the height determined, in real time by the width of the congruent figures of described plane picture be multiplied by zoom factor highly respectively and obtain the new projection image after compression or stretching, as the dynamic shadow of described plane picture.
What the embodiment of the present invention provided arranges the method for dynamic shadow for plane picture, by the current location of Real-time Obtaining light source, obtain the distance between the central point of plane picture and the current location of described light source, obtain the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed; And according to the current described distance, described angle and the displacement factor that get, determine position and the projection image of the shade that described plane picture is current, the position of described projection image at described shade is shown.Realize according to the relative position of light source and plane picture being the object that plane picture generates dynamic shade in real time by the method for the present embodiment, solve the problem that the shade of shade and reality scene in virtual scene in prior art is inconsistent, virtual scene can be made more true to nature.
Second embodiment
Fig. 2 is the process flow diagram arranging the method for dynamic shadow for plane picture that second embodiment of the invention provides.Describedly the method for dynamic shadow is set based on first embodiment of the invention for plane picture, further, obtains the congruent figures of described plane picture in two-dimensional coordinate system, using the projection image as described plane picture;
Following formula is adopted to determine the position of the shade that described plane picture is current:
Wherein, for true origin directional phantom center point P shadowvector, for true origin points to the center point P of plane picture imagevector, for true origin points to the current location P of light source lightvector, factor is default displacement factor and factor>0.
With reference to shown in Fig. 2, described the method for dynamic shadow is set for plane picture, comprises the steps:
Step S210: obtain the congruent figures of described plane picture in two-dimensional coordinate system, using the projection image as described plane picture.
The present embodiment only considers the shade in the virtual scene of two-dimensional coordinate system midplane picture, does not consider compression and the stretching of shade at this, only calculates the deviation post of projection image relative to plane picture.As compression or the stretching of shade need be considered, only to need the width of projection image on the basis of the projection image generation method provided at the present embodiment and carry out convergent-divergent highly according to a certain percentage.
In this step, a kind of operation preferably obtaining the congruent figures of described plane picture in two-dimensional coordinate system specifically comprises:
If described plane picture is regular figure, then obtain the physical dimension of described plane picture, in two-dimensional coordinate system, generate a congruent figures identical with described plane picture physical dimension according to described physical dimension;
If described plane picture is not regular figure, then obtain the transparence value of each pixel of described plane picture, and the color value of each pixel is converted to the transparence value of respective pixel, using congruent figures identical with described plane picture physical dimension in two-dimensional coordinate system for the gray-scale map that obtains after conversion operations.
For realizing aforesaid operations, first, obtain the eigenwert of the edge pixel point of plane picture, according to polygon vertex and other edge pixel point patterns value Changing Patterns, identify polygonal summit fast and put in order, completing the accurate identification to polygonal shape.In addition, according to feature apart from the center and radius, major semi-axis and the minor semi-axis length that calculate figure, construct circle and oval equation, complete circle and oval quick identification.Defining other figures that can not identify is irregular figure.
When described plane picture is regular figure, obtain the physical dimension of described plane picture according to the result of figure identification.Such as, if described plane picture is rectangle, then obtain the length of rectangle and wide; If described plane picture is circular, then obtain the circular center of circle and radius; If during other regular figures, then obtain drawing key element according to the requirement forming this figure.The figure identical with described plane picture physical dimension is generated according to determined drawing key element.
When described plane picture is irregular figure, obtain the transparence value of each pixel of described picture, and the color value of described pixel is converted to described transparence value, using congruent figures identical with described plane picture physical dimension in two-dimensional coordinate system.
By the method that the color value of pixel is converted to transparence value be:
( ARGB ) pixel = A pixel = alpha R pixel = alpha G pixel = alpha B pixel = alpha ;
(ARGB) that obtain pixelbe the color value of the projection image respective pixel identical with described photo current physical dimension.Wherein, alpha is the transparency of described pixel, A pixelfor the transparent channel of described pixel, R pixelfor the red channel of described pixel, G pixelfor the green channel of described pixel, B pixelfor the blue channel of described pixel.Because the value of the ARGB of perspective view tetra-components is all a kind of, be all alpha value, so (ARGB) now pixelcolor be grey.
Step S220: in real time according to described distance, described angle and default displacement factor, determine the position of the current shade of described plane picture.
Initialization acquiescence light source, and by the drag and drop of described plane picture after two-dimensional coordinate system, judge that whether described acquiescence light source is through self-defining operation, if not, then drag and drop light source, and adjust the height of light source.The current location P of Real-time Obtaining light source light, coordinate is designated as (Xl, Yl).
In two-dimensional coordinate system, the position P of the central point of the plane picture that user in real is arranged image, coordinate is designated as (Xi, Yi).So, the distance of trying to achieve between the central point of plane picture and the current location of described light source according to the range formula of point-to-point transmission is:
Wherein, P imagethe position of the central point of the plane picture that user is arranged, P lightthe current location of light source, for true origin points to the center point P of plane picture imagevector, for true origin points to the current location P of light source lightvector, Xl is the projection of current location in X-axis of light source in two-dimensional coordinate system, Yl is the projection of current location in Y-axis of light source in two-dimensional coordinate system, Xi is the projection of position in X-axis of the central point of two-dimensional coordinate system midplane picture, and Yi is the projection of position in Y-axis of the central point of two-dimensional coordinate system midplane picture.
The line of the central point of described plane picture and the current location of described light source and coordinate axis angulation embody the orientation of shade relative to plane picture.Under the prerequisite of known shadow relative to the offset distance of plane picture, can by trying to achieve the position of shade relative to the orientation determination shade of plane picture.Shade relative to the orientation of plane picture is:
Direct = ( Xl - Xi ( Xl - Xi ) 2 + ( Yl - Yi ) 2 , Yl - Yi ( Xl - Xi ) 2 + ( Yl - Yi ) 2 )
Wherein, Xl is the projection of current location in X-axis of light source in two-dimensional coordinate system, Yl is the projection of current location in Y-axis of light source in two-dimensional coordinate system, Xi is the projection of position in X-axis of the central point of two-dimensional coordinate system midplane picture, and Yi is the projection of position in Y-axis of the central point of two-dimensional coordinate system midplane picture.
In two-dimensional coordinate system, the distance between the central point of described plane picture and the current location of described light source is the deviation post of shade relative to plane picture with the product of displacement factor preset, the displacement factor wherein preset be greater than zero natural number.In real time the projection image of described plane picture is moved the length of described deviation post to described orientation Direct, the shade that plane picture is current can be obtained.The light source position obtained for each, distance between the central point of plane picture and the current location of described light source, and the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed, all perform step 220 to determine the operation of the position of the current shade of described plane picture.Therefore, when the relative position of light source and described plane picture changes, the position of shade also changes thereupon.
What the embodiment of the present invention provided arranges the method for dynamic shadow, by obtaining the congruent figures of described plane picture in two-dimensional coordinate system, using the projection image as described plane picture for plane picture; In real time according to described distance, described angle and default displacement factor, determine the position of the current shade of described plane picture.Realized in two-dimensional coordinate system, for plane picture arranges the object of dynamic shadow by this method.
3rd embodiment
Fig. 3 is the process flow diagram arranging the method for dynamic shadow for plane picture that third embodiment of the invention provides.Describedly the method for dynamic shadow is set based on first embodiment of the invention for plane picture, further, in three-dimensional system of coordinate, by the current location of described Real-time Obtaining light source, obtain the distance between the central point of plane picture and the current location of described light source, the operation obtaining the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed specifically is optimized for:
The central point of acquisition plane picture and the current location of light source, at the coordinate of projection plane, calculate the distance between the central point of described plane picture in projection plane and the current location of described light source according to described coordinate;
According to the central point of plane picture and the current location of the light source coordinate at projection plane, and the distance in projection plane between the central point of described plane picture and the current location of described light source, determine that the central point of described plane picture and the current location of described light source are at the line of projection plane and coordinate axis angulation, using as deviation angle.
Further, by according to the current described distance, described angle and the displacement factor that get, determine that the position of shade that described plane picture is current and the operation of projection image are specifically optimized for: in real time according to distance in projection plane of the position of the current location of described light source and the central point of plane picture and default projection image apart from the height of plane picture, determine displacement factor; The position of the current shade of described plane picture is determined according to described displacement factor, deviation angle.
With reference to shown in Fig. 3, described the method for dynamic shadow is set for plane picture, comprises the steps:
Step S310: obtain the current location of light source and the center point coordinate of plane picture.
Initialization acquiescence light source, and by the drag and drop of plane picture after three-dimensional system of coordinate, judge that whether described acquiescence light source is through self-defining operation, if not, then drag and drop light source, and adjust the height of light source.The current location P of Real-time Obtaining light source light, coordinate is designated as (Xl, Yl, Zl) and the position P of the central point of plane picture in three-dimensional system of coordinate image, coordinate is designated as (Xi, Yi, Zi).
Step S320: the coordinate at projection plane and the height determination displacement factor of default projection image distance plane picture according to the current location of described light source and the central point of plane picture.
When obtaining the current location of light source, according to the current location P of light source lightthe position P of central point in three-dimensional system of coordinate of (Xl, Yl, Zl) and plane picture image(Xi, Yi, Zi) and the projection image preset determine displacement factor apart from the height H s of plane picture.Such as, using XY plane as projection plane, first, plane picture is obtained in the projection in XY plane of the projection of XY plane and the current location of described light source.According to the distance of current location between the projection of XY plane of central point and described light source that the range formula of point-to-point transmission obtains plane picture.Sitting the central point of calibration method Calculation Plane picture and the distance of current location between the projection of XY plane of described light source by taking out two-dimensional projection from three-dimensional coordinate, calculating displacement factor factor according to the Z axis component in three-dimensional system of coordinate.
From three-dimensional coordinate P 3Dtwo-dimensional projection coordinate P is taken out in (X, Y, Z) 2Dthe method of (X ', Y ') is:
X , = X Y , = Y
Wherein, X is X-axis component in three-dimensional system of coordinate, and Y is Y-axis component in three-dimensional system of coordinate, X ' be in three-dimensional system of coordinate X-axis component in the projection of XY plane, Y ' be in three-dimensional system of coordinate Y-axis component in the projection of XY plane.
In sum, the central point of described plane picture and the distance of the current location of described light source between the projection of XY plane are Dis tan ce = ( Xl - Xi ) 2 + ( Yl - Yi ) 2 , Wherein, Xl is the projection of X-axis component in XY plane of the current location of light source, Yl is the projection of Y-axis component in XY plane of the current location of light source, and Xi is the projection of X-axis component in XY plane of the central point of plane picture, and Yi is the projection of Y-axis component in XY plane of the central point of plane picture.
As shown in figure 3-1, the leg-of-mutton limit that forms in the projection of YZ plane of light source and plane picture is identical in the proportionate relationship of the projection of XY plane with plane picture with light source with the proportionate relationship at angle.Plane picture is parallel to the projection of projection image in YZ plane in the projection of YZ plane, then ∠ α=∠ β, from triangle proportionate relationship:
factor + Dis tan ce Dis tan ce = Zl - Zs Zl - Zi ;
Wherein, factor is displacement factor, in order to represent the zoom factor of the deviation post of projection image and plane picture, Distance is the central point of described plane picture and the distance of current location between the projection of XY plane of described light source, Zl is the Z axis component of light source current location, Zi is the Z axis component of the central point of described plane picture, and Zs is the Z axis component of the central point of projection image.
Arrangement obtains:
Displacement factor is: factor = ( Xl - Xi ) 2 + ( Yl - Yi ) 2 * Zi - Zs Zl - Zi
Wherein, Xl is the projection of X-axis component in XY plane of the current location of light source, Yl is the projection of Y-axis component in XY plane of the current location of light source, Xi is the projection of X-axis component in XY plane of the central point of plane picture, Yi is the projection of Y-axis component in XY plane of the central point of plane picture, Zl is the Z axis component of light source current location, and Zi is the Z axis component of the central point of described plane picture, and Zs is the Z axis component of the central point of projection image.
Above-mentioned computing method are only a kind of implementation methods obtaining displacement factor, it will be appreciated by those skilled in the art that the computing method for obtaining displacement factor include but are not limited to the above-mentioned mode enumerated, as long as the algorithm that can realize the zoom factor of the deviation post obtaining projection image and plane picture is Equivalent embodiments of the present invention.
Step S330: determine that the current location of described light source and plane picture central point are in the projection join line of projection plane, obtain described projection join line and coordinate axis angulation, to determine deviation angle.
As from the foregoing, the current location P of described light source light(Xl, Yl, Zl) is P ' in the projection of XY plane light(Xl, Yl), the center point P of plane picture image(Xi, Yi, Zi) is P ' in the projection of XY plane image(Xi, Yi), then by the current location P of described light source light(Xl, Yl, Zl) is to the center point P of plane picture imageformed by (Xi, Yi, Zi) line between the projection of XY plane and coordinate axis, deviation angle is:
Direct = ( Xl - Xi ( Xl - Xi ) 2 + ( Yl - Yi ) 2 , Yl - Yi ( Xl - Xi ) 2 + ( Yl - Yi ) 2 ) ;
Wherein, Xl is the projection of X-axis component in XY plane of the current location of light source, Yl is the projection of Y-axis component in XY plane of the current location of light source, and Xi is the projection of X-axis component in XY plane of the central point of plane picture, and Yi is the projection of Y-axis component in XY plane of the central point of plane picture.
Step S340: obtain the congruent figures of described plane picture in the projection plane of three-dimensional system of coordinate.
One preferably implementation comprises:
If described plane picture is regular figure, then obtain the physical dimension of described plane picture, in the projection plane of three-dimensional system of coordinate, generate a congruent figures identical with described plane picture physical dimension according to described physical dimension;
If described plane picture is irregular figure, then obtain the transparence value of each pixel of described plane picture, and the color value of each pixel is converted to the transparence value of respective pixel, using congruent figures identical with described plane picture physical dimension in the projection plane of three-dimensional system of coordinate for the gray-scale map that obtains after conversion operations.
In the method, the mode generating the congruent figures identical with described plane picture physical dimension in the projection plane of three-dimensional system of coordinate, with identical in two-dimensional coordinate system, repeats no more herein.
Step S350: respectively according to zoom factor, zoom operations is carried out, to obtain projection image with height to the width of described congruent figures.
One preferably implementation comprises:
According to cornerwise two end points of plane picture and the current location of described light source the distance of projection plane and described light source current location respectively with line and the coordinate axis angulation of cornerwise two end points of described plane picture, determine the boundary rectangle of described congruent figures, determine the business of the width of described boundary rectangle and the width of described plane picture respectively, and the business of the height of the height of described boundary rectangle and described plane picture, using the zoom factor of the width as described congruent figures and zoom factor highly;
In real time by the width of described congruent figures with carry out compressing or stretching according to respective zoom factor highly respectively, to obtain the projection image of described plane picture.
The congruent figures of described plane picture carries out compressing or stretched operation according to zoom factor by following illustrating, to obtain the operation steps of projection image.
According to the distance between cornerwise two end points of described plane picture and the current location of described light source, determine the boundary rectangle of the shade that described plane picture is current.
The coordinate of cornerwise two end points of known described plane picture is P respectively ai(X ai, Y ai, Z ai) and P bi(X bi, Y bi, Z bi), try to achieve the coordinate P of cornerwise two end points of the correspondence of the boundary rectangle of shade as(X as, Y as, Z as) and P bs(X bs, Y bs, Z as).
With reference to shown in Fig. 3-1, from triangle ratio:
factor 1 + Dis tan ce 1 Dis tan ce 1 = Zl - Z As Zl - Z Ai
Wherein, factor1 is the first displacement factor, in order to represent an end points P of shade picture asto corresponding cornerwise end points P of plane picture aithe zoom factor of deviation post, Distance1 is the first distance, in order to represent the end points P of described plane picture aiand the distance of the current location of described light source between the projection of XY plane, Zl is the Z axis component of light source current location, Z aifor the Z axis component of the central point of described plane picture, Z asfor the Z axis component of the central point of projection image.
Will Dis tan ce 1 = ( Xl - X Ai ) 2 + ( Yl - Y Ai ) 2 (wherein, Xl is the projection of X-axis component in XY plane of light source current location, and Yl is the projection of Y-axis component in XY plane of light source current location, X aifor the end points P of described plane picture aix-axis component in the projection of XY plane, Y aifor the end points P of described plane picture aiy-axis component in the projection of XY plane) substitute into above-mentioned formula, arrangement obtains:
factor 1 = ( Xl - X Ai ) 2 + ( Yl - Y Ai ) 2 * Z Ai - Z As Zl - Z Ai
Wherein, Xl is the projection of X-axis component in XY plane of light source current location, and Yl is the projection of Y-axis component in XY plane of light source current location, X aifor the end points P of described plane picture aix-axis component in the projection of XY plane, Y aifor the end points P of described plane picture aiy-axis component in the projection of XY plane, Zl is the Z axis component of light source current location, Z aifor the Z axis component of the central point of described plane picture, Z asfor the Z axis component of the central point of projection image.
By the current location P of described light source light(Xl, Yl, Zl) is to cornerwise one of them end points P of plane picture ai(X ai, Y ai, Z ai) deviation angle formed by line between the projection of XY plane and coordinate axis is:
Direct 1 = ( Xl - X Ai ( Xl - X Ai ) 2 + ( Yl - Y Ai ) 2 , Yl - Y Ai ( Xl - X Ai ) 2 + ( Yl - Y Ai ) 2 )
Wherein, Xl is the projection of X-axis component in XY plane of light source current location, and Yl is the projection of Y-axis component in XY plane of light source current location, X aifor the end points P of described plane picture aix-axis component in the projection of X plane, Y aifor the end points P of described plane picture aiy-axis component in the projection of XY plane.
Then the coordinate of cornerwise end points of the boundary rectangle of shade is:
wherein, Xl is the projection of X-axis component in XY plane of light source current location, and Yl is the projection of Y-axis component in XY plane of light source current location, X aifor the end points P of described plane picture aix-axis component in the projection of XY plane, Y aifor the end points P of described plane picture aiy-axis component in the projection of XY plane, factor1 is the first displacement factor, in order to represent an end points P of projection image asto corresponding cornerwise end points P of plane picture aithe zoom factor of deviation post.
Same,
The coordinate of corresponding another end points cornerwise of boundary rectangle of shade is:
wherein, Xl is the projection of X-axis component in XY plane of light source current location, and Yl is the projection of Y-axis component in XY plane of light source current location, X bifor the end points P of described plane picture bix-axis component in the projection of XY plane, Y bifor the end points P of described plane picture biy-axis component in the projection of XY plane, factor2 is the second displacement factor, in order to represent an end points P of projection image bsto corresponding cornerwise end points P of plane picture bithe zoom factor of deviation post.
By the coordinate of cornerwise two end points of the boundary rectangle of shade, width and the height of shade boundary rectangle can be obtained.In the present invention, think the width of shade boundary rectangle and height and the width of projection image and highly equal, then the width and highly respectively of shade:
Width shadow = X Bs - X As Height shadow = Y Bs - Y As ;
Wherein, X asfor cornerwise end points P of the boundary rectangle of shade asx-axis component in the projection of XY plane, Y asfor cornerwise end points P of the boundary rectangle of shade asy-axis component in the projection of XY plane, X bscorresponding cornerwise another end points P of boundary rectangle for shade bsx-axis component in the projection of XY plane, Y bscorresponding cornerwise another end points P of boundary rectangle for shade bsy-axis component in the projection of XY plane.
The zoom factor of the width of projection image is the width of width divided by described plane picture of the boundary rectangle of shade, that is: Width factor = Width shadow Width image = XBs - XAs XBi - XAi ,
Wherein, Width shadowfor the width of shade boundary rectangle, Width imagefor the width of described plane picture, X asfor an end points P on the diagonal line of shade picture asx-axis component in the projection of XY plane, XBs be shade picture diagonal line on an end points P bsx-axis component in the projection of XY plane, X aifor the end points P of described plane picture aix-axis component in the projection of XY plane, X bifor the end points P of described plane picture bix-axis component in the projection of XY plane.
The zoom factor of the height of projection image is the height of height divided by described plane picture of the boundary rectangle of shade, that is: Height factor = Height shadow Height image = YBs - YAs YBi - YAi ,
Wherein, Height shadowfor the height of shade boundary rectangle, Height imagefor the height of described plane picture, Y asfor an end points P on the diagonal line of shade picture asy-axis component in the projection of XY plane, Y bsfor an end points P on the diagonal line of shade picture bsy-axis component in the projection of XY plane, Y aifor the end points P of described plane picture aiy-axis component in the projection of XY plane, Y bifor the end points P of described plane picture biy-axis component in the projection of XY plane.
In summary, the zoom factor that the width of projection image is multiplied by width obtains the width of the projection image after convergent-divergent distortion, the height of projection image be multiplied by height zoom factor obtain convergent-divergent distortion after projection image height.
Step S360: the position determining the current shade of described plane picture in real time according to described displacement factor, described deviation angle and default projection image apart from the height of described plane picture.
By the deviation angle Direct obtained in the displacement factor factor obtained in step S320 and step S330, determine the position P of projected centre point shadow(Xs, Ys, Zs) is:
Xs = Direct ( x ) · factor = Xl - Xi Dis tan ce · factor Ys = Direct ( y ) · factor = Yl - Yi Dis tan ce · factor Zs = Zi - Hs
Wherein, the X-axis component that Direct (x) is deviation angle, the Y-axis component that Direct (y) is deviation angle, factor is displacement factor, in order to represent the zoom factor of the deviation post of projection image and plane picture; Xl is the projection of X-axis component in XY plane of light source current location, Yl is the projection of Y-axis component in XY plane of light source current location, Xi is the projection of X-axis component in XY plane of the central point of plane picture, Yi is the projection of Y-axis component in XY plane of the central point of plane picture, and Distance is the central point of described plane picture and the distance of current location between the projection of XY plane of described light source.
The then position P of shade central point shadowfor wherein, factor is displacement factor, in order to represent the zoom factor of the deviation post of projection image and plane picture, Distance is the central point of described plane picture and the distance of current location between the projection of XY plane of described light source, Zi is the Z axis component of the central point of described plane picture, and Hs is projection image and the distance of described plane picture between the projection of XY plane.Again because the change of the position of shade is the translation at projection plane, then the coordinate determining shade central point can determine the position of shade.
Step S370: after determining described position and described projection image, shows the position of described projection image at described shade.
After determining shadow positions, by projection image in the method for the position display of described shade can be: in projection plane, in real time the projection image of described plane picture is moved to the position of the current shade of described plane picture that step S360 determines, then according to the width zoom factor of step S350 and height zoom factor to the width of the projection image of described plane picture with highly compress or stretch, and will to compress or projection image after stretched operation is shown in the position of the current shade of described plane picture.Obtain the current location of light source and the center point coordinate of plane picture for each, all perform the operation described in S320 to S370.
What the embodiment of the present invention provided arranges the method for dynamic shadow for plane picture, by the current location of the central point and light source that obtain plane picture at the coordinate of projection plane, calculate the distance between the central point of described plane picture and the current location of described light source according to coordinate described in projection plane; According to the central point of plane picture and the current location of the light source coordinate at projection plane, and the distance in projection plane between the central point of described plane picture and the current location of described light source, determine that the central point of described plane picture and the current location of described light source are at the line of projection plane and coordinate axis angulation, using as deviation angle; Then, obtain the congruent figures of described plane picture in the projection plane of three-dimensional system of coordinate, respectively according to zoom factor, zoom operations is carried out, to obtain projection image with height to the width of described congruent figures; Determine the position of the current shade of described plane picture in real time according to described displacement factor, described deviation angle and default projection image apart from the height of described plane picture, and the position of described projection image at described shade is shown.Realized in three-dimensional system of coordinate, for plane picture arranges the object of dynamic shadow by this method.
4th embodiment
Fig. 4 is the structural representation arranging the device of dynamic shadow for plane picture that fourth embodiment of the invention provides.With reference to shown in Fig. 4, described the device of dynamic shadow is set for plane picture, comprises:
Acquiring unit 410, for the current location of Real-time Obtaining light source, obtain the distance between the central point of plane picture and the current location of described light source, obtain the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed;
Determining unit 420, for according to the current described distance, described angle and the displacement factor that get, determines position and the projection image of the shade that described plane picture is current, is shown the position of described projection image at described shade.
Further, in two-dimensional coordinate system, described determining unit 420 comprises:
First obtains subelement 421, for obtaining the congruent figures of described plane picture in two-dimensional coordinate system, using the projection image as described plane picture;
First determines subelement 422, the position for adopting following formula to determine the shade that described plane picture is current:
Wherein, for true origin directional phantom center point P shadowvector, for true origin points to the center point P of plane picture imagevector, for true origin points to the current location P of light source lightvector, factor is default displacement factor and factor>0.
Further, described first obtain subelement 421 specifically for:
If described plane picture is regular figure, then obtain the physical dimension of described plane picture, in two-dimensional coordinate system, generate a congruent figures identical with described plane picture physical dimension according to described physical dimension;
If described plane picture is not regular figure, then obtain the transparence value of each pixel of described plane picture, and the color value of each pixel is converted to the transparence value of respective pixel, using congruent figures identical with described plane picture physical dimension in two-dimensional coordinate system for the gray-scale map that obtains after conversion operations.
The technical scheme of the present embodiment, by the current location of acquiring unit 410 Real-time Obtaining light source, distance between the central point of plane picture and the current location of described light source, and the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed, and by determining unit 420 determine the shade that described plane picture is current position and in two-dimensional coordinate system projection image, the position of described projection image at described shade is shown.In two-dimensional coordinate system, realizing according to the relative position of light source and plane picture is the object that plane picture generates dynamic shade in real time, solve the problem that the shade of shade and reality scene in virtual scene in prior art is inconsistent, virtual scene can be made more true to nature.
What the device arranging dynamic shadow for plane picture that the present embodiment provides can perform that the embodiment of the present invention two provides arranges the method for dynamic shadow for plane picture, possesses the corresponding functional module of manner of execution and beneficial effect.
5th embodiment
Fig. 5 is a kind of structural representation arranging the device of dynamic shadow for plane picture that fifth embodiment of the invention provides.With reference to shown in Fig. 5, described the device of dynamic shadow is set for plane picture, comprises:
Acquiring unit 510, for the current location of Real-time Obtaining light source, obtain the distance between the central point of plane picture and the current location of described light source, obtain the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed;
Determining unit 520, for according to the current described distance, described angle and the displacement factor that get, determines position and the projection image of the shade that described plane picture is current, is shown the position of described projection image at described shade.
Further, in three-dimensional system of coordinate, described acquiring unit 510 comprises:
Distance subelement 511, for the current location of the central point and light source that obtain plane picture at the coordinate of projection plane, calculates the distance between the central point of described plane picture and the current location of described light source according to coordinate described in projection plane;
Angle subelement 512, for according to the central point of plane picture and the current location of the light source coordinate at projection plane, and the distance in projection plane between the central point of described plane picture and the current location of described light source, determine that the central point of described plane picture and the current location of described light source are at the line of projection plane and coordinate axis angulation, using as deviation angle.
Further, described determining unit 520 comprises:
Second obtains subelement 521, for obtaining the congruent figures of described plane picture in the projection plane of three-dimensional system of coordinate;
Convergent-divergent subelement 522, for respectively to the width of described congruent figures with highly carry out zoom operations, to obtain projection image;
Second determines subelement 523, for the distance of position in projection plane and the height of default projection image distance plane picture of the central point of the real-time current location according to described light source and plane picture, determines displacement factor; The position of the current shade of described plane picture is determined according to described displacement factor, deviation angle.
Further, described convergent-divergent subelement 522 specifically for:
According to cornerwise two end points of plane picture and the current location of described light source the distance of projection plane and described light source current location respectively with line and the coordinate axis angulation of cornerwise two end points of described plane picture, determine the boundary rectangle of described congruent figures, determine the business of the width of described boundary rectangle and the width of described plane picture, using the zoom factor of the width as described congruent figures; Determine the business of the height of described boundary rectangle and the height of described plane picture, using the zoom factor of the height as described congruent figures.
In real time by the width of described congruent figures with carry out compressing or stretching according to respective zoom factor highly respectively, to obtain the projection image of described plane picture.
Further, described second obtain subelement 521 specifically for:
If described plane picture is regular figure, then obtain the physical dimension of described plane picture, in the projection plane of three-dimensional system of coordinate, generate a congruent figures identical with described plane picture physical dimension according to described physical dimension;
If described plane picture is irregular figure, then obtain the transparence value of each pixel of described plane picture, and the color value of each pixel described is converted to the transparence value of this respective pixel, by the gray-scale map that obtains after conversion operations using congruent figures identical with described plane picture physical dimension in the projection plane of three-dimensional system of coordinate.
The technical scheme of the present embodiment, the deviation angle of projection image relative to plane picture is obtained by acquiring unit 510, the displacement factor of projection image relative to plane picture is obtained again by determining unit 520, according to the position of described deviation angle and the current shade of displacement factor determination three-dimensional system of coordinate midplane picture, compress carrying out according to zoom factor or described projection image after stretch processing, in the position display of the current shade of described plane picture.In three-dimensional system of coordinate, realizing according to the relative position of light source and plane picture is the object that plane picture generates dynamic shade in real time, solve the problem that the shade of shade and reality scene in virtual scene in prior art is inconsistent, virtual scene can be made more true to nature.
What the device arranging dynamic shadow for plane picture that the present embodiment provides can perform that the embodiment of the present invention three provides arranges the method for dynamic shadow for plane picture, possesses the corresponding functional module of manner of execution and beneficial effect.
All or part of content in the technical scheme that above embodiment provides can be realized by software programming, and its software program is stored in the storage medium that can read, storage medium such as: the hard disk in computing machine, CD or floppy disk.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (10)

1., for plane picture arranges a method for dynamic shadow, it is characterized in that, comprising:
The current location of Real-time Obtaining light source, obtains the distance between the central point of plane picture and the current location of described light source, obtains the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed;
According to the current described distance, described angle and the displacement factor that get, determine position and the projection image of the shade that described plane picture is current, the position of described projection image at described shade is shown.
2. method according to claim 1, it is characterized in that, in two-dimensional coordinate system, described according to the current described distance, described angle and the displacement factor that get, determine that the position of shade that described plane picture is current and the operation of projection image specifically comprise:
Obtain the congruent figures of described plane picture in two-dimensional coordinate system, using the projection image as described plane picture;
Following formula is adopted to determine the position of the shade that described plane picture is current:
Wherein, for true origin directional phantom center point P shadowvector, for true origin points to the center point P of plane picture imagevector, for true origin points to the current location P of light source lightvector, factor is default displacement factor and factor>0.
3. method according to claim 1, it is characterized in that, in three-dimensional system of coordinate, the current location of described Real-time Obtaining light source, obtain the distance between the central point of plane picture and the current location of described light source, the operation obtaining the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed specifically comprises:
The central point of acquisition plane picture and the current location of light source, at the coordinate of projection plane, calculate the distance between the central point of described plane picture in projection plane and the current location of described light source according to described coordinate;
According to the central point of plane picture and the current location of the light source coordinate at projection plane, and the distance in projection plane between the central point of described plane picture and the current location of described light source, determine that the central point of described plane picture and the current location of described light source are at the line of projection plane and coordinate axis angulation, using as deviation angle.
4. method according to claim 3, is characterized in that, described according to the current described distance, described angle and the displacement factor that get, determines that the position of shade that described plane picture is current and the operation of projection image specifically comprise:
Obtain the congruent figures of described plane picture in the projection plane of three-dimensional system of coordinate, respectively according to zoom factor, zoom operations is carried out, to obtain projection image with height to the width of described congruent figures;
In real time according to distance in projection plane of the position of the current location of described light source and the central point of plane picture and default projection image apart from the height of plane picture, determine displacement factor; The position of the current shade of described plane picture is determined according to described displacement factor and deviation angle.
5. method according to claim 4, is characterized in that, carries out zoom operations respectively, to obtain projection image, comprising the width of described congruent figures with height according to zoom factor:
According to cornerwise two end points of plane picture and the current location of the described light source distance at projection plane, and the current location of described light source respectively with line and the coordinate axis angulation of cornerwise two end points of described plane picture, determine the boundary rectangle of described congruent figures, determine the business of the width of described boundary rectangle and the width of described plane picture, using the zoom factor of the width as described congruent figures, determine the business of the height of described boundary rectangle and the height of described plane picture, using the zoom factor of the height as described congruent figures;
In real time by the width of described congruent figures with carry out compressing or stretching according to respective zoom factor highly respectively, to obtain the projection image of described plane picture.
6., for plane picture arranges a device for dynamic shadow, it is characterized in that, comprising:
Acquiring unit, for the current location of Real-time Obtaining light source, obtains the distance between the central point of plane picture and the current location of described light source, obtains the angle that the line of the central point of described plane picture and the current location of described light source and coordinate axis are formed;
Determining unit, for according to the current described distance, described angle and the displacement factor that get, determines position and the projection image of the shade that described plane picture is current, is shown the position of described projection image at described shade.
7. device according to claim 6, is characterized in that, in two-dimensional coordinate system, described determining unit comprises:
First obtains subelement, for obtaining the congruent figures of described plane picture in two-dimensional coordinate system, using the projection image as described plane picture;
First determines subelement, the position for adopting following formula to determine the shade that described plane picture is current:
Wherein, for true origin directional phantom center point P shadowvector, for true origin points to the center point P of plane picture imagevector, for true origin points to the current location P of light source lightvector, factor is default displacement factor and factor>0.
8. device according to claim 6, is characterized in that, in three-dimensional system of coordinate, described acquiring unit comprises:
Distance subelement, for the current location of the central point and light source that obtain plane picture at the coordinate of projection plane, calculates the distance between the central point of described plane picture in projection plane and the current location of described light source according to described coordinate;
Angle subelement, for according to the central point of plane picture and the current location of the light source coordinate at projection plane, and the distance in projection plane between the central point of described plane picture and the current location of described light source, determine that the central point of described plane picture and the current location of described light source are at the line of projection plane and coordinate axis angulation, using as deviation angle.
9. device according to claim 8, is characterized in that, described determining unit comprises:
Second obtains subelement, for obtaining the congruent figures of described plane picture in the projection plane of three-dimensional system of coordinate;
Convergent-divergent subelement, for respectively to the width of described congruent figures with highly carry out zoom operations, to obtain projection image;
Second determines subelement, for the distance of position in projection plane and the height of default projection image distance plane picture of the central point of the real-time current location according to described light source and plane picture, determines displacement factor; The position of the current shade of described plane picture is determined according to described displacement factor and deviation angle.
10. device according to claim 9, is characterized in that, described convergent-divergent subelement specifically for:
According to cornerwise two end points of plane picture and the current location of the described light source distance at projection plane, and the current location of described light source respectively with line and the coordinate axis angulation of cornerwise two end points of described plane picture, determine the boundary rectangle of described congruent figures, determine the business of the width of described boundary rectangle and the width of described plane picture, using the zoom factor of the width as described congruent figures, determine the business of the height of described boundary rectangle and the height of described plane picture, using the zoom factor of the height as described congruent figures;
In real time by the width of described congruent figures with carry out compressing or stretching according to respective zoom factor highly respectively, to obtain the projection image of described plane picture.
CN201510263281.4A 2015-05-21 2015-05-21 A kind of method and device that dynamic shadow is set for plane picture Expired - Fee Related CN104933746B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510263281.4A CN104933746B (en) 2015-05-21 2015-05-21 A kind of method and device that dynamic shadow is set for plane picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510263281.4A CN104933746B (en) 2015-05-21 2015-05-21 A kind of method and device that dynamic shadow is set for plane picture

Publications (2)

Publication Number Publication Date
CN104933746A true CN104933746A (en) 2015-09-23
CN104933746B CN104933746B (en) 2018-03-23

Family

ID=54120899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510263281.4A Expired - Fee Related CN104933746B (en) 2015-05-21 2015-05-21 A kind of method and device that dynamic shadow is set for plane picture

Country Status (1)

Country Link
CN (1) CN104933746B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846455A (en) * 2017-01-10 2017-06-13 努比亚技术有限公司 A kind of dynamic shadow processing terminal and method
CN108320320A (en) * 2018-01-25 2018-07-24 重庆爱奇艺智能科技有限公司 A kind of method for information display, device and equipment
CN109447925A (en) * 2018-09-28 2019-03-08 Oppo广东移动通信有限公司 Image processing method and device, storage medium, electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1243977A (en) * 1998-03-20 2000-02-09 皇家菲利浦电子有限公司 Electronic unit including screen and method for displaying image
US7439975B2 (en) * 2001-09-27 2008-10-21 International Business Machines Corporation Method and system for producing dynamically determined drop shadows in a three-dimensional graphical user interface
US7764286B1 (en) * 2006-11-01 2010-07-27 Adobe Systems Incorporated Creating shadow effects in a two-dimensional imaging space
CN102396003A (en) * 2009-04-17 2012-03-28 设计代码公司 Method for adding shadows to objects in computer graphics
US20120242676A1 (en) * 2011-03-24 2012-09-27 Moses George Icon shading based upon light intensity and location
US20120242664A1 (en) * 2011-03-25 2012-09-27 Microsoft Corporation Accelerometer-based lighting and effects for mobile devices
CN103198516A (en) * 2011-11-29 2013-07-10 苹果公司 Dynamic graphical interface shadows
US20130194269A1 (en) * 2012-02-01 2013-08-01 Michael Matas Three-Dimensional Shadows Cast by Objects
CN104123743A (en) * 2014-06-23 2014-10-29 联想(北京)有限公司 Image shadow adding method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1243977A (en) * 1998-03-20 2000-02-09 皇家菲利浦电子有限公司 Electronic unit including screen and method for displaying image
US7439975B2 (en) * 2001-09-27 2008-10-21 International Business Machines Corporation Method and system for producing dynamically determined drop shadows in a three-dimensional graphical user interface
US7764286B1 (en) * 2006-11-01 2010-07-27 Adobe Systems Incorporated Creating shadow effects in a two-dimensional imaging space
CN102396003A (en) * 2009-04-17 2012-03-28 设计代码公司 Method for adding shadows to objects in computer graphics
US20120242676A1 (en) * 2011-03-24 2012-09-27 Moses George Icon shading based upon light intensity and location
US20120242664A1 (en) * 2011-03-25 2012-09-27 Microsoft Corporation Accelerometer-based lighting and effects for mobile devices
CN103198516A (en) * 2011-11-29 2013-07-10 苹果公司 Dynamic graphical interface shadows
US20130194269A1 (en) * 2012-02-01 2013-08-01 Michael Matas Three-Dimensional Shadows Cast by Objects
CN104123743A (en) * 2014-06-23 2014-10-29 联想(北京)有限公司 Image shadow adding method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高丽娜等: "实时动态阴影算法的实现及在TGE中的应用", 《现代电子技术》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846455A (en) * 2017-01-10 2017-06-13 努比亚技术有限公司 A kind of dynamic shadow processing terminal and method
CN108320320A (en) * 2018-01-25 2018-07-24 重庆爱奇艺智能科技有限公司 A kind of method for information display, device and equipment
CN108320320B (en) * 2018-01-25 2021-04-20 重庆爱奇艺智能科技有限公司 Information display method, device and equipment
CN109447925A (en) * 2018-09-28 2019-03-08 Oppo广东移动通信有限公司 Image processing method and device, storage medium, electronic equipment
CN109447925B (en) * 2018-09-28 2021-07-09 Oppo广东移动通信有限公司 Image processing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN104933746B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
US20110050685A1 (en) Image processing apparatus, image processing method, and program
WO2015188749A1 (en) 3d model rendering method and apparatus and terminal device
US10452788B2 (en) Modeling a three-dimensional object having multiple materials
TW201505420A (en) Content-aware display adaptation methods
CN108573521B (en) Real-time interactive naked eye 3D display method based on CUDA parallel computing framework
US20160063765A1 (en) Image processing apparatus and image processing method
CN104680532A (en) Object labeling method and device
TWI502546B (en) System, method, and computer program product for extruding a model through a two-dimensional scene
CN109308734A (en) The generation method and its device of 3D text, equipment, storage medium
CN106125994A (en) Coordinate matching method and use control method and the terminal of this coordinate matching method
CN104933746A (en) Method and device for setting dynamic shadow for plane image
US9454845B2 (en) Shadow contouring process for integrating 2D shadow characters into 3D scenes
Xu et al. Inverse toon shading: interactive normal field modeling with isophotes
CN106657848A (en) Projection method and electronic equipment
KR101919077B1 (en) Method and apparatus for displaying augmented reality
CN111932448B (en) Data processing method, device, storage medium and equipment
JP2019146155A (en) Image processing device, image processing method, and program
CN110033507B (en) Method, device and equipment for drawing internal trace of model map and readable storage medium
EP4300951A1 (en) Electronic apparatus and control method thereof
Arpa et al. Perceptual 3D rendering based on principles of analytical cubism
JP4269951B2 (en) 3D computer graphics modeling system
Brosz et al. Shape defined panoramas
CN105894068A (en) FPAR card design method and rapid identification and positioning method of FPAR card
CN107481194B (en) Photo rotation self-adaptive scaling method in photo frame based on photo album application
Wyvill et al. Optical models

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180323