CN110136239A - A method of enhancing virtual reality scenario illumination and reflection validity - Google Patents

A method of enhancing virtual reality scenario illumination and reflection validity Download PDF

Info

Publication number
CN110136239A
CN110136239A CN201910283324.3A CN201910283324A CN110136239A CN 110136239 A CN110136239 A CN 110136239A CN 201910283324 A CN201910283324 A CN 201910283324A CN 110136239 A CN110136239 A CN 110136239A
Authority
CN
China
Prior art keywords
compensating lamp
light compensating
validity
virtual reality
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.)
Granted
Application number
CN201910283324.3A
Other languages
Chinese (zh)
Other versions
CN110136239B (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.)
Nanjing Dimension 5 Network Technology Co ltd
Original Assignee
Nanjing Five Horizons Network 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 Nanjing Five Horizons Network Technology Co Ltd filed Critical Nanjing Five Horizons Network Technology Co Ltd
Priority to CN201910283324.3A priority Critical patent/CN110136239B/en
Publication of CN110136239A publication Critical patent/CN110136239A/en
Application granted granted Critical
Publication of CN110136239B publication Critical patent/CN110136239B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

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

Abstract

The invention discloses a kind of methods of enhancing virtual reality scenario illumination and reflection validity, comprising: the house type region that typing user draws, and house type area data is pre-processed;Based on modular character, functional module in house type is divided;Based on modular character, the light compensating lamp object for generating each module is calculated;Based on environmental parameter, the intensity and color of light compensating lamp are adjusted;Reflection material in extraction environment, different types is divided according to opacity and reflection coefficient;Based on environmental parameter and surrounding objects, Reflction, real-time rendering light compensating lamp are generated.The present invention greatly improves the experience of real-time rendering effect by parallel computation region light compensating lamp information and Reflction, and by both approach, effectively improves rendering efficiency, greatly promote interactive experience.

Description

