Movatterモバイル変換


[0]ホーム

URL:


CN107093204A - It is a kind of that the method for virtual objects effect of shadow is influenceed based on panorama - Google Patents

It is a kind of that the method for virtual objects effect of shadow is influenceed based on panorama
Download PDF

Info

Publication number
CN107093204A
CN107093204ACN201710243732.7ACN201710243732ACN107093204ACN 107093204 ACN107093204 ACN 107093204ACN 201710243732 ACN201710243732 ACN 201710243732ACN 107093204 ACN107093204 ACN 107093204A
Authority
CN
China
Prior art keywords
panorama
virtual objects
shadow
effect
diffusing reflection
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.)
Pending
Application number
CN201710243732.7A
Other languages
Chinese (zh)
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.)
Suzhou Snail Digital Technology Co Ltd
Original Assignee
Suzhou Snail Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Snail Digital Technology Co LtdfiledCriticalSuzhou Snail Digital Technology Co Ltd
Priority to CN201710243732.7ApriorityCriticalpatent/CN107093204A/en
Publication of CN107093204ApublicationCriticalpatent/CN107093204A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

It is a kind of that the method for virtual objects effect of shadow, including step are influenceed based on panorama:Obtain the panorama of current scene;The surrounding environment generated with panorama, mirror-reflection is carried out on virtual objects surface;Diffusing reflection environment map is generated according to panorama;It is that virtual objects generate the photograph that diffuses by diffusing reflection environment map;It is virtual objects generation final effect figure according to mirror-reflection and diffusing reflection effect.The present invention's influences the method for virtual objects effect of shadow based on panorama, according to the prompting taken pictures, assigned direction is taken pictures, multiple pictures based on photographing device multi-angled shooting, panorama is generated, shadow information is extracted from panorama, removes to influence the shadow expression effect in virtual picture, virtual picture is allowed to be influenceed by the shadow in real world, so as to obtain truer, more rich Product Experience.

Description

