Summary of the invention
It is an object of the invention to provide a kind of three-dimensional interface display device, method and terminal, use described three
Dimension interface display apparatus and the terminal of method, when not having 3-D graphic hardware, it is possible to obtains real three-dimensional
Interface.
In order to reach the purpose of the present invention, the present invention by the following technical solutions:
A kind of three-dimensional interface display device, including Three Dimensional Interface views module, Three dimensions control device and three-dimensional
Rendering engine, wherein,
Three Dimensional Interface views module, to the operation of 3-D graphic and sends it to three-dimensional control for detecting user
Device processed;
Three dimensions control device, renders finger for sending Three Dimensional Interface according to the operation of user to three-dimensional process engine
Order;
3 d rendering engine, for performing the 3-D graphic operated according to described Three Dimensional Interface render instruction
Render process.
Preferably, described Three Dimensional Interface views module includes that graphical user interface window data module, user are defeated
Enter detection module, and screen interactive module, wherein,
Graphical user interface window data module, for the window information of encapsulation image user interface GUI;
User inputs detection module, to the operation of 3-D graphic and sends it to three-dimensional control for detecting user
Device processed;
Screen interactive module, is used for showing Three Dimensional Interface.
Preferably, described 3 d rendering engine at least includes model coordinate conversion module, world coordinate transformation mould
Block, object reject module, insert render list module, back side cancellation module, camera coordinates conversion module,
Optical staining module, three-dimensional body spatial reference module, texture mapping block, perspective transform module, image
One in spatial reference module and rasterizer module, wherein,
Model coordinate conversion module, for converting the model coordinate of 3-D graphic;
World coordinate transformation module, sits for model coordinate being transformed to the world according to the position of 3-D graphic
Mark;
Object rejects module, before converting to camera coordinates at execution world coordinates, selects and rejects three
Sightless part for relative camera view in dimension figure;
Insert render list module, for each polygon facet of the visible part of 3-D graphic is inserted into wash with watercolours
In dye list;
Back side cancellation module, for eliminating the polygon facet in the 3-D graphic being blocked;
Camera coordinates conversion module, for converting 3-D graphic according to camera view;
Three-dimensional body spatial reference module, for entering part visible in 3-D graphic according to three-dimensional vision body
Row cutting;
Optical staining module, for being rendered as entity by 3-D graphic by wire frame, to strengthen the three of 3-D graphic
Dimension sense of reality;
Texture mapping block, for being attached to a polygon of 3-D graphic using a width two dimensional image as texture
On face;
Perspective transform module, for being transformed to perspective grid by camera coordinates, so that 3-D graphic is transformed to
Two-dimension picture;
Image space cutting module, for being transformed to screen coordinate by perspective grid;It is further used for will extend over
The part of the 3-D graphic of screen border carries out cutting;
Rasterizer module, for rendering three-dimensional graphics to display buffer.
Preferably, the 3-D graphic operated is held by described 3 d rendering engine according to Three Dimensional Interface render instruction
Row renders the step of process and includes:
According to user's operation to 3-D graphic, the model coordinate value of 3-D graphic is transformed to world coordinates
Value;
Each polygon facet of 3-D graphic is inserted in render list;
Create photographing unit transformation matrix;
Eliminate the polygon being in the back side;
According to camera view, the world coordinates value of 3-D graphic is transformed to camera coordinates value;
According to three-dimensional vision body, the 3-D graphic that can only see a part is carried out cutting;
Render list is performed depth ordering;
The camera coordinates value of 3-D graphic is transformed to screen coordinate value, 3-D graphic is rendered as reality by wire frame
Body;
Draw render scenes, and the 3-D graphic after rendering is saved in video memory.
A kind of terminal, it includes that three-dimensional interface display device as above, described device include Three Dimensional Interface
Views module, Three dimensions control device, and 3 d rendering engine, wherein,
Three Dimensional Interface views module, to the operation of 3-D graphic and sends it to three-dimensional control for detecting user
Device processed;
Three dimensions control device, renders finger for sending Three Dimensional Interface according to the operation of user to three-dimensional process engine
Order;
3 d rendering engine, for performing the 3-D graphic operated according to described Three Dimensional Interface render instruction
Render process.
A kind of Three Dimensional Interface display packing, its three-dimensional interface display device include Three Dimensional Interface views module, three
D controller, and 3 d rendering engine, described method includes:
Three Dimensional Interface views module detects user and to the operation of 3-D graphic and sends it to Three dimensions control device;
Three dimensions control device sends Three Dimensional Interface render instruction according to the operation of user to three-dimensional process engine.
Preferably, described Three Dimensional Interface views module includes that graphical user interface window data module, user are defeated
Enter detection module, and screen interactive module, wherein,
Graphical user interface window data module, for the window information of encapsulation image user interface GUI;
User inputs detection module, to the operation of 3-D graphic and sends it to three-dimensional control for detecting user
Device processed;
Screen interactive module, is used for showing Three Dimensional Interface.
Preferably, described 3 d rendering engine at least includes model coordinate conversion module, world coordinate transformation mould
Block, object reject module, insert render list module, back side cancellation module, camera coordinates conversion module,
Optical staining module, three-dimensional body spatial reference module, texture mapping block, perspective transform module, image
One in spatial reference module and rasterizer module, wherein,
Model coordinate conversion module, for converting the model coordinate of 3-D graphic;
World coordinate transformation module, sits for model coordinate being transformed to the world according to the position of 3-D graphic
Mark;
Object rejects module, before converting to camera coordinates at execution world coordinates, selects and rejects three
Sightless part for relative camera view in dimension figure;
Insert render list module, for each polygon facet of the visible part of 3-D graphic is inserted into wash with watercolours
In dye list;
Back side cancellation module, for eliminating the polygon facet in the 3-D graphic being blocked;
Camera coordinates conversion module, for converting 3-D graphic according to camera view;
Three-dimensional body spatial reference module, for entering part visible in 3-D graphic according to three-dimensional vision body
Row cutting;
Optical staining module, for being rendered as entity by 3-D graphic by wire frame, to strengthen the three of 3-D graphic
Dimension sense of reality;
Texture mapping block, for being attached to a polygon of 3-D graphic using a width two dimensional image as texture
On face;
Perspective transform module, for being transformed to perspective grid by camera coordinates, so that 3-D graphic is transformed to
Two-dimension picture;
Image space cutting module, for being transformed to screen coordinate by perspective grid;It is further used for will extend over
The part of the 3-D graphic of screen border carries out cutting;
Rasterizer module, for rendering three-dimensional graphics to display buffer.
Preferably, the 3-D graphic operated is held by described 3 d rendering engine according to Three Dimensional Interface render instruction
Row renders the step of process and includes:
According to user's operation to 3-D graphic, the model coordinate value of 3-D graphic is transformed to world coordinates
Value;
Each polygon facet of 3-D graphic is inserted in render list;
Create photographing unit transformation matrix;
Eliminate the polygon being in the back side;
According to camera view, the world coordinates value of 3-D graphic is transformed to camera coordinates value;
According to three-dimensional vision body, the 3-D graphic that can only see a part is carried out cutting;
Render list is performed depth ordering;
The camera coordinates value of 3-D graphic is transformed to screen coordinate value, 3-D graphic is rendered as reality by wire frame
Body;
Draw render scenes, and the 3-D graphic after rendering is saved in video memory.
By the technical scheme of the invention described above it can be seen that the invention has the beneficial effects as follows, for there is no three
The terminal (such as mobile phone) of dimension graphics hardware acceleration, it is possible to use the Three Dimensional Interface that this present invention provides shows
Showing device, method remove to obtain the Three Dimensional Interface that sense of reality is stronger, thus provide the user the most mutual body
Test.
When being embodied as, the three-dimensional interface display device that the embodiment of the present invention provides uses MVC pattern to carry out
Design, carry out 3 d rendering engine 30, Three Dimensional Interface views module 10, Three dimensions control device 20 separating and
Decoupling, makes the design of Three Dimensional Interface and exploitation have the biggest motility.
Wherein, described Three Dimensional Interface views module 10 is used for solving portability problem, because the present invention is real
The three-dimensional interface display device that executing example provides is to need independent of mobile phone graphic user interface GUI, so may be used
To reduce different terminals (such as mobile phone, the embodiment of the present invention will mainly illustrate as a example by mobile phone) upper three
The development cost at dimension interface.So, it is provided that Three Dimensional Interface views module 10 is by mobile phone graphic user interface
GUI encapsulates, so that when three-dimensional interface display device is transplanted to new mobile phone, needing that does only to exist
On new mobile phone, Three Dimensional Interface views module 10 is modified, and other parts are constant.Such as, not
On same mobile phone, the Three Dimensional Interface of display is identical, the most only revises its Three Dimensional Interface view mould
Block 10.
Three Dimensional Interface views module 10 is also used for and user is mutual.Specifically, it encapsulates mobile phone figure
The window of user interface GUI, and possess user and input previous screens output function, in order to transmit user's input
To Three dimensions control device 20.
Specifically, with continued reference to Fig. 1, described Three Dimensional Interface views module 10 includes graphical user interface window
Data module 101, user input detection module 102, and screen interactive module 103, wherein,
Graphical user interface window data module 101, the window for encapsulation image user interface GUI is believed
Breath;
User inputs detection module 102, to the operation of 3-D graphic and sends it to three for detecting user
D controller 20;
Screen interactive module 103, is used for showing Three Dimensional Interface.
Described Three dimensions control device 20 is used for solving scalability problem, this is because for various three-dimensional boundaries
Face, their Consumer's Experience is different, but three-dimensional graphics renderer is consistent, and user's interactive mode is also
Consistent.So, in actual implementation process, various different Three Dimensional Interfaces can have respective three
D controller 20, renders process then unification for 3-D graphic and is processed by three-dimensional process engine, for people
Machine is the most unified to be processed by Three Dimensional Interface views module 10.
In actual applications, it is allowed to Three Dimensional Interface changes Three dimensions control device 20, and can be according to user's needs
Dynamically open or close corresponding Three dimensions control device 20, even can carry out Three dimensions control at run duration
The replacement of device 20.Such as, when mobile phone runs, so that Three Dimensional Interface is cut between various styles
Change.
The function of Three dimensions control device 20 is used to obtain user and inputs and understand, such as, understand user to three-dimensional
The operation of figure, to obtain user's operation purpose to Three Dimensional Interface.Specifically, it according to user for
The operation of 3-D graphic, changes the visual effect of Three Dimensional Interface.
It addition, 3 d rendering engine 30 is used for solving high-performance question, because three-dimensional interface display device
Processing speed performance must be very fast, could do not have hardware-accelerated in the case of, carry out three-dimensional boundary glibly
Face shows.So, by independent for the 3 d rendering engine 30 that performance consumption is most and size of code is most,
It is specifically designed to high performance three-dimensional to render.And, when optimizing 3 d rendering engine 30 performance, need not revise
Three Dimensional Interface on various mobile phones.
The function of 3 d rendering engine 30 is used to rendering three-dimensional graphics, and it holds all 3-D graphic
Data, state and programmed logic.Specifically, it be responsible for process 3-D graphic data structure (include institute
Some light sources, motion and conventional sense information) and from the viewpoint renders three-dimensional figure at user or camera place
Shape.
With continued reference to Fig. 1, described 3 d rendering engine 30 at least includes model coordinate conversion module 301, generation
Boundary's coordinate transformation module 302, object are rejected module 303, are inserted render list module 304, back side elimination mould
Block 305, camera coordinates conversion module 306, optical staining module 307, three-dimensional body spatial reference module
308, texture mapping block 309, perspective transform module 310, image space cutting module 311, Yi Jiguang
One in gated module 312, wherein,
Model coordinate conversion module 301, for converting the model coordinate of 3-D graphic.To graphics
The model coordinate of shape converts.Such as perform rotation, scaling or other vertex operations in original place, i.e. revise
Model coordinate.
World coordinate transformation module 302, is transformed to the world for the position according to 3-D graphic by model coordinate
Coordinate;
Object rejects module 303, before converting to camera coordinates at execution world coordinates, selects and picks
Except sightless part for camera view relative in 3-D graphic.Become to camera coordinates performing world coordinates
Which before alternatively, need to judge 3-D graphic relative to being visible for camera view, in order to avoid rendering mistakenly
They.
Insert render list module 304, for being inserted by each polygon facet of the visible part of 3-D graphic
In render list.Render list is an array of pointers, the most each pointer point to one self-contained,
The polygon facet that can render.Each polygon facet of visible 3-D graphic can be inserted in render list.
Back side cancellation module 305, for eliminating the polygon facet in the 3-D graphic being blocked;
Camera coordinates conversion module 306, for converting 3-D graphic according to camera view;
Three-dimensional body spatial reference module 308, for foundation three-dimensional vision body to portion visible in 3-D graphic
Divide and carry out cutting;
Optical staining module 307, for being rendered as entity by 3-D graphic by wire frame, to strengthen 3-D graphic
Three dimension realistic;
Texture mapping block 309, for being attached to more than of 3-D graphic using a width two dimensional image as texture
On shape face, limit;
Perspective transform module 310, for camera coordinates is transformed to perspective grid, so that graphics deformation
It is changed to two-dimension picture;
Image space cutting module 311, for being transformed to screen coordinate by perspective grid;Being further used for will
The part of the 3-D graphic having crossed screen border carries out cutting;
Rasterizer module 312, for rendering three-dimensional graphics to display buffer.
Wherein, described 3 d rendering engine 30 is according to the Three Dimensional Interface render instruction 3-D graphic to being operated
The step performing to render process includes:
(1) according to user's operation to 3-D graphic, the model coordinate value of 3-D graphic is transformed to the world
Coordinate figure;
(2) each polygon facet of 3-D graphic is inserted in render list;
(3) photographing unit transformation matrix is created;
(4) elimination is in the polygon at the back side;
(5) according to camera view, the world coordinates value of 3-D graphic is transformed to camera coordinates value;
(6) according to three-dimensional vision body, the 3-D graphic that can only see a part is carried out cutting;
(7) render list is performed depth ordering;
(8) the camera coordinates value of 3-D graphic is transformed to screen coordinate value, by 3-D graphic by wire frame wash with watercolours
Dye is entity;
(9) draw render scenes, and the 3-D graphic after rendering is saved in video memory.
More specifically, refer to Fig. 5, the flow process at its drawing three-dimensional interface provided for the embodiment of the present invention
Figure, described drafting flow process comprises the steps:
Step S401, transformation model coordinate.Three-dimensional cube is performed upset, scaling or other summits behaviour
Make, have modified the model coordinate value of three-dimensional cube.Model coordinate is transformed to by the position according to 3-D graphic
World coordinates.
Step S402, insert an object in render list.In order to draw quickly, by each object
Polygon extracts, and is saved in uniformly in render list.Render list is an array of pointers, wherein
Each pointer points to a polygon facet self-contained, that can render, it is seen that each polygon of 3-D graphic
Face all can be inserted in render list.
Step S403, establishment photographing unit transformation matrix.Matrix operations in below step.
Step S404, elimination are in the polygon at the back side.Before execution world coordinates converts to camera coordinates,
Need to judge which 3-D graphic is visible for camera, in order to avoid rendering them mistakenly.People is the most not
To the back side need not draw, by using photographing unit transformation matrix, eliminate in render list and be in the back side
Polygon.
Step S405, conversion world coordinates are to camera coordinates.According to camera position and visual angle to possible visible
3-D graphic converts.
Step S406, polygon is carried out 3-D clipping.According to three-dimensional vision body to can only see a part
3-D graphic carries out cutting.
Step S407, to render list perform depth ordering.For accelerating polygonal in render list painting
System.
Step S408, conversion camera coordinates are to screen coordinate.3-D graphic is rendered as entity by wire frame, comes
Strengthen the three dimension realistic of 3-D graphic.A width two dimensional image is used to be attached to of 3-D graphic as texture
On polygon facet.Camera coordinates is transformed to perspective grid, and 3-D graphic is transformed to two dimensional image.Will perspective
Coordinate is transformed to screen coordinate, and some polygon image may cross screen border, needs its cutting.
Step S409, drafting render scenes.The final image of rendering three-dimensional graphics is to the video memory of mobile phone screen
In.Such as, three-dimensional cube is to draw in opaque mode, and three-dimensional cube mirror image is with translucent side
Formula draw, described three-dimensional cube mirror image simulates the inverted image of described three-dimensional cube, its reverses direction just as
Inverted image is the same, and the reverses direction of three-dimensional cube is contrary.
Step S410, complete the drafting of three-dimensional cube.
Correspondingly, the embodiment of the present invention additionally provides a kind of terminal, and it includes that Three Dimensional Interface as above shows
Showing device, with continued reference to Fig. 1, described device includes Three Dimensional Interface views module 10, Three dimensions control device 20,
And 3 d rendering engine 30, wherein,
Three Dimensional Interface views module 10, to the operation of 3-D graphic and sends it to three-dimensional for detecting user
Controller 20;
Three dimensions control device 20, renders finger for sending Three Dimensional Interface according to the operation of user to three-dimensional process engine
Order;
3 d rendering engine 30, for holding the 3-D graphic operated according to described Three Dimensional Interface render instruction
Row renders process.
The terminal that the embodiment of the present invention provides, owing to it comprises three-dimensional interface display device as described above,
And owing to above this three-dimensional interface display device being described in detail, no longer it will be carried out weight here
Repeat again.
As in figure 2 it is shown, the embodiment of the present invention additionally provides a kind of Three Dimensional Interface display packing, its Three Dimensional Interface
Display device includes Three Dimensional Interface views module 10, Three dimensions control device 20, and 3 d rendering engine 30,
Described method includes:
S101, Three Dimensional Interface views module 10 detect user and to the operation of 3-D graphic and send it to three
D controller 20;
S102, Three dimensions control device 20 send Three Dimensional Interface according to the operation of user to three-dimensional process engine and render
Instruction;
S103,3 d rendering engine 30 are according to the described Three Dimensional Interface render instruction 3-D graphic to being operated
Execution renders process.
Described three-dimensional interface display device is described in detail, refer to mentioned above, be not repeated herein
Bright.
As it is shown on figure 3, it makes the schematic flow sheet of three-dimensional cube, described flow process for the embodiment of the present invention
Including:
Step S201, drawing area is set.Determine three-dimensional cube position in mobile phone screen, three-dimensional vertical
Cube be positioned at the part within drawing area can drawn out, being positioned at the part outside drawing area can be cut out
Cut, without drawn.
Step S202, effective coverage is set.For touch-screen mobile phone, the touch location of user is positioned at effective district
Time within territory, three-dimensional cube just can make cross reaction.Such as, the finger of user moves in effective coverage
Time, three-dimensional cubic is known from experience to the upset of finger moving direction, when the finger of user moves outside effective coverage,
Three-dimensional cube will not overturn.
Step S203, newly-built frame buffer zone.Three Dimensional Interface engine of the present invention uses double buffers, at mobile phone
In screen, progressively scanned out is Three Dimensional Interface complete in frame buffer zone rather than drawing three-dimensional circle
The process in face.
Step S204, judgement are last faces.Six planes of circular treatment three-dimensional cube.
Step S205, the plane of newly-built three-dimensional cube.Make each plane of three-dimensional cube, specifically walk
Suddenly see below the description about Fig. 4.
Step S206, newly-built drawing area background.This image is as the background of three-dimensional cube.
Step S207, newly-built photographing unit.Simulating the eyes of people, in three dimensions, people is seen by eyes
Examining three-dimensional body, the object close to oneself looks big, and the object away from oneself looks little, and this can produce
Raw real spatial impression.
Step S208, newly-built depth buffer.In three dimensions, the object close to oneself can block from oneself
Remote object, depth buffer saves the far and near position of object.Two-dimensional space uses two coordinates of X, Y
Axle, three dimensions uses tri-coordinate axess of X, Y, Z, and the value in depth buffer represents on Z coordinate axle
Value.
Step S209, newly-built render scenes.This is context during drawing three-dimensional object, and render scenes includes
Render list, depth buffer, screen video memory, the concrete data of transparency, it determines three-dimensional body is with which kind of
Mode is drawn out.
Step S210, newly-built translucent table.Translucent three-dimensional cube mirror image 102 is three-dimensional cube
The inverted image of 101, to use this translucent table when drawing mirror image.
Step S211, complete the making of three-dimensional cube.
As shown in Figure 4, its flow process making each plane of three-dimensional cube provided for the embodiment of the present invention is shown
It is intended to.It describes the content that implements of above-mentioned steps S205 in detail, and implementation step is as follows:
Step S301, arrange three-dimensional cubic dignity indicate.Three-dimensional cube has six faces, is positioned at up and down
Front and back, its numerical value is different, determines to give this face which kind of numerical value by indicating.
Step S302, newly-built vertex list.This list saves the position on each summit of three-dimensional cubic dignity,
Model coordinate, all polygons is used to be made up of summit.
Step S303, new texture list of coordinates.This list saves and to be attached on this face, the coordinate of texture
Position, is sampled to image by these coordinate positions, then constitutes the pixel data of texture.
Step S304, newly-built vertex texture mapping table.This list establishes summit and texture coordinate one_to_one corresponding
Relation, determine this summit uses which concrete pixel data in texture.
Step S305, newly-built polygon list.This list saves polygon data, and polygon here is all
Triangle, use the benefit of triangle be each summit of triangle be coplanar, and triangle knot
Structure is simple, it is easy to 3-D graphic algorithm Fast Drawing.Triangle is the base that three-dimensional graphics renderer streamline is drawn
This pel, all three-dimensional bodies are made up of triangle.
Step S306, object space is set.Determining three-dimensional body position in three dimensions, i.e. it is alive
Position in boundary's coordinate system.
Step S307, object coordinates axle is set.In order to accurately overturn, three-dimensional body have for record towards
Model coordinate axle, uses world coordinates.Time so along tri-coordinate axes upsets of X, Y, Z, just can know that
Three-dimensional body towards.
Step S308, make article size mate drawing area.Three-dimensional cubic knows from experience Auto-matching drawing area
Size, make its own can by the most drawn out.
Step S309, new texture.Each three-dimensional cubic dignity can fill out an image, uses texture to figure
As scaling sampling, mate the size of three-dimensional cubic dignity.
Step S310, the value of all lists is set.Vertex list, texture coordinate list, polygon list meeting
Filling out numerical value accurately, these numerical value use in drawing flow process.
Step S311, complete three-dimensional cubic dignity making.
In embodiments of the present invention, described 3 d rendering engine 30 according to Three Dimensional Interface render instruction to being grasped
The 3-D graphic made performs to render the step of process and includes:
(1) according to user's operation to 3-D graphic, the model coordinate value of 3-D graphic is transformed to the world
Coordinate figure;
(2) each polygon facet of 3-D graphic is inserted in render list;
(3) photographing unit transformation matrix is created;
(4) elimination is in the polygon at the back side;
(5) according to camera view, the world coordinates value of 3-D graphic is transformed to camera coordinates value;
(6) according to three-dimensional vision body, the 3-D graphic that can only see a part is carried out cutting;
(7) render list is performed depth ordering;
(8) the camera coordinates value of 3-D graphic is transformed to screen coordinate value, by 3-D graphic by wire frame wash with watercolours
Dye is entity;
(9) draw render scenes, and the 3-D graphic after rendering is saved in video memory.
More specifically, refer to Fig. 5, the flow process at its drawing three-dimensional interface provided for the embodiment of the present invention
Figure, described drafting flow process comprises the steps:
Step S401, transformation model coordinate.Three-dimensional cube is performed upset, scaling or other summits behaviour
Make, have modified the model coordinate value of three-dimensional cube.Model coordinate is transformed to by the position according to 3-D graphic
World coordinates.
Step S402, insert an object in render list.In order to draw quickly, by each object
Polygon extracts, and is saved in uniformly in render list.Render list is an array of pointers, wherein
Each pointer points to a polygon facet self-contained, that can render, it is seen that each polygon of 3-D graphic
Face all can be inserted in render list.
Step S403, establishment photographing unit transformation matrix.Matrix operations in below step.
Step S404, elimination are in the polygon at the back side.Before execution world coordinates converts to camera coordinates,
Need to judge which 3-D graphic is visible for camera, in order to avoid rendering them mistakenly.People is the most not
To the back side need not draw, by using photographing unit transformation matrix, eliminate in render list and be in the back side
Polygon.
Step S405, conversion world coordinates are to camera coordinates.According to camera position and visual angle to possible visible
3-D graphic converts.
Step S406, polygon is carried out 3-D clipping.According to three-dimensional vision body to can only see a part
3-D graphic carries out cutting.
Step S407, to render list perform depth ordering.For accelerating polygonal in render list painting
System.
Step S408, conversion camera coordinates are to screen coordinate.3-D graphic is rendered as entity by wire frame, comes
Strengthen the three dimension realistic of 3-D graphic.A width two dimensional image is used to be attached to of 3-D graphic as texture
On polygon facet.Camera coordinates is transformed to perspective grid, and 3-D graphic is transformed to two dimensional image.Will perspective
Coordinate is transformed to screen coordinate, and some polygon image may cross screen border, needs its cutting.
Step S409, drafting render scenes.The final image of rendering three-dimensional graphics is to the video memory of mobile phone screen
In.Such as, three-dimensional cube is to draw in opaque mode, and three-dimensional cube mirror image is with translucent side
Formula draw, described three-dimensional cube mirror image simulates the inverted image of described three-dimensional cube, its reverses direction just as
Inverted image is the same, and the reverses direction of three-dimensional cube is contrary.
Step S410, complete the drafting of three-dimensional cube.
Described above illustrate and describes a preferred embodiment of the present invention, but as previously mentioned, it should be understood that
The present invention is not limited to form disclosed herein, is not to be taken as the eliminating to other embodiments, and can
For other combinations various, amendment and environment, and can be in invention contemplated scope described herein, by upper
State teaching or the technology of association area or knowledge is modified.And the change that those skilled in the art are carried out and change
Without departing from the spirit and scope of the present invention, the most all should be in the protection domain of claims of the present invention.