CN108765539A - Image rendering method, device, equipment and storage medium based on OpenG L ES - Google Patents

Image rendering method, device, equipment and storage medium based on OpenG L ES Download PDF

Info

Publication number
CN108765539A
CN108765539A CN201810508764.XA CN201810508764A CN108765539A CN 108765539 A CN108765539 A CN 108765539A CN 201810508764 A CN201810508764 A CN 201810508764A CN 108765539 A CN108765539 A CN 108765539A
Authority
CN
China
Prior art keywords
coordinate
data
auxiliary
vertex
top out
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
CN201810508764.XA
Other languages
Chinese (zh)
Other versions
CN108765539B (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810508764.XA priority Critical patent/CN108765539B/en
Publication of CN108765539A publication Critical patent/CN108765539A/en
Application granted granted Critical
Publication of CN108765539B publication Critical patent/CN108765539B/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
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/04Indexing scheme for image data processing or generation, in general involving 3D image data

Landscapes

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

Abstract

The embodiment of the invention discloses an OpenG L ES-based image rendering method, device, equipment and storage medium, wherein the method comprises the steps of determining target vertex data according to the shape of an image to be rendered and a triangle drawing rule, wherein the target vertex data comprises required vertex data and auxiliary vertex data corresponding to the image to be rendered, each vertex data comprises a spatial position coordinate and a texture coordinate, constructing a polygon corresponding to the target vertex data according to the triangle drawing rule and the target vertex spatial position coordinate in the target vertex data, and performing image rendering according to the texture corresponding to the image to be rendered, the target vertex texture coordinate in the target vertex data and the polygon.

Description

Image rendering method, device, equipment based on OpenGLES and storage medium
Technical field
The present embodiments relate to image processing techniques more particularly to a kind of image rendering method based on OpenGLES, Device, equipment and storage medium.
Background technology
When developing image rendering application program for the terminal device of mobile terminal and immobile terminal, it can be used embedded Open graphic library (Open Graphics Library for Embedded Systems, OpenGLES) is used as image rendering work Tool, in particular for mobile terminal terminal device develop image rendering application program when, usually using OpenGLES as figure As rendering tool.
But for the more old terminal device of some video drivers, based on the application program of OpenGLES exploitations, It will appear the problem of rendering scalloping or fracture in operational process so that display picture is abnormal, influences user experience.
Invention content
The embodiment of the present invention provides a kind of image rendering method, device, equipment and storage medium based on OpenGLES, with Realization more accurately carry out the image rendering based on OpenGLES so that the display picture of application program more correctly with stream Freely, user experience is promoted.
In a first aspect, an embodiment of the present invention provides a kind of image rendering methods based on OpenGLES, including:
According to the shape and triangle drawing rule of image to be rendered, representative points data, the representative points number are determined According to comprising the corresponding top out data of the image to be rendered and auxiliary vertex data, each vertex data includes spatial position Coordinate and texture coordinate;
According to the representative points spatial position coordinate in the triangle drawing rule and the representative points data, structure The corresponding polygon of the representative points data;
According in the corresponding texture of the image to be rendered, the representative points data representative points texture coordinate and The polygon carries out image rendering.
Optionally, the shape and triangle drawing rule according to image to be rendered determines that representative points data include:
According to the shape and the triangle drawing rule, the top out data are determined;
According to the top out spatial position coordinate in the top out data, determine in the auxiliary vertex data Auxiliary top space of points position coordinates, so that the polygon is convex polygon;
According to the top out texture coordinate in the top out data, the auxiliary in the auxiliary vertex data is determined Vertex texture coordinate so that the corresponding texture sampling region of representative points texture coordinate in the representative points data with it is described Texture coordinate corresponding texture sampling region in top out is consistent.
Further, spatial position coordinate includes x coordinate, y-coordinate and z coordinate.
Correspondingly, the top out spatial position coordinate according in the top out data, determines the auxiliary Auxiliary top space of points position coordinates in vertex data include:
By the auxiliary vertex z coordinate in the auxiliary top space of points position coordinates, it is set as the top out space bit Set the top out z coordinate in coordinate;
Respectively by the auxiliary vertex x coordinate and auxiliary vertex y-coordinate in the auxiliary top space of points position coordinates, it is set as More than or equal to corresponding top out x coordinate in the coordinate of the top out spatial position and corresponding top out y-coordinate, And the auxiliary vertex x coordinate with when the auxiliary vertex y-coordinate difference be equal to the corresponding top out x coordinate and correspondence The top out y-coordinate.
Further, the top out texture coordinate according in the top out data, determines the auxiliary top Auxiliary vertex texture coordinate in point data includes:
One by one by the auxiliary vertex texture coordinate, it one of is set as in the top out texture coordinate texture Coordinate.
Optionally, based on the above technical solution, this method further includes:According to the triangle drawing rule, really Determine the quantity of the corresponding auxiliary vertex data of at least one auxiliary triangle shape;
Correspondingly, the top out spatial position coordinate according in the top out data, determines the auxiliary Auxiliary top space of points position coordinates in vertex data, including:
According to the top out spatial position coordinate in the top out data, the auxiliary number of vertex of the quantity is determined Auxiliary top space of points position coordinates in;
Correspondingly, the top out texture coordinate according in the top out data, determines the auxiliary vertex Auxiliary vertex texture coordinate in data, including:
According to the top out texture coordinate in the top out data, in the auxiliary vertex data for determining the quantity Auxiliary vertex texture coordinate.
Further, described according to the triangle drawing rule, determine the corresponding auxiliary of at least one auxiliary triangle shape The quantity of vertex data includes:
According to triangle strip drawing rule GL_TRIANGE_STRIP, the corresponding auxiliary top of an auxiliary triangle shape is determined The quantity of point data is 1.
Optionally, the representative points space bit according in the triangle drawing rule and the representative points data Coordinate is set, building the corresponding polygon of the representative points data includes:
According to triangle strip drawing rule GL_TRIANGE_STRIP, representative points spatial position coordinate and described Order of elements of the representative points data in vertical array calls figure drafting function, builds the representative points data and corresponds to Polygon;
Wherein, order of elements of the representative points data in vertical array is:The auxiliary vertex data is described Element position in vertical array is arranged in after element position of the top out data in the vertical array.
Second aspect, the embodiment of the present invention additionally provide the image rendering device based on OpenGLES, which includes:
Representative points data determining module determines mesh for the shape and triangle drawing rule according to image to be rendered Vertex data is marked, the representative points data include the corresponding top out data of the image to be rendered and auxiliary number of vertex According to each vertex data includes spatial position coordinate and texture coordinate;
Polygon builds module, for according to the target top in the triangle drawing rule and the representative points data Space of points position coordinates build the corresponding polygon of the representative points data;
Image rendering module, for according to the mesh in the corresponding texture of the image to be rendered, the representative points data Vertex texture coordinate and the polygon are marked, image rendering is carried out.
Optionally, the representative points data determining module includes:
Top out data determination sub-module, described according to the shape and the triangle drawing rule, determining Top out data;
Auxiliary top space of points position coordinates determination sub-module, for empty according to the top out in the top out data Between position coordinates, determine it is described auxiliary vertex data in auxiliary top space of points position coordinates so that the polygon be it is convex more Side shape;
Vertex texture coordinate determination sub-module is assisted, for being sat according to the top out texture in the top out data Mark determines the auxiliary vertex texture coordinate in the auxiliary vertex data, so that the representative points in the representative points data The corresponding texture sampling region of texture coordinate texture sampling region corresponding with the top out texture coordinate is consistent.
Further, spatial position coordinate includes x coordinate, y-coordinate and z coordinate.
Correspondingly, the auxiliary top space of points position coordinates determination sub-module is specifically used for:
By the auxiliary vertex z coordinate in the auxiliary top space of points position coordinates, it is set as the top out space bit Set the top out z coordinate in coordinate;
Respectively by the auxiliary vertex x coordinate and auxiliary vertex y-coordinate in the auxiliary top space of points position coordinates, it is set as More than or equal to corresponding top out x coordinate in the coordinate of the top out spatial position and corresponding top out y-coordinate, And the auxiliary vertex x coordinate with when the auxiliary vertex y-coordinate difference be equal to the corresponding top out x coordinate and correspondence The top out y-coordinate.
Further, the auxiliary vertex texture coordinate determination sub-module is specifically used for:
One by one by the auxiliary vertex texture coordinate, it one of is set as in the top out texture coordinate texture Coordinate.
Optionally, on the basis of above-mentioned apparatus, which further includes:Vertex data quantity determining module is assisted, is used for According to the triangle drawing rule, the quantity of the corresponding auxiliary vertex data of at least one auxiliary triangle shape is determined;
Correspondingly, the auxiliary top space of points position coordinates determination sub-module is specifically used for:
According to the top out spatial position coordinate in the top out data, the auxiliary number of vertex of the quantity is determined Auxiliary top space of points position coordinates in;
Correspondingly, the auxiliary vertex texture coordinate determination sub-module is specifically used for:
According to the top out texture coordinate in the top out data, in the auxiliary vertex data for determining the quantity Auxiliary vertex texture coordinate.
Further, the auxiliary vertex data quantity determining module is specifically used for:
According to triangle strip drawing rule GL_TRIANGE_STRIP, the corresponding auxiliary top of an auxiliary triangle shape is determined The quantity of point data is 1.
Optionally, the polygon structure module is specifically used for:
According to triangle strip drawing rule GL_TRIANGE_STRIP, representative points spatial position coordinate and described Order of elements of the representative points data in vertical array calls figure drafting function, builds the representative points data and corresponds to Polygon;
Wherein, order of elements of the representative points data in vertical array is:The auxiliary vertex data is described Element position in vertical array is arranged in after element position of the top out data in the vertical array.
The third aspect, the embodiment of the present invention additionally provide a kind of equipment, which includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processing Device realizes the image rendering method based on OpenGLES that any embodiment of the present invention is provided.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program realizes the image based on OpenGLES that any embodiment of the present invention is provided when the computer program is executed by processor Rendering intent.
The embodiment of the present invention finds to render figure when carrying out image rendering based on OpenGLES on the basis of pinpointing the problems As abnormal reason, when being to build the corresponding demand polygon of image to be rendered, cause because of vertex data transmission abnormality more On the basis of the last one triangle draws mistake in the shape of side, by increasing auxiliary vertex data in representative points data, and Thus structure includes the polygon including auxiliary triangle shape, the correctness of demand polygon in the polygon to ensure structure, from And solve the problems, such as to render image abnormity when carrying out image rendering based on OpenGLES, it realizes and is more accurately based on The image rendering of OpenGLES so that the display picture of application program more correctly with smoothness, promotes user experience.
Description of the drawings
Fig. 1 is a kind of flow chart of image rendering method based on OpenGLES in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of image rendering method based on OpenGLES in the embodiment of the present invention two;
Fig. 3 is a kind of structural schematic diagram of the image rendering device based on OpenGLES in the embodiment of the present invention three;
Fig. 4 is a kind of structural schematic diagram of equipment in the embodiment of the present invention four.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Image rendering method provided in this embodiment based on OpenGLES is applicable to use embedded open shape library OpenGLES develops the case where image rendering application program.This method can be held by the image rendering device based on OpenGLES Row, the device can be realized that the device can be integrated in the equipment for supporting OpenGLES by the mode of software and/or hardware, Such as be typically subscriber terminal equipment, such as mobile phone, tablet computer or desktop computer etc..Referring to Fig. 1, the method for the present embodiment Specifically comprise the following steps:
S110, the shape according to image to be rendered and triangle drawing rule determine representative points data, representative points number According to comprising the corresponding top out data of image to be rendered and auxiliary vertex data, each vertex data includes spatial position coordinate And texture coordinate.
Wherein, image to be rendered refers to the display image exported for image rendering, such as can be picture, decoded Video frame images or the color image etc. being made of color array.Triangle drawing rule refer to specified in OpenGLES into The rule that row triangle is drawn, such as triangle row drawing rule GL_TRIANGLES, triangle strip drawing rule GL_ TRIANGLE_STRIP and triangle sector drawing rule GL_TRIANGLE_FAN etc..Here, triangle strip drawing rule GL_TRIANGE_STRIP is when drawing triangle, and there are vertex multiplex process, such as vertex data has n (n is greater than or equal to 3), then can draw n-2 triangle (other than first vertex and the last one vertex cannot be reused, remaining Vertex may be reused), then when using this triangle drawing rule, under normal circumstances, draws a rectangle and need 4 A vertex.When drawing triangle, all vertex cannot be re-used triangle row drawing rule GL_TRIANGLES, such as push up Point data has n (n is greater than or equal to 3), then can draw n/3 triangle, when n is not 3 multiple, remaining number of vertex According to that can be dropped, then when using this triangle drawing rule, under normal circumstances, draws a rectangle and need 6 vertex.
It should be noted that since OpenGLES is open graphic library (Open Graphics Library, OpenGL) three The subset for tieing up figure Application Programming Interface (Application Programming Interface, API), is from OpenGL Customization is cut, the fixed point defined function glBegin/glEnd of pel, quadrangle (GL_QUADS), polygon are eliminated (GL_POLYGONS) characteristic of many not required that they be so such as complicated pel such as, therefore polygon is drawn in OpenGLES, substantially all It is to be built by drawing multiple triangles.
Representative points data refer to for drawing target vertex of a triangle data.Correspondingly, top out data refer to For drawing demand vertex of a triangle data, auxiliary vertex data refers to then the vertex data for drawing auxiliary triangle shape. Here, demand triangle refers to the triangle for constituting the demand polygon consistent with image shape to be rendered.Auxiliary triangle Shape is at least one extra triangle corresponding with demand triangle, and effect is that back-up needs polygon is successfully painted System.And target triangle is then comprising all triangles including demand triangle and auxiliary triangle shape.Representative points data need It includes spatial position coordinate and texture coordinate to seek vertex data and assist each vertex data in vertex data.Here, Spatial position coordinate refers to two dimension or three-dimensional, can characterize the coordinate of vertex spatial position.Texture coordinate refers to texture When being sampled, for the coordinate of texture addressing, interval is [0,1], and typically developer samples as needed Texture range is artificially arranged.
Specifically, the key link that image rendering programming is realized includes that vertex data is built, vertex data is transmitted to coloring Draw polygon in device, tinter, create texture and be transmitted to tinter, in tinter by the texture mapping of establishment to polygon And it exports.In order to solve the problems in embodiment of the present invention, analysis and test is carried out to above-mentioned links first, to determine Go wrong Producing reason.For example, whether output vertex data, correct with the vertex data of detection structure;In tinter script In output vertex data again, it is whether correct to detect vertex data transmission;The polygon drawn is exported, is painted with detecting polygon Whether system is correct;Data texturing is exported, to detect the correctness of texture establishment and the correctness of transmission;And output texture mapping Intermediate data in the process, to detect the correctness etc. of textures process.
After repeatedly testting, the original for causing the terminal device epigraph configured with old video card to render failure is found Cause is that vertex data malfunctions when being transmitted to tinter.It is more old just because of video card, in vertex data by central processing unit During CPU is transmitted to video card GPU, the last one vertex data is lost or numerical value is tampered, and leads to the last one triangle Shape draws failure, to cause to render scalloping or fracture.After the reason of finding image rendering failure, the present invention is implemented Example increases auxiliary vertex data, to ensure top out data on the basis of original vertex data (top out data) Correctness in data transmission procedure.
When it is implemented, according to the shape of image to be rendered and selected triangle drawing rule, determination needs to create Representative points quantity, i.e., the quantity of top out and assist vertex quantity.After the quantity of representative points is determined, Then further determine that spatial position coordinate (the i.e. representative points in the vertex data of respective numbers, that is, representative points data Spatial position coordinate) and representative points data in texture coordinate (i.e. representative points texture coordinate).Be then more specifically After the quantity that the vertex of respective type is determined, then the respective vertices data of respective numbers are further determined that, such as determine demand The texture coordinate in spatial position coordinate (i.e. top out spatial position coordinate), top out data in vertex data is (i.e. Top out texture coordinate), auxiliary vertex data in spatial position coordinate (i.e. auxiliary top space of points position coordinates) and assist Texture coordinate (assisting vertex texture coordinate) in vertex data.
It should be understood that because being to carry out figure using OpenGLES in the more old terminal device of video driver When as rendering application development, there is a problem of pointed by the present invention, and assists vertex data that can reduce to a certain extent The speed of service of application program, therefore in order to improve the application program speed of service, before executing S110, application program can be increased The judgment step of running environment, for example, according to application program operation present terminal equipment video card information, whether determine video card Belong to old video card;According to OpenGLES information inquiries identify, determine rendering tool used in present terminal equipment whether be OpenGLES.When determining that rendering tool used in present terminal equipment is OpenGLES, and when video card is old video card, then touch Hair executes S110.
Representative points spatial position coordinate in S120, foundation triangle drawing rule and representative points data, builds mesh Mark the corresponding polygon of vertex data.
Specifically, it according to selected triangle drawing rule and representative points spatial position coordinate, draws successively multiple Triangle, by these corresponding polygons of triangle direct construction representative points data.It should be noted that due to representative points The last one vertex data in data may be lost or there are mistakes, therefore in built-up polygon, the last one triangle Shape may draw failure or draw distortion, then then exist in polygon regular shape a part and shape fracture or distortion A part for a part, the regular shape includes at least demand polygon, and a part for shape fracture or distortion is then auxiliary Part where triangle does not influence the correct structure of demand polygon.
Illustratively, according to the representative points spatial position coordinate in triangle drawing rule and representative points data, structure Building the corresponding polygon of representative points data includes:According to triangle strip drawing rule GL_TRIANGE_STRIP, target top The order of elements of space of points position coordinates and representative points data in vertical array calls figure drafting function, builds target The corresponding polygon of vertex data.
Wherein, vertical array refers to the array that representative points data are stored.In the programming development based on OpenGLES, Vertex data is stored and is transmitted with array form.Illustratively, order of elements of the representative points data in vertical array For:Element position of the vertex data in vertical array is assisted, element position of the top out data in vertical array is arranged in After setting.That is, in vertical array, first storage demand vertex data, then store auxiliary vertex data.In this way, target When vertex data is transmitted to video card GPU by central processor CPU, also will first transmission demand vertex data, then transmission auxiliary Vertex data, to ensure that top out data are completely and correctly transmitted to video card GPU.
Specifically, according to triangle strip drawing rule GL_TRIANGE_STRIP and representative points data in vertical array In order of elements, call figure drafting function glDrawArrays, successively by the corresponding top of representative points spatial position coordinate Point connection, draws triangle, and build polygon.Since the element position of top out data is in auxiliary vertex data element position Before setting, therefore when drawing triangle, demand triangle can be first drawn, auxiliary triangle shape is then drawn.In such manner, it is possible to so that need Triangle is asked correctly to be drawn, to ensure the correctness of demand polygon.
S130, according to representative points texture coordinate in the corresponding texture of image to be rendered, representative points data and more Side shape carries out image rendering.
Wherein, texture is the width for indicating body surface details or a few width X-Y schemes, is one and is rendered for preserving The OpenGLES of the color elements value of image is cached.
Specifically, it according to the parallel mechanism of image rendering, while building polygon, can be created according to image to be rendered Corresponding texture is built, such as using image to be rendered as function input parameters, the texture that OpenGLES is provided is called to create function GlTexImage2D creates above-mentioned texture, you can obtains the corresponding texture of image to be rendered.Later, according to representative points texture Coordinate samples texture, obtains texture sampling result.Such as using representative points texture coordinate as function input parameters, call The texture sampling function texture that OpenGLES is provided, samples the texture of above-mentioned acquisition, every when determining image rendering The corresponding color of a pixel, i.e. texture mapping.Finally, texture sampling result is assigned to the grating of constructed polygon in S120 Change the corresponding region of result, texture mapping process is realized, to carry out image rendering.
The technical solution of the present embodiment finds to carry out image rendering based on OpenGLES on the basis of pinpointing the problems When the reason of rendering image abnormity, when being to build the corresponding demand polygon of image to be rendered, because of vertex data transmission abnormality And cause in polygon on the basis of the last one triangle drafting mistake, pass through and increases auxiliary vertex in representative points data Data, and thus structure includes the polygon including auxiliary triangle shape, to ensure that demand polygon is just in the polygon built True property realizes more accurately to solve the problems, such as that the when of carrying out image rendering based on OpenGLES renders image abnormity Carry out the image rendering based on OpenGLES so that the display picture of application program more correctly with smoothness, promotes user experience.
Embodiment two
The present embodiment on the basis of the above embodiment 1, to " according to image to be rendered shape and triangle draw rule Then, representative points data are determined " it is advanced optimized.Explanation wherein identical as the various embodiments described above or corresponding term Details are not described herein.Referring to Fig. 2, the image rendering method provided in this embodiment based on OpenGLES includes:
S210, the shape according to image to be rendered and triangle drawing rule, determine top out data.
Specifically, according to the shape of image to be rendered and selected triangle drawing rule, the number of top out is determined Amount.For example, the shape of image to be rendered is rectangle, selected triangle drawing rule is triangle strip drawing rule GL_ TRIANGLE_STRIP, then being assured that the quantity of top out is 4;If selected triangle drawing rule is three Angular row drawing rule GL_TRIANGLES, then it is determined that top out quantity then be 6.Top out is being determined After quantity, then the coordinate data of the top out of respective numbers is further determined that.Such as according to screen size and image rendering When display size, determine top out spatial position coordinate;It need to be to be shown in image rendering according to image to be rendered Ratio determines top out texture coordinate.
Top out spatial position coordinate in S220, foundation top out data, determines auxiliary in auxiliary vertex data Vertex spatial position coordinate is helped, so that polygon is convex polygon.
Specifically, since auxiliary vertex data is therefore to determine target top for ensureing top out data correctness When point data, top out data are first determined.And then vertex spatial position coordinate and final structure polygon are according to demand The rule of convex polygon limits, and determines auxiliary top space of points position coordinates.
Illustratively, spatial position coordinate includes x coordinate, y-coordinate and z coordinate;
Correspondingly, it according to the top out spatial position coordinate in the data of top out, determines in auxiliary vertex data Auxiliary top space of points position coordinates include:By the auxiliary vertex z coordinate in auxiliary top space of points position coordinates, it is set as demand top Top out z coordinate in space of points position coordinates;Respectively by auxiliary top space of points position coordinates auxiliary vertex x coordinate and Vertex y-coordinate is assisted, is set greater than or equal to corresponding top out x coordinate and correspondence in the coordinate of top out spatial position Top out y-coordinate, and assist vertex x coordinate and auxiliary vertex y-coordinate it is different when be equal to corresponding top out x coordinate with Corresponding top out y-coordinate.
Specifically, in order to enable the polygon according to auxiliary vertex data and top out data structure is on two dimensional surface Convex polygon, will be in auxiliary top space of points position coordinates in the embodiment of the present invention to not influence follow-up texture mapping process Auxiliary vertex z coordinate be set as the top out z coordinate in the coordinate of top out spatial position.Meanwhile auxiliary vertex x being sat Mark is set greater than or is equal to top out x coordinate, and top out y-coordinate is set greater than or is equal to by auxiliary vertex y-coordinate. The setting of above-mentioned auxiliary vertex x coordinate and auxiliary vertex y-coordinate also needs to meet:It is sat equal to top out x in auxiliary vertex x coordinate When mark, auxiliary vertex y-coordinate is more than top out y-coordinate;When assisting vertex y-coordinate to be equal to top out y-coordinate, auxiliary top Point x coordinate is more than top out x coordinate, that is, assists being equal to corresponding demand top when vertex x coordinate is different with auxiliary vertex y-coordinate Point x coordinate and corresponding top out y-coordinate.
Top out texture coordinate in S230, foundation top out data, determines the auxiliary top in auxiliary vertex data Point texture coordinate, so that the corresponding texture sampling region of representative points texture coordinate in representative points data and top out line It is consistent to manage the corresponding texture sampling region of coordinate.
Specifically, it in order to make the setting of auxiliary vertex data not influence follow-up texture mapping process, therefore needs according to setting After assisting vertex data, the rule that the texture sampling region of texture coordinate delimitation is constant limits, and vertex texture is sat according to demand Mark assists vertex texture coordinate to determine.For example, texture seat can be carried out on two demand texture coordinate corresponding vertex lines Value is marked, and is set to auxiliary vertex texture coordinate.
Illustratively, it according to the top out texture coordinate in the data of top out, determines auxiliary in auxiliary vertex data The vertex texture coordinate is helped to include:One of vertex texture coordinate will be assisted one by one, be set as in the texture coordinate of top out Texture coordinate.
It specifically, one by one will be auxiliary in the present embodiment in order to more easily carry out the setting of auxiliary vertex texture coordinate Help any one top out texture coordinate that vertex texture coordinate is set as in multiple top out texture coordinates.That is, The value for assisting vertex texture coordinate, is directly a texture coordinate in the texture coordinate of top out.In this way, auxiliary vertex line Reason coordinate is directly overlapped with top out texture coordinate, is not only improved auxiliary vertex texture coordinate and is determined speed, but also will not make At any variation in texture sampling region, it is further ensured that the correctness of follow-up texture mapping process.
It should be noted that do not limit S220 and S230 herein executes sequence, can sequentially hold in the order described above Row can also be that S230 is executed or two steps execute side by side before S220.
Representative points spatial position coordinate in S240, foundation triangle drawing rule and representative points data, builds mesh Mark the corresponding polygon of vertex data.
S250, according to representative points texture coordinate in the corresponding texture of image to be rendered, representative points data and more Side shape carries out image rendering.
The technical solution of the present embodiment, by setting to add to form polygon to be convex for auxiliary vertex spatial position coordinate The value of polygon limits, and is limited to assist the setting of vertex texture coordinate to add the constant value in texture sampling region, can The correctness of demand polygon structure and the accuracy of texture mapping process are further ensured that, so that image rendering output knot Fruit more accurately with smoothness.
Illustratively, based on the above technical solution, the image wash with watercolours based on OpenGLES that the present embodiment is provided Dyeing method further includes:According to triangle drawing rule, the number of the corresponding auxiliary vertex data of at least one auxiliary triangle shape is determined Amount;
Correspondingly, it according to the top out spatial position coordinate in the data of top out, determines in auxiliary vertex data Auxiliary top space of points position coordinates, including:Top out spatial position coordinate in the data of foundation top out, quantification Assist the auxiliary top space of points position coordinates in vertex data;
Correspondingly, according to the top out texture coordinate in the data of top out, the auxiliary in auxiliary vertex data is determined Vertex texture coordinate, including:According to the top out texture coordinate in the data of top out, the auxiliary vertex data of quantification In auxiliary vertex texture coordinate.
Specifically, it when determining auxiliary vertex data, can determine to draw according to selected triangle drawing rule The quantity of auxiliary vertex data needed at least one auxiliary triangle shape, that is, it can be corresponding drafting to assist the quantity of vertex data One auxiliary triangle shape, to reduce the data volume of vertex data, can also be it is corresponding draw multiple auxiliary triangle shapes, so as into One step ensures the drafting correctness of demand triangle.For example, selected triangle drawing rule is triangle strip drawing rule GL_TRIANGLE_STRIP, as soon as then often increase an auxiliary triangle shape, assist the quantity of vertex data need accordingly increase by one It is a;And selected triangle drawing rule is triangle row drawing rule GL_TRIANGLES, then often increasing an auxiliary three It is angular, assist the quantity of vertex data just to need accordingly to increase by three.
Correspondingly, S220 is then:Vertex spatial position coordinate and final structure polygon are convex polygon according to demand Rule limits, and determines the auxiliary top space of points position coordinates with auxiliary vertex data corresponding number.And S230 is then:According to setting After assisting vertex data, the rule that the texture sampling region of texture coordinate delimitation is constant limits, and vertex texture is sat according to demand Mark determines the auxiliary vertex texture coordinate with auxiliary vertex data corresponding number.
Further, according to triangle drawing rule, the corresponding auxiliary vertex data of at least one auxiliary triangle shape is determined Quantity include:According to triangle strip drawing rule GL_TRIANGE_STRIP, determine that an auxiliary triangle shape is corresponding auxiliary It is 1 to help the quantity of vertex data.
Specifically, since vertex data needs to be transmitted to the drafting of progress triangle in the tinter of OpenGLES, so, In order to improve data transmission bauds and reduce overhead, one auxiliary triangle shape of extra drafting is only needed in the present embodiment. And in order to be further reduced the data volume of vertex data and improve data transmission bauds, the triangle selected in the present embodiment is drawn Rule is triangle strip drawing rule GL_TRIANGE_STRIP, the corresponding auxiliary vertex data of such a auxiliary triangle shape Quantity be just 1, i.e., need to only increase by 1 auxiliary vertex data, back-up needs polygon can be reached and build correct purpose.
Using the shape of image to be rendered as rectangle, the triangle drawing rule of selection is triangle strip drawing rule GL_ For TRIANGE_STRIP, above-mentioned vertex data according to demand determines that auxiliary vertex data can be:Top out spatial position Coordinate be respectively { 0,0,0, }, { 1,0,0 }, { 0,1,0 } and { 1,1,0 }, top out texture coordinate respectively { 0,0 }, 1, 0 }, { 0,1 } and { 1,1 }.So according to the restrictive rule of convex-edge shape, 1 auxiliary top space of points position coordinates could be provided as Any of { 1.01,0,0 }, { 0,1.01,0 } and { 1.01,1.01,0 }, it is corresponding to assist vertex texture coordinate that be arranged For any of { 0,0 }, { 1,0 }, { 0,1 } and { 1,1 }.
The embodiment of the image rendering device provided in an embodiment of the present invention based on OpenGLES below, the device with it is upper The image rendering method based on OpenGLES for stating each embodiment belongs to the same inventive concept, in the image based on OpenGLES The detail content of not detailed description in the embodiment of rendering device can refer to the above-mentioned image rendering method based on OpenGLES Embodiment.
Embodiment three
The present embodiment provides a kind of image rendering device based on OpenGLES, referring to Fig. 3, which specifically includes:
Representative points data determining module 310 is determined for the shape and triangle drawing rule according to image to be rendered Representative points data, representative points data include the corresponding top out data of image to be rendered and assist vertex data, each Vertex data includes spatial position coordinate and texture coordinate;
Polygon builds module 320, for being determined according to triangle drawing rule and representative points data determining module 310 Representative points data in representative points spatial position coordinate, the corresponding polygon of structure representative points data;
Image rendering module 330, for according to the corresponding texture of image to be rendered, representative points data determining module 310 The polygon that representative points texture coordinate and polygon structure module 320 in determining representative points data are built, carries out Image rendering.
Optionally, representative points data determining module 310 includes:
Top out data determination sub-module, for according to shape and triangle drawing rule, determining top out data;
Auxiliary top space of points position coordinates determination sub-module, for according to the top out space bit in the data of top out Coordinate is set, determines the auxiliary top space of points position coordinates in auxiliary vertex data, so that polygon is convex polygon;
Vertex texture coordinate determination sub-module is assisted, is used for according to the top out texture coordinate in the data of top out, The auxiliary vertex texture coordinate in auxiliary vertex data is determined, so that the representative points texture coordinate in representative points data corresponds to Texture sampling region texture sampling corresponding with top out texture coordinate region it is consistent.
Further, spatial position coordinate includes x coordinate, y-coordinate and z coordinate.
Correspondingly, auxiliary top space of points position coordinates determination sub-module is specifically used for:
The auxiliary vertex z coordinate in auxiliary top space of points position coordinates is set as in the coordinate of top out spatial position Top out z coordinate;
Respectively by the auxiliary vertex x coordinate and auxiliary vertex y-coordinate in auxiliary top space of points position coordinates, it is set greater than Or it is equal to corresponding top out x coordinate and corresponding top out y-coordinate in the coordinate of top out spatial position, and auxiliary top It is equal to corresponding top out x coordinate and corresponding top out y-coordinate when point x coordinate is different with auxiliary vertex y-coordinate.
Further, auxiliary vertex texture coordinate determination sub-module is specifically used for:
Vertex texture coordinate will be assisted one by one, one of be set as in the texture coordinate of top out texture coordinate.
Optionally, on the basis of above-mentioned apparatus, which further includes:Vertex data quantity determining module is assisted, is used for According to triangle drawing rule, the quantity of the corresponding auxiliary vertex data of at least one auxiliary triangle shape is determined;
Correspondingly, auxiliary top space of points position coordinates determination sub-module is specifically used for:
It is auxiliary in the auxiliary vertex data of quantification according to the top out spatial position coordinate in the data of top out Help vertex spatial position coordinate;
Correspondingly, auxiliary vertex texture coordinate determination sub-module is specifically used for:
According to the top out texture coordinate in the data of top out, the auxiliary top of quantification assisted in vertex data Point texture coordinate.
Further, auxiliary vertex data quantity determining module is specifically used for:
According to triangle strip drawing rule GL_TRIANGE_STRIP, the corresponding auxiliary top of an auxiliary triangle shape is determined The quantity of point data is 1.
Optionally, polygon structure module 320 is specifically used for:
According to triangle strip drawing rule GL_TRIANGE_STRIP, representative points spatial position coordinate and representative points Order of elements of the data in vertical array calls figure drafting function, the corresponding polygon of structure representative points data;
Wherein, order of elements of the representative points data in vertical array is:Assist vertex data in vertical array Element position is arranged in after element position of the top out data in vertical array.
Three a kind of image rendering device based on OpenGLES through the embodiment of the present invention, solves based on OpenGLES The problem of carrying out rendering image abnormity when image rendering, realizes and more accurately carries out the image rendering based on OpenGLES, So that the display picture of application program promotes user experience more correctly with smoothness.
The image rendering device based on OpenGLES that the embodiment of the present invention is provided can perform any embodiment of the present invention The image rendering method based on OpenGLES provided has the corresponding function module of execution method and advantageous effect.
It is worth noting that, in the embodiment of the above-mentioned image rendering device based on OpenGLES, included each list Member and module are only divided according to function logic, but are not limited to above-mentioned division, as long as can realize corresponding Function;In addition, the specific name of each functional unit is also only to facilitate mutually differentiation, is not intended to restrict the invention Protection domain.
Example IV
Referring to Fig. 4, a kind of equipment 400 is present embodiments provided comprising:One or more processors 420;Storage device 410, for storing one or more programs, when one or more programs are executed by one or more processors 420 so that one Or multiple processors 420 realize the image rendering method based on OpenGLES that the embodiment of the present invention is provided, including:
According to the shape and triangle drawing rule of image to be rendered, representative points data, representative points data packet are determined Containing the corresponding top out data of image to be rendered and auxiliary vertex data, each vertex data includes spatial position coordinate and line Manage coordinate;
According to the representative points spatial position coordinate in triangle drawing rule and representative points data, representative points are built The corresponding polygon of data;
According to the representative points texture coordinate and polygon in the corresponding texture of image to be rendered, representative points data, Carry out image rendering.
Certainly, it will be understood by those skilled in the art that processor 420 can also realize that any embodiment of the present invention is provided The image rendering method based on OpenGLES technical solution.
The equipment 400 that Fig. 4 is shown is only an example, should not be brought to the function and use scope of the embodiment of the present invention Any restrictions.
As shown in figure 4, the equipment 400 includes processor 420, storage device 410, input unit 430 and output device 440;The quantity of processor 420 can be one or more in equipment, in Fig. 4 by taking a processor 420 as an example;Place in equipment Reason device 420, storage device 410, input unit 430 can be connected with output device 440 by bus or other modes, in Fig. 4 For being connected by bus 450.
Storage device 410 is used as a kind of computer readable storage medium, can be used for storing software program, computer executable Program and module, such as the corresponding program instruction/module of the image rendering method based on OpenGLES in the embodiment of the present invention (for example, the representative points data determining module, polygon structure module in the image rendering device based on OpenGLES and image Rendering module).
Storage device 410 can include mainly storing program area and storage data field, wherein storing program area can store operation Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to terminal. In addition, storage device 410 may include high-speed random access memory, can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, storage device 410 It can further comprise that the memory remotely located relative to processor 420, these remote memories can be by network connections extremely Equipment.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 430 can be used for receiving the number or character information of input, and generate with the user setting of equipment with And the related key signals input of function control.Output device 440 may include that display screen etc. shows equipment.
Embodiment five
The present embodiment provides a kind of storage mediums including computer executable instructions, and computer executable instructions are by counting For executing a kind of image rendering method based on OpenGLES when calculation machine processor executes, this method includes:
According to the shape and triangle drawing rule of image to be rendered, representative points data, representative points data packet are determined Containing the corresponding top out data of image to be rendered and auxiliary vertex data, each vertex data includes spatial position coordinate and line Manage coordinate;
According to the representative points spatial position coordinate in triangle drawing rule and representative points data, representative points are built The corresponding polygon of data;
According to the representative points texture coordinate and polygon in the corresponding texture of image to be rendered, representative points data, Carry out image rendering.
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present invention is provided, computer The operation of method that executable instruction is not limited to the described above, can also be performed that any embodiment of the present invention provided based on Relevant operation in the image rendering method of OpenGLES.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art Part can be expressed in the form of software products, which can be stored in computer readable storage medium In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) execute that each embodiment of the present invention provided based on The image rendering method of OpenGLES.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of image rendering method based on OpenGLES, which is characterized in that including:
According to the shape and triangle drawing rule of image to be rendered, representative points data, the representative points data packet are determined Containing the corresponding top out data of the image to be rendered and auxiliary vertex data, each vertex data includes spatial position coordinate And texture coordinate;
According to the representative points spatial position coordinate in the triangle drawing rule and the representative points data, described in structure The corresponding polygon of representative points data;
According to representative points texture coordinate in the corresponding texture of the image to be rendered, the representative points data and described Polygon carries out image rendering.
2. according to the method described in claim 1, it is characterized in that, the shape and triangle according to image to be rendered is drawn Rule determines that representative points data include:
According to the shape and the triangle drawing rule, the top out data are determined;
According to the top out spatial position coordinate in the top out data, the auxiliary in the auxiliary vertex data is determined Vertex spatial position coordinate, so that the polygon is convex polygon;
According to the top out texture coordinate in the top out data, the auxiliary vertex in the auxiliary vertex data is determined Texture coordinate, so that the corresponding texture sampling region of representative points texture coordinate in the representative points data and the demand The corresponding texture sampling region of vertex texture coordinate is consistent.
3. according to the method described in claim 2, it is characterized in that, spatial position coordinate includes x coordinate, y-coordinate and z coordinate;
The top out spatial position coordinate according in the top out data determines in the auxiliary vertex data Auxiliary top space of points position coordinates include:
By the auxiliary vertex z coordinate in the auxiliary top space of points position coordinates, it is set as the top out spatial position and sits Top out z coordinate in mark;
Respectively by the auxiliary vertex x coordinate and auxiliary vertex y-coordinate in the auxiliary top space of points position coordinates, it is set greater than Or it is equal to corresponding top out x coordinate and corresponding top out y-coordinate in the coordinate of the top out spatial position, and institute It states auxiliary vertex x coordinate and is equal to the corresponding top out x coordinate and corresponding institute when the auxiliary vertex y-coordinate difference State top out y-coordinate.
4. according to the method described in claim 2, it is characterized in that, the top out according in the top out data Texture coordinate determines that the auxiliary vertex texture coordinate in the auxiliary vertex data includes:
One by one by the auxiliary vertex texture coordinate, one of it is set as in the top out texture coordinate texture and sits Mark.
5. according to the method described in claim 2, it is characterized in that, further including:According to the triangle drawing rule, determine extremely The quantity of the corresponding auxiliary vertex data of an auxiliary triangle shape less;
The top out spatial position coordinate according in the top out data determines in the auxiliary vertex data Auxiliary top space of points position coordinates, including:
According to the top out spatial position coordinate in the top out data, in the auxiliary vertex data for determining the quantity Auxiliary top space of points position coordinates;
The top out texture coordinate according in the top out data determines the auxiliary in the auxiliary vertex data Vertex texture coordinate, including:
According to the top out texture coordinate in the top out data, determine auxiliary in the auxiliary vertex data of the quantity Help vertex texture coordinate.
6. according to the method described in claim 5, it is characterized in that, described according to the triangle drawing rule, determination is at least One auxiliary triangle shape it is corresponding auxiliary vertex data quantity include:
According to triangle strip drawing rule GL_TRIANGE_STRIP, the corresponding auxiliary number of vertex of an auxiliary triangle shape is determined According to quantity be 1.
7. according to the method described in claim 1, it is characterized in that, described according to the triangle drawing rule and the target Representative points spatial position coordinate in vertex data, building the corresponding polygon of the representative points data includes:
According to triangle strip drawing rule GL_TRIANGE_STRIP, representative points spatial position coordinate and the target Order of elements of the vertex data in vertical array calls figure drafting function, it is corresponding more to build the representative points data Side shape;
Wherein, order of elements of the representative points data in vertical array is:The auxiliary vertex data is on the vertex Element position in array is arranged in after element position of the top out data in the vertical array.
8. a kind of image rendering device based on OpenGLES, which is characterized in that including:
Representative points data determining module determines target top for the shape and triangle drawing rule according to image to be rendered Point data, the representative points data include the corresponding top out data of the image to be rendered and assist vertex data, often A vertex data includes spatial position coordinate and texture coordinate;
Polygon builds module, for empty according to the representative points in the triangle drawing rule and the representative points data Between position coordinates, build the corresponding polygon of the representative points data;
Image rendering module, for according to the target top in the corresponding texture of the image to be rendered, the representative points data Point texture coordinate and the polygon carry out image rendering.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now image rendering method based on OpenGLES as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The image rendering method based on OpenGLES as described in any in claim 1-7 is realized when being executed by processor.
CN201810508764.XA 2018-05-24 2018-05-24 OpenGLES-based image rendering method, device, equipment and storage medium Active CN108765539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810508764.XA CN108765539B (en) 2018-05-24 2018-05-24 OpenGLES-based image rendering method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810508764.XA CN108765539B (en) 2018-05-24 2018-05-24 OpenGLES-based image rendering method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108765539A true CN108765539A (en) 2018-11-06
CN108765539B CN108765539B (en) 2022-05-13