It is a kind of that the method for virtual objects effect of shadow is influenceed based on panorama
Technical field
It is more particularly to a kind of that virtual objects shadow is influenceed based on panorama the present invention relates to technical field of image processingThe method of effect.
Background technology
In current virtual product disclosed on the market, the Scenario Design such as shadow color is an important element, in order to moreExperience of reality is approached, product vendor carries out related processing using design software, to reach effect true to nature, but due to allIt is the scene that system is fixed, its shadow color effect is the parameter set, thus with significant limitation.Working asIn the modern epoch for increasingly pursuing true effect, more personal actual experience can not be brought to user.
It is therefore proposed a kind of influence the method for virtual objects effect of shadow based on panorama, can be in real worldShadow color and other effects project in virtual system, to meet the demand of user, as urgent problem to be solved.
The content of the invention
In order to solve the deficiency of prior art presence, influence empty based on panorama it is an object of the invention to provide one kindIntend the method for object effect of shadow, virtual objects can be allowed to be influenceed by real world shadow, and the shadow in real worldIt can produce interactive.
To achieve the above object, what the present invention was provided influences the method for virtual objects effect of shadow, bag based on panoramaInclude following steps:
(1)Obtain the panorama of current scene;(2)The surrounding environment generated with panorama, is carried out on virtual objects surfaceMirror-reflection;(3)Diffusing reflection environment map is generated according to panorama;(4)It is that virtual objects generation is unrestrained by diffusing reflection environment mapReflected light is shone;(5)It is virtual objects generation final effect figure according to mirror-reflection and diffusing reflection effect.
The step(1)Further comprise:(11)By photographing device, the shooting of different angles is carried out to surrounding environment;(12)Panorama is generated by all photographic intelligences of shooting.
The step(2)Further comprise:(21)Direction of visual lines v and virtual objects surface arbitrfary point P according to the observationNormal direction n, calculate incident light direction r;(22)Obtain the illumination letter that incident beam is reflexed at point P in observer's eyeBreath.
The step(22)Further comprise:According to the smooth degree g at point P, the minute surface environment for corresponding resolution of samplingReflectogram, obtains the reflective information of correspondence readability.
Further, the step(3)For:All pixels in read group total panorama, for the void that normal direction is nIntend the arbitrfary point P of subject surface illumination result.
Further, step(3)Described in diffusing reflection environment map, for being stored in panorama each arbitrfary point P,The intensity and color of the photograph that diffuses for the surrounding environment transmitting that all directions can be received.
Further, step(3)Described in diffusing reflection environment map, with cube or ball it is humorous preserve.
Further, the step(4)For:According to virtual objects surface arbitrfary point P normal direction n, from diffusing reflection ringNormal direction n Lighting information is obtained in the figure of border.
The present invention's influences the method for virtual objects effect of shadow based on panorama, according to the prompting taken pictures, to specifyingDirection is taken pictures, based on the multiple pictures of photographing device multi-angled shooting, is generated panorama, is extracted from panoramaShadow information, removes to influence the shadow expression effect in virtual picture, allows virtual picture to be influenceed by the shadow in real world,So as to obtain truer, more rich Product Experience.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specificationObtain it is clear that or being understood by implementing the present invention.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, and with the present invention'sEmbodiment together, for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is that the method flow diagram of virtual objects effect of shadow is influenceed based on panorama according to the present invention;
Fig. 2 is a photo in the multiple pictures according to the shooting of the present invention;
Fig. 3 is the cube of the panorama according to the present invention;
Fig. 4 is the schematic diagram for calculating the incident light direction r in virtual objects surface according to the present invention;
Fig. 5 is the schematic diagram of the calculating virtual objects surface specular reflections light according to the present invention;
Fig. 6 is the mirror-reflection comparison diagram of the different degree of roughness according to the present invention;
Fig. 7 is the schematic diagram of the directive illumination sum received according to the calculating virtual objects surface of the present invention;
Fig. 8 is the diffusing reflection environment cube of the generation according to the present invention;
Fig. 9 is to be diffused to shine design sketch according to the virtual objects of the present invention;
Figure 10 is the flow chart of the lighting effect of the influence virtual objects statue model according to the present invention.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described hereinApply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is that the method flow diagram of virtual objects effect of shadow is influenceed based on panorama according to the present invention, below willWith reference to Fig. 1, the method for virtual objects effect of shadow is influenceed to be described in detail based on panorama the present invention.
In step 101, provide and take pictures into after system, in system(Manually or automatically take pictures)Function, enters to surrounding environmentThe different angles of row(The all angles of current scene are covered as far as possible)Shooting;Or uploading pictures function is provided, worked asOne group of photo of preceding scene.Fig. 2 is a photo in the multiple pictures according to the shooting of the present invention.
In step 102, panorama is generated according to all photographic intelligences of shooting;
Fig. 3 is the cube of the panorama according to the present invention(CubeMap).As shown in figure 3, according to multiple photographs of shootingPiece, generates panorama textures.
In step 103, the surrounding environment generated with panorama carries out mirror-reflection on virtual objects surface(specular reflection).
The concrete scheme of mirror-reflection is:
(1)Direction of visual lines v and virtual objects surface arbitrfary point P normal direction n according to the observation, calculate incident light sideTo r;Fig. 4 is the schematic diagram for calculating the incident light direction r in virtual objects surface according to the present invention.
Incident light direction r calculation formula is:R=v-2*n*dot (v, n)
Wherein, * represents the multiplication of scalar sum vector, and dot (v, n) represents direction of visual lines vector v and normal line vector n dot product.
(2)Obtain the Lighting information that incident beam is reflexed at point P in observer's eye.
Fig. 5 is the schematic diagram of the calculating virtual objects surface specular reflections light according to the present invention.Point P smooth degree g determinesThe thickness of irradiating light beam is incorporated into, the incident beam of more smooth surface is thinner, and reflective information is more clear.According to the smooth degree at point PG, corresponding resolution of sampling(Precision)Minute surface Ambient figure, obtain correspondence readability reflective information.
The smooth surface of sampling, obtains high-resolution minute surface Ambient figure, obtains apparent reflective information.
Fig. 6 is the mirror-reflection comparison diagram of the different degree of roughness according to the present invention.As shown in fig. 6, the model of the leftmost sideMaterial it is most smooth(G is maximum), the material for the model turned right is more and more coarse(G is less and less), from fig. 6 it can be seen that moreSmooth material mirror-reflection is more clear.
In step 104, diffusing reflection environment map is generated according to panorama;
Generation diffusing reflection environment map concrete scheme be:All pixels in read group total panorama, are n's for normal directionThe arbitrfary point P on virtual objects surface illumination result.Fig. 7 is according to owning that the calculating virtual objects surface of the present invention is receivedThe schematic diagram of the illumination sum in direction.
Specifically, to arbitrfary point P of the normal direction for n virtual objects surface, all directions are calculated(That is any directiond)Incident light it is as follows in the formula of point P Lighting information sum:
E=∑Ed* max (0, dot (d, n))
Wherein, E is Lighting information and EdIt is any direction d incident light, max is the function for seeking two number maximums, dot (d,N) it is the result of asking incident light vector d and normal line vector n dot products.
Diffusing reflection environment map, for being stored in panorama each arbitrfary point P, the week that can be received in all directionsThe intensity and color of the photograph that diffuses of collarette border transmitting.
Diffusing reflection environment map can use cube(CubeMap)Or ball is humorous(Spherical harmonics)Preserve,Fig. 8 is the diffusing reflection environment cube of the generation according to the present invention.
In the step, when obtaining diffusing reflection environment map, only a kind of resolution ratio, it is not necessary to according to smooth degree g samplings notWith the textures of resolution ratio.
It is that virtual objects generate the photograph that diffuses by diffusing reflection environment map in step 105;
The diffuse concrete scheme of photograph of generation is:According to virtual objects surface arbitrfary point P normal direction n, from diffusing reflection ringNormal direction n Lighting information is obtained in the figure of border.Fig. 9 is to be diffused to shine design sketch according to the virtual objects of the present invention.
It is virtual objects generation final effect figure according to mirror-reflection and diffusing reflection effect in step 106.
The present invention's influences the method for virtual objects effect of shadow based on panorama, and ambient light is obtained by capture apparatusThe truth of shadow, so as to influence the shadow in virtual system to show.
Figure 10 is the flow chart of the lighting effect of the influence virtual objects statue model according to the present invention, with reference to figure10, the operation principle of the present invention is expanded on further.
First, obtaining includes Figure 10(a)One group of photo of current scene inside;
Secondly, by one group of photo of current scene, generation such as Figure 10(b)Shown panorama;
Again, panorama Figure 10 is passed through(b), the lighting effect of virtual objects statue model is handled, generation such as Figure 10(c)Shown mirror reflection effect figure;In the step, panorama is directly used as minute surface Ambient figure.
Again, by panorama Figure 10(b), generation such as Figure 10(d)Shown diffusing reflection Environment, and pass through diffusing reflectionEnvironment Figure 10(d), the lighting effect of virtual objects statue model is handled, generation such as Figure 10(e)Shown is unrestrained anti-Penetrate design sketch;
Finally, mirror reflection effect figure Figure 10 is passed through(c)And diffusing reflection design sketch Figure 10(c), generation such as Figure 10(f)It is shown mostWhole design sketch.
The present invention's influences the method for virtual objects effect of shadow based on panorama, according to the prompting taken pictures, to specifyingDirection is taken pictures, based on the multiple pictures of photographing device multi-angled shooting, is generated panorama, is extracted from panoramaShadow information, removes to influence the shadow expression effect in virtual picture, allows virtual picture to be influenceed by the shadow in real world,So as to obtain truer, more rich Product Experience.
One of ordinary skill in the art will appreciate that:It the foregoing is only the preferred embodiments of the present invention, and withoutIn the limitation present invention, although the present invention is described in detail with reference to the foregoing embodiments, for those skilled in the artFor, it can still be modified to the technical scheme that foregoing embodiments are recorded, or which part technical characteristic is enteredRow equivalent substitution.Within the spirit and principles of the invention, any modification, equivalent substitution and improvements made etc., all should be includedWithin protection scope of the present invention.

Claims (8)

CN201710243732.7A2017-04-142017-04-14It is a kind of that the method for virtual objects effect of shadow is influenceed based on panoramaPendingCN107093204A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710243732.7ACN107093204A (en)2017-04-142017-04-14It is a kind of that the method for virtual objects effect of shadow is influenceed based on panorama

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710243732.7ACN107093204A (en)2017-04-142017-04-14It is a kind of that the method for virtual objects effect of shadow is influenceed based on panorama

Publications (1)

Publication NumberPublication Date
CN107093204Atrue CN107093204A (en)2017-08-25

Family

ID=59637289

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710243732.7APendingCN107093204A (en)2017-04-142017-04-14It is a kind of that the method for virtual objects effect of shadow is influenceed based on panorama

Country Status (1)

CountryLink
CN (1)CN107093204A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107633549A (en)*2017-10-132018-01-26苏州蜗牛数字科技股份有限公司A kind of real-time rendering method and device based on ambient lighting probe
CN107854840A (en)*2017-12-062018-03-30北京像素软件科技股份有限公司Eyes analogy method and device
CN110070621A (en)*2018-01-192019-07-30宏达国际电子股份有限公司Electronic device, the method and computer readable media for showing augmented reality scene
CN110166760A (en)*2019-05-272019-08-23浙江开奇科技有限公司Image treatment method and terminal device based on panoramic video image
CN112492230A (en)*2020-11-262021-03-12北京字跳网络技术有限公司Video processing method and device, readable medium and electronic equipment
CN114026831A (en)*2019-06-282022-02-08斯纳普公司3D object camera customization system
US11620791B2 (en)2018-11-272023-04-04Snap Inc.Rendering 3D captions within real-world environments
US11715268B2 (en)2018-08-302023-08-01Snap Inc.Video clip object tracking
US11908093B2 (en)2019-12-192024-02-20Snap Inc.3D captions with semantic graphical elements
US12175613B2 (en)2019-12-192024-12-24Snap Inc.3D captions with face tracking
US12217374B2 (en)2017-01-092025-02-04Snap Inc.Surface aware lens
WO2025039667A1 (en)*2023-08-182025-02-27腾讯科技(深圳)有限公司Picture rendering method and apparatus, device, and storage medium
US12387436B2 (en)2018-12-202025-08-12Snap Inc.Virtual surface modification
US12444138B2 (en)2024-07-032025-10-14Snap Inc.Rendering 3D captions within real-world environments

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101710429A (en)*2009-10-122010-05-19湖南大学Illumination algorithm of augmented reality system based on dynamic light map
WO2011106797A1 (en)*2010-02-282011-09-01Osterhout Group, Inc.Projection triggering through an external marker in an augmented reality eyepiece
CN102262705A (en)*2010-05-312011-11-30孟兵Virtual reality method of actual scene
CN102298792A (en)*2011-08-082011-12-28长春理工大学Approximate drawing method for 3D (three-dimensional) virtual scene comprising surface caustic effect generated by mirror reflection
US20140049617A1 (en)*2009-05-182014-02-20Kodaira Associates Inc.Image information output method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20140049617A1 (en)*2009-05-182014-02-20Kodaira Associates Inc.Image information output method
CN101710429A (en)*2009-10-122010-05-19湖南大学Illumination algorithm of augmented reality system based on dynamic light map
WO2011106797A1 (en)*2010-02-282011-09-01Osterhout Group, Inc.Projection triggering through an external marker in an augmented reality eyepiece
CN102262705A (en)*2010-05-312011-11-30孟兵Virtual reality method of actual scene
CN102298792A (en)*2011-08-082011-12-28长春理工大学Approximate drawing method for 3D (three-dimensional) virtual scene comprising surface caustic effect generated by mirror reflection