A method of enhancing virtual reality scenario illumination and reflection validity
Technical field
The present invention relates to a kind of methods of enhancing virtual reality scenario illumination and reflection validity, and it is real-time to belong to three-dimensional scenic Rendering field.
Background technique
In three-dimensional scenic real-time rendering, enhance virtual reality experience, improve scene validity, for attracting user's enhancing Man-machine interaction experience is more and more important.In real-time rendering, light luminance attenuation ratio is more, in order to simulate more true environment Light needs us according to some light compensating lamps of environment generation, while generating Reflction by auxiliary, promotes effect of shadow.
Existing illumination render algorithm be mainly based upon ambient lighting, diffused light shine with specular light according to etc..Illumination impinges upon object It on body surface face, is coloured on pixel by tinter, to simulate realistic material effect, such as semi-transparent obvious results Fruit, reflecting effect and jade effect.The surface color of physics is usually by three primary colours vector description, real-time rendering in three-dimensional space Rendering method there are three types of general, multiple light courcess once renders, multiple light courcess repeatedly renders and postpones coloring.The above two are due to largely calculating Each object renders waste of resource to hidden object;And postpone coloring, last pixel is all based on due to colouring every time Attribute, therefore time complexity is relatively much smaller.But in real life, having in the room of light, body surface will not Be it is completely unglazed, some total light quantum is in body surface.
So we it is necessary to the environment light that some light compensating lamps of addition of intelligence simulate this partial loss, while for anti- Material is penetrated, Reflction real-time rendering is generated and effectively raises rendering efficiency by both approach, greatly improve Interactive experience.
Summary of the invention
Goal of the invention: in order to overcome the deficiencies in the prior art, the present invention provides a kind of enhancing virtual reality scenario The method of illumination and reflection validity, the automation that can be realized light compensating lamp and Reflction generate, by both approach, have Effect improves rendering efficiency, greatly promotes interactive experience.
Technical solution: to achieve the above object, the technical solution adopted by the present invention are as follows:
A method of enhancing virtual reality scenario illumination and reflection validity, comprising the following steps:
1) the house type region drawn according to user, logging data structure simultaneously are completed to pre-process;
2) according to modular character, functional module, such as bedroom parlor etc. in house type are divided, the environment letter of light compensating lamp for after Breath provides foundation, while can effectively improve calculating concurrency, enhances real-time experience;
3) it is based on modular character, including window size, position, depth, calculates the light compensating lamp information for generating each module, including Size, position, the quantity of light compensating lamp;
4) it is based on environmental parameter, adjusts the intensity and color of light compensating lamp, further promotes the sense of reality of light compensating lamp;
5) the reflection material in extraction environment, different types is divided according to opacity and reflection coefficient;
6) environmental parameter and surrounding objects are based on, superposition renders for several times, and superposition reflective to setting number generates corresponding complete Scape Reflction;
7) textures, real-time rendering light compensating lamp are sticked.
Further, the preprocessing process includes: to realize point face information trigonometric ratio, and calculate dough sheet normal vector.
Further, the generating process of each module light compensating lamp information includes: to set height as h, width w, then Light compensating lamp dough sheet height is k1H, width k2W, light compensating lamp is apart from window length L=k3* min (h, w), range of exposures area are S, and the light intensity of light compensating lamp and irradiated area S are positively correlated;Wherein, k1、k2For multiple coefficient, if entire scene illumination intensity be N then k1∝ N, k2∝ N, and k3For multiple coefficient,
Further, the environmental parameter includes window depth, indoor illumination intensity and color.
Further, the generating process of the panorama Reflction includes acquiring the inscribed spherical surface of maximum of scene, and generate General steady spherical panoramic image based on OpenCV is cut out according to scene viewpoint position by splicing technology of panorama drawing Panorama sketch is attached in reflection material by the panorama sketch textures of the material plane sizes in visual angle.The synthesis flow of panorama sketch includes: Feature Points Matching, picture mode matching, panorama sketch amendment, the fusion of image irradiation tone balance, image frequency range.
The utility model has the advantages that a kind of method of enhancing virtual reality scenario illumination and reflection validity provided by the invention, relatively It in the prior art, has the advantage that 1, combine model partition with region light compensating lamp computational algorithm, it is parallel to increase algorithm Property;2, parallel computation region light compensating lamp relevant information and Reflction greatly improve the experience of real-time rendering effect;3, in model Partitioning pretreatment is added in division, so that model partition is more rapidly and efficiently;4, in conjunction with the height fitting of specific environment Mature growing Reflction is spent, real-time validity is efficiently improved.
Detailed description of the invention
Fig. 1 is a kind of flow chart of enhancing virtual reality scenario illumination and the method for reflecting validity of the present invention;
Fig. 2 is the schematic diagram that light compensating lamp dough sheet information is generated in the present invention.
Specific embodiment
The present invention will be further explained with reference to the accompanying drawings and embodiments.
It is as shown in Figure 1 a kind of method of enhancing virtual reality scenario illumination and reflection validity, comprising the following steps:
1) the house type region drawn according to user, logging data structure simultaneously are completed to pre-process, that is, realize point face information triangle Change, and calculates dough sheet normal vector;
2) according to modular character, functional module in house type is divided;
3) it is based on modular character, including window size, position, depth, calculates the light compensating lamp information for generating each module, including Size, position, the quantity of light compensating lamp;
4) based on parameters such as window depth, indoor illumination intensity and colors, the intensity and color of light compensating lamp are adjusted;
5) the reflection material in extraction environment, different types is divided according to opacity and reflection coefficient;
6) environmental parameter and surrounding objects are based on, superposition renders for several times, and superposition reflective to setting number generates corresponding complete Scape Reflction;
7) textures, real-time rendering light compensating lamp are sticked.
Existing light compensating lamp generates, and the usually fixed light compensating lamp position of program setting or offer increases light compensating lamp manually and arrive Entrance in scene, process CIMS are complicated, and adjustment lighting programmers are also more troublesome, often expend designer it is considerable when Between.The present invention provides a kind of scheme reliably compromised, the generating process of each module light compensating lamp information include: as shown in Fig. 2, If height is h, width w, then light compensating lamp dough sheet height is k1H, width k2W, light compensating lamp is apart from window length L=k3* Min (h, w), range of exposures area is S, and the light intensity of light compensating lamp and irradiated area S are positively correlated;Wherein, k1、k2For multiple coefficient, If entire scene illumination intensity is N then k1∝ N, k2∝ N, and k3For multiple coefficient,
In the present embodiment, the generating process of the panorama Reflction includes acquiring the inscribed spherical surface of maximum of scene, and give birth to At the general steady spherical panoramic image based on OpenCV, cut according to scene viewpoint position by splicing technology of panorama drawing Panorama sketch is attached in reflection material by the panorama sketch textures of the material plane sizes in visual angle out.
Since textures are more in scene, the light compensating lamp quantity needed is also relatively more, and this programme is based on calculating process The speeding scheme of OpenMP.
The above is only a preferred embodiment of the present invention, it should be pointed out that: for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (5)

