CN104933746B - A kind of method and device that dynamic shadow is set for plane picture - Google Patents

A kind of method and device that dynamic shadow is set for plane picture Download PDF

Info

Publication number
CN104933746B
CN104933746B CN201510263281.4A CN201510263281A CN104933746B CN 104933746 B CN104933746 B CN 104933746B CN 201510263281 A CN201510263281 A CN 201510263281A CN 104933746 B CN104933746 B CN 104933746B
Authority
CN
China
Prior art keywords
plane
plane picture
light source
picture
current location
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.)
Expired - Fee Related
Application number
CN201510263281.4A
Other languages
Chinese (zh)
Other versions
CN104933746A (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

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of method and device that dynamic shadow is set for plane picture.The method that dynamic shadow is set for plane picture, current location including obtaining light source in real time, the distance between current location of central point and the light source of plane picture is obtained, obtains the line of the central point of the plane picture and the current location of the light source and angle that reference axis is formed;And according to the distance, the angle and displacement factor currently got, position and the projection image of the current shade of the plane picture are determined, the projection image is shown in the position of the shade.Obtain changing and the dynamic shadow of change location with the relative position of light source and plane picture by the present invention, solving in existing processing mode shade can not Alternative Attribute parameter again once setting onto picture, cause in virtual scene that shade and the shade in reality scene are inconsistent, the problem of influenceing picture whole structure.

Description

A kind of method and device that dynamic shadow is set for plane picture
Technical field
The present invention relates to graphics process field, more particularly, to a kind of method and dress that dynamic shadow is set for plane picture Put.
Background technology
During cartoon making, it is sometimes desirable to be the function of plane picture presentation shade.Generally, it is plane The shade of picture addition is interior shade, that is, is referred under the conditions of light irradiation, the dark side that moulding entity backlight direction is formed, this Kind shade can embody the direction of light source irradiation and the depth of view information of graphic entity.Currently to the Shadows Processing of plane picture Mode is broadly divided into two classes:
Firstth, Shadows Processing is added for picture in photo handling software (such as Photoshop) in advance, is then plotted in figure Export uses together on piece;
Secondth, the picture of shade is made in photo handling software, individually after export, is used in the application.
Above two processing mode have one it is obvious the shortcomings that, being exactly shade Yi Dan set onto picture, just can not The position of shade, shape and the parameter such as deep or light are changed again, cause shade in virtual scene to differ with the shade in reality scene Cause, influence picture whole structure.
The content of the invention
The present invention provides a kind of method and device that dynamic shadow is set for plane picture, solves virtual field in the prior art The problem of shade of shade and reality scene is inconsistent in scape, virtual scene can be made more life-like.
In a first aspect, the present invention provides a kind of method that dynamic shadow is set for plane picture, including:
The current location of light source is obtained in real time, is obtained between the central point of plane picture and the current location of the light source Distance, obtains the line of the central point of the plane picture and the current location of the light source and angle that reference axis is formed;
According to the distance, the angle and displacement factor currently got, determine that the plane picture is current The position of shade and projection image, the projection image is shown in the position of the shade.
Second aspect, the present invention provide a kind of device that dynamic shadow is set for plane picture, including:
Acquiring unit, for obtaining the current location of light source in real time, obtain the central point of plane picture and the light source The distance between current location, obtain the central point of the plane picture and the line and reference axis of the current location of the light source The angle formed;
Determining unit, the distance, the angle and the displacement factor currently got for basis, it is determined that described The position of the current shade of plane picture and projection image, the projection image is shown in the position of the shade.
The present invention provides a kind of method and device that dynamic shadow is set for plane picture, by obtaining working as light source in real time Front position, the distance between the central point of plane picture and the current location of the light source are obtained, obtains the plane picture The angle that central point and the line of the current location of the light source are formed with reference axis;And according to currently getting away from From, the angle and displacement factor, position and the projection image of the current shade of the plane picture are determined, by the throwing Shadow picture is shown in the position of the shade.The present invention realizes that according to the relative position of light source and plane picture be plan Piece generates the purpose of dynamic shade in real time, and it is inconsistent to solve the shade of shade and reality scene in virtual scene in the prior art The problem of, virtual scene can be made more life-like.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, on the premise of not paying creative work, it can also be implemented according to the present invention The content of example and these accompanying drawings obtain other accompanying drawings.
Fig. 1 is the flow chart for the method that dynamic shadow is set for plane picture that first embodiment of the invention provides;
Fig. 2 is the flow chart for the method that dynamic shadow is set for plane picture that second embodiment of the invention provides;
Fig. 3 is the flow chart for the method that dynamic shadow is set for plane picture that third embodiment of the invention provides;
Fig. 3-1 is that light source is illustrated with plane picture in the projection that projection plane is X/Y plane in third embodiment of the invention Figure;
Fig. 4 is the structural representation for the device that dynamic shadow is set for plane picture that fourth embodiment of the invention provides;
Fig. 5 is the structural representation for the device that dynamic shadow is set for plane picture that fifth embodiment of the invention provides.
Embodiment
For make present invention solves the technical problem that, the technical scheme that uses and the technique effect that reaches it is clearer, below The technical scheme of the embodiment of the present invention will be described in further detail with reference to accompanying drawing, it is clear that described embodiment is only It is part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art exist The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Further illustrate technical scheme below in conjunction with the accompanying drawings and by embodiment.
First embodiment
Fig. 1 is the flow chart for the method that dynamic shadow is set for plane picture that first embodiment of the invention provides.Reference Shown in Fig. 1, the method that dynamic shadow is set for plane picture, comprise the following steps:
Step S110:Obtain the current location of light source in real time, obtain plane picture central point and the light source it is current The distance between position, obtain the central point of the plane picture and the line and reference axis institute shape of the current location of the light source Into angle.
When the relative position of light source and plane picture changes, in the shade that plane picture lower floor is presented also not Together.First, the position of light source is monitored, obtains the current location of light source in real time, i.e. according to default acquisition cycle T, when often passing through Between T, then obtain primary source position, be designated as Plight, and obtain to represent the center of the plane picture of plane Pictures location Point, is designated as Pimage.According to the distance of the central point of plane picture and the calculating of the coordinate of the current location of the light source between the two Distance.Connect the current location of central point and the light source of plane picture, determine the central point of the plane picture with The line of the current location of the light source and reference axis angulation Direct.
Step S120:According to the distance, the angle and displacement factor currently got, the plane is determined The position of the current shade of picture and projection image, the projection image is shown in the position of the shade.
In the present embodiment, current location, the central point of plane picture and the present bit of light source of primary source are often obtained The distance between put, after the angle that the line of the current location of the central point of plane picture and light source is formed with reference axis, Just a step 120 is performed.
The displacement factor is the zoom factor of shade and the deviation post of plane picture.It is cloudy when displacement factor is bigger Shadow is more remote apart from plane picture, and display effect rises just as plane picture from screen.In two-dimensional coordinate system, the skew The factor is set in advance by user;But in three-dimensional system of coordinate, the displacement factor is by Calculation Plane picture Distance of the current location of heart point and the light source between the projection of projection plane obtains.
The shade of plane picture be positioned at projection plane the plane picture congruent figures or to the plan The projection image that the operation that the congruent figures of piece is proportionally compressed or stretched obtains.
In two-dimensional coordinate system, it is determined that after the center position of the current shade of the plane picture, in real time will described in The congruent figures of plane picture as projection image identified shade position display, to be used as the dynamic of the plane picture State shade.However, in three-dimensional system of coordinate, it is determined that after the center position of the current shade of the plane picture, according to meter The width determined and the zoom factor of height are calculated, is in real time multiplied by the width of the congruent figures of the plane picture and height respectively Zoom factor compressed or stretched after new projection image, the dynamic shadow as the plane picture.
The method provided in an embodiment of the present invention that dynamic shadow is set for plane picture, by obtaining the current of light source in real time Position, the distance between the central point of plane picture and the current location of the light source are obtained, is obtained in the plane picture The angle that heart point and the line of the current location of the light source are formed with reference axis;And according to currently getting away from From, the angle and displacement factor, position and the projection image of the current shade of the plane picture are determined, by the throwing Shadow picture is shown in the position of the shade.Realized by the method for the present embodiment relative with plane picture according to light source Position is the purpose that plane picture generates dynamic shade in real time, solves shade and reality scene in virtual scene in the prior art Shade it is inconsistent the problem of, virtual scene can be made more life-like.
Second embodiment
Fig. 2 is the flow chart for the method that dynamic shadow is set for plane picture that second embodiment of the invention provides.It is described The method of dynamic shadow is set further, to obtain the plan based on first embodiment of the invention for plane picture Congruent figures of the piece in two-dimensional coordinate system, using the projection image as the plane picture;
The position of the current shade of the plane picture is determined using equation below:
Wherein,For origin of coordinates directional phantom center point PshadowVector,For the origin of coordinates Point to the center point P of plane pictureimageVector,The current location P of light source is pointed to for the origin of coordinateslightTo Amount, factor is default displacement factor and factor>0.
Shown in reference picture 2, the method that dynamic shadow is set for plane picture, comprise the following steps:
Step S210:Congruent figures of the plane picture in two-dimensional coordinate system is obtained, to be used as the plane picture Projection image.
The present embodiment only considers the shade in the virtual scene of two-dimensional coordinate system midplane picture, does not consider shade herein Compression and stretching, only calculate deviation post of the projection image relative to plane picture.The compression or stretching of consideration shade are such as needed, only Need the width of projection image and height on the basis of the projection image generation method that the present embodiment provides according to certain ratio Example zooms in and out.
In this step, a kind of operation for the congruent figures in two-dimensional coordinate system that preferably obtains the plane picture is specific Including:
If the plane picture is regular figure, the appearance and size of the plane picture is obtained, according to the profile chi It is very little that one and the plane picture appearance and size identical congruent figures are generated in two-dimensional coordinate system;
If the plane picture is not regular figure, the transparence value of each pixel of the plane picture is obtained, and The color value of each pixel is converted into the transparence value of respective pixel, using the gray-scale map obtained after conversion operation as two dimension In coordinate system with the plane picture appearance and size identical congruent figures.
To realize aforesaid operations, first, obtain plane picture edge pixel point characteristic value, according to polygon vertex with Other edge pixel point feature value changes rules, quickly recognize the summit of polygon and its put in order, complete to polygon Shape accurately identifies.In addition, according to feature away from center and radius, major semiaxis and the semi-minor axis length for calculating figure, construction Go out circle and oval equation, complete to circle and oval quick identification.The figure that defining other can not identify is irregular figure.
When the plane picture is regular figure, the result identified according to figure obtains the profile chi of the plane picture It is very little.If for example, the plane picture is rectangle, the length and width of rectangle are obtained;If the plane picture is circular, obtain Take the center of circle and the radius of circle;If during other regular figures, then drawing key element is obtained according to the requirement for forming the figure.Root According to the generation of identified drawing key element and the plane picture appearance and size identical figure.
When the plane picture is irregular figure, the transparence value of each pixel of the picture is obtained, and by institute The color value for stating pixel is converted to the transparence value, using as in two-dimensional coordinate system with the plane picture appearance and size phase Same congruent figures.
The method that the color value of pixel is converted to transparence value is:
Obtained (ARGB)pixelAs with the color of the photo current appearance and size identical projection image respective pixel Value.Wherein, alpha be the pixel transparency, ApixelFor the transparent channel of the pixel, RpixelFor the red of the pixel Chrominance channel, GpixelFor the green channel of the pixel, BpixelFor the blue channel of the pixel.Because the ARGB tetra- of perspective view The value of individual component is all a kind of, is all alpha value, so (ARGB) nowpixelColor be grey.
Step S220:In real time according to the distance, the angle and default displacement factor, the plan is determined The position of the current shade of piece.
Initialization acquiescence light source, and the plane picture drag and drop after two-dimensional coordinate system, are being judged into the acquiescence light Whether source passes through self-defining operation, if it is not, then drag and drop light source, and adjust the height of light source.The current location of light source is obtained in real time Plight, coordinate is designated as (Xl, Yl).
In two-dimensional coordinate system, the position P of the central point for the plane picture that user in real is setimage, coordinate is designated as (Xi, Yi).So, tried to achieve according to the range formula of point-to-point transmission between the central point of plane picture and the current location of the light source Distance be:
Wherein, PimageBe user set plane picture central point position, PlightIt is the current location of light source,The center point P of plane picture is pointed to for the origin of coordinatesimageVector,Light source is pointed to for the origin of coordinates Current location PlightVector, Xl is projection of the current location in X-axis of light source in two-dimensional coordinate system, and Yl is in two-dimensional coordinate system In the projection of Y-axis, Xi is projection of the position in X-axis of the central point of two-dimensional coordinate system midplane picture for the current location of light source, Yi is projection of the position in Y-axis of the central point of two-dimensional coordinate system midplane picture.
The central point of the plane picture and the line of the current location of the light source embody with reference axis angulation Orientation of the shade relative to plane picture.On the premise of known shadow is relative to the offset distance of plane picture, Ke Yitong Cross and try to achieve the position that shade determines shade relative to the orientation of plane picture.Shade is relative to the orientation of plane picture:
Wherein, Xl is projection of the current location in X-axis of light source in two-dimensional coordinate system, and Yl is light source in two-dimensional coordinate system Current location is in the projection of Y-axis, and Xi is projection of the position in X-axis of the central point of two-dimensional coordinate system midplane picture, and Yi is two Projection of the position of the central point of dimension coordinate system midplane picture in Y-axis.
In two-dimensional coordinate system, the distance between the central point of the plane picture and current location of the light source with it is pre- If the product of displacement factor be deviation post of the shade relative to plane picture, wherein default displacement factor is greater than zero Natural number.The projection image of the plane picture is moved to the length of the deviation post to the orientation Direct in real time, The current shade of plane picture can be obtained.For the light source position, the central point of plane picture and the light source obtained every time The distance between current location, and the central point of the plane picture and the line and coordinate of the current location of the light source The angle that axle is formed, step 220 is performed both by determine the operation of the position of the current shade of plane picture.Therefore in light source When being changed with the relative position of the plane picture, the position of shade also changes therewith.
The method provided in an embodiment of the present invention that dynamic shadow is set for plane picture, is existed by obtaining the plane picture Congruent figures in two-dimensional coordinate system, using the projection image as the plane picture;In real time according to the distance, the angle Degree and default displacement factor, determine the position of the current shade of plane picture.Realized by this method in two-dimensional coordinate In system, the purpose of dynamic shadow is set for plane picture.
3rd embodiment
Fig. 3 is the flow chart for the method that dynamic shadow is set for plane picture that third embodiment of the invention provides.It is described The method of dynamic shadow is set based on first embodiment of the invention for plane picture, further, in three-dimensional system of coordinate, By it is described in real time obtain light source current location, obtain plane picture central point and the light source current location between away from From obtaining the line of the central point of the plane picture and the current location of the light source and the behaviour of angle that reference axis is formed Work is specifically optimized for:
The coordinate of the central point of plane picture and the current location of light source in projection plane is obtained, according to the coordinate meter Calculate the distance between current location of the central point of the plane picture and the light source in projection plane;
According to the current location of the central point of plane picture and light source projection plane coordinate, and in projection plane The distance between the central point of the plane picture and the current location of the light source, determine the central point of the plane picture with The current location of the light source projection plane line and reference axis angulation, to be used as deviation angle.
Further, by according to the distance, the angle and the displacement factor currently got, determine described flat The operation of the position and projection image of the current shade of face picture is specifically optimized for:In real time according to the current location of the light source with Distance of the position of the central point of plane picture in projection plane and default projection image apart from plane picture height, Determine displacement factor;The position of the current shade of plane picture is determined according to the displacement factor, deviation angle.
Shown in reference picture 3, the method that dynamic shadow is set for plane picture, comprise the following steps:
Step S310:Obtain the current location of light source and the center point coordinate of plane picture.
Initialization acquiescence light source, and plane picture drag and drop after three-dimensional system of coordinate, are judged it is described give tacit consent to light source be It is no to pass through self-defining operation, if it is not, then drag and drop light source, and adjust the height of light source.The current location P of light source is obtained in real timelight, Coordinate is designated as position P of the central point of (Xl, Yl, Zl) and plane picture in three-dimensional system of coordinateimage, coordinate be designated as (Xi, Yi, Zi)。
Step S320:According to the central point of the current location of the light source and plane picture in the coordinate of projection plane and Default projection image determines displacement factor apart from the height of plane picture.
When obtaining the current location of light source, according to the current location P of light sourcelightIn (Xl, Yl, Zl) and plane picture Position P of the heart point in three-dimensional system of coordinateimageThe height Hs of (Xi, Yi, Zi) and default projection image apart from plane picture Determine displacement factor.For example, using X/Y plane as projection plane, first, projection and institute of the plane picture in X/Y plane are obtained State projection of the current location in X/Y plane of light source.According to the range formula of point-to-point transmission obtain the central point of plane picture with it is described Distance of the current location of light source between the projection of X/Y plane.Calibration method is sat by taking out two-dimensional projection from three-dimensional coordinate Distance of the current location of the central point of Calculation Plane picture and the light source between the projection of X/Y plane, according to three-dimensional coordinate Z-component in system calculates displacement factor factor.
From three-dimensional coordinate P3DTwo-dimensional projection coordinate P is taken out in (X, Y, Z)2DThe method of (X ', Y ') is:
Wherein, X is X-axis component in three-dimensional system of coordinate, and Y is Y-axis component in three-dimensional system of coordinate, and X ' is X in three-dimensional system of coordinate Axis component X/Y plane projection, Y ' be in three-dimensional system of coordinate Y-axis component in the projection of X/Y plane.
In summary, the central point of the plane picture and the current location of the light source are between the projection of X/Y plane Distance is
Wherein, Xl is projection of the X-axis component in X/Y plane of the current location of light source, and Yl is the Y-axis point of the current location of light source The projection in X/Y plane is measured, Xi is projection of the X-axis component in X/Y plane of the central point of plane picture, and Yi is in plane picture Projection of the Y-axis component of heart point in X/Y plane.
As shown in figure 3-1, light source and plane picture close on the side of triangle of the projection composition of YZ planes and the ratio at angle System is identical in the proportionate relationship of the projection of X/Y plane with light source and plane picture.Plane picture YZ planes projection parallel to throwing Shadow picture is in the projection of YZ planes, then ∠ α=∠ β, from triangle proportionate relationship:
Wherein, factor is displacement factor, to represent the zoom factor of projection image and the deviation post of plane picture, Distances of the Distance for the central point of the plane picture and the current location of the light source between the projection of X/Y plane, Zl For the z-component of light source current location, Zi is the z-component of the central point of the plane picture, and Zs is the center of projection image The z-component of point.
Arrangement obtains:
Displacement factor is:
Wherein, Xl is projection of the X-axis component in X/Y plane of the current location of light source, and Yl is the Y of the current location of light source Axis component is in the projection of X/Y plane, and Xi is projection of the X-axis component in X/Y plane of the central point of plane picture, and Yi is plane picture Central point Y-axis component in the projection of X/Y plane, Zl is the z-component of light source current location, and Zi is the plane picture The z-component of central point, Zs are the z-component of the central point of projection image.
Above-mentioned computational methods are only a kind of implementations for obtaining displacement factor, it will be appreciated by those skilled in the art that being The computational methods for obtaining displacement factor include but are not limited to the above-mentioned mode enumerated, and projection image is obtained with putting down as long as can realize The algorithm of the zoom factor of the deviation post of face picture is the equivalent embodiment of the present invention.
Step S330:The projection join line of the current location of the light source and plane picture central point in projection plane is determined, The projection join line and reference axis angulation are obtained, to determine deviation angle.
From the foregoing, it will be observed that the current location P of the light sourcelight(Xl, Yl, Zl) is P ' in the projection of X/Y planelight(Xl, Yl), the center point P of plane pictureimage(Xi, Yi, Zi) is P ' in the projection of X/Y planeimage(Xi, Yi), then by the light source Current location Plight(Xl, Yl, Zl) arrives the center point P of plane pictureimage(Xi, Yi, Zi) is between the projection of X/Y plane Line is with deviation angle formed by reference axis:
Wherein, Xl is projection of the X-axis component in X/Y plane of the current location of light source, and Yl is the Y of the current location of light source Axis component is in the projection of X/Y plane, and Xi is projection of the X-axis component in X/Y plane of the central point of plane picture, and Yi is plane picture Central point Y-axis component X/Y plane projection.
Step S340:Obtain congruent figures of the plane picture in the projection plane of three-dimensional system of coordinate.
One kind, which preferably implements mode, to be included:
If the plane picture is regular figure, the appearance and size of the plane picture is obtained, according to the profile chi It is very little that one and the plane picture appearance and size identical congruent figures are generated in the projection plane of three-dimensional system of coordinate;
If the plane picture is irregular figure, the transparence value of each pixel of the plane picture is obtained, and The color value of each pixel is converted into the transparence value of respective pixel, using the gray-scale map obtained after conversion operation as three-dimensional In the projection plane of coordinate system with the plane picture appearance and size identical congruent figures.
In the method, generated in the projection plane of three-dimensional system of coordinate complete with the plane picture appearance and size identical Mode Deng figure is identical with two-dimensional coordinate system, and here is omitted.
Step S350:The width to the congruent figures and height zoom in and out operation according to zoom factor respectively, to obtain Obtain projection image.
One kind, which preferably implements mode, to be included:
According to the current location of cornerwise two end points of plane picture and the light source projection plane distance with And the current location of the light source respectively with the line and reference axis of cornerwise two end points of the plane picture formed by Angle, determines the boundary rectangle of the congruent figures, determines the width of the boundary rectangle and the width of the plane picture respectively The business of degree, and the business of the height of the boundary rectangle and the height of the plane picture, using the width as the congruent figures The zoom factor of degree and the zoom factor of height;
The width of the congruent figures and height are compressed or stretched according to respective zoom factor respectively in real time, with Obtain the projection image of the plane picture.
The congruent figures of the plane picture is compressed or stretched operation by following illustrate according to zoom factor, with Obtain the operating procedure of projection image.
According to the distance between current location of cornerwise two end points of the plane picture and the light source, it is determined that The boundary rectangle of the current shade of the plane picture.
The coordinate of cornerwise two end points of the known plane picture is P respectivelyAi(XAi, YAi, ZAi) and PBi(XBi, YBi, ZBi), try to achieve the coordinate P of corresponding cornerwise two end points of the boundary rectangle of shadeAs(XAs, YAs, ZAs) and PBs (XBs, YBs, ZAs)。
Shown in reference picture 3-1, from triangle ratio:
Wherein, factor1 is the first displacement factor, to represent shade picture end points PAsWith the phase of plane picture The cornerwise end points P answeredAiDeviation post zoom factor, Distance1 is the first distance, to represent the plan The end points P of pieceAiWith the distance of the current location of the light source between the projection of X/Y plane, Zl is the Z axis of light source current location Component, ZAiFor the z-component of the central point of the plane picture, ZAsFor the z-component of the central point of projection image.
Will
(wherein, Xl is projection of the X-axis component in X/Y plane of light source current location, and Yl is that the Y-axis component of light source current location exists The projection of X/Y plane, XAiFor the end points P of the plane pictureAiX-axis component in the projection of X/Y plane, YAiFor the plan The end points P of pieceAiY-axis component X/Y plane projection) substitute into above-mentioned formula, arrangement obtains:
Wherein, Xl is projection of the X-axis component in X/Y plane of light source current location, and Yl is the Y-axis point of light source current location Measure the projection in X/Y plane, XAiFor the end points P of the plane pictureAiX-axis component in the projection of X/Y plane, YAiPut down to be described The end points P of face pictureAiY-axis component X/Y plane projection, Zl be light source current location z-component, ZAiFor the plane The z-component of the central point of picture, ZAsFor the z-component of the central point of projection image.
By the current location P of the light sourcelight(Xl, Yl, Zl) arrives cornerwise one of end points P of plane pictureAi (XAi, YAi, ZAi) deviation angle formed by line between the projection of X/Y plane and reference axis is:
Wherein, Xl is projection of the X-axis component in X/Y plane of light source current location, and Yl is the Y-axis point of light source current location Measure the projection in X/Y plane, XAiFor the end points P of the plane pictureAiX-axis component in the projection of X-plane, YAiFor the plane The end points P of pictureAiY-axis component X/Y plane projection.
Then the coordinate of a cornerwise end points for the boundary rectangle of shade is:
Wherein, Xl is projection of the X-axis component in X/Y plane of light source current location, and Yl is that the Y-axis component of light source current location exists The projection of X/Y plane, XAiFor the end points P of the plane pictureAiX-axis component in the projection of X/Y plane, YAiFor the plan The end points P of pieceAiY-axis component in the projection of X/Y plane, factor1 is the first displacement factor, to represent the one of projection image Individual end points PAsCornerwise end points P corresponding with plane pictureAiDeviation post zoom factor.
Likewise,
The coordinate of corresponding another the cornerwise end points of the boundary rectangle of shade is:
Wherein, Xl is projection of the X-axis component in X/Y plane of light source current location, and Yl is that the Y-axis component of light source current location exists The projection of X/Y plane, XBiFor the end points P of the plane pictureBiX-axis component in the projection of X/Y plane, YBiFor the plan The end points P of pieceBiY-axis component in the projection of X/Y plane, factor2 is the second displacement factor, to represent the one of projection image Individual end points PBsCornerwise end points P corresponding with plane pictureBiDeviation post zoom factor.
By the coordinate of cornerwise two end points of the boundary rectangle of shade, can obtain shade boundary rectangle width and Highly.In the present invention, it is believed that the width of the width of shade boundary rectangle and height and projection image and highly equal, then shade Width and height are respectively:
Wherein, XAsFor a cornerwise end points P for the boundary rectangle of shadeAsX-axis component X/Y plane projection, YAsFor a cornerwise end points P for the boundary rectangle of shadeAsY-axis component in the projection of X/Y plane, XBsFor the external of shade Corresponding cornerwise another end points P of rectangleBsX-axis component in the projection of X/Y plane, YBsMutually tackled for the boundary rectangle of shade Another end points P of linea angulataBsY-axis component X/Y plane projection.
The zoom factor of the width of projection image is the width of the boundary rectangle of shade divided by the width of the plane picture, I.e.:
Wherein, WidthshadowFor the width of shade boundary rectangle, WidthimageFor the width of the plane picture, XAsFor An end points P on the diagonal of shade pictureAsX-axis component X/Y plane projection, XBs be shade picture diagonal on one Individual end points PBsX-axis component in the projection of X/Y plane, XAiFor the end points P of the plane pictureAiX-axis component in X/Y plane Projection, XBiFor the end points P of the plane pictureBiX-axis component X/Y plane projection.
The zoom factor of the height of projection image is the height of the boundary rectangle of shade divided by the height of the plane picture, I.e.:
Wherein, HeightshadowFor the height of shade boundary rectangle, HeightimageFor the height of the plane picture, YAs For an end points P on the diagonal of shade pictureAsY-axis component in the projection of X/Y plane, YBsOn diagonal for shade picture One end points PBsY-axis component in the projection of X/Y plane, YAiFor the end points P of the plane pictureAiY-axis component in X/Y plane Projection, YBiFor the end points P of the plane pictureBiY-axis component X/Y plane projection.
In summary, the width of projection image be multiplied by width zoom factor obtain scaling deformation after projection image width Degree, the height of projection image are multiplied by height zoom factor and obtain the projection image height after scaling deformation.
Step S360:In real time according to the displacement factor, the deviation angle and default projection image distance The height of plane picture determines the position of the current shade of plane picture.
By the deviation angle Direct obtained in the displacement factor factor and step S330 that are obtained in step S320, it is determined that The position P of projected centre pointshadow(Xs, Ys, Zs) is:
Wherein, Direct (x) be deviation angle X-axis component, Direct (y) be deviation angle Y-axis component, factor For displacement factor, to represent the zoom factor of projection image and the deviation post of plane picture;Xl is the X of light source current location Axis component X/Y plane projection, Yl be the Y-axis component of light source current location in the projection of X/Y plane, Xi is in plane picture For the X-axis component of heart point in the projection of X/Y plane, Yi is projection of the Y-axis component in X/Y plane of the central point of plane picture, Distances of the Distance for the central point of the plane picture and the current location of the light source between the projection of X/Y plane.
The then position P of shade central pointshadowFor Wherein, factor is displacement factor, to represent the zoom factor of projection image and the deviation post of plane picture, Distances of the Distance for the central point of the plane picture and the current location of the light source between the projection of X/Y plane, Zi For the z-component of the central point of the plane picture, Hs is projection image and the plane picture between the projection of X/Y plane Distance.Again because the change of the position of shade is the translation in projection plane, it is determined that the coordinate of shade central point is It can determine that the position of shade.
Step S370:It is determined that after the position and the projection image, by the projection image in the shade Position is shown.
After shadow positions are determined, can be by method of the projection image in the position display of the shade:Projecting In plane, the projection image of the plane picture is moved to the current shade of plane picture of step S360 determinations in real time Position, the then width according to step S350 width zoom factor and height zoom factor to the projection image of the plane picture Degree and height are compressed or stretched, and it is currently cloudy that the projection image after compression or stretched operation is shown in into the plane picture The position of shadow.For obtaining the current location of light source and the center point coordinate of plane picture every time, S320 is performed both by S370 Described operation.
The method provided in an embodiment of the present invention that dynamic shadow is set for plane picture, by the center for obtaining plane picture The current location of point and light source calculates the plane picture in the coordinate of projection plane according to the coordinate in projection plane The distance between current location of central point and the light source;Existed according to the current location of the central point of plane picture and light source The coordinate of projection plane, and in projection plane between the central point of the plane picture and the current location of the light source away from From determining formed by the central point of the plane picture and line and reference axis of the current location of the light source in projection plane Angle, to be used as deviation angle;Then, congruent figures of the plane picture in the projection plane of three-dimensional system of coordinate is obtained, The width to the congruent figures and height zoom in and out operation according to zoom factor respectively, to obtain projection image;Real-time root According to described in the height determination of the displacement factor, the deviation angle and default projection image apart from the plane picture The position of the current shade of plane picture, and the projection image is shown in the position of the shade.It is real by this method In present three-dimensional system of coordinate, the purpose of dynamic shadow is set for plane picture.
Fourth embodiment
Fig. 4 is the structural representation for the device that dynamic shadow is set for plane picture that fourth embodiment of the invention provides. Shown in reference picture 4, the device that dynamic shadow is set for plane picture, including:
Acquiring unit 410, for obtaining the current location of light source in real time, obtain the central point of plane picture and the light source The distance between current location, obtain the central point of the plane picture and the line and coordinate of the current location of the light source The angle that axle is formed;
Determining unit 420, for according to the distance, the angle and the displacement factor currently got, determining institute Position and the projection image of the current shade of plane picture are stated, the projection image is shown in the position of the shade.
Further, in two-dimensional coordinate system, the determining unit 420 includes:
First obtain subelement 421, for obtaining congruent figures of the plane picture in two-dimensional coordinate system, using as The projection image of the plane picture;
First determination subelement 422, for determining the position of the current shade of the plane picture using equation below:
Wherein,For origin of coordinates directional phantom center point PshadowVector,For the origin of coordinates Point to the center point P of plane pictureimageVector,The current location P of light source is pointed to for the origin of coordinateslightTo Amount, factor is default displacement factor and factor>0.
Further, the first acquisition subelement 421 is specifically used for:
If the plane picture is regular figure, the appearance and size of the plane picture is obtained, according to the profile chi It is very little that one and the plane picture appearance and size identical congruent figures are generated in two-dimensional coordinate system;
If the plane picture is not regular figure, the transparence value of each pixel of the plane picture is obtained, and The color value of each pixel is converted into the transparence value of respective pixel, using the gray-scale map obtained after conversion operation as two dimension In coordinate system with the plane picture appearance and size identical congruent figures.
The technical scheme of the present embodiment, obtains the current location of light source by acquiring unit 410 in real time, in plane picture The distance between current location of heart point and the light source, and the present bit of the central point of the plane picture and the light source The angle that the line put is formed with reference axis, and determine by determining unit 420 position of the current shade of the plane picture Put and the projection image in two-dimensional coordinate system, the projection image is shown in the position of the shade.In two-dimensional coordinate In system, the purpose for generating dynamic shade in real time for plane picture according to the relative position of light source and plane picture is realized, is solved The problem of shade of shade and reality scene is inconsistent in virtual scene in the prior art, virtual scene can be made more life-like.
What the present embodiment provided is set the executable embodiment of the present invention two of device of dynamic shadow to provide by plane picture For plane picture set dynamic shadow method, possess the corresponding functional module of execution method and beneficial effect.
5th embodiment
Fig. 5 is a kind of structural representation for device for plane picture setting dynamic shadow that fifth embodiment of the invention provides Figure.Shown in reference picture 5, the device that dynamic shadow is set for plane picture, including:
Acquiring unit 510, for obtaining the current location of light source in real time, obtain the central point of plane picture and the light source The distance between current location, obtain the central point of the plane picture and the line and coordinate of the current location of the light source The angle that axle is formed;
Determining unit 520, for according to the distance, the angle and the displacement factor currently got, determining institute Position and the projection image of the current shade of plane picture are stated, the projection image is shown in the position of the shade.
Further, in three-dimensional system of coordinate, the acquiring unit 510 includes:
Apart from subelement 511, for obtaining the central point of plane picture and the current location of light source in projection plane Coordinate, calculated according to the coordinate in projection plane between the central point of the plane picture and the current location of the light source Distance;
Angle subelement 512, for the central point according to plane picture and the current location of light source in projection plane The distance between current location of the central point of the plane picture and the light source, determines institute in coordinate, and projection plane The line and reference axis angulation of the central point of plane picture and the current location of the light source in projection plane are stated, to make For deviation angle.
Further, the determining unit 520 includes:
Second obtains subelement 521, for obtaining congruence of the plane picture in the projection plane of three-dimensional system of coordinate Figure;
Subelement 522 is scaled, operation is zoomed in and out for the width to the congruent figures respectively and height, is thrown with obtaining Shadow picture;
Second determination subelement 523, in real time according to the central point of the current location of the light source and plane picture Distance and default projection image of the position in projection plane determine displacement factor apart from the height of plane picture;According to The displacement factor, deviation angle determine the position of the current shade of plane picture.
Further, the scaling subelement 522 is specifically used for:
According to the current location of cornerwise two end points of plane picture and the light source projection plane distance with And the current location of the light source respectively with the line and reference axis of cornerwise two end points of the plane picture formed by Angle, the boundary rectangle of the congruent figures is determined, determine the width of the boundary rectangle and the width of the plane picture Business, using the zoom factor of the width as the congruent figures;Determine the height of the boundary rectangle and the plane picture The business of height, using the zoom factor of the height as the congruent figures.
The width of the congruent figures and height are compressed or stretched according to respective zoom factor respectively in real time, with Obtain the projection image of the plane picture.
Further, the second acquisition subelement 521 is specifically used for:
If the plane picture is regular figure, the appearance and size of the plane picture is obtained, according to the profile chi It is very little that one and the plane picture appearance and size identical congruent figures are generated in the projection plane of three-dimensional system of coordinate;
If the plane picture is irregular figure, the transparence value of each pixel of the plane picture is obtained, and The color value of each pixel is converted to the transparence value of the respective pixel, by the gray-scale map obtained after conversion operation with As in the projection plane of three-dimensional system of coordinate with the plane picture appearance and size identical congruent figures.
The technical scheme of the present embodiment, deviation angle of the projection image relative to plane picture is obtained by acquiring unit 510 Degree, then displacement factor of the projection image relative to plane picture is obtained by determining unit 520, according to the deviation angle and partially Move the factor and determine the position of the current shade of three-dimensional system of coordinate midplane picture, will be compressed according to zoom factor or stretch processing The projection image afterwards, in the position display of the current shade of plane picture.In three-dimensional system of coordinate, realize according to light source Relative position with plane picture is the purpose that plane picture generates dynamic shade in real time, solves virtual scene in the prior art The problem of shade of middle shade and reality scene is inconsistent, virtual scene can be made more life-like.
What the present embodiment provided is set the executable embodiment of the present invention three of device of dynamic shadow to provide by plane picture For plane picture set dynamic shadow method, possess the corresponding functional module of execution method and beneficial effect.
Above example provide technical scheme in all or part of content can be realized by software programming, its software Program storage is in the storage medium that can be read, and storage medium is for example:Hard disk, CD or floppy disk in computer.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (8)

  1. A kind of 1. method that dynamic shadow is set for plane picture, it is characterised in that including:
    In real time obtain light source current location, obtain plane picture central point and the light source current location between away from From obtaining the line of the central point of the plane picture and the current location of the light source and angle that reference axis is formed, bag Include:In three-dimensional system of coordinate, the coordinate of the central point of plane picture and the current location of light source in projection plane is obtained, according to The coordinate calculates the distance between current location of the central point of the plane picture and the light source in projection plane;According to The central point of plane picture and the current location of light source are in the coordinate of projection plane, and the plane picture in projection plane The distance between the current location of central point and the light source, determine the central point of the plane picture and working as the light source Front position projection plane line and reference axis angulation, to be used as deviation angle;
    According to the distance, the angle and displacement factor currently got, the current shade of the plane picture is determined Position and projection image, the projection image is shown in the position of the shade.
  2. 2. according to the method for claim 1, it is characterised in that in two-dimensional coordinate system, what the basis was currently got The distance, the angle and displacement factor, determine the current position of shade of the plane picture and the behaviour of projection image Specifically include:
    Congruent figures of the plane picture in two-dimensional coordinate system is obtained, using the projection image as the plane picture;
    The position of the current shade of the plane picture is determined using equation below:
    Wherein,For origin of coordinates directional phantom center point PshadowVector,Pointed to for the origin of coordinates The center point P of plane pictureimageVector,The current location P of light source is pointed to for the origin of coordinateslightVector, Factor is default displacement factor and factor>0.
  3. 3. according to the method for claim 1, it is characterised in that the distance that the basis is currently got, the angle Degree and displacement factor, determine that the current position of shade of the plane picture and the operation of projection image specifically include:
    Congruent figures of the plane picture in the projection plane of three-dimensional system of coordinate is obtained, respectively to the width of the congruent figures Degree and height zoom in and out operation according to zoom factor, to obtain projection image;
    In real time according to distance of the position of the current location of the light source and the central point of plane picture in projection plane and Default projection image determines displacement factor apart from the height of plane picture;Determined according to the displacement factor and deviation angle The position of the current shade of plane picture.
  4. 4. according to the method for claim 3, it is characterised in that the width to the congruent figures and height are according to contracting respectively Put the factor and zoom in and out operation, to obtain projection image, including:
    According to the current location of cornerwise two end points of plane picture and the light source in the distance of projection plane, Yi Jisuo The line and reference axis angulation of the current location of light source respectively with cornerwise two end points of the plane picture are stated, The boundary rectangle of the congruent figures is determined, determines the business of the width of the boundary rectangle and the width of the plane picture, with As the zoom factor of the width of the congruent figures, the height of the boundary rectangle and the height of the plane picture are determined Business, using the zoom factor of the height as the congruent figures;
    The width of the congruent figures and height are compressed or stretched according to respective zoom factor respectively in real time, to obtain The projection image of the plane picture.
  5. A kind of 5. device that dynamic shadow is set for plane picture, it is characterised in that including:
    Acquiring unit, for obtaining the current location of light source in real time, obtain plane picture central point and the light source it is current The distance between position, obtain the central point of the plane picture and the line and reference axis institute shape of the current location of the light source Into angle, wherein, in three-dimensional system of coordinate, the acquiring unit include apart from subelement and angle subelement;
    Apart from subelement, for obtaining the central point of plane picture and the current location of light source in the coordinate of projection plane, root The distance between current location of the central point of the plane picture and the light source in projection plane is calculated according to the coordinate;
    Angle subelement, for the central point according to plane picture and the current location of light source projection plane coordinate, with And the distance between current location of the central point of the plane picture and the light source in projection plane, determine the plan The current location of the central point of piece and the light source projection plane line and reference axis angulation, to be used as deviation angle Degree;
    Determining unit, for according to the distance, the angle and the displacement factor currently got, determining the plane The position of the current shade of picture and projection image, the projection image is shown in the position of the shade.
  6. 6. device according to claim 5, it is characterised in that in two-dimensional coordinate system, the determining unit includes:
    First obtains subelement, for obtaining congruent figures of the plane picture in two-dimensional coordinate system, to be put down as described The projection image of face picture;
    First determination subelement, for determining the position of the current shade of the plane picture using equation below:
    Wherein,For origin of coordinates directional phantom center point PshadowVector,Pointed to for the origin of coordinates The center point P of plane pictureimageVector,The current location P of light source is pointed to for the origin of coordinateslightVector, Factor is default displacement factor and factor>0.
  7. 7. device according to claim 5, it is characterised in that the determining unit includes:
    Second obtains subelement, for obtaining congruent figures of the plane picture in the projection plane of three-dimensional system of coordinate;
    Subelement is scaled, operation is zoomed in and out for the width to the congruent figures respectively and height, to obtain projection image;
    Second determination subelement, for being thrown in real time according to the current location of the light source and the position of the central point of plane picture Distance and default projection image in shadow plane determine displacement factor apart from the height of plane picture;According to the skew The factor and deviation angle determine the position of the current shade of plane picture.
  8. 8. device according to claim 7, it is characterised in that the scaling subelement is specifically used for:
    According to the current location of cornerwise two end points of plane picture and the light source in the distance of projection plane, Yi Jisuo The line and reference axis angulation of the current location of light source respectively with cornerwise two end points of the plane picture are stated, The boundary rectangle of the congruent figures is determined, determines the business of the width of the boundary rectangle and the width of the plane picture, with As the zoom factor of the width of the congruent figures, the height of the boundary rectangle and the height of the plane picture are determined Business, using the zoom factor of the height as the congruent figures;
    The width of the congruent figures and height are compressed or stretched according to respective zoom factor respectively in real time, to obtain The projection image of the 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 CN104933746A (en) 2015-09-23
CN104933746B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846455B (en) * 2017-01-10 2020-12-15 努比亚技术有限公司 Dynamic shadow processing terminal and method
CN108320320B (en) * 2018-01-25 2021-04-20 重庆爱奇艺智能科技有限公司 Information display method, device and equipment
CN109447925B (en) * 2018-09-28 2021-07-09 Oppo广东移动通信有限公司 Image processing method and device, storage medium and electronic equipment

Citations (6)

* 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
CN103198516A (en) * 2011-11-29 2013-07-10 苹果公司 Dynamic graphical interface shadows
CN104123743A (en) * 2014-06-23 2014-10-29 联想(北京)有限公司 Image shadow adding method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8896600B2 (en) * 2011-03-24 2014-11-25 Qualcomm Incorporated 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
US9235317B2 (en) * 2012-02-01 2016-01-12 Facebook, Inc. Summary and navigation of hierarchical levels

Patent Citations (6)

* 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
CN103198516A (en) * 2011-11-29 2013-07-10 苹果公司 Dynamic graphical interface shadows
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中的应用;高丽娜等;《现代电子技术》;20100615(第12期);第107-110页 *

Also Published As

Publication number Publication date
CN104933746A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
US11004267B2 (en) Information processing apparatus, information processing method, and storage medium for generating a virtual viewpoint image
US9530242B2 (en) Point and click lighting for image based lighting surfaces
JP2006293792A (en) Stereoscopic image generation device
US20110050685A1 (en) Image processing apparatus, image processing method, and program
CN112316420A (en) Model rendering method, device, equipment and storage medium
JP6810873B2 (en) Systems, methods, and software for creating virtual 3D images that appear projected in front of or above an electronic display.
WO2023284713A1 (en) Three-dimensional dynamic tracking method and apparatus, electronic device and storage medium
CN104933746B (en) A kind of method and device that dynamic shadow is set for plane picture
WO2023066121A1 (en) Rendering of three-dimensional model
CN106125994B (en) Coordinate matching method and the control method and terminal for using the coordinate matching method
WO2021042960A1 (en) Method, apparatus and device for three-dimensional display simulation of body, and computer-readable storage medium
WO2013185516A1 (en) Animation display method and apparatus for three-dimensional curve
CN107358609B (en) Image superposition method and device for augmented reality
CN102044084A (en) Two-dimensional plane expression method of three-dimensional graph
CN111275801A (en) Three-dimensional picture rendering method and device
TWI502546B (en) System, method, and computer program product for extruding a model through a two-dimensional scene
CN102243768A (en) Method for drawing stereo picture of three-dimensional virtual scene
CN112784621A (en) Image display method and apparatus
CN108804061A (en) The virtual scene display method of virtual reality system
JP3777149B2 (en) Program, information storage medium, and image generation apparatus
JP3748545B2 (en) Program, information storage medium, and image generation apparatus
KR20110088995A (en) Method and system to visualize surveillance camera videos within 3d models, and program recording medium
TW201320714A (en) Image warping method and computer program product thereof
JP6852224B2 (en) Sphere light field rendering method in all viewing angles
US20130194254A1 (en) Image processing apparatus, image processing method and program

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

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.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180323

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