CN114170368A - Method and system for rendering quadrilateral wire frame of model and model rendering equipment - Google Patents

Method and system for rendering quadrilateral wire frame of model and model rendering equipment Download PDF

Info

Publication number
CN114170368A
CN114170368A CN202111514450.9A CN202111514450A CN114170368A CN 114170368 A CN114170368 A CN 114170368A CN 202111514450 A CN202111514450 A CN 202111514450A CN 114170368 A CN114170368 A CN 114170368A
Authority
CN
China
Prior art keywords
position information
wire frame
rendering
quadrilateral
coordinate system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111514450.9A
Other languages
Chinese (zh)
Inventor
苏琦
侯大海
范海军
罗涛
吴迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202111514450.9A priority Critical patent/CN114170368A/en
Publication of CN114170368A publication Critical patent/CN114170368A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • G06T3/06
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods

Abstract

The application discloses a method and a system for rendering a quadrilateral wire frame of a model and model rendering equipment. The method for rendering the quadrilateral wire frame of the model comprises the following steps: acquiring UV position information of an object in a UV coordinate system; obtaining target UV position information from the UV position information, wherein the target UV position information is UV position information of a quadrangular wire frame of the object; mapping the target UV position information into a two-dimensional coordinate system; and obtaining a color space value of the object, and rendering a quadrilateral wire frame of the object based on the mapping relation of the color space value in the two-dimensional coordinate system. According to the embodiment of the application, the consumption of operation resources, the occupation of a video memory and the like in the display process of the three-dimensional scene environment can be effectively reduced, and the performance of the display terminal is improved.

Description