1. a kind of enhancing virtual reality scenario illumination and the method for reflecting validity, which comprises the following steps:
1) the house type region drawn according to user, logging data structure simultaneously are completed to pre-process;
2) according to modular character, functional module in house type is divided;
3) it is based on modular character, including window size, position, depth, calculates the light compensating lamp information for generating each module, including light filling Size, position, the quantity of lamp;
4) it is based on environmental parameter, adjusts the intensity and color of light compensating lamp;
5) the reflection material in extraction environment, different types is divided according to opacity and reflection coefficient;
6) environmental parameter and surrounding objects are based on, superposition renders for several times, generates corresponding panorama Reflction;
7) textures, real-time rendering light compensating lamp are sticked.
2. a kind of enhancing virtual reality scenario illumination according to claim 1 and the method for reflecting validity, feature exist In the preprocessing process includes: to realize point face information trigonometric ratio, and calculate dough sheet normal vector.
3. a kind of enhancing virtual reality scenario illumination according to claim 1 and the method for reflecting validity, feature exist In the generating process of each module light compensating lamp information includes: to set height as h, width w, then light compensating lamp dough sheet height For k1H, width k2W, light compensating lamp is apart from window length L=k3* min (h, w), range of exposures area are S, and the light of light compensating lamp It is positively correlated with irradiated area S by force;Wherein, k1、k2For multiple coefficient, if entire scene illumination intensity is N then k1∝ N, k2∝ N, and k3For multiple coefficient,
4. a kind of enhancing virtual reality scenario illumination according to claim 1 and the method for reflecting validity, feature exist In the environmental parameter includes window depth, indoor illumination intensity and color.
5. a kind of enhancing virtual reality scenario illumination according to claim 1 and the method for reflecting validity, feature exist In the generating process of the panorama Reflction includes acquiring the inscribed spherical surface of maximum of scene, and generate logical based on OpenCV Steady spherical panoramic image, according to scene viewpoint position, by splicing technology of panorama drawing, the material cut out in visual angle is flat Panorama sketch is attached in reflection material by the panorama sketch textures of face size.
CN201910283324.3A 2019-04-10 2019-04-10 Method for enhancing illumination and reflection reality degree of virtual reality scene Active CN110136239B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910283324.3A CN110136239B (en) 2019-04-10 2019-04-10 Method for enhancing illumination and reflection reality degree of virtual reality scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910283324.3A CN110136239B (en) 2019-04-10 2019-04-10 Method for enhancing illumination and reflection reality degree of virtual reality scene

Publications (2)

Publication Number Publication Date
CN110136239A true CN110136239A (en) 2019-08-16
CN110136239B CN110136239B (en) 2023-03-10

Family

ID=67569493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910283324.3A Active CN110136239B (en) 2019-04-10 2019-04-10 Method for enhancing illumination and reflection reality degree of virtual reality scene

Country Status (1)

