CN109509247A - A method of support the geometry of light-maps instantiates to draw - Google Patents
A method of support the geometry of light-maps instantiates to draw Download PDFInfo
- Publication number
- CN109509247A CN109509247A CN201811105535.XA CN201811105535A CN109509247A CN 109509247 A CN109509247 A CN 109509247A CN 201811105535 A CN201811105535 A CN 201811105535A CN 109509247 A CN109509247 A CN 109509247A
- Authority
- CN
- China
- Prior art keywords
- light
- maps
- geometry
- instantiation
- grouping
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/50—Lighting effects
- G06T15/506—Illumination models
Landscapes
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Generation (AREA)
Abstract
A method of support the geometry of light-maps instantiates to draw, comprising the following steps: to carry out geometry instantiation grouping to the object in scene;Light-maps grouping is carried out to the object in same geometry instantiation group;Object in geometry instantiation group is carried out respectively to render light-maps offline;To the light-maps rendered offline, merged according to grouping information;It carries out geometry instantiation and draws and colour rendering.The method that the geometry instantiation of support light-maps of the invention is drawn, while improving drafting instance object performance, it is that scene adds upper preferable lighting effect using light-maps information, guarantee preferable rendering quality, the application for reducing light-maps quantity when instantiation is drawn simultaneously has optimization meaning when scene instantiation solid is more.
Description
Technical field
The present invention relates to digital image processing field, especially a kind of side that the geometry instantiation for supporting light-maps is drawn
Method.
Background technique
In three-dimensional scenic rendering, it is multiple that geometry instance technology can draw out same geometric object in primary draw
Example, improve rendering performance.And geometry instantiation rendering request is the same as multiple instantiations pair in a geometry instantiation drafting
The non-geometric property information of elephant must be identical.On the other hand, light-maps technology can be raw for the rendered object of real-time rendering offline
At Lighting information, guarantee to improve image quality while performance.In the prior art, to by geometry instantiation draw textures into
When row light-maps, needs to carry out individual light-maps to each textures, operate very cumbersome.
Summary of the invention
In order to solve the shortcomings of the prior art, the purpose of the present invention is to provide a kind of geometry for supporting light-maps
The method drawn is instantiated, it is easy, quick by being grouped to the object progress geometry instantiation grouping in scene, light-maps
The offline rendering light-maps of ground progress object.
To achieve the above object, the method that the geometry instantiation provided by the invention for supporting light-maps is drawn, including with
Lower step:
Geometry instantiation grouping is carried out to the object in scene;
Light-maps grouping is carried out to the object in same geometry instantiation group;
Object in geometry instantiation group is carried out respectively to render light-maps offline;
To the light-maps rendered offline, merged according to grouping information;
It carries out geometry instantiation and draws and colour rendering.
Further, the object in scene carries out the step of geometry instantiation grouping, including, label being capable of geometry
The object tag for using identical solid information is same geometry instantiation group by the object of instantiation.
Further, the step of object in same geometry instantiation group carries out light-maps grouping, including, just
Beginningization light textures packet number;The area of the triangular facet of computational geometry instance objects;The area is mapped as light textures area, when
When light textures area is without departing from a light-maps size, packet number is constant, when light textures area exceeds a light textures size
When, packet number increases.
Further, to different geometry instantiation groups, light textures packet number is reinitialized.
Further, described to the light-maps rendered offline, the step of being merged according to grouping information, including, it is right
The light-maps rendered offline in same geometry instantiation group and the grouping of same light-maps merge.
Further, the step of progress geometry instantiation draws and colours rendering, including, it is instantiated using geometry
Grouping information, light-maps grouping information carry out geometry instantiation and draw, and use the light-maps rendered offline and phase of merging
The pooling information answered carries out geometry instantiation coloring rendering.
To achieve the above object, the present invention also provides a kind of computer readable storage mediums, are stored thereon with computer and refer to
The step of order, the method that the computer instruction executes above-mentioned support light-maps geometry instantiation when running is drawn.
The method that the geometry instantiation provided by the invention for supporting light-maps is drawn, can instantiate same geometry and divide
Object in group carries out light-maps grouping, and then to the illumination in same geometry instantiation group and the grouping of same light-maps
Textures merge, and carry out geometry instantiation coloring rendering to combined light-maps, are not only able to draw example in raising
While changing object performance, it is that scene adds upper preferable lighting effect using light-maps information, guarantees preferable rendering matter
Amount can carry out rendering behaviour to textures in batches, reduce the application of light-maps quantity when instantiation is drawn, and instantiate in scene
Solid can quickly optimize processing when more, and then can be improved rendering speed.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, and with it is of the invention
Embodiment together, is used to explain the present invention, and is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram that the geometry instantiation according to the present invention for supporting light-maps is drawn;
Fig. 2 is the schematic diagram that the method that the geometry instantiation according to the present invention for supporting light-maps is drawn is grouped.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 is the method flow diagram that the geometry instantiation according to the present invention for supporting light-maps is drawn, below with reference to
Fig. 1, the method drawn to the geometry instantiation of support light-maps of the invention are described in detail.
Firstly, carrying out geometry instantiation grouping to the object in scene, group technology is that label can be several in step 101
The object tag for having used identical solid information is same geometry instantiation group by the object of what instantiation.
In step 101, light-maps grouping is carried out to the object in same geometry instantiation group.The group technology are as follows: just
Beginningization light textures packet number;The area of the triangular facet of computational geometry instance objects;The area is mapped as light textures area, works as light
When textures area is without departing from a light-maps size, packet number is constant, when light textures area exceeds a light textures size,
Packet number increases.And to different geometry instantiation groups, reinitialize light textures packet number.
In step 103, the object in geometry instantiation group is carried out respectively to render light-maps offline.
In step 104, respectively to the light-maps rendered offline, the merging of light-maps is carried out using grouping information, and
Save pooling information.The merging method are as follows: to the light-maps in same geometry instantiation group and the grouping of same light-maps
It merges.
In step 105, real-time rendering is carried out.In real-time rendering, the present invention instantiates grouping information, illumination using geometry
Textures grouping information carries out geometry instantiation and draws, and carries out geometry example using combined light-maps and corresponding pooling information
Change coloring rendering.
Fig. 2 is the schematic diagram that the method that the geometry instantiation according to the present invention for supporting light-maps is drawn is grouped.
As shown in Fig. 2, model A has object A1, A2, A3, A4, Model B has object B1, B2, B3, respectively different position (x,
Y, z) on, there is different sizes (sx, sy, sz).According to the present invention, A1, A2, A3, A4 are labeled as geometry instantiation grouping
G1;B1, B2, B3 are labeled as geometry instantiation grouping G2.According to the present invention, object A1, A2 are subjected to the grouping of light textures and marked
For L1;Object A3, A4 are subjected to the grouping of light textures and are labeled as L2;Object B1, B2, B3 are subjected to the grouping of light textures and are labeled as
L1 in second instantiation grouping.
A1, A2, A3, A4 generate light-maps T1, T2, T3, T4 respectively, and utilize grouping information, and T1, T2 merge into M1,
T3, T4 merge into M2.
B1, B2, B3 generate light-maps T5, T6, T7 respectively, and utilize grouping information, and T5, T6, T7 merge into M3.
Using above- mentioned information, A1, A2 are carried out geometry instantiation coloring rendering using combined light-maps M1 by the present invention,
A3, A4 carry out geometry instantiation coloring rendering using combined light-maps M2, and B1, B2, B3 use combined light-maps M3
Carry out geometry instantiation coloring rendering.
Those of ordinary skill in the art will appreciate that: the foregoing is only a preferred embodiment of the present invention, and does not have to
In the limitation present invention, although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art
For, still can to foregoing embodiments record technical solution modify, or to part of technical characteristic into
Row equivalent replacement.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should all include
Within protection scope of the present invention.
Claims (7)
1. a kind of method that the geometry instantiation for supporting light-maps is drawn, comprising the following steps:
Geometry instantiation grouping is carried out to the object in scene;
Light-maps grouping is carried out to the object in same geometry instantiation group;
Object in geometry instantiation group is carried out respectively to render light-maps offline;
To the light-maps rendered offline, merged according to grouping information;
It carries out geometry instantiation and draws and colour rendering.
2. the method that the geometry instantiation according to claim 1 for supporting light-maps is drawn, which is characterized in that described right
Object in scene carries out the step of geometry instantiation grouping, including, label is capable of the object of geometry instantiation, will use identical
The object tag of solid information is same geometry instantiation group.
3. the method that the geometry instantiation according to claim 1 for supporting light-maps is drawn, which is characterized in that described right
The step of object in same geometry instantiation group carries out light-maps grouping, including, initialize light textures packet number;It calculates several
The area of the triangular facet of what instance objects;The area is mapped as light textures area, when light textures area is without departing from a Zhang Guang
When according to textures size, packet number is constant, and when light textures area exceeds a light textures size, packet number increases.
4. the method that the geometry instantiation according to claim 3 for supporting light-maps is drawn, which is characterized in that difference
Geometry instantiation group, reinitialize light textures packet number.
5. the method that the geometry instantiation according to claim 1 for supporting light-maps is drawn, which is characterized in that described right
The light-maps rendered offline, the step of being merged according to grouping information, including, in same geometry instantiation group and same
The light-maps rendered offline in light-maps grouping merge.
6. it is according to claim 1 support light-maps geometry instantiation draw method, which is characterized in that it is described into
The step of instantiation of row geometry is drawn and coloring renders, including, use geometry to instantiate grouping information, light-maps grouping information
It carries out geometry instantiation to draw, carries out geometry instantiation using the light-maps of merging rendered offline and corresponding pooling information
Coloring rendering.
7. a kind of computer readable storage medium is stored thereon with computer instruction, the right of execution when computer instruction is run
The step of method that benefit requires the described in any item geometry instantiations for supporting light-maps of 1-6 to draw.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811105535.XA CN109509247A (en) | 2018-09-21 | 2018-09-21 | A method of support the geometry of light-maps instantiates to draw |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811105535.XA CN109509247A (en) | 2018-09-21 | 2018-09-21 | A method of support the geometry of light-maps instantiates to draw |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109509247A true CN109509247A (en) | 2019-03-22 |
Family
ID=65746176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811105535.XA Withdrawn CN109509247A (en) | 2018-09-21 | 2018-09-21 | A method of support the geometry of light-maps instantiates to draw |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109509247A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111476858A (en) * | 2020-04-10 | 2020-07-31 | 浙江无端科技股份有限公司 | 2d engine rendering method, device and equipment based on WebG L |
CN113744123A (en) * | 2021-11-05 | 2021-12-03 | 四川见山科技有限责任公司 | Large-scale dynamic object drawing method and system based on global instantiation |
CN115239868A (en) * | 2022-07-08 | 2022-10-25 | 同济大学 | Lightweight online rendering method for large-scale Web3D instantiation illumination |
-
2018
- 2018-09-21 CN CN201811105535.XA patent/CN109509247A/en not_active Withdrawn
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111476858A (en) * | 2020-04-10 | 2020-07-31 | 浙江无端科技股份有限公司 | 2d engine rendering method, device and equipment based on WebG L |
CN113744123A (en) * | 2021-11-05 | 2021-12-03 | 四川见山科技有限责任公司 | Large-scale dynamic object drawing method and system based on global instantiation |
CN113744123B (en) * | 2021-11-05 | 2022-01-25 | 四川见山科技有限责任公司 | Large-scale dynamic object drawing method and system based on global instantiation |
CN115239868A (en) * | 2022-07-08 | 2022-10-25 | 同济大学 | Lightweight online rendering method for large-scale Web3D instantiation illumination |
CN115239868B (en) * | 2022-07-08 | 2023-08-01 | 同济大学 | Lightweight online rendering method for large-scale Web3D instantiation illumination |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10861232B2 (en) | Generating a customized three-dimensional mesh from a scanned object | |
CN109509247A (en) | A method of support the geometry of light-maps instantiates to draw | |
CN109472858B (en) | Differential rendering pipeline for inverse graphics | |
CN104077801B (en) | Image generation system and image generating method | |
CN104025181B (en) | The block based on classification for uncoupling sampling postpones coloring system structure | |
CN109045691B (en) | Method and device for realizing special effect of special effect object | |
CN103049927B (en) | Real time ray tracing rendering intent based on GPU cluster | |
CN108475497A (en) | System and method for rendering multiple detail grades | |
US9202309B2 (en) | Methods and apparatus for digital stereo drawing | |
CN102663766A (en) | Non-photorealistic based art illustration effect drawing method | |
CN108682017A (en) | Super-pixel method for detecting image edge based on Node2Vec algorithms | |
CN101908216B (en) | Method and device for realizing vector fonts | |
US20150332481A1 (en) | Indexed uniform styles for stroke rendering | |
RU2010142315A (en) | MULTILEVEL TRANSITIONS BETWEEN SLIDES | |
CN105023234B (en) | Figure accelerated method based on embedded system storage optimization | |
US10217280B2 (en) | Identifying primitives in input index system | |
CN103218846A (en) | Ink painting simulation method of three-dimensional tree model | |
CN103198513B (en) | Film later stage synthesis antialiasing method | |
WO2019185852A3 (en) | Methods, systems, articles of manufacture and apparatus to generate digital scenes | |
CN102819855A (en) | Method and device for generating two-dimensional images | |
WO2023098344A1 (en) | Graphic processing method and apparatus, computer device, and storage medium | |
CN105976362B (en) | A kind of image line drawing generation method suitable for 3D printing | |
CN103136169A (en) | Method and device of displaying characters | |
CN109461197A (en) | A kind of cloud real-time rendering optimization algorithm based on spherical surface UV and re-projection | |
CN107340501A (en) | Radar video method of processing display based on OpenGL ES |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190322 |