Method and system for rendering quadrilateral wire frame of model and model rendering equipment
Technical Field
The application relates to the technical field of image processing, in particular to a method and a system for rendering a quadrilateral wire frame of a model and model rendering equipment.
Background
When an object is displayed in a three-dimensional scene, the polygonal wire frame rendering requirement of a Polygon model of the object is more and more, and in the related technology, the wire frame model of the object is reconstructed, and then the contents such as points, lines, surfaces, light and shadow information of the polygonal wire frame model are rendered through an engine to realize the wire frame effect. There are the following disadvantages: data information of a large number of wire frame models needs to be calculated in real time, a large number of caches are generated in the calculation process, most of the performance of a central processing unit is occupied, and finally the performance of a display terminal is greatly reduced.
Disclosure of Invention
In view of the above defects or shortcomings in the prior art, it is desirable to provide a rendering method and system for a quadrilateral wire frame of a model, and a model rendering device, which can effectively reduce the consumption of computational resources and the occupation of video memory and the like in the display process of a three-dimensional scene environment, and improve the performance of a display terminal.
In a first aspect, an embodiment of the present application provides a method for rendering a quadrilateral wire frame of a model, including:
acquiring UV position information of an object in a UV coordinate system;
obtaining target UV position information from the UV position information, wherein the target UV position information is UV position information of a quadrangular wire frame of the object;
mapping the target UV position information into a two-dimensional coordinate system;
and obtaining a color space value of the object, and rendering a quadrilateral wire frame of the object based on the mapping relation of the color space value in the two-dimensional coordinate system.
In some examples, the obtaining target UV location information from the UV location information comprises:
and obtaining UV position information on the quadrangular wire frame based on the type of the mesh vertex information of the object, and taking the UV position information on the quadrangular wire frame as the target UV position information.
In some examples, the obtaining UV position information on the quadrangular wire frame based on the type of the mesh vertex information of the object and using the UV position information on the quadrangular wire frame as the target UV position information includes:
obtaining mesh vertex information of the object, and marking and bridging the mesh vertices to obtain a plurality of four-sided surfaces, wherein the mesh vertex information on the four-sided surfaces is defined as a first type;
and mapping the grid vertex corresponding to the first type into the two-dimensional coordinate system to obtain the target UV position information.
In some examples, the mapping the target UV location information into a two-dimensional coordinate system includes:
acquiring vector values of the target UV position information in the X-axis direction and the Y-axis direction;
obtaining the offset between the quadrilateral wire frame and a standard quadrilateral wire frame based on the vector value;
and mapping the standard quadrilateral wire frame into the two-dimensional coordinate system based on the offset.
In some examples, the obtaining a color space value of the object and rendering a quadrangular wire frame of the object based on a mapping relation of the color space value in the two-dimensional coordinate system includes:
acquiring a color space value of the object, and establishing a mapping relation between the color space value and a four-dimensional vector group, wherein the four-dimensional vector group is determined by mapping the target UV position information to a position in the two-dimensional coordinate system;
and rendering the quadrilateral wire frame of the object based on the mapping relation between the color space value and the four-dimensional vector group.
In some examples, the acquiring UV position information of the object in the UV coordinate system includes:
acquiring a UV coordinate system of an object;
obtaining UV position information of the object on any channel from the UV coordinate system.
In a second aspect, an embodiment of the present application provides a rendering system for a quadrilateral wire frame of a model, including:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring UV position information of an object in a UV coordinate system, and the UV position information is UV position information of any channel;
the quadrilateral wire frame determining module is used for obtaining target UV position information from the UV position information;
the mapping module is used for mapping the target UV position information into a two-dimensional coordinate system;
and the rendering module is used for obtaining the color space value of the object and rendering the quadrilateral wire frame of the object based on the mapping relation of the color space value in the two-dimensional coordinate system.
In some examples, the quadrilateral wire frame determination module is specifically configured to:
and obtaining UV position information on the quadrangular wire frame based on the type of the mesh vertex information of the object, and taking the UV position information on the quadrangular wire frame as the target UV position information.
In some examples, the mapping module is specifically configured to:
acquiring vector values of the target UV position information in the X-axis direction and the Y-axis direction;
obtaining the offset between the quadrilateral wire frame and a standard quadrilateral wire frame based on the vector value;
and mapping the standard quadrilateral wire frame into the two-dimensional coordinate system based on the offset.
In some examples, the rendering module is specifically configured to:
acquiring a color space value of the object, and establishing a mapping relation between the color space value and a four-dimensional vector group, wherein the four-dimensional vector group is determined by mapping the target UV position information to a position in the two-dimensional coordinate system;
and rendering the quadrilateral wire frame of the object based on the mapping relation between the color space value and the four-dimensional vector group.
In a third aspect, an embodiment of the present application provides a model rendering device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor is configured to implement the rendering method of the quadrangular wire frame of the model according to the first aspect when executing the program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, the computer program being used for implementing the rendering method of the quadrangular wire frame of the model according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product having a computer program stored thereon, the computer program being configured to implement the method for rendering a quadrangular wire frame of a model as described in the first aspect above.
According to the rendering method and system for the quadrilateral wire frame of the model and the model rendering device, the UV position information of the quadrilateral wire frame of the object is firstly acquired from the UV coordinate system and is mapped into the two-dimensional coordinate system, then the mapping relation between the color space value and the quadrilateral wire frame can be established by acquiring the color space value of the object, and the color rendering of the quadrilateral wire frame is conveniently achieved. Compared with the prior art, the point, line and shadow data of the object do not need to be calculated, so that the consumption of computing resources, the occupation of a display memory and the like in the display process of the three-dimensional scene environment can be effectively reduced, and the performance of the display terminal is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a rendering method of a quadrilateral wire frame of a model according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a sphere object in UV plane space of a rendering method of a quadrilateral wire frame of a model according to an embodiment of the present application;
fig. 3 is a schematic diagram of mesh vertex information of a sphere object in a rendering method of a quadrangular wireframe of a model according to an embodiment of the present application;
FIG. 4 is a diagram illustrating diagonal information of a sphere object in a method for rendering a quadrangular wire frame of a model according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating a triangular surface mapping relationship of a sphere object in a rendering method of a quadrilateral wire frame of a model according to an embodiment of the present application;
FIG. 6 is a block diagram of a system for rendering a quadrilateral wireframe of a model according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a model rendering device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only the portions relevant to the disclosure are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The following describes a rendering method, a system and a model rendering device of a quadrilateral wire frame of a model according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a flowchart of a rendering method of a quadrilateral wire frame of a model according to an embodiment of the present application, and as shown in fig. 1, the rendering method of the quadrilateral wire frame of the model according to an embodiment of the present application includes the following steps:
s101: UV position information of the object in a UV coordinate system is acquired.
Where the UV coordinate system refers to the UV space vector coordinate system and UV is short for U, V texture map coordinates, which define information of the position of each point on the picture, which is associated with the 3D model to determine the position of the surface texture map. UV is to precisely correspond each point on the image to the surface of the model object, and the position of the gap between the points is subjected to image smooth interpolation processing by software.
In one embodiment of the invention, an object generally refers to a Polygon model, namely: the object in the embodiment of the present invention may be a Polygon model with any shape, and the number of models may be multiple or one. Taking a Polygon model as an example, some existing DCC tools such as houdini, maya, max, cinema4D and blender three-dimensional software may be used, and of course, special tools such as Zbrush, Nuke, Kantana, SD and realflow may be used to obtain the UV position information of the object and the mesh vertex information of the object itself, in this example, the UV plane space of the Polygon model is schematically shown in fig. 2, where the mesh vertex information of the sphere is shown in fig. 3.
It should be noted that the UV position information of the object in the UV coordinate system may have UV position information on a plurality of channels, and in an embodiment of the present invention, the UV position information may be UV position information on any one channel, that is: acquiring UV position information of an object in a UV coordinate system typically includes: and acquiring a UV coordinate system of the object, and acquiring UV position information of the object on any channel from the UV coordinate system.
S102: obtaining target UV position information from the UV position information, wherein the target UV position information is UV position information of a quadrangular wire frame of the object.
That is, the target UV position information refers to UV position information of a quadrangular wire frame of the object. Obtaining target UV position information from the UV position information, comprising:
and obtaining UV position information on the quadrangular wire frame based on the type of the mesh vertex information of the object, and taking the UV position information on the quadrangular wire frame as the target UV position information. In this example, obtaining UV position information on the quadrangular wire frame based on the type of the mesh vertex information of the object, and using the UV position information on the quadrangular wire frame as the target UV position information specifically includes: obtaining mesh vertex information of the object, and marking and bridging the mesh vertices to obtain a plurality of four-sided surfaces, wherein the mesh vertex information on the four-sided surfaces is defined as a first type; and mapping the grid vertex corresponding to the first type into the two-dimensional coordinate system to obtain the target UV position information.
That is, the mesh vertex information of the object itself is acquired, the mesh vertices are marked and bridged, the four-side surface is cut, and the four-side surface is cut into 2 standard triangular surfaces, so that the data information of the four-side surface diagonal line of the object is obtained. Then, the mesh vertices are classified, the points on the diagonal lines of the four sides are defined as "N", for example, and the points on the non-diagonal lines are defined as "M", for example, so that all the points of type M can be mapped onto the two-dimensional coordinate system, for example, onto the [0, 1] position in the two-dimensional coordinate system, and the points on the diagonal lines of type N are mapped onto the straight lines of Y ═ X in the two-dimensional coordinate system, thereby obtaining the mapping relation graph of the cut triangular surface in the two-dimensional coordinate system. As shown in fig. 4 and 5, the diagonal information of the 2 standard triangular surfaces obtained by cutting is shown in fig. 4, and the mapping relationship of the cut triangular surfaces in the two-dimensional coordinate system is shown in fig. 5. In this way, target UV position information can be obtained, namely: UV position information of a quadrangular wire frame of four sides.
S103: and mapping the target UV position information into a two-dimensional coordinate system.
In one embodiment of the invention, mapping the target UV location information into a two-dimensional coordinate system comprises: acquiring vector values of the target UV position information in the X-axis direction and the Y-axis direction; obtaining the offset between the quadrilateral wire frame and a standard quadrilateral wire frame based on the vector value; and mapping the standard quadrilateral wire frame into the two-dimensional coordinate system based on the offset.
Specifically, vector values of two axial directions of an X axis and a Y axis in the UV vector space are split and extracted, secondarily edited and remapped into a [0, 1] plane space of a first quadrant in a two-dimensional coordinate system. For example: the vector values of the two axial directions of the X axis and the Y axis are divided into R, G, B, A four floating point values and output by means of component masking, X is defined as 0, Y is defined as an indefinite constant, and [ X, Y ] is defined as an Offset value (namely, an Offset value) of a rectangular UV space to control the length and width value of a rectangular frame (namely, a quadrangular line frame). Remapping vector values in two axes, the X-axis and the Y-axis, of the quadratic edit into a first quadrant of the two-dimensional coordinate system, for example: and performing linear interpolation between the x and y components of the input In Min Max according to the input In value, and outputting the value between the x and y components of the Out Min Max.
In this example, [ X, Y ] is defined as the Offset value of the rectangular UV space to input the size specified by Width and Height, and a rectangle is generated based on the input UV. The generated shape can be Offset or tiled by connecting the Tiling And Offset nodes. Note that to preserve the ability to shift shapes within the UV vector space, the shapes will not repeat if tiled
In the above description, Offset refers to a required Offset amount, In Min Max: input interpolated minimum and maximum values, Out Min Max: and outputting the minimum value and the maximum value of the interpolation.
S104: and obtaining a color space value of the object, and rendering a quadrilateral wire frame of the object based on the mapping relation of the color space value in the two-dimensional coordinate system.
In a specific example, obtaining a color space value of the object, and rendering a quadrangular wire frame of the object based on a mapping relation of the color space value in the two-dimensional coordinate system includes: acquiring a color space value of the object, and establishing a mapping relation between the color space value and a four-dimensional vector group, wherein the four-dimensional vector group is determined by mapping the target UV position information to a position in the two-dimensional coordinate system; and rendering the quadrilateral wire frame of the object based on the mapping relation between the color space value and the four-dimensional vector group. Namely: and acquiring the RGB color space value of the object, and establishing a mapping relation between the RGB color space value and the four-dimensional vector group. For example: a constant vector 4 value is defined in the shader using the Color field. The Color attribute type can be converted through a context menu of the node. The value of the object's own parameters is also considered when generating attributes; the Color node is located in the gamma space or the linear space. Therein, a four-dimensional vector set [ R, G, B, A ] may be defined and mapped to a linear space. The linear space refers to that the result obtained by adding, multiplying and calculating the digitized color and the illumination intensity in the linear space can still be consistent with the real result, and the gamma space refers to that the digitized color and the illumination intensity are subjected to nonlinear processing in the gamma space to obtain proper identification degree.
According to the rendering method of the quadrilateral wire frame of the model, the UV position information of the quadrilateral wire frame of the object is obtained from the UV coordinate system and is mapped into the two-dimensional coordinate system, then the mapping relation between the color space value and the quadrilateral wire frame can be established by obtaining the color space value of the object, and the color rendering of the quadrilateral wire frame is conveniently realized. Compared with the prior art, the point, line and shadow data of the object do not need to be calculated, so that the consumption of computing resources, the occupation of a display memory and the like in the display process of the three-dimensional scene environment can be effectively reduced, and the performance of the display terminal is improved.
On the other hand, as shown in fig. 6, an embodiment of the present application provides a rendering system for a quadrilateral wire frame of a model, including: an obtaining module 610, a quadrilateral wireframe determining module 620, a mapping module 630 and a rendering module 640, wherein:
the acquiring module 610 is configured to acquire UV position information of an object in a UV coordinate system, where the UV position information is UV position information of any channel;
a quadrilateral wire frame determining module 620, configured to obtain target UV position information from the UV position information;
a mapping module 630, configured to map the target UV location information into a two-dimensional coordinate system;
and the rendering module 640 is configured to obtain a color space value of the object, and render a quadrilateral wire frame of the object based on a mapping relationship of the color space value in the two-dimensional coordinate system.
In an embodiment of the present invention, the quadrilateral wire frame determining module 620 is specifically configured to:
and obtaining UV position information on the quadrangular wire frame based on the type of the mesh vertex information of the object, and taking the UV position information on the quadrangular wire frame as the target UV position information.
In an embodiment of the present invention, the mapping module 630 is specifically configured to:
acquiring vector values of the target UV position information in the X-axis direction and the Y-axis direction;
obtaining the offset between the quadrilateral wire frame and a standard quadrilateral wire frame based on the vector value;
and mapping the standard quadrilateral wire frame into the two-dimensional coordinate system based on the offset.
In an embodiment of the present invention, the rendering module 640 is specifically configured to:
acquiring a color space value of the object, and establishing a mapping relation between the color space value and a four-dimensional vector group, wherein the four-dimensional vector group is determined by mapping the target UV position information to a position in the two-dimensional coordinate system;
and rendering the quadrilateral wire frame of the object based on the mapping relation between the color space value and the four-dimensional vector group.
According to the rendering system of the quadrilateral wire frame of the model, the UV position information of the quadrilateral wire frame of the object is obtained from the UV coordinate system and is mapped into the two-dimensional coordinate system, then the mapping relation between the color space value and the quadrilateral wire frame can be established by obtaining the color space value of the object, and the color rendering of the quadrilateral wire frame is conveniently realized. Compared with the prior art, the point, line and shadow data of the object do not need to be calculated, so that the consumption of computing resources, the occupation of a display memory and the like in the display process of the three-dimensional scene environment can be effectively reduced, and the performance of the display terminal is improved.
It should be noted that a specific implementation manner of the rendering system of the quadrilateral wire frame of the model in the embodiment of the present application is similar to a specific implementation manner of the rendering method of the quadrilateral wire frame of the model in the embodiment of the present application, and please refer to the description of the method part specifically, which is not described herein again.
Fig. 7 is a schematic structural diagram of a model rendering device according to an embodiment of the present application.
As shown in fig. 7, the model rendering apparatus 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 602 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the model rendering apparatus 600 are also stored. The CPU 601, ROM602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The above-described functions defined in the model rendering device of the present application are executed when the computer program is executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor model rendering device, apparatus, or a combination of any of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution model rendering device, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution model rendering device, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of processing receiving devices, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based model rendering devices that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor for implementing a rendering method of a quadrangular wireframe of a model when executing the program: acquiring UV position information of an object in a UV coordinate system; obtaining target UV position information from the UV position information, wherein the target UV position information is UV position information of a quadrangular wire frame of the object; mapping the target UV position information into a two-dimensional coordinate system; and obtaining a color space value of the object, and rendering a quadrilateral wire frame of the object based on the mapping relation of the color space value in the two-dimensional coordinate system.
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the model rendering apparatus described in the above embodiments; or may exist separately without being assembled into the model rendering device. The computer-readable storage medium stores one or more programs that, when executed by one or more processors, perform a method for rendering a quadrangular wire frame described in the model of the present application: acquiring UV position information of an object in a UV coordinate system; obtaining target UV position information from the UV position information, wherein the target UV position information is UV position information of a quadrangular wire frame of the object; mapping the target UV position information into a two-dimensional coordinate system; and obtaining a color space value of the object, and rendering a quadrilateral wire frame of the object based on the mapping relation of the color space value in the two-dimensional coordinate system.
As another aspect, the present application also provides a computer program product, which may be included in the model rendering apparatus described in the above embodiments; or may exist separately without being assembled into the model rendering device. The computer program product stores one or more programs that, when executed by one or more processors, perform the method for rendering a quadrangular wire frame described in the model of the present application: acquiring UV position information of an object in a UV coordinate system; obtaining target UV position information from the UV position information, wherein the target UV position information is UV position information of a quadrangular wire frame of the object; mapping the target UV position information into a two-dimensional coordinate system; and obtaining a color space value of the object, and rendering a quadrilateral wire frame of the object based on the mapping relation of the color space value in the two-dimensional coordinate system.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (13)