Country Link
CN (1) CN110136239B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111145332A (en) * 2019-11-21 2020-05-12 江苏艾佳家居用品有限公司 General method for designing photometry for home decoration

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080310707A1 (en) * 2007-06-15 2008-12-18 Microsoft Corporation Virtual reality enhancement using real world data
CN104090742A (en) * 2014-07-17 2014-10-08 北京邮电大学 Parallelization type progressive photon mapping method and device based on OpenCL
US20160116745A1 (en) * 2014-01-21 2016-04-28 Osterhout Group, Inc. See-through computer display systems
CN107248195A (en) * 2017-05-31 2017-10-13 珠海金山网络游戏科技有限公司 A kind of main broadcaster methods, devices and systems of augmented reality
CN108460841A (en) * 2018-01-23 2018-08-28 电子科技大学 A kind of indoor scene light environment method of estimation based on single image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080310707A1 (en) * 2007-06-15 2008-12-18 Microsoft Corporation Virtual reality enhancement using real world data
US20160116745A1 (en) * 2014-01-21 2016-04-28 Osterhout Group, Inc. See-through computer display systems
CN104090742A (en) * 2014-07-17 2014-10-08 北京邮电大学 Parallelization type progressive photon mapping method and device based on OpenCL
CN107248195A (en) * 2017-05-31 2017-10-13 珠海金山网络游戏科技有限公司 A kind of main broadcaster methods, devices and systems of augmented reality
CN108460841A (en) * 2018-01-23 2018-08-28 电子科技大学 A kind of indoor scene light environment method of estimation based on single image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭巾铭等: "基于移动增强现实的实时软阴影绘制算法", 《计算机应用与软件》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111145332A (en) * 2019-11-21 2020-05-12 江苏艾佳家居用品有限公司 General method for designing photometry for home decoration
CN111145332B (en) * 2019-11-21 2022-08-12 江苏艾佳家居用品有限公司 General method for designing photometry for home decoration

Also Published As

Publication number Publication date
CN110136239B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
CN106127859B (en) A kind of mobile augmented reality type scribble paints the sense of reality generation method of sheet
CN106815883B (en) Method and system for processing hair of game role
CN109785423A (en) Image light compensation method, device and computer equipment
CN106600712B (en) A kind of texture replacement method based on two dimensional image
CN108510583A (en) The generation method of facial image and the generating means of facial image
CN107341853A (en) Super large virtual scene and dynamic take the photograph the virtual reality fusion method and system of screen
Sheng et al. A spatially augmented reality sketching interface for architectural daylighting design
CN114139250A (en) Automatic light distribution method, device, equipment and storage medium based on illusion engine
CN103679818B (en) A kind of real-time scene method for drafting based on virtual surface light source
CN110136239A (en) A method of enhancing virtual reality scenario illumination and reflection validity
EP3434077B1 (en) A lighting system, and a method of producing a light projection
CN116894922A (en) Night vision image generation method based on real-time graphic engine
CN114392551A (en) Display control method and device of virtual object and electronic equipment
CN114187398A (en) Processing method and device for human body illumination rendering based on normal map
KR20060133671A (en) Image-based deformation of objects in real scenes
Miller et al. Illumination and reflection maps
CN117078838B (en) Object rendering method and device, storage medium and electronic equipment
CN117475077A (en) Method, device and system for generating building model based on building vector data
Yuksel et al. Hair occlusion: Rendering hairlike objects with global illumination
Zhao Dynamic Light and Shadow Rendering Algorithm of VR Scene Based on Global Illumination and Deep Learning
Elber Ortho-pictures: 3d objects from independent 2d data sets
Denut Optimal photon behaviour in virtual environment: A Case study using 3ds Max for architectural visualizatiod
Peng et al. Research on 3D ink scene rendering design based on Unreal Engine 5
Apodaca et al. Advanced RenderMan 3: Render Harder
CN114998505A (en) Model rendering method and device, computer equipment and storage medium

Legal Events

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

Effective date of registration: 20240506

Address after: 210000, 2nd Floor, Building A4, Jindie University Science and Technology Park, South Institute of Technology, No. 532 Zhongshan East Road, Qinhuai District, Nanjing City, Jiangsu Province

Patentee after: NANJING DIMENSION 5 NETWORK TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: No. 6, Changjiang River back street, Xuanwu District, Nanjing, Jiangsu Province

Patentee before: Nanjing Five Horizons Network Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right