US20080225046A1 - Three dimensional image processing - Google Patents

Three dimensional image processing Download PDF

Info

Publication number
US20080225046A1
US20080225046A1 US12/130,246 US13024608A US2008225046A1 US 20080225046 A1 US20080225046 A1 US 20080225046A1 US 13024608 A US13024608 A US 13024608A US 2008225046 A1 US2008225046 A1 US 2008225046A1
Authority
US
United States
Prior art keywords
triangle
symmetry
planes
dimensional
triangles
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.)
Abandoned
Application number
US12/130,246
Inventor
Kari Pulli
Asger Strandtoft
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.)
Nokia Oyj
Original Assignee
Nokia Oyj
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 Nokia Oyj filed Critical Nokia Oyj
Priority to US12/130,246 priority Critical patent/US20080225046A1/en
Publication of US20080225046A1 publication Critical patent/US20080225046A1/en
Abandoned 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/40Hidden part removal

Definitions

  • the disclosed embodiments relate to a method of preparing object files on a first device that are used for rendering two-dimensional images of three-dimensional objects on a second device.
  • the object files contain data defining polygon primitives representing at least one three-dimensional object.
  • the data in the object file is rearranged for determining a rendering order in which said polygon primitives may be rendered in which the hidden surface problem is solved.
  • the invention relates further to a mobile communication terminal comprising image processing means for rendering images of three-dimensional objects on a display.
  • the present invention relates also to a method of rendering two-dimensional images of three-dimensional objects by processing data defining polygon primitives with a reduced amount of vertex data.
  • the invention further relates to a mobile communication terminal comprising image processing means for rendering images of three-dimensional objects on a display capable of displaying an image on the basis of a reduced amount of vertex data.
  • animated three-dimensional graphics were exclusively applied in devices with a relatively high processing power such as, for instance, in generating displays of the appearance of an object from several angles on a workstation or a PC during computer aided design and computer aided manufacture, in electronic video arcade games, or in driving- or flight simulators.
  • Three-dimensional graphics now also find their way into devices with a relatively low processing power such as mobile phones, personal digital assistants (PDA) and hand-held video games.
  • PDA personal digital assistants
  • the speed at which the apparatus can perform calculations, coupled with the minimum acceptable frame rate, provides a limit to the number of calculations which can be performed to generate each image.
  • Image synthesis is usually performed by representing an object as a number of polygon primitives defined by vertices, projecting the polygon primitives onto an image plane, and then processing each polygon primitive in order to define, for each pixel of the projected polygon, the pixel color.
  • a major problem in rendering three-dimensional graphics is the removal of hidden surfaces. From the viewpoint, the nearer surfaces should obscure the further parts.
  • a common approach is to test, when a given pixel is rendered, whether it lies in front (and therefore occludes) or behind, (and therefore is occluded by) the pixel (if any) which is already within the image buffer. Accordingly, each pixel needs to be assigned a depth value.
  • This technique is referred to as the “z-buffer algorithm”. This technique is a technically simple approach, but it is resource intensive in terms of storage and processing power since it involves a large number of comparison operations (on the order of the number of pixels in the image buffer), for real time operation.
  • the “Painter's Algorithm” examines the coordinates of the vertices of the polygons, and ranks the polygons into order of decreasing distance from the viewpoint. The polygons are then rendered in order of decreasing distance, so that the pixels of the most distant polygons are first written into the image buffer, and are overwritten as necessary by those of nearer polygons.
  • this technique requires the sorting operation of all polygons to be repeated each time the viewpoint changes, and consequently, requires a large amount of computation in real time.
  • polygons are viewed as having two faces; one face directed inwardly towards the interior of the object (the “back” face) and one face directed outwardly of the object (the “front” face).
  • the “back” face of a polygon is never visible; only polygons which face forwards therefore need to be displayed. Accordingly, a decision is made prior to rendering whether, from the viewing angle concerned, a given polygon is showing its front (outer) or back (inner) face, and only those polygons which are facing forward are rendered. This method of back face culling reduces the problem of hidden surface removal, but does not eliminate the problem altogether.
  • BSP Binary space partitioning
  • a pre-processing stage is performed in which a tree-structured model is built in memory, each node in the tree being a polygon on a space partitioning plane and pointing to successor and predecessor nodes (if any).
  • One of the nodes contains a tree consisting of polygons strictly on one side of the partitioning plane, while the other node contains the rest.
  • Another known technique is polygon stripping i.e. to convert independent triangles or polygons into triangle strips.
  • a first triangle is identified with an either clockwise or counterclockwise winding, and then all subsequent triangles in the strip will alternate winding.
  • the strip is continued until the triangle strip runs off the edge of the object or runs into a polygon that is already a part of another strip.
  • the aspects of the disclosed embodiment to provide a method of preparing on a first device object files used for rendering two-dimensional images of three-dimensional objects on a second device to determine a rendering order in which said triangle primitives may be rendered for creating a two-dimensional image in which the hidden surfaces are removed, which allows real time three-dimensional image rendering on devices with relatively low processing power.
  • the disclosed embodiments are directed to providing a method of preparing object files on a first device that are used for rendering two-dimensional images of three-dimensional objects on a second device by processing object files containing data defining triangle primitives representing at least one three-dimensional object to determine a rendering order in which said triangle primitives may be rendered for creating a two-dimensional image in which the hidden surfaces are removed comprising the steps of:
  • step c) adding the selected triangle to the strip and going back to step c) if the selected triangle cannot potentially occlude any of the unprocessed triangles
  • step b) going back to step b) to start a new triangle strip if the selected triangle can potentially occlude any of the unprocessed triangles
  • the object files can be reorganized in triangle strips that can be displayed in the order in which they were created whilst the hidden surface problem is solved, i.e. the device that receives the thus prepared object files can simply display the triangle strips and the triangles in the order in which they are stored in the object file without the need for calculations to solve the hidden surface problem.
  • the number of calculations to be made by the image-processing device is thus significantly reduced by pre-sorting the vertex data such that the rendering order of the triangle primitives in the triangle strips is correct, i.e. the hidden surfaces are correctly removed, independent of the viewing direction and the camera position.
  • the second device only needs to calculate the rendering order of the objects and then, for each frame of animation, to render the front facing triangle primitives of the objects in the order that they are stored in the object files.
  • a large reduction in the amount of calculations that are required can be obtained as no comparison of the pixel's previous Z-value is required.
  • Step b) of the method preferably comprises a heuristic search to identify those triangles for starting a strip that potentially allow long strips to be formed, preferably by selecting triangles that do not have many unprocessed neighbors.
  • the method preferably comprises on said first device further the step of:
  • the object is preferably divided by using a partitioning plane, with which at least one of the unprocessed triangles remains on a different side than the unprocessed triangles it can potentially occlude.
  • a plane of an arbitrary unprocessed triangle is used and the triangle is associated on the outward side of the splitting plane, thus leaving all the polygons that it may cover on the other side.
  • the method preferably comprises further the step of determining the front side and the triangle planes of the triangles in the object file wherein the determination if a selected triangle can occlude any of the unprocessed triangles comprises the steps of determining whether:
  • the selected triangle has one or more vertices on the front side of the plane of any of the unprocessed triangles
  • step g determines whether any of the unprocessed triangles positively identified in step g) have one or more vertices on the backside of the plane of the selected triangle.
  • the method may further comprise on said first device the following steps before step b)
  • the method preferably comprises:
  • the first device preferably comprises a higher performance image processing means, such as used in a PC or a workstation and said second device preferably comprises a lower performance processing means such as used in a mobile communication terminal or a PDA.
  • the calculation intensive part of the image rendering process can be carried out in advance on a device with a high processing power such as a workstation or a PC, and the animated three-dimensional graphics can be rendered in real time on a device with relatively low processing power such as a mobile phone, a PDA or a handheld video game.
  • a method for displaying object files obtained by the method above on the second device comprises:
  • determining the object order preferably using the painter's algorithm and displaying said object or objects on said second device.
  • the method further comprises the step of:
  • the method may further comprise the steps of:
  • the triangles can be displayed directly as they are stored in the object file, independent of the viewing direction and camera position, without the second device needing to carry out calculations to resolve the hidden surface problem.
  • the second device comprises a lower performance processing means such as used in a mobile communication terminal or a PDA, and most preferably the second device is a mobile phone.
  • the image rendering process is preferably carried out by the main CPU of the device, and all the further image rendering means is software embedded.
  • a mobile communication terminal capable of displaying real-time rendered animated three-dimensional graphics.
  • a mobile communication terminal comprises:
  • the triangles in the triangle strips can be displayed in the same order as they were added to the strip, which preferably corresponds to the order in which they are stored in the triangle strips.
  • a rendering order of the objects is determined using a binary space partitioning method.
  • the rendering order of the object files is sorted based on the current viewing direction and position so far away objects are rendered first.
  • the mobile communication terminal may comprise means for culling all triangles facing backwards relative to the viewing direction.
  • the mobile communication terminal may further comprise
  • the image rendering process is preferably carried out by the main CPU of the device, and all further image rendering means is software embedded.
  • a method comprises on said first device:
  • planes of symmetry that are not perpendicular with one of the X-, Y- or Z-axis of the object coordinate system are ignored.
  • the first device may comprise higher performance image processing means, such as used in a PC or a workstation and said second device may comprise lower performance processing means such as used in a mobile communication terminal, a PDA or a handheld video game.
  • the second terminal is preferably a mobile phone.
  • a mobile communication terminal capable of displaying two-dimensional images of three-dimensional objects with a reduced amount of calculations.
  • a mobile communication terminal comprises image processing means for rendering images of three-dimensional objects on a display, means for storing vertex data, means for storing planes of symmetry data and means for mirroring vertex data in a symmetry plane.
  • FIG. 1 is a diagram illustrating a front face of a triangle
  • FIG. 2 is a flow chart showing two stages of creating object files of three-dimensional objects on a first device
  • FIG. 3 is a detailed flow chart showing the steps for creating objects files with reduced vertex data by removing mirrored vertices
  • FIG. 4 is a detailed flow chart showing the steps for creating triangle strips on the first device
  • FIG. 5 is a detailed flowchart illustrating the process to determine if a selected triangle can potentially occlude an unprocessed triangle
  • FIG. 6 is a flow chart showing the steps for displaying the three-dimensional objects as a two-dimensional image on a second device
  • FIG. 7 is a detailed flow chart showing the steps for restoring the triangles removed in the steps shown in FIG. 3 .
  • FIG. 8 is a block diagram of a mobile phone.
  • Three-dimensional graphics systems provide a virtual three-dimensional (3-D) environment in which objects, light sources and a viewing position may be manipulated within a notional three-dimensional space.
  • the viewing position provides a window into the virtual three-dimensional world, often referred to as “world space”.
  • This world space itself only exists as data defining three-dimensional coordinates and other variables, such as color and reflectivity.
  • the two-dimensional image presented at the notional window must be created by processing the three-dimensional image data, in a procedure known as rendering.
  • rendering consists of allocating picture element values to two-dimensional regions of the image. Therefore, these coordinate points are converted into notional regions by effectively connecting the points by straight lines to provide a three-dimensional net of flat, two-dimensional triangles, defined by a number of vertices.
  • the present invention will be described by using triangles, but the reader skilled in the art will appreciate that the techniques described also apply to other flat polygons.
  • the picture element values are generated on a triangle-by-triangle basis, until the whole object has been tessellated, i.e. broken down into triangles.
  • the vertex data thus created is stored in an original order in the object file.
  • the triangles are saved in a manner that defines a normal vector identifying the front face (solid objects always have a front face and a back face, the latter never being visible) of the triangles.
  • the “front” face is defined by vector normal to the surface of the triangle, with the direction of the vector (and hence the direction of the front face) being determined by a right-hand (or, optionally, left-hand) rule traversing the three vertices of the triangle in an order determined by the manner in which they are stored in the triangle's data structure. For instance, in FIG. 1 , the three points 22 , 23 , 24 determine the direction of the normal vector 25 , and hence the side of the triangle 21 that is to be defined as the front face 26 .
  • the normal vector 25 is e.g. determined by the cross product of two vectors along the edges of the triangle. The above steps are all carried out on a workstation, PC or similar high performance computer.
  • the picture element values generated by the rendering process are saved on the workstation.
  • the triangles are sorted in an order which ensures that occluded triangles are rendered before the triangles which occlude them.
  • Real-time sorting of the triangle order is unfeasible on e.g. a mobile phone with relatively low performance hardware for processing the data.
  • this problem was solved partially by preparing a predetermined rendering order, which could, however, change as changes are made to the viewing direction or the location of the viewpoint. As will be shown here, the technique according to the invention overcomes this problem.
  • object as used here includes single objects and also a collection of several separate objects, as long as the objects in that collection do not move with respect to each other during the animation, e.g. a table and a flower pot and a chair next to the table can be considered as one object, if they don't move with respect to each other. If in the course of animation the chair moves, it can't be the same object as the desk.
  • FIG. 2 The stages for providing a three-dimensional graphics environment on a workstation or other powerful computer (not shown) are shown in FIG. 2 .
  • data defining the objects is prepared.
  • a first object is modeled.
  • a second object is modeled and so on until at step 45 an Nth object is modeled.
  • Each object is modeled with reference to its own set of coordinates, often referred to as its own modeling space.
  • each set of object data defines a shape, and the data required to reproduce said shape in a graphics environment is stored in an object file in the form of vertex data.
  • the next stage consists of steps 50 , 52 , 55 and 60 , which form part of the pre-processing stage.
  • an object file is read which defines the shape of the object in terms of triangle vertices and triangle surface characteristics.
  • triangle strips are created by processing the data defined by the object file.
  • the strips are created in such a way that the hidden surface problem is solved for all possible viewing directions, i.e. the object file is made hidden surface removal tolerant (HSR tolerant), so that when the strips have been created no care needs to be taken to solve the hidden surface problem, independent of viewing direction and camera position.
  • HSR tolerant hidden surface removal tolerant
  • step 55 it is determined whether the objects have any planes of symmetry (this information is usually already available from the object file after the modeling procedure). All triangles at one side of a plane of symmetry are removed and, if not present already, the plane of symmetry is stored in the object file.
  • steps 35 to 60 are performed on a first device, typically a workstation with powerful graphics processing means, and once all object files have been processed they can be transferred to a second device for display, a device with lesser graphics processing power, which is typically a mobile terminal, in the present embodiment a mobile phone 1 .
  • Step 52 of FIG. 2 is shown in more detail in the flowchart in FIG. 4 .
  • step 76 the vertex data of all the triangles 1 -n of the object are read, starting with the number of vertices, the number of triangles, the vertex data and the triangle data. Based on the vertex data the triangle planes for each of the triangles 1 -n are calculated one after another in step 77 .
  • step 78 a new triangle strip is started by selecting a triangle that does not occlude any of the unprocessed triangles.
  • the selection of the first triangle may be done in a greedy style by simply choosing the first triangle in the set of unprocessed triangles.
  • heuristic search techniques can be used to identify those triangles that potentially occlude the least number of remaining unprocessed triangles, e.g. by selecting triangles that do not have many unprocessed neighbors. Starting a new strip with thus identified triangles will result in fewer and longer triangles strips per object.
  • the triangle selected to start the strip with is then compared with the triangles in the set of unprocessed triangles to determine if the selected triangle can potentially occlude any of the unprocessed triangles. A procedure for carrying out this determination is described below with reference to FIG. 5 .
  • step 80 a neighboring triangle to be added to the triangle strip is selected.
  • the selected triangle is then compared in step 81 with the triangles in the set of unprocessed triangles to determine if the selected triangle can potentially occlude any of the unprocessed triangles. The procedure for carrying out this determination is described further below with reference to FIG. 5 .
  • the selected triangle is added to the strip in step 85 if the determination in step 81 is negative.
  • the selected triangle is then removed from the set of unprocessed triangles in step 86 .
  • step 87 the question is asked if the set with unprocessed triangles is empty. All triangles in the object file have been processed if the question asked in step 87 is answered in the positive, and control is given to step 60 ( FIG. 2 ). If the question asked in step 87 is answered in the negative, control is given to step 80 to select a new neighboring triangle to add to the triangle strip.
  • step 83 a check for a conflict is run in step 83 , i.e. check if a circle exists such as when a first triangle can potentially occlude a second triangle, the second triangle can potentially occlude a third triangle and the third triangle can potentially occlude the first triangle. Thus it is impossible to create an object file in which the rendering order is correct for all possible viewing directions.
  • a new triangle strip is started in step 78 . If the check for a conflict is answered in the positive, the object is divided using binary space partitioning techniques, e.g. by dividing the object into two over the triangle surface of the last selected triangle. Control is then given to step 52 ( FIG.
  • the conflict check is performed by determining if any triangle can be selected such that it doesn't potentially cover any other unprocessed triangle. If this determination is answered in the negative, the object needs to be divided.
  • a selected triangle can be compared with the unprocessed triangles starting with step 91 , in which the value for a parameter X is set to 1 and the value for a parameter Y is set equal to the number of triangles in the set of unprocessed triangles.
  • step 92 the question is asked if the selected triangle has one or more vertices in front of the plane of triangle X in the set of unprocessed triangles. If the question asked in step 92 is answered in the positive, the question is asked in step 93 if triangle X has one or more vertices behind the plane of the selected triangle. If the question asked in step 93 is also answered positive control is given to step 83 ( FIG. 4 ).
  • step 92 or 93 If the question asked in step 92 or 93 is answered in the negative, the value of parameter X is increased with one in step 94 and in step 95 the question is asked if the value of parameter X is equal to the value of parameter Y.
  • step 95 When the question asked in step 95 is answered in the negative, the procedure of steps 92 , 93 , 94 and 95 is repeated until the question asked in step 95 is answered in the positive. Then control is given to step 85 to add the selected triangle to the triangle strip.
  • the above procedure is repeated until the set with unprocessed triangles is empty, and the object file is in a format in which the triangles are in an order in which they can be displayed without needing to solve the hidden surface problem. Further, the triangles are arranged in triangle strips and therefore the amount of calculations to display the object is further reduced.
  • step 55 which is not mandatory to the present embodiment, is shown in more detail in the flowchart in FIG. 3 .
  • the plane of symmetry is stored in the object file in step 65 , and all vertices with negative Z-axis values are culled from the object file in step 66 .
  • the vertex indices are reordered so that each mirrored vertex below the symmetry plane comes after its pair above the symmetry plane, then the ones above the symmetry plane are marked so that they have a mirrored counterpart.
  • step 65 or when no symmetry in the XY plane is detected, it is determined if the object is symmetrical in the XZ plane in step 67 .
  • the plane of symmetry is stored in the object file in step 68 , and all vertices with negative Y-axis values are culled from the object file in step 69 .
  • step 69 or when no symmetry in the XZ plane is detected, it is determined if the object is symmetrical in the YZ plane in step 70 .
  • the plane of symmetry is stored in the object file in step 71 , and all vertices with negative X-axis values are culled from the object file in step 72 .
  • step 72 or when no symmetry in the YZ plane is detected, control is moved to step 60 in FIG. 2 .
  • the amount of vertex data in the object file can thus be reduced by up to a factor of 8 depending on the number of symmetry planes of the object.
  • almost all objects used in computer graphics have at least one and often two planes of symmetry, and thus a reduction in the amount of vertex data by a factor 2 to 4 is achievable. This is of significant importance when storing animated 3-D graphics on e.g. a mobile phone 1 as shown in FIG. 8 because of its relatively limited memory capacity.
  • step 60 When it is decided in step 60 that all objects 1 -N have been thus processed, the object files are ready to be transferred from the workstation to the mobile phone 1 for display.
  • the data transfer from the workstation to the mobile phone could be via IR signals (IrDA) or RF signals, (Bluetooth) over the air as messages (SMS or MMS), cable, native (at production site) or any other suitable medium.
  • the object files 1 -N are loaded onto the mobile phone in step 100 and stored on the random access memory (RAM) 17 of the mobile phone 1 (cf. FIG. 8 ).
  • the mobile phone is provided with a processor (CPU) 10 that is capable to write data to and read data from the RAM 17 .
  • the CPU 10 controls a digital signal processor 12 coupled to a microphone 14 and a speaker 15 .
  • the mobile phone 1 is further provided with a subscriber identity module (SIM card) 16 .
  • SIM card subscriber identity module
  • An RF transmitter-receiver circuit 18 is also connected to the CPU 10 .
  • a software embedded 3-D engine 20 drives the LCD or plasma screen 30 .
  • step 101 input commands are received which essentially define lighting and view parameters.
  • the object rendering order is determined in step 102 , preferably by using binary space partitioning techniques.
  • the data of the first (most occluded) object to be rendered are read in step 103 .
  • step 104 the triangles that were removed from one side of a symmetry surface are restored. The procedure is illustrated in more detail in the flowchart shown in FIG. 7 .
  • step 120 the question is asked whether a symmetry plane in the XY surface is stored in the object file. If the question asked in step 120 is answered in the affirmative, then a new set of vertices is created in step 122 by duplicating all vertex data presently in the object file and flipping the sign of the Z-axis values for the newly created vertices, so that the earlier removed vertices are restored, and the control is moved to step 124 . If the question asked in step 120 is answered in the negative, the control is moved directly to step 124 .
  • step 124 the question is asked whether a symmetry plane in the XZ surface is stored in the object file. If the question asked in step 124 is answered in the affirmative, a new set of vertices is created in step 126 by duplicating all vertex data presently in the object file and flipping the sign of the Y-axis values for the newly created vertices, so that the earlier removed vertices are restored, and the control is moved to step 128 . If the question asked in step 124 is answered in the negative, the control is moved directly to step 128 .
  • step 128 the question is asked whether a symmetry plane in the YZ surface is stored in the object file. If the question asked in step 128 is answered in the affirmative, a new set of vertices is created in step 130 by duplicating all vertex data presently in the object file and flipping the sign of the X-axis values for the newly created vertices, so that the earlier removed vertices are restored, and the control is moved to step 105 ( FIG. 6 ). If the question asked in step 128 is answered in the negative, the control is moved directly to step 105 ( FIG. 6 ). Thus, all the vertices removed from the object file on the workstation in step 52 are restored again.
  • step 105 it is determined whether a given triangle's predefined front face is visible with present viewing direction.
  • the direction of the front faces of the triangles 1 -n in the object file are compared with the viewing direction, by calculating the dot product of the vector of the viewing direction and the normal vector of the respective triangle.
  • this product is negative the triangle in question is culled since its front surface cannot be seen with the present viewing direction.
  • the amount of triangles is statistically reduced by 50%.
  • a usually more accurate, often even faster (as it not necessary to calculate normal, and the direction to camera changes with every triangle as well) way of detecting backfacing triangles is to calculate its area on the screen after projection. If the screen area is negative, the triangle is backfacing.
  • step 106 the transformation of vertices of the triangles from model space (i.e. the object file's reference coordinate system) into device space (i.e. the display or screen coordinate system) takes place using a matrix-vector multiplication.
  • model space i.e. the object file's reference coordinate system
  • device space i.e. the display or screen coordinate system
  • step 107 the vertex data is sent to the display for viewing in step 107 .
  • step 107 the triangle strips are rendered in the order in which they were created, which in this embodiment corresponds to the order in which they are stored in the object file.
  • the triangles are displayed in the order in which they were added to the respective triangle strip, which in this embodiment corresponds to the order in which they are stored in the object file. Consequently, the triangles can be displayed in the order in which they are stored in the object file without needing to address the hidden surface problem whilst displaying the triangles.
  • step 108 the question is asked if another object is to be displayed. If the question asked in step 108 is answered in the affirmative, the control is moved to step 103 at which the data of the next object file are read. Thus, steps 103 to 107 are repeated until all objects have been displayed. When all objects have been displayed, the next frame is to be displayed and control is given to step 101 to receive the input commands for the next frame.
  • the mirrored vertices are removed as shown in the flowchart of FIG. 3 , but the polygons are not stripped, i.e. step 55 in FIG. 2 is omitted.
  • a reduced size object file is obtained that may be easily stored in the mobile phone, but when displaying the triangles it will be necessary to solve the hidden surface problem.
  • the painter's algorithm or the Z-buffering technique could be used on the mobile phone 1 , the limits of the processing power of the mobile phone will though be reached relatively quickly.
  • the efficient techniques of the invention allow real time animated 3-D graphics on devices with relatively limited image processing hardware, such as mobile phones, PDAs and handheld video games.
  • the invention is therefore not limited to the device described in the preferred embodiments (a mobile phone with a SIM card), the invention can be applied any other type of mobile phone or device listed above.

Abstract

A method of preparing on object files a first device that are used for rendering two-dimensional images of three-dimensional objects on a second device by processing data defining triangle primitives representing at least one three-dimensional object. A plurality of planar triangle primitives corresponding to a plurality of surface portions of the object are stored, where the plurality of triangle primitives are represented by vertex data.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a divisional of, claims the benefit of and priority to U.S. patent application Ser. No. 10/531,198, filed on Apr. 13, 2005, status allowed, which is the National Stage of International Application No. PCT/EP2002/011507, International Filing Date Oct. 15, 2002, which designated the United States of America and which international application was published under PCT Article 21(2) as WO Publication No. WO 2004/036504 A1, the disclosures of each being incorporated herein by reference in their entirety.
  • BACKGROUND Field
  • The disclosed embodiments relate to a method of preparing object files on a first device that are used for rendering two-dimensional images of three-dimensional objects on a second device. The object files contain data defining polygon primitives representing at least one three-dimensional object. The data in the object file is rearranged for determining a rendering order in which said polygon primitives may be rendered in which the hidden surface problem is solved. The invention relates further to a mobile communication terminal comprising image processing means for rendering images of three-dimensional objects on a display. The present invention relates also to a method of rendering two-dimensional images of three-dimensional objects by processing data defining polygon primitives with a reduced amount of vertex data. The invention further relates to a mobile communication terminal comprising image processing means for rendering images of three-dimensional objects on a display capable of displaying an image on the basis of a reduced amount of vertex data.
  • BRIEF DESCRIPTION OF RELATED DEVELOPMENTS
  • Until recently, animated three-dimensional graphics were exclusively applied in devices with a relatively high processing power such as, for instance, in generating displays of the appearance of an object from several angles on a workstation or a PC during computer aided design and computer aided manufacture, in electronic video arcade games, or in driving- or flight simulators.
  • Three-dimensional graphics now also find their way into devices with a relatively low processing power such as mobile phones, personal digital assistants (PDA) and hand-held video games.
  • To provide animation, it is necessary to update the image at rates approaching 20 to 30 frames per second (lower rates are acceptable for some applications), so that an observer perceives the image as a continuous change rather than a chain of static images.
  • The speed at which the apparatus can perform calculations, coupled with the minimum acceptable frame rate, provides a limit to the number of calculations which can be performed to generate each image.
  • In three-dimensional animation, it is necessary to calculate for each image the projection of the three-dimensional objects on two dimensions. For complex images a large amount of calculations can be required.
  • Image synthesis is usually performed by representing an object as a number of polygon primitives defined by vertices, projecting the polygon primitives onto an image plane, and then processing each polygon primitive in order to define, for each pixel of the projected polygon, the pixel color.
  • A major problem in rendering three-dimensional graphics is the removal of hidden surfaces. From the viewpoint, the nearer surfaces should obscure the further parts.
  • A common approach is to test, when a given pixel is rendered, whether it lies in front (and therefore occludes) or behind, (and therefore is occluded by) the pixel (if any) which is already within the image buffer. Accordingly, each pixel needs to be assigned a depth value. This technique is referred to as the “z-buffer algorithm”. This technique is a technically simple approach, but it is resource intensive in terms of storage and processing power since it involves a large number of comparison operations (on the order of the number of pixels in the image buffer), for real time operation.
  • The “Painter's Algorithm” examines the coordinates of the vertices of the polygons, and ranks the polygons into order of decreasing distance from the viewpoint. The polygons are then rendered in order of decreasing distance, so that the pixels of the most distant polygons are first written into the image buffer, and are overwritten as necessary by those of nearer polygons. However, this technique requires the sorting operation of all polygons to be repeated each time the viewpoint changes, and consequently, requires a large amount of computation in real time.
  • In a known technique, polygons are viewed as having two faces; one face directed inwardly towards the interior of the object (the “back” face) and one face directed outwardly of the object (the “front” face). For a solid object, the “back” face of a polygon is never visible; only polygons which face forwards therefore need to be displayed. Accordingly, a decision is made prior to rendering whether, from the viewing angle concerned, a given polygon is showing its front (outer) or back (inner) face, and only those polygons which are facing forward are rendered. This method of back face culling reduces the problem of hidden surface removal, but does not eliminate the problem altogether.
  • A further known technique is known as “binary space partitioning” (BSP). In this technique, prior to animation, a pre-processing stage is performed in which a tree-structured model is built in memory, each node in the tree being a polygon on a space partitioning plane and pointing to successor and predecessor nodes (if any). One of the nodes contains a tree consisting of polygons strictly on one side of the partitioning plane, while the other node contains the rest. One can then recursively process the tree (descending first to the node further away from the camera) and render polygons in back to front order.
  • Another known technique is polygon stripping i.e. to convert independent triangles or polygons into triangle strips. In this technique, a first triangle is identified with an either clockwise or counterclockwise winding, and then all subsequent triangles in the strip will alternate winding. The strip is continued until the triangle strip runs off the edge of the object or runs into a polygon that is already a part of another strip.
  • Traditionally, due to their extensive consumption of system resources, three-dimensional graphics engines belong to high performance systems such as workstations with powerful processors and large memories. The restrictions posed by limited calculation power are more evident on devices which cannot be provided with the fastest processors. Examples of such devices are mobile phones, personal digital assistants (PDA) and handheld video games. There is therefore a need to provide effective algorithms so that three-dimensional real time animated graphics can be handled by the processing power available in the above-mentioned devices.
  • SUMMARY
  • On this background, the aspects of the disclosed embodiment to provide a method of preparing on a first device object files used for rendering two-dimensional images of three-dimensional objects on a second device to determine a rendering order in which said triangle primitives may be rendered for creating a two-dimensional image in which the hidden surfaces are removed, which allows real time three-dimensional image rendering on devices with relatively low processing power.
  • In one aspect, the disclosed embodiments are directed to providing a method of preparing object files on a first device that are used for rendering two-dimensional images of three-dimensional objects on a second device by processing object files containing data defining triangle primitives representing at least one three-dimensional object to determine a rendering order in which said triangle primitives may be rendered for creating a two-dimensional image in which the hidden surfaces are removed comprising the steps of:
  • storing a plurality of planar triangle primitives corresponding to a plurality of surface portions of said at least one object in an object file, wherein said plurality of triangle primitives are represented by vertex data arranged according to an original order,
  • selecting a triangle that does not potentially occlude any of the unprocessed triangles to start a triangle strip,
  • selecting a neighboring triangle to add to the last triangle in the triangle strip,
  • determining whether the selected triangle can potentially occlude any of the unprocessed triangles,
  • adding the selected triangle to the strip and going back to step c) if the selected triangle cannot potentially occlude any of the unprocessed triangles,
  • going back to step b) to start a new triangle strip if the selected triangle can potentially occlude any of the unprocessed triangles, and
  • repeating steps b) to f) until all the triangles in the object file are processed.
  • Thus, the object files can be reorganized in triangle strips that can be displayed in the order in which they were created whilst the hidden surface problem is solved, i.e. the device that receives the thus prepared object files can simply display the triangle strips and the triangles in the order in which they are stored in the object file without the need for calculations to solve the hidden surface problem. The number of calculations to be made by the image-processing device is thus significantly reduced by pre-sorting the vertex data such that the rendering order of the triangle primitives in the triangle strips is correct, i.e. the hidden surfaces are correctly removed, independent of the viewing direction and the camera position. Thus, the second device only needs to calculate the rendering order of the objects and then, for each frame of animation, to render the front facing triangle primitives of the objects in the order that they are stored in the object files. Compared to Z-buffering, for example, a large reduction in the amount of calculations that are required can be obtained as no comparison of the pixel's previous Z-value is required.
  • Step b) of the method preferably comprises a heuristic search to identify those triangles for starting a strip that potentially allow long strips to be formed, preferably by selecting triangles that do not have many unprocessed neighbors.
  • For some objects there is no order in which the triangle primitives can be placed in which the hidden surfaces are removed correctly for all viewing directions because of conflicting occlusion priorities. Thus, it is necessary to split such an object into two objects and presort the triangle primitives for each thus created object.
  • The method preferably comprises on said first device further the step of:
  • dividing the object file into two if at step b) it is impossible to find a triangle not occluding other, still unprocessed, triangles.
  • The object is preferably divided by using a partitioning plane, with which at least one of the unprocessed triangles remains on a different side than the unprocessed triangles it can potentially occlude.
  • Preferably, a plane of an arbitrary unprocessed triangle is used and the triangle is associated on the outward side of the splitting plane, thus leaving all the polygons that it may cover on the other side.
  • While dividing the polygons into two sets, one may have to split polygons that intersect the partitioning plan. In general, it is beneficial to split polygons into two sets such that the number of polygons in the two sets is as equal as possible.
  • The method preferably comprises further the step of determining the front side and the triangle planes of the triangles in the object file wherein the determination if a selected triangle can occlude any of the unprocessed triangles comprises the steps of determining whether:
  • the selected triangle has one or more vertices on the front side of the plane of any of the unprocessed triangles, and
  • whether any of the unprocessed triangles positively identified in step g) have one or more vertices on the backside of the plane of the selected triangle.
  • The method may further comprise on said first device the following steps before step b)
  • determining if the object has symmetry in the XY-plane of the object space,
  • storing a determined plane of symmetry, and
  • removing all vertices in the object file from one side of a determined plane of symmetry, and
  • repeating steps i) to k) for the XZ-plane of the object space and for the YZ-plane of the object space.
  • The method preferably comprises:
  • transferring said object file or files from said first device to a second device after step f) or k) and storing the object files on said second device.
  • The first device preferably comprises a higher performance image processing means, such as used in a PC or a workstation and said second device preferably comprises a lower performance processing means such as used in a mobile communication terminal or a PDA.
  • Thus, the calculation intensive part of the image rendering process can be carried out in advance on a device with a high processing power such as a workstation or a PC, and the animated three-dimensional graphics can be rendered in real time on a device with relatively low processing power such as a mobile phone, a PDA or a handheld video game.
  • In another aspect, the disclosed embodiments provide a method for displaying object files obtained by the method above on the second device. In one embodiment, a method comprises:
  • determining the viewing direction, and
  • determining the object order, preferably using the painter's algorithm and displaying said object or objects on said second device.
  • Preferably, the method further comprises the step of:
  • culling all triangles facing backwards relative to said viewing direction.
  • The method advantageously comprises the steps of:
  • retrieving planes of symmetry stored in the object file, and
  • creating a duplication of the vertex data present in the object file, said duplication of the vertex data having the same order as the original vertex data and being stored in the object file after the original vertex data, and flipping the sign of the vertex values on the axis orthogonal to the respective retrieved plane of symmetry of the duplicated vertices.
  • Recreate vertices by flipping the sign of one of the coordinates, can only be carried out if and only if the plane of symmetry is one of x=0, y=0, z=0. If the plane is, e.g., x=1, and there is a vertex 0,1,2, the mirror pair cannot be obtained by flipping the sign of x component. Instead it would be necessary to mirroring it with respect to the coordinate x=1, so that the mirror pair would be 2,1,2. The method may therefore comprise the steps of translating and rotating the object so that the axes of symmetry match with x=0, y=0, or z=0. During the rendering operation the inverse steps are applied to the whole object.
  • The method may further comprise the steps of:
  • displaying the triangle strips in the same order as they were created, and
  • displaying the triangles in the triangle strips in the same order as they were added to the strip.
  • Thus, the triangles can be displayed directly as they are stored in the object file, independent of the viewing direction and camera position, without the second device needing to carry out calculations to resolve the hidden surface problem.
  • Preferably, the second device comprises a lower performance processing means such as used in a mobile communication terminal or a PDA, and most preferably the second device is a mobile phone.
  • The image rendering process is preferably carried out by the main CPU of the device, and all the further image rendering means is software embedded.
  • In a further aspect, the disclosed embodiments provide a mobile communication terminal capable of displaying real-time rendered animated three-dimensional graphics. In one embodiment, a mobile communication terminal comprises:
  • means to store object files containing triangle strips, and
  • means to display said triangle strips in the order in which they have been created, which preferably corresponds to the order in which triangle strips are stored in the object files.
  • The triangles in the triangle strips can be displayed in the same order as they were added to the strip, which preferably corresponds to the order in which they are stored in the triangle strips.
  • Preferably, a rendering order of the objects is determined using a binary space partitioning method. The rendering order of the object files is sorted based on the current viewing direction and position so far away objects are rendered first.
  • The mobile communication terminal may comprise means for culling all triangles facing backwards relative to the viewing direction.
  • The mobile communication terminal may further comprise
  • means for retrieving planes of symmetry stored in the object file, and
  • means for duplicating all vertex data present in the object file and flipping the sign of the vertex values on the axis orthogonal to the respective plane of symmetry for the newly created triangles.
  • The image rendering process is preferably carried out by the main CPU of the device, and all further image rendering means is software embedded.
  • It is yet another aspect of the disclosed embodiments to provide a method of preparing on a first device object files used for rendering two-dimensional images of three-dimensional objects on a second device by processing data defining triangle primitives representing at least one three-dimensional object. The method requires a reduced amount of calculations and therefore allows real time three-dimensional image rendering on devices with relatively low processing power. In one embodiment, a method comprises on said first device:
  • storing a plurality of planar triangle primitives corresponding to a plurality of surface portions of said at least one object, wherein said plurality of triangle primitives are represented by vertex data,
  • determining the planes of symmetry of said three-dimensional object,
  • storing planes of symmetry data in the object file,
  • culling all vertex data from one side of each said planes of symmetry,
  • transferring said object file from said first device to said second device, and
  • displaying said image on said second device by mirroring said vertex data about said planes of symmetry and rendering said image.
  • Preferably, planes of symmetry that are not perpendicular with one of the X-, Y- or Z-axis of the object coordinate system are ignored. Alternatively, the object may be rotated and translated so that the axes of symmetry align with one or more of the planes X=0, Y=0, or Z=0.
  • The first device may comprise higher performance image processing means, such as used in a PC or a workstation and said second device may comprise lower performance processing means such as used in a mobile communication terminal, a PDA or a handheld video game.
  • The second terminal is preferably a mobile phone.
  • In another aspect, the disclosed embodiments provide a mobile communication terminal capable of displaying two-dimensional images of three-dimensional objects with a reduced amount of calculations. In one embodiment, a mobile communication terminal comprises image processing means for rendering images of three-dimensional objects on a display, means for storing vertex data, means for storing planes of symmetry data and means for mirroring vertex data in a symmetry plane.
  • Further aspects, features, advantages and properties of the methods and mobile communication terminals according to the invention will become apparent from the detailed description.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • In the following detailed portion of the present description, the embodiments will be explained in more detail with reference to the exemplary embodiments shown in the drawings, in which
  • FIG. 1 is a diagram illustrating a front face of a triangle,
  • FIG. 2 is a flow chart showing two stages of creating object files of three-dimensional objects on a first device,
  • FIG. 3 is a detailed flow chart showing the steps for creating objects files with reduced vertex data by removing mirrored vertices,
  • FIG. 4 is a detailed flow chart showing the steps for creating triangle strips on the first device,
  • FIG. 5 is a detailed flowchart illustrating the process to determine if a selected triangle can potentially occlude an unprocessed triangle,
  • FIG. 6 is a flow chart showing the steps for displaying the three-dimensional objects as a two-dimensional image on a second device,
  • FIG. 7 is a detailed flow chart showing the steps for restoring the triangles removed in the steps shown in FIG. 3, and
  • FIG. 8 is a block diagram of a mobile phone.
  • DETAILED DESCRIPTION OF THE DISCLOSED EMBODIMENTS
  • Three-dimensional graphics systems provide a virtual three-dimensional (3-D) environment in which objects, light sources and a viewing position may be manipulated within a notional three-dimensional space. The viewing position provides a window into the virtual three-dimensional world, often referred to as “world space”. This world space itself only exists as data defining three-dimensional coordinates and other variables, such as color and reflectivity. The two-dimensional image presented at the notional window must be created by processing the three-dimensional image data, in a procedure known as rendering.
  • Systems are known in which objects in the three-dimensional space are represented by the coordinate locations of selected points on the surface of the object.
  • However, rendering consists of allocating picture element values to two-dimensional regions of the image. Therefore, these coordinate points are converted into notional regions by effectively connecting the points by straight lines to provide a three-dimensional net of flat, two-dimensional triangles, defined by a number of vertices. The present invention will be described by using triangles, but the reader skilled in the art will appreciate that the techniques described also apply to other flat polygons.
  • The picture element values are generated on a triangle-by-triangle basis, until the whole object has been tessellated, i.e. broken down into triangles. The vertex data thus created is stored in an original order in the object file.
  • The triangles are saved in a manner that defines a normal vector identifying the front face (solid objects always have a front face and a back face, the latter never being visible) of the triangles. The “front” face is defined by vector normal to the surface of the triangle, with the direction of the vector (and hence the direction of the front face) being determined by a right-hand (or, optionally, left-hand) rule traversing the three vertices of the triangle in an order determined by the manner in which they are stored in the triangle's data structure. For instance, in FIG. 1, the three points 22,23,24 determine the direction of the normal vector 25, and hence the side of the triangle 21 that is to be defined as the front face 26. The normal vector 25 is e.g. determined by the cross product of two vectors along the edges of the triangle. The above steps are all carried out on a workstation, PC or similar high performance computer.
  • The picture element values generated by the rendering process are saved on the workstation. In order to maintain the illusion of a solid three-dimensional object when displaying the triangles on a display, it is essential that the triangles are sorted in an order which ensures that occluded triangles are rendered before the triangles which occlude them. Real-time sorting of the triangle order is unfeasible on e.g. a mobile phone with relatively low performance hardware for processing the data. In the prior art techniques, this problem was solved partially by preparing a predetermined rendering order, which could, however, change as changes are made to the viewing direction or the location of the viewpoint. As will be shown here, the technique according to the invention overcomes this problem.
  • The term “object” as used here includes single objects and also a collection of several separate objects, as long as the objects in that collection do not move with respect to each other during the animation, e.g. a table and a flower pot and a chair next to the table can be considered as one object, if they don't move with respect to each other. If in the course of animation the chair moves, it can't be the same object as the desk.
  • The stages for providing a three-dimensional graphics environment on a workstation or other powerful computer (not shown) are shown in FIG. 2. Initially, data defining the objects is prepared. Thus, at step 35, a first object is modeled. Similarly, at step 40 a second object is modeled and so on until at step 45 an Nth object is modeled. Each object is modeled with reference to its own set of coordinates, often referred to as its own modeling space. Thus, each set of object data defines a shape, and the data required to reproduce said shape in a graphics environment is stored in an object file in the form of vertex data.
  • The next stage consists of steps 50, 52, 55 and 60, which form part of the pre-processing stage. At step 50, an object file is read which defines the shape of the object in terms of triangle vertices and triangle surface characteristics.
  • At step 52 triangle strips are created by processing the data defined by the object file. The strips are created in such a way that the hidden surface problem is solved for all possible viewing directions, i.e. the object file is made hidden surface removal tolerant (HSR tolerant), so that when the strips have been created no care needs to be taken to solve the hidden surface problem, independent of viewing direction and camera position. Usually it is possible to process the complete object file in this manner whilst fulfilling the above criteria, however, sometimes it is impossible to create triangle strips in this manner for the complete object because there is a conflict in the required rendering order between triangles of the object. In such cases the object is divided into two new objects, which are each processed independently like any other object.
  • In the next step, step 55, it is determined whether the objects have any planes of symmetry (this information is usually already available from the object file after the modeling procedure). All triangles at one side of a plane of symmetry are removed and, if not present already, the plane of symmetry is stored in the object file.
  • The above steps may be required for a plurality of objects, and hence a question is asked at step 60 as to whether another object is to be processed. When answered in the affirmative, steps 50, 52, and 55 are repeated, until all objects have been processed. All the steps 35 to 60 are performed on a first device, typically a workstation with powerful graphics processing means, and once all object files have been processed they can be transferred to a second device for display, a device with lesser graphics processing power, which is typically a mobile terminal, in the present embodiment a mobile phone 1.
  • Step 52 of FIG. 2, is shown in more detail in the flowchart in FIG. 4. In step 76, the vertex data of all the triangles 1-n of the object are read, starting with the number of vertices, the number of triangles, the vertex data and the triangle data. Based on the vertex data the triangle planes for each of the triangles 1-n are calculated one after another in step 77.
  • In step 78 a new triangle strip is started by selecting a triangle that does not occlude any of the unprocessed triangles. The selection of the first triangle may be done in a greedy style by simply choosing the first triangle in the set of unprocessed triangles.
  • According to an alternative embodiment of the invention, heuristic search techniques can be used to identify those triangles that potentially occlude the least number of remaining unprocessed triangles, e.g. by selecting triangles that do not have many unprocessed neighbors. Starting a new strip with thus identified triangles will result in fewer and longer triangles strips per object.
  • Several techniques are known to perform such a heuristic search and these techniques are therefore not described in detail here.
  • The triangle selected to start the strip with is then compared with the triangles in the set of unprocessed triangles to determine if the selected triangle can potentially occlude any of the unprocessed triangles. A procedure for carrying out this determination is described below with reference to FIG. 5.
  • In step 80 a neighboring triangle to be added to the triangle strip is selected. The selected triangle is then compared in step 81 with the triangles in the set of unprocessed triangles to determine if the selected triangle can potentially occlude any of the unprocessed triangles. The procedure for carrying out this determination is described further below with reference to FIG. 5. The selected triangle is added to the strip in step 85 if the determination in step 81 is negative. The selected triangle is then removed from the set of unprocessed triangles in step 86. In step 87 the question is asked if the set with unprocessed triangles is empty. All triangles in the object file have been processed if the question asked in step 87 is answered in the positive, and control is given to step 60 (FIG. 2). If the question asked in step 87 is answered in the negative, control is given to step 80 to select a new neighboring triangle to add to the triangle strip.
  • If the question asked in step 81 is answered in the positive, a check for a conflict is run in step 83, i.e. check if a circle exists such as when a first triangle can potentially occlude a second triangle, the second triangle can potentially occlude a third triangle and the third triangle can potentially occlude the first triangle. Thus it is impossible to create an object file in which the rendering order is correct for all possible viewing directions. If the check for a conflict is answered in the negative, a new triangle strip is started in step 78. If the check for a conflict is answered in the positive, the object is divided using binary space partitioning techniques, e.g. by dividing the object into two over the triangle surface of the last selected triangle. Control is then given to step 52 (FIG. 2), and the two “new” objects are processed like any of the other objects. The conflict check is performed by determining if any triangle can be selected such that it doesn't potentially cover any other unprocessed triangle. If this determination is answered in the negative, the object needs to be divided.
  • As best shown in the flowchart of FIG. 5 a selected triangle can be compared with the unprocessed triangles starting with step 91, in which the value for a parameter X is set to 1 and the value for a parameter Y is set equal to the number of triangles in the set of unprocessed triangles.
  • In step 92 the question is asked if the selected triangle has one or more vertices in front of the plane of triangle X in the set of unprocessed triangles. If the question asked in step 92 is answered in the positive, the question is asked in step 93 if triangle X has one or more vertices behind the plane of the selected triangle. If the question asked in step 93 is also answered positive control is given to step 83 (FIG. 4).
  • If the question asked in step 92 or 93 is answered in the negative, the value of parameter X is increased with one in step 94 and in step 95 the question is asked if the value of parameter X is equal to the value of parameter Y. When the question asked in step 95 is answered in the negative, the procedure of steps 92, 93, 94 and 95 is repeated until the question asked in step 95 is answered in the positive. Then control is given to step 85 to add the selected triangle to the triangle strip.
  • The above procedure is repeated until the set with unprocessed triangles is empty, and the object file is in a format in which the triangles are in an order in which they can be displayed without needing to solve the hidden surface problem. Further, the triangles are arranged in triangle strips and therefore the amount of calculations to display the object is further reduced.
  • The next step, step 55, which is not mandatory to the present embodiment, is shown in more detail in the flowchart in FIG. 3. In step 64 it is determined if the object is symmetrical about the XY plane. This data is usually available from the object file, in particular when the object file has been created using a graphics program or the like. In the unusual circumstance that the object file does not contain such data, e.g. because it reflects a scanned object, it would be possible to identify planes of symmetry by assuming a plane of symmetry Z=0 and to check for every vertex with a positive z-value whether the same vertex exists with the same but negative z-value, and repeating the exercise for planes of symmetry with Y=0 and X=0. Though not shown, it is also possible to include steps to rotate and translate the object so that any axis of symmetry align with one or more of the planes X=0, Y=0 or Z=0.
  • When symmetry about the XY plane is present, the plane of symmetry is stored in the object file in step 65, and all vertices with negative Z-axis values are culled from the object file in step 66. Hereto, the vertex indices are reordered so that each mirrored vertex below the symmetry plane comes after its pair above the symmetry plane, then the ones above the symmetry plane are marked so that they have a mirrored counterpart.
  • After step 65, or when no symmetry in the XY plane is detected, it is determined if the object is symmetrical in the XZ plane in step 67.
  • When symmetry in the XZ plane is present, the plane of symmetry is stored in the object file in step 68, and all vertices with negative Y-axis values are culled from the object file in step 69.
  • After step 69, or when no symmetry in the XZ plane is detected, it is determined if the object is symmetrical in the YZ plane in step 70.
  • When symmetry in the YZ plane is present, the plane of symmetry is stored in the object file in step 71, and all vertices with negative X-axis values are culled from the object file in step 72.
  • After step 72, or when no symmetry in the YZ plane is detected, control is moved to step 60 in FIG. 2. The amount of vertex data in the object file can thus be reduced by up to a factor of 8 depending on the number of symmetry planes of the object. In practice, almost all objects used in computer graphics have at least one and often two planes of symmetry, and thus a reduction in the amount of vertex data by a factor 2 to 4 is achievable. This is of significant importance when storing animated 3-D graphics on e.g. a mobile phone 1 as shown in FIG. 8 because of its relatively limited memory capacity.
  • When it is decided in step 60 that all objects 1-N have been thus processed, the object files are ready to be transferred from the workstation to the mobile phone 1 for display.
  • The data transfer from the workstation to the mobile phone could be via IR signals (IrDA) or RF signals, (Bluetooth) over the air as messages (SMS or MMS), cable, native (at production site) or any other suitable medium.
  • As shown in FIG. 6, the object files 1-N are loaded onto the mobile phone in step 100 and stored on the random access memory (RAM) 17 of the mobile phone 1 (cf. FIG. 8). The mobile phone is provided with a processor (CPU) 10 that is capable to write data to and read data from the RAM 17. The CPU 10 controls a digital signal processor 12 coupled to a microphone 14 and a speaker 15. The mobile phone 1 is further provided with a subscriber identity module (SIM card) 16. An RF transmitter-receiver circuit 18 is also connected to the CPU 10. A software embedded 3-D engine 20 drives the LCD or plasma screen 30.
  • Since the amount of triangles in the object files 1-N has been reduced on the workstation in step 52, the amount of data is small enough to be stored in the relatively limited RAM 17 of the mobile phone 1. The object files have been prepared in the proper rendering order (HSR tolerant) and thus it is possible to enter the rendering stage as soon as the object order is determined. At step 101 (FIG. 6) input commands are received which essentially define lighting and view parameters. Thereupon, the object rendering order is determined in step 102, preferably by using binary space partitioning techniques. The data of the first (most occluded) object to be rendered are read in step 103. In step 104, the triangles that were removed from one side of a symmetry surface are restored. The procedure is illustrated in more detail in the flowchart shown in FIG. 7.
  • In step 120 the question is asked whether a symmetry plane in the XY surface is stored in the object file. If the question asked in step 120 is answered in the affirmative, then a new set of vertices is created in step 122 by duplicating all vertex data presently in the object file and flipping the sign of the Z-axis values for the newly created vertices, so that the earlier removed vertices are restored, and the control is moved to step 124. If the question asked in step 120 is answered in the negative, the control is moved directly to step 124.
  • In step 124 the question is asked whether a symmetry plane in the XZ surface is stored in the object file. If the question asked in step 124 is answered in the affirmative, a new set of vertices is created in step 126 by duplicating all vertex data presently in the object file and flipping the sign of the Y-axis values for the newly created vertices, so that the earlier removed vertices are restored, and the control is moved to step 128. If the question asked in step 124 is answered in the negative, the control is moved directly to step 128.
  • In step 128 the question is asked whether a symmetry plane in the YZ surface is stored in the object file. If the question asked in step 128 is answered in the affirmative, a new set of vertices is created in step 130 by duplicating all vertex data presently in the object file and flipping the sign of the X-axis values for the newly created vertices, so that the earlier removed vertices are restored, and the control is moved to step 105 (FIG. 6). If the question asked in step 128 is answered in the negative, the control is moved directly to step 105 (FIG. 6). Thus, all the vertices removed from the object file on the workstation in step 52 are restored again.
  • In step 105 it is determined whether a given triangle's predefined front face is visible with present viewing direction. Hereto, the direction of the front faces of the triangles 1-n in the object file are compared with the viewing direction, by calculating the dot product of the vector of the viewing direction and the normal vector of the respective triangle. When this product is negative the triangle in question is culled since its front surface cannot be seen with the present viewing direction. Thus, the amount of triangles is statistically reduced by 50%.
  • Alternatively, a usually more accurate, often even faster (as it not necessary to calculate normal, and the direction to camera changes with every triangle as well) way of detecting backfacing triangles is to calculate its area on the screen after projection. If the screen area is negative, the triangle is backfacing.
  • In step 106 the transformation of vertices of the triangles from model space (i.e. the object file's reference coordinate system) into device space (i.e. the display or screen coordinate system) takes place using a matrix-vector multiplication. Methods and algorithms for vertex transformation are well known in the art and therefore not described here in detail.
  • When the vertices have been transformed in step 106 the vertex data is sent to the display for viewing in step 107. In step 107 the triangle strips are rendered in the order in which they were created, which in this embodiment corresponds to the order in which they are stored in the object file. The triangles are displayed in the order in which they were added to the respective triangle strip, which in this embodiment corresponds to the order in which they are stored in the object file. Consequently, the triangles can be displayed in the order in which they are stored in the object file without needing to address the hidden surface problem whilst displaying the triangles.
  • At step 108 the question is asked if another object is to be displayed. If the question asked in step 108 is answered in the affirmative, the control is moved to step 103 at which the data of the next object file are read. Thus, steps 103 to 107 are repeated until all objects have been displayed. When all objects have been displayed, the next frame is to be displayed and control is given to step 101 to receive the input commands for the next frame.
  • According to another embodiment of the invention, the mirrored vertices are removed as shown in the flowchart of FIG. 3, but the polygons are not stripped, i.e. step 55 in FIG. 2 is omitted. Thus, a reduced size object file is obtained that may be easily stored in the mobile phone, but when displaying the triangles it will be necessary to solve the hidden surface problem. Hereto, the painter's algorithm or the Z-buffering technique could be used on the mobile phone 1, the limits of the processing power of the mobile phone will though be reached relatively quickly.
  • The efficient techniques of the invention allow real time animated 3-D graphics on devices with relatively limited image processing hardware, such as mobile phones, PDAs and handheld video games. The invention is therefore not limited to the device described in the preferred embodiments (a mobile phone with a SIM card), the invention can be applied any other type of mobile phone or device listed above.
  • Although the aspects of the disclosed embodiments have been described in detail for purpose of illustration, it is understood that such detail is solely for that purpose, and variations can be made therein by those skilled in the art without departing from the scope of the invention.

Claims (9)

1. A method of preparing object files on a first device that are used for rendering two-dimensional images of three-dimensional objects on a second device by processing data defining triangle primitives representing at least one three-dimensional object comprising:
storing a plurality of planar triangle primitives corresponding to a plurality of surface portions of said at least one object, wherein said plurality of triangle primitives are represented by vertex data,
determining the planes of symmetry of said three-dimensional object,
storing planes of symmetry data in the object file,
culling all vertex data from one side of each said planes of symmetry,
transferring said object file from said first device to said second device, and
displaying said image on said second device by mirroring said vertex data in said planes of symmetry and rendering said image.
2. A method according to claim 1, in which planes of symmetry that are not parallel with one of the X-, Y- or Z-axis of the object coordinate system are ignored.
3. A method according to claim 1, in which said first device comprises higher performance image processing means, such as used in a PC or a workstation and said second device comprises lower performance processing means such as used in a mobile communication terminal, a PDA or a handheld video game.
4. A method according to claim 3, in which said second device is a mobile phone.
5. The method of claim 1 further comprising that the plurality of triangle primitives are represented by vertex data arranged according to an original order.
6. An apparatus comprising:
means for preparing object files on a first device that are used for rendering two-dimensional images of three-dimensional objects on a second device by processing data defining triangle primitives representing at least one three-dimensional object;
means for storing a plurality of planar triangle primitives corresponding to a plurality of surface portions of said at least one object, wherein said plurality of triangle primitives are represented by vertex data;
means for determining the planes of symmetry of said three-dimensional object;
means for storing planes of symmetry data in the object file;
means for culling all vertex data from one side of each said planes of symmetry;
means for transferring said object file from said first device to said second device; and
means for displaying said image on said second device by mirroring said vertex data in said planes of symmetry and rendering said image.
7. The apparatus of claim 6 wherein planes of symmetry that are not parallel with one of the X-, Y- or Z-axis of the object coordinate system are ignored.
8. The apparatus of claim 6 wherein said first device comprises higher performance image processing means, such as used in a PC or a workstation and said second device comprises lower performance processing means such as used in a mobile communication terminal, a PDA or a handheld video game.
9. The apparatus of claim 6 wherein said second device is a mobile phone.
US12/130,246 2002-10-15 2008-05-30 Three dimensional image processing Abandoned US20080225046A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US12/130,246 US20080225046A1 (en) 2002-10-15 2008-05-30 Three dimensional image processing

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
PCT/EP2002/011507 WO2004036504A1 (en) 2002-10-15 2002-10-15 Three dimensional image processing
US10/531,198 US7391418B2 (en) 2002-10-15 2002-10-15 Three dimensional image processing
EPPCT/EP2002/011507 2002-10-15
US12/130,246 US20080225046A1 (en) 2002-10-15 2008-05-30 Three dimensional image processing

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US10/531,198 Division US7391418B2 (en) 2002-10-15 2002-10-15 Three dimensional image processing

Publications (1)

Publication Number Publication Date
US20080225046A1 true US20080225046A1 (en) 2008-09-18

Family

ID=32103871

Family Applications (4)

Application Number Title Priority Date Filing Date
US10/531,198 Expired - Lifetime US7391418B2 (en) 2002-10-15 2002-10-15 Three dimensional image processing
US12/130,338 Expired - Lifetime US7671857B2 (en) 2002-10-15 2008-05-30 Three dimensional image processing
US12/130,246 Abandoned US20080225046A1 (en) 2002-10-15 2008-05-30 Three dimensional image processing
US12/130,193 Active US7733341B2 (en) 2002-10-15 2008-05-30 Three dimensional image processing

Family Applications Before (2)

Application Number Title Priority Date Filing Date
US10/531,198 Expired - Lifetime US7391418B2 (en) 2002-10-15 2002-10-15 Three dimensional image processing
US12/130,338 Expired - Lifetime US7671857B2 (en) 2002-10-15 2008-05-30 Three dimensional image processing

Family Applications After (1)

Application Number Title Priority Date Filing Date
US12/130,193 Active US7733341B2 (en) 2002-10-15 2008-05-30 Three dimensional image processing

Country Status (7)

Country Link
US (4) US7391418B2 (en)
EP (2) EP1746541B1 (en)
JP (1) JP4230456B2 (en)
CN (2) CN1932885B (en)
AU (1) AU2002350540A1 (en)
DE (2) DE60238452D1 (en)
WO (1) WO2004036504A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140172144A1 (en) * 2012-12-17 2014-06-19 Mitsubishi Electric Research Laboratories, Inc. System and Method for Determining Surface Defects
US10015478B1 (en) 2010-06-24 2018-07-03 Steven M. Hoffberg Two dimensional to three dimensional moving image converter
US10164776B1 (en) 2013-03-14 2018-12-25 goTenna Inc. System and method for private and point-to-point communication between computing devices
WO2023179091A1 (en) * 2022-03-23 2023-09-28 腾讯科技(深圳)有限公司 Three-dimensional model rendering method and apparatus, and device, storage medium and program product

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60238452D1 (en) * 2002-10-15 2011-01-05 Nokia Corp Representation of objects by exploiting symmetry properties of the objects
US8081182B2 (en) * 2004-03-03 2011-12-20 Qualcomm Incorporated Depth buffer for rasterization pipeline
JP4275593B2 (en) * 2004-08-09 2009-06-10 富士通株式会社 Contact definition device, contact definition program, contact definition method
KR100695156B1 (en) * 2005-02-03 2007-03-14 삼성전자주식회사 Method for converting graphics image of objects and apparatus therefor
ATE433172T1 (en) * 2005-04-04 2009-06-15 Revolver Ltd RENDERING 3D COMPUTER GRAPHICS USING 2D COMPUTER GRAPHICS CAPABILITIES
US20060232595A1 (en) * 2005-04-18 2006-10-19 Stephen Junkins Rasterizer driven cache coherency
US8696464B2 (en) 2005-08-19 2014-04-15 Nintendo Co., Ltd. Enhanced method and apparatus for selecting and rendering performance data
US8207972B2 (en) * 2006-12-22 2012-06-26 Qualcomm Incorporated Quick pixel rendering processing
US20080266286A1 (en) * 2007-04-25 2008-10-30 Nvidia Corporation Generation of a particle system using a geometry shader
US20080266287A1 (en) * 2007-04-25 2008-10-30 Nvidia Corporation Decompression of vertex data using a geometry shader
US8373717B2 (en) * 2007-04-25 2013-02-12 Nvidia Corporation Utilization of symmetrical properties in rendering
US8289319B2 (en) * 2007-10-08 2012-10-16 Ati Technologies Ulc Apparatus and method for processing pixel depth information
US8379019B2 (en) * 2007-12-26 2013-02-19 Advanced Micro Devices, Inc. Fast triangle reordering for vertex locality and reduced overdraw
JP2010003136A (en) * 2008-06-20 2010-01-07 Fujitsu Ltd Device and method for creating three-dimensional model data
US20100138793A1 (en) * 2008-12-02 2010-06-03 Microsoft Corporation Discrete objects for building virtual environments
US8995714B2 (en) * 2009-03-04 2015-03-31 Nec Corporation Information creation device for estimating object position and information creation method and program for estimating object position
KR101076807B1 (en) * 2009-05-29 2011-10-25 주식회사 실리콘아츠 Ray tracing apparatus and method
CN102104584B (en) * 2009-12-21 2013-09-04 中国移动通信集团公司 Method and device for transmitting 3D model data, and 3D model data transmission system
US8773427B2 (en) 2010-12-22 2014-07-08 Sony Corporation Method and apparatus for multiview image generation using depth map information
US9842428B2 (en) * 2014-06-27 2017-12-12 Samsung Electronics Co., Ltd. Dynamically optimized deferred rendering pipeline
CN108553899A (en) * 2018-03-26 2018-09-21 北京幻灵科技有限责任公司 A kind of i.e. point plays the development device and its method of game
JP7190574B2 (en) * 2018-11-27 2022-12-15 ルネサスエレクトロニクス株式会社 Generate instruction list
CN111258526B (en) * 2020-05-06 2020-08-28 上海幻电信息科技有限公司 Screen projection method and system
CN111701236A (en) * 2020-06-18 2020-09-25 福建天晴在线互动科技有限公司 Method and system for realizing 3D (three-dimensional) game simulation effect by adopting 2D (two-dimensional) resource mode

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6426747B1 (en) * 1999-06-04 2002-07-30 Microsoft Corporation Optimization of mesh locality for transparent vertex caching
US6438266B1 (en) * 1998-08-27 2002-08-20 Lucent Technologies Inc. Encoding images of 3-D objects with improved rendering time and transmission processes
US6573895B1 (en) * 1999-04-16 2003-06-03 Unigraphics Solutions Inc. Clustered backface culling
US6603470B1 (en) * 1995-08-04 2003-08-05 Sun Microsystems, Inc. Compression of surface normals in three-dimensional graphics data
US7088362B2 (en) * 1999-10-15 2006-08-08 Kabushiki Kaisha Toshiba Graphic computing apparatus

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0259983A (en) * 1988-08-26 1990-02-28 Nippon Telegr & Teleph Corp <Ntt> Solid shape data generating device
US5325485A (en) * 1992-10-30 1994-06-28 International Business Machines Corporation Method and apparatus for displaying primitives processed by a parallel processor system in a sequential order
GB9303009D0 (en) * 1993-02-15 1993-03-31 Canon Res Ct Europe Ltd Processing image data
JPH07141522A (en) * 1993-06-16 1995-06-02 Hitachi Ltd Artificial visual field image generating device
JP3638637B2 (en) * 1994-06-17 2005-04-13 株式会社ナムコ Polygon data conversion device and three-dimensional simulator device
EP0740272A2 (en) * 1995-04-28 1996-10-30 Sun Microsystems, Inc. Method and apparatus for fast rendering of three-dimensional objects
US5835095A (en) * 1995-05-08 1998-11-10 Intergraph Corporation Visible line processor
US6525722B1 (en) * 1995-08-04 2003-02-25 Sun Microsystems, Inc. Geometry compression for regular and irregular mesh structures
US5999189A (en) * 1995-08-04 1999-12-07 Microsoft Corporation Image compression to reduce pixel and texture memory requirements in a real-time image generator
GB9610212D0 (en) * 1996-05-16 1996-07-24 Cyberglass Limited Method and apparatus for generating moving characters
US6030289A (en) * 1996-06-27 2000-02-29 Konami Co., Ltd. Video game apparatus, method of displaying models in video game apparatus, and computer-readable recording medium for use with video game apparatus
WO1998000811A1 (en) * 1996-06-28 1998-01-08 Resolution Technologies, Inc. Fly-through computer aided design method and apparatus
JP3785709B2 (en) * 1996-12-13 2006-06-14 ソニー株式会社 Shape data approximation method and drawing apparatus
US5982385A (en) * 1997-07-31 1999-11-09 Hewlett-Packard Co. Geometrical object representation system and method for efficiently representing a geometrical object for use by a computer graphics system
JP3973273B2 (en) * 1997-09-22 2007-09-12 三洋電機株式会社 Image generating apparatus and image generating method
JP2000235589A (en) * 1999-02-15 2000-08-29 Toray Ind Inc Method and device for displaying article
JP2001087288A (en) * 1999-09-24 2001-04-03 Ngk Spark Plug Co Ltd Filling artificial bone designing system and manufacture of filling artificial bone using the system
JP2002042153A (en) * 2000-07-27 2002-02-08 Namco Ltd Game system and information storage medium
JP2002083314A (en) * 2000-09-06 2002-03-22 Namco Ltd Game system and information storage medium
US7154504B2 (en) 2001-01-26 2006-12-26 Microsoft Corporation System and method for fast, smooth rendering of lit, textured spheres
US6603471B2 (en) * 2001-01-31 2003-08-05 Intel Corporation Reducing detail in animated three-dimensional models
DE60238452D1 (en) * 2002-10-15 2011-01-05 Nokia Corp Representation of objects by exploiting symmetry properties of the objects

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6603470B1 (en) * 1995-08-04 2003-08-05 Sun Microsystems, Inc. Compression of surface normals in three-dimensional graphics data
US6438266B1 (en) * 1998-08-27 2002-08-20 Lucent Technologies Inc. Encoding images of 3-D objects with improved rendering time and transmission processes
US6573895B1 (en) * 1999-04-16 2003-06-03 Unigraphics Solutions Inc. Clustered backface culling
US6426747B1 (en) * 1999-06-04 2002-07-30 Microsoft Corporation Optimization of mesh locality for transparent vertex caching
US7088362B2 (en) * 1999-10-15 2006-08-08 Kabushiki Kaisha Toshiba Graphic computing apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10015478B1 (en) 2010-06-24 2018-07-03 Steven M. Hoffberg Two dimensional to three dimensional moving image converter
US11470303B1 (en) 2010-06-24 2022-10-11 Steven M. Hoffberg Two dimensional to three dimensional moving image converter
US20140172144A1 (en) * 2012-12-17 2014-06-19 Mitsubishi Electric Research Laboratories, Inc. System and Method for Determining Surface Defects
US10164776B1 (en) 2013-03-14 2018-12-25 goTenna Inc. System and method for private and point-to-point communication between computing devices
WO2023179091A1 (en) * 2022-03-23 2023-09-28 腾讯科技(深圳)有限公司 Three-dimensional model rendering method and apparatus, and device, storage medium and program product

Also Published As

Publication number Publication date
US20080225047A1 (en) 2008-09-18
CN1333375C (en) 2007-08-22
EP1746541B1 (en) 2010-11-24
JP4230456B2 (en) 2009-02-25
DE60238452D1 (en) 2011-01-05
US20060146049A1 (en) 2006-07-06
CN1685370A (en) 2005-10-19
EP1746541A2 (en) 2007-01-24
DE60229447D1 (en) 2008-11-27
CN1932885A (en) 2007-03-21
AU2002350540A1 (en) 2004-05-04
EP1746541A3 (en) 2007-03-21
WO2004036504A1 (en) 2004-04-29
US7733341B2 (en) 2010-06-08
EP1559074B1 (en) 2008-10-15
US7671857B2 (en) 2010-03-02
EP1559074A1 (en) 2005-08-03
JP2006503355A (en) 2006-01-26
US7391418B2 (en) 2008-06-24
US20080303816A1 (en) 2008-12-11
CN1932885B (en) 2012-02-29

Similar Documents

Publication Publication Date Title
US7733341B2 (en) Three dimensional image processing
JP2006503355A5 (en)
US6744434B2 (en) Cuts removal system for triangulated CAD Models
US5684936A (en) Method and apparatus for generating a rendering order for use in rendering images using a pre-processing technique
KR100693134B1 (en) Three dimensional image processing
US6664957B1 (en) Apparatus and method for three-dimensional graphics drawing through occlusion culling
US5666474A (en) Image processing
US20230186575A1 (en) Method and apparatus for combining an augmented reality object in a real-world image
KR100544803B1 (en) Fast processing of image primitives
JP2001273523A (en) Device and method for reducing three-dimensional data
JP3711273B2 (en) 3D graphics drawing device for occlusion culling
JPH02132572A (en) Picture display device
JP2952585B1 (en) Image generation method
JP2007299080A (en) Image generation method and image generation device
WO2005073924A1 (en) Apparatus and method for determining intersections
JPH11203486A (en) Translucent object display method and image display device using the method
KR100865583B1 (en) A method to process the reflection effect of moving pictures in computer graphics
EP0612028A2 (en) Image Processing
EP0612032B1 (en) Image processing
CN117813628A (en) System and method for real-time ray tracing in a 3D environment
EP0612030B1 (en) Image processing
CN111625093A (en) Dynamic scheduling display method of massive digital point cloud data in MR glasses
JP2001291115A (en) Method for plotting three-dimensional graphic and recording medium with the method recorded thereon
EP0612029A2 (en) Image processing

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION