CN102523473B - A kind of three-dimensional interface display device, method and terminal - Google Patents

A kind of three-dimensional interface display device, method and terminal Download PDF

Info

Publication number
CN102523473B
CN102523473B CN201110393176.4A CN201110393176A CN102523473B CN 102523473 B CN102523473 B CN 102523473B CN 201110393176 A CN201110393176 A CN 201110393176A CN 102523473 B CN102523473 B CN 102523473B
Authority
CN
China
Prior art keywords
graphic
module
dimensional
user
interface
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.)
Active
Application number
CN201110393176.4A
Other languages
Chinese (zh)
Other versions
CN102523473A (en
Inventor
顾伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
Nanjing ZTE New Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201110393176.4A priority Critical patent/CN102523473B/en
Publication of CN102523473A publication Critical patent/CN102523473A/en
Priority to PCT/CN2012/077950 priority patent/WO2013078859A1/en
Application granted granted Critical
Publication of CN102523473B publication Critical patent/CN102523473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of three-dimensional interface display device, method and terminal, described method includes that Three Dimensional Interface views module detection user 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;3 d rendering engine renders process according to described Three Dimensional Interface render instruction to the 3-D graphic execution operated.Use the present invention, for there is no the hardware-accelerated terminal of 3-D graphic, it is also possible to obtain the Three Dimensional Interface that sense of reality is stronger, thus provide the user more preferable interactive experience.

Description

A kind of three-dimensional interface display device, method and terminal
Technical field
The present invention relates to the graphical user interface technology field of terminal, in particular to a kind of Three Dimensional Interface Display device, method and terminal.
Background technology
Along with the development of electronic technology and becoming increasingly popular of mobile phone, people are for the functional requirement of mobile phone The most day by day improving, such as, current mobile phones design company all pays much attention to beautifying of mobile phone graphic user interface and sets Meter.This is because the outstanding appearance design of mobile phone products for commodity sale with promote for, have act foot The effect of weight, to this end, provide graceful graphic user interface to think the friendship that its offer is good to cellphone subscriber Experience is just particularly important mutually.
At present, in order to provide more preferable interactive experience to cellphone subscriber, usually human-computer interaction interface is used The form of Three Dimensional Interface.Its smooth dynamic effect, fine and smooth soft picture, real spatial impression, can be more real It is close to the users impression, cellphone subscriber can be made to be enjoyed at higher level interface.
Traditional carry out the method that 3 D graphical interface shows not having on the hardware-accelerated mobile phone of 3-D graphic In, it is generally adopted by utilizing X-Y scheme technology to go to copy Three Dimensional Interface.Owing to not being use 3-D graphic Technology, interactive experience can not reach the effect at true three-dimension interface, so that Consumer's Experience is poor.
Such as China Patent Publication No. is CN101655989, invention entitled " a kind of mobile phone 3D special effect graph Shape user interface system and method ", publication date is that the patent on February 24th, 2010 then discloses a kind As Three Dimensional Interface display packing, the operation principle of this technology is: by its three-dimensional special efficacy processing module to Family interface resources picture carries out the calculation process such as picture upset, distortion, variable color, the picture after then processing Logically order arranges, and is stored in mobile phone EMS memory;When user selects to enter menu interface, people Machine interface module logically order calls above-mentioned picture so that it is produces solid upset specially good effect, thus reaches three Dimension stereoeffect.
This technology is disadvantageous in that, the picture of its operation is two-dimension picture resource, uses X-Y scheme skill Art is to copy Three Dimensional Interface, it is impossible to produces the 3-D graphic close to sense of reality, thus reduces user Experience, meanwhile, the method also cannot allow its 3 D stereo picture copied carry out up and down, left and right, oblique angle etc. The upset in various directions, therefore its Consumer's Experience is contained further.
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.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes of the present invention Point, the schematic description and description of the present invention is used for explaining the present invention, is not intended that to the present invention not Work as restriction.In the accompanying drawings:
Fig. 1 is the three-dimensional interface display device structural representation that the embodiment of the present invention provides;
Fig. 2 is the Three Dimensional Interface display packing schematic flow sheet that the embodiment of the present invention provides;
Fig. 3 is the flow chart of the making 3-D graphic (three-dimensional cube) that the embodiment of the present invention provides;
Fig. 4 is the flow process of making 3-D graphic (three-dimensional cube) each plane that the embodiment of the present invention provides Figure;
Fig. 5 is the flow chart at the drawing three-dimensional interface that the embodiment of the present invention provides.
Detailed description of the invention
In order to make the technical problem to be solved, technical scheme and beneficial effect clearer, bright In vain, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that herein Described specific embodiment, only in order to explain the present invention, is not intended to limit the present invention.
As it is shown in figure 1, embodiments provide a kind of three-dimensional interface display device, including 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.
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.

Claims (9)

1. a three-dimensional interface display device, it is characterised in that be applied to do not have 3-D graphic hardware-accelerated Terminal, including 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, is used for obtaining user and inputs and understand, and understands user's operation to 3-D graphic to obtain Take the family operation purpose to Three Dimensional Interface, send Three Dimensional Interface according to the operation of user to 3 d rendering engine Render instruction;Various different Three Dimensional Interfaces have respective Three dimensions control device, according to user's needs in operation Dynamically open or close corresponding Three dimensions control device, and carry out the replacement of Three dimensions control device;
3 d rendering engine, for performing the 3-D graphic operated according to described Three Dimensional Interface render instruction Render process.
2. three-dimensional interface display device as claimed in claim 1, it is characterised in that described Three Dimensional Interface Views module includes that graphical user interface window data module, user input detection module, and screen is mutual 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.
3. three-dimensional interface display device as claimed in claim 1, it is characterised in that described three-dimensional rendering Engine at least includes that model coordinate conversion module, world coordinate transformation module, object are rejected module, inserted wash with watercolours Dye list block, back side cancellation module, camera coordinates conversion module, optical staining module, three-dimensional body are empty Between cutting module, texture mapping block, perspective transform module, image space cutting module and rasterisation One in 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.
4. the three-dimensional interface display device as described in claim 1 or 3, it is characterised in that described three-dimensional Rendering engine renders the step bag of process according to Three Dimensional Interface render instruction to the 3-D graphic execution operated Include:
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.
5. a terminal, it is characterised in that include that the Three Dimensional Interface as described in claim 1-4 is arbitrary shows Device.
6. a Three Dimensional Interface display packing, it is characterised in that be applied to do not have 3-D graphic hardware-accelerated Terminal, its three-dimensional interface display device includes Three Dimensional Interface views module, Three dimensions control device, and three-dimensional 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 is used for obtaining user and inputs and understand, and understands user's operation to 3-D graphic to obtain User's operation purpose to Three Dimensional Interface, sends Three Dimensional Interface wash with watercolours according to the operation of user to 3 d rendering engine Have a finger in every pie order;Various different Three Dimensional Interfaces have respective Three dimensions control device, need to move according to user in operation Open or close to state corresponding Three dimensions control device, and carry out the replacement of Three dimensions control device;
3 d rendering engine renders place according to described Three Dimensional Interface render instruction to the 3-D graphic execution operated Reason.
7. Three Dimensional Interface display packing as claimed in claim 6, it is characterised in that described Three Dimensional Interface Views module includes that graphical user interface window data module, user input detection module, and screen is mutual 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.
8. Three Dimensional Interface display packing as claimed in claim 6, it is characterised in that described three-dimensional rendering Engine at least includes that model coordinate conversion module, world coordinate transformation module, object are rejected module, inserted wash with watercolours Dye list block, back side cancellation module, camera coordinates conversion module, optical staining module, three-dimensional body are empty Between cutting module, texture mapping block, perspective transform module, image space cutting module and rasterisation One in 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.
9. Three Dimensional Interface display packing as claimed in claim 6, it is characterised in that described three-dimensional rendering The step that engine renders process according to Three Dimensional Interface render instruction to the 3-D graphic execution operated 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.
CN201110393176.4A 2011-12-01 2011-12-01 A kind of three-dimensional interface display device, method and terminal Active CN102523473B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110393176.4A CN102523473B (en) 2011-12-01 2011-12-01 A kind of three-dimensional interface display device, method and terminal
PCT/CN2012/077950 WO2013078859A1 (en) 2011-12-01 2012-06-29 Three-dimensional interface display device, method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110393176.4A CN102523473B (en) 2011-12-01 2011-12-01 A kind of three-dimensional interface display device, method and terminal

Publications (2)

Publication Number Publication Date
CN102523473A CN102523473A (en) 2012-06-27
CN102523473B true CN102523473B (en) 2016-08-31

Family

ID=46294249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110393176.4A Active CN102523473B (en) 2011-12-01 2011-12-01 A kind of three-dimensional interface display device, method and terminal

Country Status (2)

Country Link
CN (1) CN102523473B (en)
WO (1) WO2013078859A1 (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523473B (en) * 2011-12-01 2016-08-31 南京中兴软件有限责任公司 A kind of three-dimensional interface display device, method and terminal
US9536345B2 (en) * 2012-12-26 2017-01-03 Intel Corporation Apparatus for enhancement of 3-D images using depth mapping and light source synthesis
CN103092612B (en) * 2012-12-31 2016-12-28 深圳天珑无线科技有限公司 Realize method and the electronic installation of Android operation system 3D desktop pinup picture
CN103309562A (en) * 2013-06-28 2013-09-18 北京小米科技有限责任公司 Desktop display method, desktop display device and mobile terminal
CN103455970A (en) * 2013-08-30 2013-12-18 天津市测绘院 Method for accelerated display of invisible part by three-dimensional digital urban system model
CN104598182B (en) * 2014-12-25 2018-02-02 北京数码大方科技股份有限公司 Three-dimensional demonstration method and device for document
CN105808220B (en) * 2014-12-30 2020-03-17 深圳Tcl数字技术有限公司 Method and device for displaying three-dimensional effect by application program
CN105007480A (en) * 2015-07-06 2015-10-28 上海玮舟微电子科技有限公司 Naked-eye three-dimensional (3D) display method and system for 3D data
CN106412562B (en) * 2015-07-31 2019-10-25 深圳超多维科技有限公司 The method and its system of stereo content are shown in three-dimensional scenic
CN105894566A (en) * 2015-12-01 2016-08-24 乐视致新电子科技(天津)有限公司 Model rendering method and device
CN107045437A (en) * 2016-02-05 2017-08-15 阿里巴巴集团控股有限公司 A kind of method for realizing batch render, device and equipment
CN108537874A (en) * 2017-03-01 2018-09-14 黎志毅 The method that three-dimensional light data is automatically switched to UE4
CN107015654A (en) * 2017-04-10 2017-08-04 深圳大学 Air navigation aid and device based on augmented reality
CN107527377B (en) * 2017-08-25 2020-10-16 扆冰蕾 Three-dimensional virtual earth-suspended Chinese character rendering method based on mobile platform
CN107608608B (en) * 2017-09-25 2021-01-26 浙江科澜信息技术有限公司 Information interaction method, device and system of three-dimensional graphic rendering engine
CN108305208A (en) * 2017-12-12 2018-07-20 杭州品茗安控信息技术股份有限公司 A kind of optimization of model dynamic analysis and three-dimension interaction processing method
CN108479067B (en) * 2018-04-12 2019-09-20 网易(杭州)网络有限公司 The rendering method and device of game picture
CN108734792B (en) * 2018-05-24 2020-11-13 北京邮电大学 Holographic projection auxiliary teaching method, device and system with remote interaction function
CN109828818B (en) * 2019-01-29 2022-03-01 广联达科技股份有限公司 Primitive style transformation method based on browser-side display engine
CN109887078B (en) * 2019-03-12 2023-04-07 阿波罗智联(北京)科技有限公司 Sky drawing method, device, equipment and medium
CN110232718B (en) * 2019-05-10 2021-01-08 西安航天动力试验技术研究所 Three-dimensional waterfall graph rendering color customization method
CN113808271A (en) * 2020-06-17 2021-12-17 广东博智林机器人有限公司 Rendering method and device of three-dimensional model, electronic equipment and storage medium
CN113900744A (en) * 2020-06-22 2022-01-07 深圳市万普拉斯科技有限公司 Screen display method, device, terminal and computer readable storage medium
CN114419230A (en) * 2022-01-21 2022-04-29 北京字跳网络技术有限公司 Image rendering method and device, electronic equipment and storage medium
CN118154760A (en) * 2024-05-10 2024-06-07 山东捷瑞数字科技股份有限公司 Real-time interaction method and system based on three-dimensional engine on model surface

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340598A (en) * 2008-08-07 2009-01-07 北京衡准科技有限公司 Method and apparatus for implementing three-dimensional playing of media
CN101500328A (en) * 2008-02-02 2009-08-05 德信智能手机技术(北京)有限公司 Apparatus and method for implementing three-dimension interaction on mobile phone

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8464175B2 (en) * 2004-12-09 2013-06-11 Microsoft Corporation Journal display having three dimensional appearance
CN102523473B (en) * 2011-12-01 2016-08-31 南京中兴软件有限责任公司 A kind of three-dimensional interface display device, method and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500328A (en) * 2008-02-02 2009-08-05 德信智能手机技术(北京)有限公司 Apparatus and method for implementing three-dimension interaction on mobile phone
CN101340598A (en) * 2008-08-07 2009-01-07 北京衡准科技有限公司 Method and apparatus for implementing three-dimensional playing of media

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张建中.《3D图形渲染引擎的设计与实现》.《中国优秀硕士学位论文全文数据库信息科技辑》.2007,第I138-1113页. *

Also Published As

Publication number Publication date
WO2013078859A1 (en) 2013-06-06
CN102523473A (en) 2012-06-27

Similar Documents

Publication Publication Date Title
CN102523473B (en) A kind of three-dimensional interface display device, method and terminal
US10192363B2 (en) Math operations in mixed or virtual reality
CN111803945B (en) Interface rendering method and device, electronic equipment and storage medium
WO2013184534A4 (en) Non-static 3d map views
Comes Haptic devices and tactile experiences in museum exhibitions
CN106415667A (en) Computer graphics with enhanced depth effect
CN101477700B (en) Real tri-dimension display method oriented to Google Earth and Sketch Up
CN106204746A (en) A kind of augmented reality system realizing 3D model live paint
CN109725956A (en) A kind of method and relevant apparatus of scene rendering
TW201237801A (en) Method for processing three-dimensional image vision effects
CN101477701A (en) Built-in real tri-dimension rendering process oriented to AutoCAD and 3DS MAX
CN102044084A (en) Two-dimensional plane expression method of three-dimensional graph
CN101477702B (en) Built-in real tri-dimension driving method for computer display card
JP7500017B2 (en) Method and apparatus for facilitating visualization and manipulation of 3D objects across multiple devices - Patents.com
US9043707B2 (en) Configurable viewcube controller
CN101521828B (en) Implanted type true three-dimensional rendering method oriented to ESRI three-dimensional GIS module
CN108205823A (en) MR holographies vacuum experiences shop and experiential method
CN101511034A (en) Truly three-dimensional stereo display method facing Skyline
CN101540056A (en) Implanted true-three-dimensional stereo rendering method facing to ERDAS Virtual GIS
KR101428577B1 (en) Method of providing a 3d earth globes based on natural user interface using motion-recognition infrared camera
CN106204408A (en) Drawing processes circuit and preposition depth information process method thereof
CN101488229A (en) PCI three-dimensional analysis module oriented implantation type ture three-dimensional stereo rendering method
CN114779948A (en) Method, device and equipment for controlling instant interaction of animation characters based on facial recognition
CN115311395A (en) Three-dimensional scene rendering method, device and equipment
US11967017B2 (en) Transparent, semi-transparent, and opaque dynamic 3D objects in design software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160725

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant after: Nanjing Zhongxing Software Co., Ltd.

Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice

Applicant before: ZTE Corporation

C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20180425

Address after: 518057 five floor, block A, ZTE communication tower, Nanshan District science and Technology Park, Shenzhen, Guangdong.

Patentee after: ZTE Corporation

Address before: 210012 No. 68, Bauhinia Road, Ningnan street, Yuhuatai District, Nanjing, Jiangsu

Patentee before: Nanjing Zhongxing Software Co., Ltd.

TR01 Transfer of patent right