CN105894551A - Image drawing method and device - Google Patents

Image drawing method and device Download PDF

Info

Publication number
CN105894551A
CN105894551A CN201610201407.XA CN201610201407A CN105894551A CN 105894551 A CN105894551 A CN 105894551A CN 201610201407 A CN201610201407 A CN 201610201407A CN 105894551 A CN105894551 A CN 105894551A
Authority
CN
China
Prior art keywords
geometric model
parameter
array
index
packed array
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
CN201610201407.XA
Other languages
Chinese (zh)
Other versions
CN105894551B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610201407.XA priority Critical patent/CN105894551B/en
Publication of CN105894551A publication Critical patent/CN105894551A/en
Application granted granted Critical
Publication of CN105894551B publication Critical patent/CN105894551B/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
    • G06T11/002D [Two Dimensional] image generation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses an image drawing method and device, wherein the method comprises the steps of: obtaining drawing parameters of a first geometrical model in a set drawing area, traversing the drawing area, searching for a repeated geometrical model identical with the first geometrical model, merging the drawing parameters of the repeated geometrical model with the drawing parameters of the first geometrical model, sending the merged data to a data rendering device, and drawing the first geometrical model and the repeated geometrical model in the drawing area. The method solves the technical problems in the prior art that the consumption of product performance in the image drawing process is high, the drawing efficiency is low, and the user experience is relatively poor.

Description

Image drawing method and device
Technical field
The present invention relates to image processing techniques, particularly relate to a kind of image drawing method and device.
Background technology
The people being on home leave along with self-driving trip, explore and travelling get more and more, and have the mobile end of navigation feature End is the most increasingly widely used, and the navigation feature of mobile terminal is the trip band of people to a great extent Carry out convenience.
The drafting efficiency of element on navigation map in navigation product, be embody navigation product the finest, The critical data that performance is the most superior.The efficiency drawn, the map directly determining navigation can be drawn Abundant degree.But draw abundant degree and performance is inversely proportional to, say, that the object of drafting or unit Element is the most, and performance is the poorest.When now navigation or map are drawn, for any model or the data that render, It is typically all and model or the data that render are initially stored in the internal memory of terminal, then by internal memory respectively Their vertical array is passed to video card, allows video card draw respectively and render.
It is that existence is consumable that prior art has the disadvantage that from internal memory toward transmitting data video card, The object that summit quantity is few if there is a large amount of repetition, repeats to submit a lot of number to toward video card by internal memory According to the most unnecessary performance consumption can be caused, the burden rendered the most also can be allowed to become weight, the frame per second meeting of drafting Reducing a lot, Consumer's Experience is poor.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of image drawing method and device, to solve prior art In image rendering process, properties of product consume serious, and drafting efficiency is low, the technical problem that Consumer's Experience is poor.
First aspect, embodiments provides a kind of image drawing method, and described method includes:
The diagram parameter of the first geometric model is obtained in setting drawing area;
Travel through described drawing area, search the repetition geometric model identical with described first geometric model, and will The described diagram parameter of described repetition geometric model closes with the described diagram parameter of described first geometric model And;
Data after merging send to data render equipment, to realize described the in described drawing area One geometric model and the drafting of described repetition geometric model.
Second aspect, the embodiment of the present invention additionally provides a kind of image plotting device, and described device includes:
Diagram parameter acquisition module, for obtaining the diagram parameter of the first geometric model in setting drawing area;
Diagram parameter merges module, is used for traveling through described drawing area, searches and described first geometric model phase Same repetition geometric model, and by the described diagram parameter of described repetition geometric model and described first geometry mould The described diagram parameter of type merges;
Drafting module, the data after merging send to data render equipment, to realize described drawing Described first geometric model in region and the drafting of described repetition geometric model.
Image drawing method that the embodiment of the present invention provides and device, by obtaining the in drawing area setting The diagram parameter of one geometric model, travels through drawing area, searches the repetition geometry identical with the first geometric model Model, and the diagram parameter of the diagram parameter and the first geometric model that repeat geometric model is merged, will Data after merging send to data render equipment, realizing the first geometric model in drawing area and Repeat the drafting of geometric model.Use the method, product in image rendering process can be solved in prior art Performance consumption is serious, and drafting efficiency is low, the technical problem that Consumer's Experience is poor.
Accompanying drawing explanation
The detailed description that non-limiting example is made made with reference to the following drawings by reading, the present invention Other features, objects and advantages will become more apparent upon:
The schematic flow sheet of a kind of image drawing method that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of a kind of image drawing method that Fig. 2 provides for the embodiment of the present invention two;
The schematic flow sheet of a kind of image drawing method that Fig. 3 provides for the embodiment of the present invention three;
The structured flowchart of a kind of image plotting device that Fig. 4 provides for the embodiment of the present invention four.
Detailed description of the invention
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this Specific embodiment described by place is used only for explaining the present invention, rather than limitation of the invention.The most also need Be noted that for the ease of describing, accompanying drawing illustrate only part related to the present invention and not all in Hold.
It also should be noted that, for the ease of describing, accompanying drawing illustrate only portion related to the present invention Divide rather than full content.It should be mentioned that, some show before being discussed in greater detail exemplary embodiment Example embodiment is described as process or the method described as flow chart.Although flow chart by operations (or Step) it is described as process sequentially, but many of which operation can be by concurrently, concomitantly or together Time implement.Additionally, the order of operations can be rearranged.The most described process can To be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process can correspond to Method, function, code, subroutine, subprogram etc..
Embodiment one
The schematic flow sheet of a kind of image drawing method that Fig. 1 provides for the embodiment of the present invention one.The present embodiment It is applicable to the situation that image is drawn.The method can be performed by image plotting device, wherein should Device can be realized by software and/or hardware, and typically can be integrated in the terminal unit for showing image In.As it is shown in figure 1, the image drawing method that the present embodiment provides specifically may include that
S110, setting in drawing area the diagram parameter obtaining the first geometric model.
In general, terminal unit is in order to realize setting image (such as, navigation map or scene of game) Display, need the setting viewing area first obtaining image to be displayed as drawing area, by drawing area The parameter information transmission of interior geometric model renders to certain rendering apparatus, and then is finally completed image Display process.
Exemplary, setting drawing area can be the drawing area that User Defined is arranged, it is also possible to be to be The drawing area that system is fixedly installed;First geometric model can be to set the interior geometric model existed of drawing area, The geometric models such as such as street lamp, fence, trees;Diagram parameter can be that the first geometric model is at drawing process In can characterize the parameter of the first geometric model characteristic, can be such as the shape of the first geometric model, position, The parameter such as color, material.
S120, travel through described drawing area, search the repetition geometric model identical with described first geometric model, And the described diagram parameter of the described diagram parameter of described repetition geometric model with described first geometric model is entered Row merges.
Exemplary, travel through whole drawing area, search all repetition geometry identical with the first geometric model Model, can be specifically the repetition geometric model identical with the first geometric model shape, it is also possible to be and first The repetition geometric model that geometric model color is identical, by the diagram parameter and more than the first of described repetition geometric model The diagram parameter of what model merges, and forms merging data.
S130, will merge after data send to data render equipment, to realize in described drawing area Described first geometric model and the drafting of described repetition geometric model.
Exemplary, the diagram parameter of the diagram parameter and the first geometric model that repeat geometric model is closed And, the data after the merging that will obtain send in the lump to data render equipment, and the obvious equipment of described data is permissible It is the equipment that carry out color applying drawing of the data after being combined, can be video card equipment here, and then realize painting The first geometric model in graph region and the drafting of all repetition geometric models.
The image drawing method that the embodiment of the present invention one provides, by obtaining more than the first in setting drawing area The diagram parameter of what model, travels through drawing area, searches the repetition geometric model identical with the first geometric model, And the described diagram parameter of the diagram parameter and the first geometric model that repeat geometric model is merged, will close Data after and send to data render equipment, to realize the first geometric model in drawing area and weight The drafting of complex analytic geometry model.The image drawing method that the embodiment of the present invention provides, can apply to navigation picture Drafting, it is also possible to be applied to the drafting of game image, it is also possible to be applied to other and there is identical rendering model The drafting of image.Use this method, by the diagram parameter of the first geometric model and repeat geometric model Diagram parameter merges, and the data after then merging send data render equipment in the lump, decrease to number Send the number of times of data according to rendering apparatus, decrease the performance in data transmission procedure, rendering apparatus caused and disappear Consumption, improves rendering efficiency, promotes Consumer's Experience.
Embodiment two
The present embodiment is based on above-described embodiment, it is provided that a kind of image drawing method, specially provides a kind of Navigation picture method for drafting.Fig. 2 shows for the flow process of a kind of image drawing method that the embodiment of the present invention two provides It is intended to.As in figure 2 it is shown, the image drawing method that the present embodiment provides specifically may include that
S210, setting in drawing area the diagram parameter obtaining the first geometric model.
Exemplary, described diagram parameter can include models show positional information, described models show position Information may be used for describing the display position that geometric model is concrete.Further, described models show position letter Breath may include that vertical array and the geometric model world coordinates in described drawing area of geometric model. Optionally, the vertical array of geometric model may be used for describe geometric model specifying information number of vertices and Vertex position;Geometric model world coordinates in drawing area may be used for describing geometric model on ground, the world Accurate location information on figure, for by the position in drawing area of the virtual geometric model in drawing area Couple together with the position on world map of the true geometric model on world map.Further, identical Geometric model there is identical vertical array, i.e. identical for describing the vertical array of identical geometric model.
S220, using the described vertical array of described first geometric model as reference vertex array, and by described Reference vertex storage of array is in summit is packed array.
Exemplary, because identical geometric model has identical vertical array, so here can be by The vertical array of the first geometric model is as reference vertex array, and remaining identical geometric model can be with first The vertical array of geometric model is as benchmark.Further, described reference vertex storage of array is closed in summit And in array, described summit merging data may be used for storing the vertical array of all identical geometric models.
S230, basis find the world coordinates of described repetition geometric model with described in described drawing area Relation between the world coordinates of the first geometric model, calculates described repetition geometric model relative to described first The translation matrix of geometric model.
Exemplary, can be according to the world coordinates repeating geometric model found in drawing area, Determine that arbitrary n-th repeats the pass between world coordinates and the world coordinates of the first geometric model of geometric model System, and then calculate arbitrary n-th repetition geometric model translation matrix relative to the first geometric model.
Can also is that according to the world coordinates repeating geometric model found in drawing area, determine arbitrary N-th repeats between the world coordinates of geometric model and the world coordinates of arbitrary m-th repetition geometric model Relation, and then calculate arbitrary n-th geometric model translation matrix relative to arbitrary m-th geometric model, Wherein, N, M are positive integer, and N is more than M.
S240, by the product of described reference vertex array Yu described translation matrix, as described repetition geometry mould The translation vertical array of type make an addition to described summit packed array in.
Exemplary, can be that reference vertex array and arbitrary n-th are repeated geometric model relative to first The translation matrix of geometric model is multiplied, and the product obtained being multiplied repeats geometric model as arbitrary n-th Translation vertical array, and by described arbitrary n-th repeat geometric model translation vertical array make an addition to top During point is packed array, obtain new summit packed array.
Can also is that each repetition of translation vertical array and arbitrary N that arbitrary m-th is repeated geometric model The translation matrix that geometric model repeats geometric model relative to m-th is multiplied, and the product obtained being multiplied is made Repeat the translation vertical array of geometric model for arbitrary n-th, and described arbitrary n-th is repeated geometry mould The translation vertical array of type make an addition to summit packed array in, obtain new summit packed array, wherein, N, M is positive integer, and N is more than M.It should be noted that need exist for known m-th to repeat geometric model Translation vertical array.
S250, by the world coordinates matrix of described first geometric model, generate after traveling through described drawing area Described summit packed array be multiplied, generate described coordinate packed array.
Exemplary, travel through described drawing area, obtain the translation vertical array of all repetition geometric models, The translation vertical array of all repetition geometric models is made an addition to summit packed array in, obtain new summit and close And array, then by the world coordinates matrix of the first geometric model, with traversal drawing area after generate summit Packed array formation, generates coordinate packed array.
S260, will merge after data send to data render equipment, to realize in described drawing area Described first geometric model and the drafting of described repetition geometric model.
The image drawing method that the embodiment of the present invention two provides, using the vertical array of the first geometric model as base Quasi-vertical array, between world coordinates and the world coordinates of the first geometric model according to repetition geometric model Relation, calculates the translation matrix repeating geometric model relative to the first geometric model, obtains repeating geometric model Translation vertical array, then by the vertical array of the first geometric model with repeat geometric model translation summit Array make an addition in the lump summit packed array in, by the world coordinates matrix of the first geometric model, with above-mentioned top Point is packed array to be multiplied, and generates coordinate packed array, and the data transmission after finally merging sets to data render Standby, to realize the drafting to all identical geometric model in drawing area.Use this method, by first The vertical array of geometric model and the translation vertical array repeating geometric model merge, and obtain final top Point is packed array, and the packed array world coordinates matrix being multiplied by the first geometric model in summit before rendering, and protects It is corresponding with real geometric model that card renders the geometric model obtained, and improves and draws efficiency, promotes Consumer's Experience.
In a preferred implementation of the present embodiment, described models show positional information also includes: model Index information.
Exemplary, in computer graphics, any geometric model is all by being made up of point and triangle Grid be indicated, model index information can be used to represent different top in the vertical array of geometric model The quantity of the triangular mesh of some composition, utilizes model index information can help quickly to access geometric model Vertical array, and reduce the performance consumption of equipment.Such as: draw one and be just made up of two trianglees Square, top left co-ordinate can be that (l, t), lower right corner coordinate can be that (r b), uses summit mode to paint Time processed, draw two trianglees, need to transmit in the following manner data: (l, t), (r, t), (l, b); (r,t),(r,b),(l,b).And can first such index of definition array if using model index information to draw: Float coord [4] [2]={ { l, t}, { r, t}, { r, b}, { l, b}} transmit during drafting the most in the following manner Data: 0,1,3;1,2,3.It follows that utilize model index information can reduce summit repeat call Number of times, improves and draws efficiency.
Accordingly, by the drawing of the described diagram parameter of described repetition geometric model Yu described first geometric model Parameter merges, it is also possible to including:
The model index information of the first geometric model is stored in index packed array in, and record described index The packed array index quantity included.
Exemplary, the model index information of the first geometric model can be used to indicate that the base of the first geometric model The quantity of the triangular mesh of different summits composition, the reference vertex number of the first geometric model in quasi-vertical array In group, different summits can form several different triangular mesh, accordingly, the index of the first geometric model Information just comprises several index value, the model index information of the first geometric model is stored in index and merges number In group, one-step recording of going forward side by side indexes the packed array index quantity included.
If it is packed array that the described translation vertical array having described repetition geometric model makes an addition to described summit In, then the index value in the described model index information of described repetition geometric model is increased and described index number The side-play amount that amount is corresponding.
Exemplary, if described drawing area exists the repetition geometric model identical with the first geometric model, Then by repeat geometric model translation vertical array make an addition to summit packed array in, further, repeat several The model index information of what model can be used to state different summits in the translation vertical array repeating geometric model The quantity of triangular mesh of composition, the index value in the model index information repeating geometric model is increased with The side-play amount that above-mentioned index quantity is corresponding, the value of described side-play amount should comprise in currently index is packed array The quantity of index value identical.
The described model index information of the described repetition geometric model after increasing side-play amount makes an addition to described index In packed array, and update the packed array index quantity included of described index.
Exemplary, the index value in the model index information repeating geometric model is increased and currently indexes conjunction And after the side-play amount that in array, index value is identical, then the model index information repeating geometric model is made an addition to rope Draw packed array in, and real-time update index the packed array index quantity included.Such as: the first geometry The reference vertex array of model can be expressed as { x, y, z, x1, y1, }, model index information can be expressed as 0, 1,2}, if there is the repetition geometric model identical with the first geometric model, then will repeat geometric model To make an addition to summit packed array for translation vertical array, and summit after interpolation is packed array can be expressed asIndex and packed array can be expressed asI.e. side-play amount is identical with the index value quantity of the first geometric model.
Travel through described drawing area, generate described index packed array.
Exemplary, travel through whole drawing area, the packed array middle complete packet in summit ultimately generated with guarantee Reference vertex array containing the first geometric model and the translation vertical array of all repetition geometric models, described Index the packed array middle complete packet index model information containing the first geometric model and all repetition geometric models Index pooling information.
Embodiment three
The present embodiment is based on above-described embodiment, it is provided that a kind of image drawing method.Fig. 3 is that the present invention is real Execute the schematic flow sheet of a kind of image drawing method that example three provides.As it is shown on figure 3, what the present embodiment provided Image drawing method specifically may include that
S310, setting in drawing area the diagram parameter obtaining the first geometric model.
Exemplary, described diagram parameter can also include normal coordinate parameter or texture coordinate parameter, tool Body, normal coordinate parameter may be used for describing the situation of the normal of geometric model different surfaces, more preferably to enter Row normal pinup picture;Texture is actually a two-dimensional array, and its color is some color value, texture coordinate Parameter may be used for describing the pattern of the color of geometric model, it is also possible to for representing the surface stricture of vagina of geometric model Reason situation, texture coordinate can be understood as texture image and reflects to of surface of texture to be pasted in geometric model Penetrate.
S320, normal coordinate parameter or the texture coordinate parameter of described first geometric model are stored in parameter In packed array.
Exemplary, normal coordinate parameter or the texture coordinate parameter of the first geometric model are stored in parameter In packed array, the packed array normal coordinate parameter for storing all identical geometric models of described parameter or Person's texture coordinate parameter.
S330, the described normal coordinate parameter of described repetition geometric model will be found in described drawing area Or described texture coordinate parameter make an addition to described parameter packed array in.
Exemplary, in drawing area, the repetition geometry mould identical with the first geometric model that will find The normal coordinate parameter of type or texture coordinate parameter add to above-mentioned parameter packed array in.
S340, travel through described drawing area, generate described parameter packed array.
Exemplary, travel through whole drawing area, the packed array middle complete packet of parameter ultimately generated with guarantee Normal coordinate parameter containing the first geometric model or texture coordinate parameter, and all repetition geometric models Normal coordinate parameter or texture coordinate parameter.
S350, will merge after data send to data render equipment, to realize in described drawing area Described first geometric model and the drafting of described repetition geometric model.
Exemplary, the normal coordinate parameter of the first geometric model or texture coordinate parameter and weight will be comprised The normal coordinate parameter of complex analytic geometry model or the packed array transmission of parameter of texture coordinate parameter are to data render Equipment, to realize the first geometric model in drawing area and the drafting of repetition geometric model.
The image drawing method that the embodiment of the present invention three provides, by the normal of the first geometric model in drawing area Coordinate parameters or texture coordinate parameter and normal coordinate parameter or the texture coordinate parameter repeating geometric model Merge, be added in the lump parameter packed array in, and together submit to data render equipment render, Reduce the submission number of times to data render equipment, reduce the performance consumption of rendering apparatus, promote rendering efficiency. The image drawing method that the embodiment of the present invention provides, can apply to the drafting of navigation picture, it is also possible to application Drafting in game image, it is also possible to be applied to the drafting of other images that there is identical rendering model.
Embodiment four
The structured flowchart of a kind of image plotting device that Fig. 4 provides for the embodiment of the present invention four, this device can be by Software and/or hardware realize, and typically can be integrated in the terminal unit for showing image.The present embodiment can Being applicable to the situation drawing image, as shown in Figure 4, this device includes: diagram parameter acquisition module 401, diagram parameter merges module 402 and drafting module 403.
Wherein, diagram parameter acquisition module 401, for obtaining the first geometric model in setting drawing area Diagram parameter;Diagram parameter merges module 402, is used for traveling through described drawing area, searches with described more than the first The repetition geometric model that what model is identical, and by the described diagram parameter of described repetition geometric model and described the The described diagram parameter of one geometric model merges;Drafting module 403, the data after merging send To data render equipment, to realize described first geometric model in described drawing area and described repetition The drafting of geometric model.
The image plotting device that the embodiment of the present invention four provides, by obtaining more than the first in setting drawing area The diagram parameter of what model, travels through drawing area, searches the repetition geometric model identical with the first geometric model, And the described diagram parameter of the diagram parameter and the first geometric model that repeat geometric model is merged, will close Data after and send to data render equipment, to realize the first geometric model in drawing area and weight The drafting of complex analytic geometry model.
The image plotting device that the embodiment of the present invention provides, can apply to the drafting of navigation picture, it is also possible to It is applied to the drafting of game image, it is also possible to be applied to the drafting of other images that there is identical rendering model. Using this device, the data of identical geometric model merged, the data after then merging send in the lump Data render equipment, decreases the number of times to data render equipment sending data, decreases data transmission procedure In performance consumption, improve rendering efficiency, promote Consumer's Experience.
Further, described diagram parameter may include that models show positional information;
Wherein, described models show positional information may include that vertical array and the geometry mould of geometric model Type world coordinates in described drawing area, identical geometric model has identical vertical array.
Further, described diagram parameter merges module 402, may include that
The packed array memory element in summit, is used for the described vertical array of described first geometric model as base Quasi-vertical array, and by described reference vertex storage of array in summit is packed array;
Translation matrix computing unit, for according to finding described repetition geometric model in described drawing area World coordinates and the world coordinates of described first geometric model between relation, calculate described repetition geometry mould Type is relative to the translation matrix of described first geometric model;
The packed array adding device in summit, is used for the product of described reference vertex array Yu described translation matrix, As the translation vertical array of described repetition geometric model make an addition to described summit packed array in;
The packed array signal generating unit of coordinate, for by the world coordinates matrix of described first geometric model, with time After going through described drawing area, the described summit of generation is packed array is multiplied, and generates described coordinate packed array.
Further, described models show positional information can also include: model index information;
Accordingly, described diagram parameter merges module 402, it is also possible to including:
Index packed array memory element, for being deposited by the described model index information of described first geometric model Be stored in index packed array in, and record the packed array index quantity included of described index;
Side-play amount increases unit, if for there being the described translation vertical array of described repetition geometric model to add In described summit is packed array, then by the index in the described model index information of described repetition geometric model Value increases the side-play amount corresponding with described index quantity;
Index quantity updating block, for the described model by the described repetition geometric model after increase side-play amount Index information make an addition to described index packed array in, and update the packed array index included of described index Quantity;
Index packed array signal generating unit, be used for traveling through described drawing area, generate described index packed array.
Further, described diagram parameter can also include: normal coordinate parameter or texture coordinate parameter.
Further, described diagram parameter merges module 402, may include that
The packed array memory element of parameter, for by the normal coordinate parameter of described first geometric model or stricture of vagina Reason coordinate parameters be stored in parameter packed array in;
The packed array adding device of parameter, for will find described repetition geometry mould in described drawing area The described normal coordinate parameter of type or described texture coordinate parameter make an addition to described parameter packed array in;
The packed array signal generating unit of parameter, is used for traveling through described drawing area, generates described parameter packed array.
The image plotting device that the embodiment of the present invention four provides, the view provided with any embodiment of the present invention As method for drafting belongs to same inventive concept, the image rendering side that any embodiment of the present invention is provided can be performed Method, possesses the execution corresponding functional module of image drawing method and beneficial effect.The most detailed The ins and outs described, can be found in the image drawing method that any embodiment of the present invention provides.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art It will be appreciated that the invention is not restricted to specific embodiment described here, can enter for a person skilled in the art Row various obvious changes, readjust and substitute without departing from protection scope of the present invention.Therefore, though So by above example, the present invention is described in further detail, but the present invention be not limited only to Upper embodiment, without departing from the inventive concept, it is also possible to include other Equivalent embodiments more, And the scope of the present invention is determined by scope of the appended claims.