Family

ID=64005503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810508764.XA Active CN108765539B (en) 2018-05-24 2018-05-24 OpenGLES-based image rendering method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108765539B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698951A (en) * 2018-12-13 2019-04-30 潍坊歌尔电子有限公司 Stereo-picture replay method, device, equipment and storage medium
CN110570504A (en) * 2019-09-06 2019-12-13 北京航天宏图信息技术股份有限公司 closed symbol drawing method and device, electronic equipment and storage medium
CN110599391A (en) * 2019-06-17 2019-12-20 搜游网络科技(北京)有限公司 Graph drawing method and device, computer readable medium and equipment
CN111275806A (en) * 2018-11-20 2020-06-12 贵州师范大学 Parallelization real-time rendering system and method based on points
CN111486854A (en) * 2019-01-29 2020-08-04 阿里巴巴集团控股有限公司 Method, system, equipment and storage medium for drawing roads in electronic map
CN112991214A (en) * 2021-03-18 2021-06-18 成都极米科技股份有限公司 Image processing method, image rendering device and image equipment
CN116597063A (en) * 2023-07-19 2023-08-15 腾讯科技(深圳)有限公司 Picture rendering method, device, equipment and medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354144A (en) * 2011-09-06 2012-02-15 北京联合大学 Method for converting ladder diagram into PLC (Programmable Logic Controller) program command
CN102663789A (en) * 2012-04-19 2012-09-12 上海巨唐信息科技有限公司 Method for performing triangularization on polygon containing holes and islands in two-dimensional plane
CN103700060A (en) * 2013-12-26 2014-04-02 北京大学 Method for rapidly visualizing mass polygons of any shapes
CN105701851A (en) * 2014-11-28 2016-06-22 星际空间(天津)科技发展有限公司 Three-dimensional rendering engine system based on geographical information
CN106710003A (en) * 2017-01-09 2017-05-24 成都品果科技有限公司 Three-dimensional photographing method and system based on OpenGL ES (Open Graphics Library for Embedded System)
KR20170090181A (en) * 2016-01-28 2017-08-07 허상훈 Apparatus and method for realizing augmented reality using fixed sculpture and flow type three-dimensional model
CN107123139A (en) * 2016-02-25 2017-09-01 夏立 2D to 3D facial reconstruction methods based on opengl
CN107274482A (en) * 2017-06-09 2017-10-20 大连海事大学 Marine oil overflow visualization and exchange method based on texture projecting method
CN107564089A (en) * 2017-08-10 2018-01-09 腾讯科技(深圳)有限公司 Three dimensional image processing method, device, storage medium and computer equipment
CN107622519A (en) * 2017-09-15 2018-01-23 东南大学 Threedimensional model hybrid rending system and method based on mobile device
CN107818591A (en) * 2017-11-22 2018-03-20 深圳赛隆文化科技有限公司 A kind of Fusion Modeling Method and system of virtual reality threedimensional model
CN107845061A (en) * 2017-11-10 2018-03-27 暴风集团股份有限公司 Image processing method, device and terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354144A (en) * 2011-09-06 2012-02-15 北京联合大学 Method for converting ladder diagram into PLC (Programmable Logic Controller) program command
CN102663789A (en) * 2012-04-19 2012-09-12 上海巨唐信息科技有限公司 Method for performing triangularization on polygon containing holes and islands in two-dimensional plane
CN103700060A (en) * 2013-12-26 2014-04-02 北京大学 Method for rapidly visualizing mass polygons of any shapes
CN105701851A (en) * 2014-11-28 2016-06-22 星际空间(天津)科技发展有限公司 Three-dimensional rendering engine system based on geographical information
KR20170090181A (en) * 2016-01-28 2017-08-07 허상훈 Apparatus and method for realizing augmented reality using fixed sculpture and flow type three-dimensional model
CN107123139A (en) * 2016-02-25 2017-09-01 夏立 2D to 3D facial reconstruction methods based on opengl
CN106710003A (en) * 2017-01-09 2017-05-24 成都品果科技有限公司 Three-dimensional photographing method and system based on OpenGL ES (Open Graphics Library for Embedded System)
CN107274482A (en) * 2017-06-09 2017-10-20 大连海事大学 Marine oil overflow visualization and exchange method based on texture projecting method
CN107564089A (en) * 2017-08-10 2018-01-09 腾讯科技(深圳)有限公司 Three dimensional image processing method, device, storage medium and computer equipment
CN107622519A (en) * 2017-09-15 2018-01-23 东南大学 Threedimensional model hybrid rending system and method based on mobile device
CN107845061A (en) * 2017-11-10 2018-03-27 暴风集团股份有限公司 Image processing method, device and terminal
CN107818591A (en) * 2017-11-22 2018-03-20 深圳赛隆文化科技有限公司 A kind of Fusion Modeling Method and system of virtual reality threedimensional model

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TERRNCE: "OpenGLES之纹理", 《HTTPS://WWW.JIANSHU.COM/P/1EB0814FE658》 *
程龙 等: "一种纹理映射算法的FPGA实现", 《小型微型计算机系统》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111275806A (en) * 2018-11-20 2020-06-12 贵州师范大学 Parallelization real-time rendering system and method based on points
CN109698951A (en) * 2018-12-13 2019-04-30 潍坊歌尔电子有限公司 Stereo-picture replay method, device, equipment and storage medium
CN109698951B (en) * 2018-12-13 2021-08-24 歌尔光学科技有限公司 Stereoscopic image reproducing method, apparatus, device and storage medium
CN111486854A (en) * 2019-01-29 2020-08-04 阿里巴巴集团控股有限公司 Method, system, equipment and storage medium for drawing roads in electronic map
CN110599391A (en) * 2019-06-17 2019-12-20 搜游网络科技(北京)有限公司 Graph drawing method and device, computer readable medium and equipment
CN110570504A (en) * 2019-09-06 2019-12-13 北京航天宏图信息技术股份有限公司 closed symbol drawing method and device, electronic equipment and storage medium
CN110570504B (en) * 2019-09-06 2020-12-01 北京航天宏图信息技术股份有限公司 Closed symbol drawing method and device, electronic equipment and storage medium
CN112991214A (en) * 2021-03-18 2021-06-18 成都极米科技股份有限公司 Image processing method, image rendering device and image equipment
CN112991214B (en) * 2021-03-18 2024-03-08 成都极米科技股份有限公司 Image processing method, image rendering method, image processing device and shadow equipment
CN116597063A (en) * 2023-07-19 2023-08-15 腾讯科技(深圳)有限公司 Picture rendering method, device, equipment and medium
CN116597063B (en) * 2023-07-19 2023-12-05 腾讯科技(深圳)有限公司 Picture rendering method, device, equipment and medium