1. A method for rendering a quadrilateral wireframe of a model, comprising:
acquiring UV position information of an object in a UV coordinate system;
obtaining target UV position information from the UV position information, wherein the target UV position information is UV position information of a quadrangular wire frame of the object;
mapping the target UV position information into a two-dimensional coordinate system;
and obtaining a color space value of the object, and rendering a quadrilateral wire frame of the object based on the mapping relation of the color space value in the two-dimensional coordinate system.
2. The method for rendering a quadrilateral wire frame of a model according to claim 1, wherein the obtaining target UV position information from the UV position information comprises:
and obtaining UV position information on the quadrangular wire frame based on the type of the mesh vertex information of the object, and taking the UV position information on the quadrangular wire frame as the target UV position information.
3. The method for rendering a quadrangular wire frame of a model according to claim 2, wherein the obtaining UV position information on the quadrangular wire frame based on the type of mesh vertex information of the object and using the UV position information on the quadrangular wire frame as the target UV position information includes:
obtaining mesh vertex information of the object, and marking and bridging the mesh vertices to obtain a plurality of four-sided surfaces, wherein the mesh vertex information on the four-sided surfaces is defined as a first type;
and mapping the grid vertex corresponding to the first type into the two-dimensional coordinate system to obtain the target UV position information.
4. The method of rendering a quadrilateral wireframe of a model according to claim 1, wherein said mapping the target UV position information into a two-dimensional coordinate system comprises:
acquiring vector values of the target UV position information in the X-axis direction and the Y-axis direction;
obtaining the offset between the quadrilateral wire frame and a standard quadrilateral wire frame based on the vector value;
and mapping the standard quadrilateral wire frame into the two-dimensional coordinate system based on the offset.
5. The method for rendering a quadrangular wire frame of a model according to claim 1, wherein the obtaining a color space value of the object and rendering the quadrangular wire frame of the object based on a mapping relation of the color space value in the two-dimensional coordinate system comprises:
acquiring a color space value of the object, and establishing a mapping relation between the color space value and a four-dimensional vector group, wherein the four-dimensional vector group is determined by mapping the target UV position information to a position in the two-dimensional coordinate system;
and rendering the quadrilateral wire frame of the object based on the mapping relation between the color space value and the four-dimensional vector group.
6. The method for rendering a quadrangular wireframe of a model according to any one of claims 1 to 5, wherein said obtaining UV position information of an object in a UV coordinate system comprises:
acquiring a UV coordinate system of an object;
obtaining UV position information of the object on any channel from the UV coordinate system.
7. A system for rendering a quadrilateral wireframe of a model, comprising:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring UV position information of an object in a UV coordinate system, and the UV position information is UV position information of any channel;
the quadrilateral wire frame determining module is used for obtaining target UV position information from the UV position information;
the mapping module is used for mapping the target UV position information into a two-dimensional coordinate system;
and the rendering module is used for obtaining the color space value of the object and rendering the quadrilateral wire frame of the object based on the mapping relation of the color space value in the two-dimensional coordinate system.
8. The system for rendering a quadrilateral wire frame of a model according to claim 7, wherein the quadrilateral wire frame determination module is specifically configured to:
and obtaining UV position information on the quadrangular wire frame based on the type of the mesh vertex information of the object, and taking the UV position information on the quadrangular wire frame as the target UV position information.
9. The system for rendering a quadrilateral wireframe of a model according to claim 7, wherein the mapping module is specifically configured to:
acquiring vector values of the target UV position information in the X-axis direction and the Y-axis direction;
obtaining the offset between the quadrilateral wire frame and a standard quadrilateral wire frame based on the vector value;
and mapping the standard quadrilateral wire frame into the two-dimensional coordinate system based on the offset.
10. The system for rendering a quadrilateral wireframe of a model according to claim 7, wherein the rendering module is specifically configured to:
acquiring a color space value of the object, and establishing a mapping relation between the color space value and a four-dimensional vector group, wherein the four-dimensional vector group is determined by mapping the target UV position information to a position in the two-dimensional coordinate system;
and rendering the quadrilateral wire frame of the object based on the mapping relation between the color space value and the four-dimensional vector group.
11. A model rendering apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor being configured to implement a method of rendering a quadrilateral wire frame of a model according to any one of claims 1 to 6 when the program is executed.
12. A computer-readable storage medium on which a computer program for implementing a rendering method of a quadrangular wire frame of a model according to any one of claims 1 to 6 is stored.
13. A computer program product, characterized in that a computer program is stored thereon for implementing a method of rendering a quadrangular wireframe of a model according to any one of claims 1-6.
CN202111514450.9A 2021-12-10 2021-12-10 Method and system for rendering quadrilateral wire frame of model and model rendering equipment Pending CN114170368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111514450.9A CN114170368A (en) 2021-12-10 2021-12-10 Method and system for rendering quadrilateral wire frame of model and model rendering equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111514450.9A CN114170368A (en) 2021-12-10 2021-12-10 Method and system for rendering quadrilateral wire frame of model and model rendering equipment