Claims (12)

1. an image drawing method, it is characterised in that including:
The diagram parameter of the first geometric model is obtained in setting drawing area;
Travel through described drawing area, search the repetition geometric model identical with described first geometric model, and will The described diagram parameter of described repetition geometric model closes with the described diagram parameter of described first geometric model And;
Data after merging send to data render equipment, to realize described the in described drawing area One geometric model and the drafting of described repetition geometric model.
Method the most according to claim 1, it is characterised in that described diagram parameter includes: model shows Show positional information;
Wherein, described models show positional information includes: vertical array and the geometric model of geometric model exist World coordinates in described drawing area, identical geometric model has identical vertical array.
Method the most according to claim 2, it is characterised in that described by described repetition geometric model Described diagram parameter merges with the described diagram parameter of described first geometric model, including:
Using the described vertical array of described first geometric model as reference vertex array, and by described reference vertex Storage of array is in summit is packed array;
According to the world coordinates and described more than the first finding described repetition geometric model in described drawing area Relation between the world coordinates of what model, calculates described repetition geometric model relative to described first geometry mould The translation matrix of type;
By the product of described reference vertex array Yu described translation matrix, as the translation of described repetition geometric model Vertical array make an addition to described summit packed array in;
The described top that will generate after the world coordinates matrix of described first geometric model, with the described drawing area of traversal Point is packed array to be multiplied, and generates described coordinate packed array.
Method the most according to claim 3, it is characterised in that described models show positional information also wraps Include: model index information;
Accordingly, the described described diagram parameter by described repetition geometric model and described first geometric model Diagram parameter merges, and also includes:
The described model index information of described first geometric model is stored in index packed array in, and record The packed array index quantity included of described index;
If it is packed array that the described translation vertical array having described repetition geometric model makes an addition to described summit In, then the index value in the described model index information of described repetition geometric model is increased and described index number The side-play amount that amount is corresponding;
The described model index information of the described repetition geometric model after increasing side-play amount makes an addition to described index In packed array, and update the packed array index quantity included of described index;
Travel through described drawing area, generate described index packed array.
Method the most according to claim 1, it is characterised in that described diagram parameter also includes: normal Coordinate parameters or texture coordinate parameter.
Method the most according to claim 5, it is characterised in that described by described repetition geometric model Described diagram parameter merges with the described diagram parameter of described first geometric model, including:
Normal coordinate parameter or the texture coordinate parameter of described first geometric model are stored in parameter and merge number In group;
Described normal coordinate parameter or the institute of described repetition geometric model will be found in described drawing area State texture coordinate parameter make an addition to described parameter packed array in;
Travel through described drawing area, generate described parameter packed array.
7. an image plotting device, it is characterised in that including:
Diagram parameter acquisition module, for obtaining the diagram parameter of the first geometric model in setting drawing area;
Diagram parameter merges module, is used for traveling through described drawing area, searches and described first geometric model phase Same repetition geometric model, and by the described diagram parameter of described repetition geometric model and described first geometry mould The described diagram parameter of type merges;
Drafting module, the data after merging send to data render equipment, to realize described drawing Described first geometric model in region and the drafting of described repetition geometric model.
Device the most according to claim 7, it is characterised in that described diagram parameter includes: model shows Show positional information;
Wherein, described models show positional information includes: vertical array and the geometric model of geometric model exist World coordinates in described drawing area, identical geometric model has identical vertical array.
Device the most according to claim 8, it is characterised in that described diagram parameter merges module, bag Include:
The packed array memory element in summit, is used for the described vertical array of described first geometric model as base Quasi-vertical array, and by described reference vertex storage of array in summit is packed array;
Translation matrix computing unit, for according to finding described repetition geometric model in described drawing area World coordinates and the world coordinates of described first geometric model between relation, calculate described repetition geometry mould Type is relative to the translation matrix of described first geometric model;
The packed array adding device in summit, is used for the product of described reference vertex array Yu described translation matrix, As the translation vertical array of described repetition geometric model make an addition to described summit packed array in;
The packed array signal generating unit of coordinate, for by the world coordinates matrix of described first geometric model, with time After going through described drawing area, the described summit of generation is packed array is multiplied, and generates described coordinate packed array.
Device the most according to claim 9, it is characterised in that described models show positional information is also Including: model index information;
Accordingly, described diagram parameter merges module, also includes:
Index packed array memory element, for being deposited by the described model index information of described first geometric model Be stored in index packed array in, and record the packed array index quantity included of described index;
Side-play amount increases unit, if for there being the described translation vertical array of described repetition geometric model to add In described summit is packed array, then by the index in the described model index information of described repetition geometric model Value increases the side-play amount corresponding with described index quantity;
Index quantity updating block, for the described model by the described repetition geometric model after increase side-play amount Index information make an addition to described index packed array in, and update the packed array index included of described index Quantity;
Index packed array signal generating unit, be used for traveling through described drawing area, generate described index packed array.
11. devices according to claim 7, it is characterised in that described diagram parameter also includes: method Line coordinates parameter or texture coordinate parameter.
12. devices according to claim 11, it is characterised in that described diagram parameter merges module, Including:
The packed array memory element of parameter, for by the normal coordinate parameter of described first geometric model or stricture of vagina Reason coordinate parameters be stored in parameter packed array in;
The packed array adding device of parameter, for will find described repetition geometry mould in described drawing area The described normal coordinate parameter of type or described texture coordinate parameter make an addition to described parameter packed array in;
The packed array signal generating unit of parameter, is used for traveling through described drawing area, generates described parameter packed array.
CN201610201407.XA 2016-03-31 2016-03-31 Image drawing method and device Active CN105894551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610201407.XA CN105894551B (en) 2016-03-31 2016-03-31 Image drawing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610201407.XA CN105894551B (en) 2016-03-31 2016-03-31 Image drawing method and device

Publications (2)

Publication Number Publication Date
CN105894551A true CN105894551A (en) 2016-08-24
CN105894551B CN105894551B (en) 2020-02-14

Family

ID=57011933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610201407.XA Active CN105894551B (en) 2016-03-31 2016-03-31 Image drawing method and device

Country Status (1)

Country Link
CN (1) CN105894551B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108122266A (en) * 2017-12-20 2018-06-05 成都卓杭网络科技股份有限公司 A kind of method, apparatus and storage medium for caching skeleton cartoon and rendering texture
CN108242070A (en) * 2017-10-09 2018-07-03 北京车和家信息技术有限公司 A kind of image drawing method, image plotting device and computer equipment
CN109389683A (en) * 2018-08-31 2019-02-26 深圳市彬讯科技有限公司 Flash wall generation method and device
CN109978981A (en) * 2019-03-15 2019-07-05 广联达科技股份有限公司 A kind of batch rendering method improving buildings model display efficiency
CN110047137A (en) * 2019-04-23 2019-07-23 武汉轻工大学 Paraboloidal method for drafting, device, equipment and storage medium
CN110047117A (en) * 2019-04-18 2019-07-23 武汉轻工大学 Method for drafting, device, equipment and the storage medium of curved surface figure
CN111752619A (en) * 2020-05-20 2020-10-09 西安万像电子科技有限公司 Image processing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060188236A1 (en) * 2005-02-23 2006-08-24 Daisaku Kitagawa Drawing apparatus, drawing method, drawing program and drawing integrated circuit
CN102306395A (en) * 2010-09-20 2012-01-04 董福田 Distributed drawing method and device of three-dimensional data
US20140334717A1 (en) * 2012-01-21 2014-11-13 Thomson Licensing Method and apparatus for compressing texture information of three-dimensional (3d) models
US20140340421A1 (en) * 2013-05-15 2014-11-20 Google Inc. Efficient composition and rendering of graphical elements
CN105157698A (en) * 2015-09-17 2015-12-16 百度在线网络技术(北京)有限公司 Method and device for drawing navigation image
CN105430470A (en) * 2014-09-15 2016-03-23 三星电子株式会社 Apparatus and method for processing data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060188236A1 (en) * 2005-02-23 2006-08-24 Daisaku Kitagawa Drawing apparatus, drawing method, drawing program and drawing integrated circuit
CN102306395A (en) * 2010-09-20 2012-01-04 董福田 Distributed drawing method and device of three-dimensional data
US20140334717A1 (en) * 2012-01-21 2014-11-13 Thomson Licensing Method and apparatus for compressing texture information of three-dimensional (3d) models
US20140340421A1 (en) * 2013-05-15 2014-11-20 Google Inc. Efficient composition and rendering of graphical elements
CN105430470A (en) * 2014-09-15 2016-03-23 三星电子株式会社 Apparatus and method for processing data
CN105157698A (en) * 2015-09-17 2015-12-16 百度在线网络技术(北京)有限公司 Method and device for drawing navigation image

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108242070A (en) * 2017-10-09 2018-07-03 北京车和家信息技术有限公司 A kind of image drawing method, image plotting device and computer equipment
CN108122266A (en) * 2017-12-20 2018-06-05 成都卓杭网络科技股份有限公司 A kind of method, apparatus and storage medium for caching skeleton cartoon and rendering texture
CN108122266B (en) * 2017-12-20 2021-07-27 成都卓杭网络科技股份有限公司 Method, device and storage medium for caching rendering textures of skeleton animation
CN109389683A (en) * 2018-08-31 2019-02-26 深圳市彬讯科技有限公司 Flash wall generation method and device
CN109389683B (en) * 2018-08-31 2022-12-30 深圳市彬讯科技有限公司 flash background wall generation method and device
CN109978981A (en) * 2019-03-15 2019-07-05 广联达科技股份有限公司 A kind of batch rendering method improving buildings model display efficiency
CN110047117A (en) * 2019-04-18 2019-07-23 武汉轻工大学 Method for drafting, device, equipment and the storage medium of curved surface figure
CN110047137A (en) * 2019-04-23 2019-07-23 武汉轻工大学 Paraboloidal method for drafting, device, equipment and storage medium
CN110047137B (en) * 2019-04-23 2023-02-21 武汉轻工大学 Paraboloid drawing method, device, equipment and storage medium
CN111752619A (en) * 2020-05-20 2020-10-09 西安万像电子科技有限公司 Image processing method and system