Also Published As

Publication number Publication date
CN108765539B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN108765539A (en) Image rendering method, device, equipment and storage medium based on OpenG L ES
US9547577B2 (en) Method and apparatus for determining processor performance
CN107066631A (en) Display methods, device and the electronic equipment of the page
US20190325562A1 (en) Window rendering method and terminal
WO2023197762A1 (en) Image rendering method and apparatus, electronic device, computer-readable storage medium, and computer program product
EP3050605B1 (en) A method for event detection in real-time graphic applications
CN116883228B (en) GPU pixel filling rate measuring method
WO2021248706A1 (en) Depth anti-aliasing data reading method and device, computer program and readable medium
CN111054072A (en) Role model trailing method, device, equipment and storage medium
US10679318B2 (en) Computer systems that are able to reduce memory data flow and graphics processing methods thereof
CN114092590B (en) Electronic device and evaluation method and medium for image rendering performance of electronic device
CN112233159B (en) Texture processing method and device
CN113645484B (en) Data visualization accelerated rendering method based on graphic processor
CN112257134B (en) Model management method and device and electronic equipment
CN109146766B (en) Object selection method and device
JPH09106460A (en) Adjacent relation discriminating method for image parts
CN111866065A (en) Rendering image returning method and device
CN111292392A (en) Unity-based image display method, apparatus, device and medium
CN116485628B (en) Image display method, device and system
CN110852936B (en) Method and device for mixing pictures
CN112233206B (en) Character image generation method, device, equipment and storage medium
CN110489252B (en) Picture processing method and device, computer readable storage medium and computer equipment
CN117033188A (en) Interface designer testing method and device, storage medium and computer equipment
CN117095106A (en) Parameter determination method, device, equipment and storage medium for influencing picture rendering
CN115373663A (en) Image display method, image display 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