Publications (1)

Publication Number Publication Date
CN114170368A true CN114170368A (en) 2022-03-11

Family

ID=80485838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111514450.9A Pending CN114170368A (en) 2021-12-10 2021-12-10 Method and system for rendering quadrilateral wire frame of model and model rendering equipment

Country Status (1)

Country Link
CN (1) CN114170368A (en)

Similar Documents

Publication Publication Date Title
US8115767B2 (en) Computer graphics shadow volumes using hierarchical occlusion culling
CN107154063B (en) Method and device for setting shape of image display area
US10049486B2 (en) Sparse rasterization
KR101635334B1 (en) Surface tesselation by symmetric edge splitting
JPH04222074A (en) Inclination computing method for texture map
US10593096B2 (en) Graphics processing employing cube map texturing
JP2001052194A (en) Reconfiguration for curved surface
JP2011238213A (en) Hierarchical bounding of displaced parametric curves
US10733793B2 (en) Indexed value blending for use in image rendering
US11087511B1 (en) Automated vectorization of a raster image using a gradient mesh with arbitrary topology
JP2007317204A (en) Method and apparatus for three-dimensional graphic processing performing far and near correction
US11217002B2 (en) Method for efficiently computing and specifying level sets for use in computer simulations, computer graphics and other purposes
US20150015574A1 (en) System, method, and computer program product for optimizing a three-dimensional texture workflow
US10347034B2 (en) Out-of-core point rendering with dynamic shapes
CN115375820B (en) Determination method, application method, device and equipment for vertex environment light shielding value
CN116681860A (en) Feature line rendering method and device, electronic equipment and storage medium
CN114170368A (en) Method and system for rendering quadrilateral wire frame of model and model rendering equipment
CN115019021A (en) Image processing method, device, equipment and storage medium
KR100908123B1 (en) 3D graphics processing method and apparatus for performing perspective correction
CN111739074B (en) Scene multi-point light source rendering method and device
KR20190013146A (en) Rendering optimization method for real-time mass processing of 3d objects in mobile environment
CN112734896B (en) Environment shielding rendering method and device, storage medium and electronic equipment
CN116524102A (en) Cartoon second-order direct illumination rendering method, device and system
CN117808951A (en) Three-dimensional scene updating method and device, storage medium and electronic equipment
CN117788641A (en) Entity drawing method, entity drawing 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