Also Published As

Publication number Publication date
CN105894551B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN105894551A (en) Image drawing method and device
CN107423445B (en) A kind of map data processing method, device and storage medium
US20230053462A1 (en) Image rendering method and apparatus, device, medium, and computer program product
CN105378796B (en) Scalable volume 3D reconstruct
CN104616345B (en) Octree forest compression based three-dimensional voxel access method
CN104183016B (en) A kind of construction method of quick 2.5 dimension building model
US7212206B2 (en) Method and apparatus for self shadowing and self interreflection light capture
CN102117500B (en) Three-dimensional modeling method and system
CN102117497B (en) Method and system for three-dimensional terrain modeling
CN110111408B (en) Large scene rapid intersection method based on graphics
US20020027555A1 (en) Method of rendering motion blur image and apparatus therefor
CN109979002A (en) Scenario building system and method based on WebGL three-dimensional visualization
KR101591427B1 (en) Method for Adaptive LOD Rendering in 3-D Terrain Visualization System
US11989900B2 (en) Object recognition neural network for amodal center prediction
US20230015214A1 (en) Planar contour recognition method and apparatus, computer device, and storage medium
CN108154553A (en) The seamless integration method and device of a kind of threedimensional model and monitor video
CN116051713B (en) Rendering method, electronic device, and computer-readable storage medium
CN102117491A (en) Texture data drawing method and device in three-dimensional modeling
CN115375836A (en) Point cloud fusion three-dimensional reconstruction method and system based on multivariate confidence filtering
US20230017659A1 (en) Displacement-centric acceleration for ray tracing
CN107464278B (en) Full-view sphere light field rendering method
CN103617650A (en) Displaying method for complex three-dimensional terrain
WO2023231793A9 (en) Method for virtualizing physical scene, and electronic device, computer-readable storage medium and computer program product
CN110378948B (en) 3D model reconstruction method and device and electronic equipment
CN105427371B (en) The method that the elemental areas such as Drawing Object are shown is kept in a kind of three-dimensional perspective projection scene

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