Cited By (22)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US12217374B2 (en)2017-01-092025-02-04Snap Inc.Surface aware lens
CN107633549B (en)*2017-10-132021-02-09苏州蜗牛数字科技股份有限公司Real-time rendering method and device based on ambient illumination probe
CN107633549A (en)*2017-10-132018-01-26苏州蜗牛数字科技股份有限公司A kind of real-time rendering method and device based on ambient lighting probe
CN107854840A (en)*2017-12-062018-03-30北京像素软件科技股份有限公司Eyes analogy method and device
CN107854840B (en)*2017-12-062020-09-29北京像素软件科技股份有限公司Eye simulation method and device
CN110070621A (en)*2018-01-192019-07-30宏达国际电子股份有限公司Electronic device, the method and computer readable media for showing augmented reality scene
US11715268B2 (en)2018-08-302023-08-01Snap Inc.Video clip object tracking
US12020377B2 (en)2018-11-272024-06-25Snap Inc.Textured mesh building
US11620791B2 (en)2018-11-272023-04-04Snap Inc.Rendering 3D captions within real-world environments
US12106441B2 (en)2018-11-272024-10-01Snap Inc.Rendering 3D captions within real-world environments
US12387436B2 (en)2018-12-202025-08-12Snap Inc.Virtual surface modification
CN110166760A (en)*2019-05-272019-08-23浙江开奇科技有限公司Image treatment method and terminal device based on panoramic video image
US11823341B2 (en)2019-06-282023-11-21Snap Inc.3D object camera customization system
CN114026831B (en)*2019-06-282024-03-08斯纳普公司3D object camera customization system, method and machine readable medium
US12211159B2 (en)2019-06-282025-01-28Snap Inc.3D object camera customization system
CN114026831A (en)*2019-06-282022-02-08斯纳普公司3D object camera customization system
US11908093B2 (en)2019-12-192024-02-20Snap Inc.3D captions with semantic graphical elements
US12175613B2 (en)2019-12-192024-12-24Snap Inc.3D captions with face tracking
US12347045B2 (en)2019-12-192025-07-01Snap Inc.3D captions with semantic graphical elements
CN112492230A (en)*2020-11-262021-03-12北京字跳网络技术有限公司Video processing method and device, readable medium and electronic equipment
WO2025039667A1 (en)*2023-08-182025-02-27腾讯科技(深圳)有限公司Picture rendering method and apparatus, device, and storage medium
US12444138B2 (en)2024-07-032025-10-14Snap Inc.Rendering 3D captions within real-world environments

Similar Documents

PublicationPublication DateTitle
CN107093204A (en)It is a kind of that the method for virtual objects effect of shadow is influenceed based on panorama
US11671717B2 (en)Camera systems for motion capture
US6628298B1 (en)Apparatus and method for rendering synthetic objects into real scenes using measurements of scene illumination
US20250191206A1 (en)Single Image 3D Photography with Soft-Layering and Depth-aware Inpainting
US20090109240A1 (en)Method and System for Providing and Reconstructing a Photorealistic Three-Dimensional Environment
US6930685B1 (en)Image processing method and apparatus
US10403045B2 (en)Photorealistic augmented reality system
CN114730483A (en) Generate 3D data in a messaging system
RU2586566C1 (en)Method of displaying object
Fender et al.Optispace: Automated placement of interactive 3d projection mapping content
JP2022166078A (en) Construction and realization of interaction between digital media and observers
US9183654B2 (en)Live editing and integrated control of image-based lighting of 3D models
JP2006053694A (en) Space simulator, space simulation method, space simulation program, recording medium
JP2001519575A (en) How to simulate a photo camera
KR102291162B1 (en)Apparatus and method for generating virtual data for artificial intelligence learning
CN106940897A (en)A kind of method that real shadow is intervened in AR scenes
CN109214350A (en)A kind of determination method, apparatus, equipment and the storage medium of illumination parameter
CN113141502B (en)Camera shooting control method and device of head-mounted display equipment and head-mounted display equipment
CN116758208A (en)Global illumination rendering method and device, storage medium and electronic equipment
CN107944129A (en)A kind of method and device for creating cable model
Schwandt et al.Glossy reflections for mixed reality environments on mobile devices
SchwandtHigh-Quality Illumination of Virtual Objects Based on an Environment Estimation in Mixed Reality Applications
JP5506371B2 (en) Image processing apparatus, image processing method, and program
JP3387856B2 (en) Image processing method, image processing device, and storage medium
JP2025019623A (en) Imaging device, control method, and program

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp