CN101599182B - Three-dimensional object rotating method, and corresponding computer system thereof - Google Patents

Three-dimensional object rotating method, and corresponding computer system thereof Download PDF

Info

Publication number
CN101599182B
CN101599182B CN200910160673A CN200910160673A CN101599182B CN 101599182 B CN101599182 B CN 101599182B CN 200910160673 A CN200910160673 A CN 200910160673A CN 200910160673 A CN200910160673 A CN 200910160673A CN 101599182 B CN101599182 B CN 101599182B
Authority
CN
China
Prior art keywords
dimensional
dimensional object
desktop
driver
rotation
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
CN200910160673A
Other languages
Chinese (zh)
Other versions
CN101599182A (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.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
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 Via Technologies Inc filed Critical Via Technologies Inc
Priority to CN200910160673A priority Critical patent/CN101599182B/en
Publication of CN101599182A publication Critical patent/CN101599182A/en
Application granted granted Critical
Publication of CN101599182B publication Critical patent/CN101599182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a three-dimensional object rotating method and a corresponding computer system thereof. The three-dimensional object rotating method can be used on a desktop of an operating system and comprises the following steps that: firstly, a three-dimensional driver receives three-dimensional data and rotation information; the three-dimensional data describe a three-dimensional object, and the three-dimensional data come from an application executing the desktop; and then the three-dimensional driver uses a three-dimensional accelerator to describe the three-dimensional object in a virtual shadow picture working-storage section, and carries out rotation processing of the three-dimensional object according to the rotation information. The method, the system and the recording medium can make the rotating and displaying process of the three-dimensional object simpler so as to improve the efficiency of rotating and displaying the three-dimensional object.

Description

Three-dimensional object rotating method and the computer system corresponding with it
Technical field
Three-dimensional (3-dimensional, the be called for short 3D) object that the invention relates to computing machine is described (rendering), and particularly relevant for a kind of three-dimensional object rotating method, the department of computer science corresponding with it recording medium of unifying.
Background technology
(SuSE) Linux OS is because the essence of open source (open source); Have cheap be easy to advantage such as modification; Add X window system (X Window System) desktop that is provided and the user interface of window style, nowadays popularize in the consumer market gradually.Linux core (kernel) and X window system; Be widely used in personal computer (personal computer; Abbreviation PC), mobile computer (notebook), intelligent mobile phone and super brain machine various embedded or Table top type electronic equipments such as (Ultra Mobile PC are called for short UMPC).
X window system has the enlargement module of a RandR by name (The X Resize and Rotate Extension), can be under the situation that does not influence application program and X window system, the dynamic effect such as rotation and convergent-divergent of desktop is provided.Above-mentioned rotation and convergent-divergent be by RandR carry out and the Presentation Function of application program itself irrelevant.For example, if there is the user to carry out the recreation of a 3-D display on the table, and set according to the user; RandR meeting rotating table top; In the case, the three-dimensional object in the games window can further be accepted the rotation processing of RandR, just is presented on the picture.
Using three-dimensional accelerator hardware such as (3D accelerator) to improve the efficient of describing three-dimensional object, has been very common way.In above-mentioned example; Whenever the displaying contents of desktop changes to some extent; For example user's operation makes the three-dimensional object in the recreation change distance or visual angle; The three-dimensional driver (3D driver) that drives three-dimensional accelerator can be sent (damage) information of damage to operating system, and which part changes on the expression desktop, makes the operating system part of display change again.
Summary of the invention
The present invention provides a kind of three-dimensional object rotating method, a kind of computer system and a kind of computer-readable recording medium of carrying out said method.Above-mentioned three-dimensional object rotating method can improve the efficient of on operating system desktop, rotating and show three-dimensional object.
The present invention proposes a kind of three-dimensional object rotating method, can be used for the desktop of operating system, comprises the following steps.At first, three-dimensional driver receives three-dimensional data and rotation information.Wherein three-dimensional data is described three-dimensional object, and three-dimensional data is from the application program that is executed in above-mentioned desktop.Three-dimensional driver is utilized three-dimensional accelerator, according to rotation information same three-dimensional object is rotated processing, in diplopia picture working area, describes three-dimensional object.
The present invention proposes a kind of computer system in addition, carries out aforesaid three-dimensional object rotating method.This computer system comprises: a three-dimensional accelerator; Be controlled by a three-dimensional driver; Wherein when a three-dimensional data is sent; This three-dimensional driver receives this three-dimensional data, parallel connection unification rotation information, driving should the three-dimensional accelerator to describe a three-dimensional object and this three-dimensional object be rotated processing; And a diplopia picture working area, being connected to this three-dimensional accelerator, this diplopia picture working area comprises that an image keeps in the address, in order to temporary this three-dimensional object.
The present invention proposes a kind of recording medium of embodied on computer readable in addition, stores a computer program, and this computer program is executed in the desktop of an operating system to carry out aforesaid three-dimensional object rotating method.The recording medium of this embodied on computer readable comprises: store a three-dimensional driver; In order to drive a three-dimensional accelerator; Wherein when receiving a three-dimensional data; This three-dimensional driver is united a rotation information, driving should the three-dimensional accelerator to describe a three-dimensional object and this three-dimensional object be rotated processing; And storing a display driving software, this display driving software provides this rotation information to this three-dimensional driver through an interface.
The present invention is with the rotation of three-dimensional object and describe all to transfer to above-mentioned three-dimensional driver and handle, and therefore makes the rotation of three-dimensional object and procedure for displaying simplify more, and then improves the efficient of rotation and demonstration three-dimensional object.
Description of drawings
Fig. 1 is a kind of process flow diagram of three-dimensional object rotating method.
Fig. 2 is the computer system synoptic diagram of execution graph 1 method.
Fig. 3 is the process flow diagram of a kind of three-dimensional object rotating method of one embodiment of the invention.
Fig. 4 is the computer system synoptic diagram of execution graph 3 methods.
The simple declaration of symbol is following in the accompanying drawing:
110~150: flow chart step
205: application program
210: three-dimensional data
215: three-dimensional driver
220: three-dimensional accelerator
225: rotation information
230: storer to be shown
235:RandR
240: diplopia picture working area
245: display driving software
250: display
310~340: flow chart step
405: application program
410: three-dimensional data
415: three-dimensional driver
420: rotation information
425: image is kept in the address
430: three-dimensional accelerator
435: diplopia picture working area
440: display driving software
445: display.
Embodiment
For letting the above-mentioned feature and advantage of the present invention can be more obviously understandable, hereinafter is special lifts embodiment, and cooperates appended graphic elaborating as follows.
Fig. 1 and Fig. 2 explain general picture flow for displaying, and wherein Fig. 1 is rotation and the process flow diagram that shows above-mentioned three-dimensional object, and Fig. 2 is the computer system synoptic diagram when carrying out this flow process.The computer system of Fig. 2 is above-mentioned personal computer, mobile computer, intelligent mobile phone or super brain machine.
The flow process of Fig. 1 is from step 110 beginning, please with reference to Fig. 2.At first, three-dimensional driver 215 self-application programs 205 (for example 3d gaming) obtain the three-dimensional data 210 (step 110) of describing three-dimensional object.Three-dimensional driver 215 is depicted in storer to be shown (on-screen memory) 230 (steps 120) through three-dimensional accelerator 220 with three-dimensional object.RandR 235 obtains rotation information 225 (step 130) from display driving software (display driver) 245 then.Rotation information 225 comprises the information such as width and height of the anglec of rotation and the picture of RandR.Next, RandR 235 makes rotation processing according to 225 pairs of three-dimensional objects of rotation information, and the three-dimensional object that rotates through is copied to diplopia picture working area (shadow frame buffer) 240 (steps 140).At last, through display driving software 245 three-dimensional object is presented at display 250 (step 150).
Because RandR after flow for displaying all will copy to diplopia picture working area 240 from storer 230 to be shown with three-dimensional object each time, goes to do rotation processing again, this can reduce the usefulness of computer system.In addition, same three-dimensional object needs storer 230 to be shown to store with diplopia picture working area 240 these two block storages, and also the storer to computer system causes extra use.
Fig. 3 is the process flow diagram according to the three-dimensional object rotating method of one embodiment of the invention, the computer system synoptic diagram when Fig. 4 is execution graph 3 flow processs.The computer system of Fig. 4 can be personal computer, mobile computer, intelligent mobile phone, super brain machine or other similar embedded or Table top type electronic equipments.The method of Fig. 3 is applicable to the desktop that operating system showed that aforementioned calculation machine system carries out, the for example desktop that X window system showed of (SuSE) Linux OS.
As stated, general image processing technique is to describe three-dimensional object by three-dimensional driver, and by RandR rotation three-dimensional object.When the displaying contents of desktop changed, three-dimensional driver can be sent damage information and given operating system, and which part changes on the expression desktop, makes the operating system part of display change again.Present embodiment then be with three-dimensional object describe and rotation is transferred to three-dimensional driver and is handled.When the displaying contents of desktop changed, three-dimensional driver was not sent damage information and is given operating system, but the describing and rotate of three-dimensional object by oneself.Can greatly improve the usefulness of computer system thus, and reduce the use of storer.
The flow process of Fig. 3 is from step 310 beginning, please with reference to Fig. 4.At first, three-dimensional driver 415 receives three-dimensional data 410 (step 310).Three-dimensional data 410 is to be provided by the application program that is executed in desktop 405, describes the three-dimensional object that desire shows.Three-dimensional driver 415 obtains the temporary address 425 (step 320) of image in rotation information 420 and diplopia picture working area 435 from display driving software 440 through an interface then.In the present embodiment; Rotation information 420; For example: information such as the anglec of rotation of three-dimensional object and the width of picture and height can be added into three-dimensional driver 415 and display driving software 440 in advance, so that the communication between three-dimensional driver 415 and the display driving software 440.In addition, rotation information 420 can be set in display driving software 440 by the user.
Next, three-dimensional driver 415 is utilized three-dimensional accelerator 430, describes three-dimensional object in the temporary address 425 of the image in diplopia picture working area 435, and is rotated processing (step 330) according to 420 pairs of above-mentioned three-dimensional objects of rotation information.Wherein, three-dimensional driver also can be through above-mentioned interface obtains the temporary address of image in diplopia picture working area from display driving software.Then, through display driving software 440, show above-mentioned operating system desktop and three-dimensional object at display 445.Above-mentioned three-dimensional object is presented in the above-mentioned desktop (step 340).
The three-dimensional object rotating method of Fig. 3 can be carried out by computer program, and this computer program can be stored in the recording medium of any embodied on computer readable, for example recording mediums such as storer, storage card, hard disk or CD.
In sum, the present invention does not carry out the rotation of three-dimensional object at desktop through operating system, but by three-dimensional driver directly handle three-dimensional object describe with desktop on rotation.Therefore treatment scheme is more simplified than conventional art, can save storer to be shown, also can save from storer to be shown to duplicating the diplopia picture working area.Show 30 pictures if show the application program per second of three-dimensional object, use the present invention, just can save each second and duplicate for 30 times.Therefore the present invention can improve the rotation of three-dimensional object on operating system desktop and the efficient of demonstration.
The above is merely preferred embodiment of the present invention; So it is not in order to limit scope of the present invention; Any personnel that are familiar with this technology; Do not breaking away from the spirit and scope of the present invention, can do further improvement and variation on this basis, so the scope that claims were defined that protection scope of the present invention is worked as with the application is as the criterion.

Claims (10)

1. a three-dimensional object rotating method is characterized in that, is used for the desktop of an operating system, and this three-dimensional object rotating method comprises:
One three-dimensional driver receives a three-dimensional data and a rotation information, and wherein this three-dimensional data is described a three-dimensional object, and this three-dimensional data is from an application program that is executed in this desktop; And
This three-dimensional driver is utilized a three-dimensional accelerator; In a diplopia picture working area, describe this three-dimensional object; And this three-dimensional object is carried out a rotation processing according to this rotation information; Wherein when the displaying contents of this desktop changed, this three-dimensional driver was not sent damage information and is given this operating system.
2. three-dimensional object rotating method according to claim 1 is characterized in that, this operating system is Linux, and this operating system shows this desktop through X window system.
3. three-dimensional object rotating method according to claim 1; It is characterized in that; This three-dimensional driver obtains this rotation information through an interface from a display driving software, and this rotation information comprises the anglec of rotation of this three-dimensional object and the width and height of picture.
4. three-dimensional object rotating method according to claim 3; It is characterized in that; The image that this three-dimensional driver obtains this diplopia picture working area through this interface from this display driving software is kept in the address, and this three-dimensional driver is described this three-dimensional object in the temporary address of this image.
5. three-dimensional object rotating method according to claim 3 is characterized in that, more comprises:
Through this display driving software, show this desktop and this three-dimensional object at a display, this three-dimensional object is shown in this desktop.
6. a computer system is characterized in that, carries out the three-dimensional object rotation in the desktop of an operating system, and this computer system comprises:
One three-dimensional accelerator; Be controlled by a three-dimensional driver, wherein when a three-dimensional data was sent, this three-dimensional driver received this three-dimensional data; Parallel connection unification rotation information; Driving should the three-dimensional accelerator describing a three-dimensional object and this three-dimensional object be rotated processing, and when the displaying contents of this desktop changed, this three-dimensional driver was not sent damage information and is given this operating system; And
One diplopia picture working area is connected to this three-dimensional accelerator, and this diplopia picture working area comprises that an image keeps in the address, in order to temporary this three-dimensional object.
7. computer system according to claim 6 is characterized in that, this operating system is Linux, and this operating system shows this desktop through X window system.
8. computer system according to claim 6 is characterized in that this three-dimensional driver obtains this rotation information through an interface from a display driving software, and this rotation information comprises the anglec of rotation of this three-dimensional object and the width and height of picture.
9. computer system according to claim 8 is characterized in that, this three-dimensional driver obtains the temporary address of this image through this interface from this display driving software, and this three-dimensional driver is described this three-dimensional object in the temporary address of this image.
10. computer system according to claim 8 is characterized in that, this display driving software shows this desktop and this three-dimensional object at a display.
CN200910160673A 2009-07-29 2009-07-29 Three-dimensional object rotating method, and corresponding computer system thereof Active CN101599182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910160673A CN101599182B (en) 2009-07-29 2009-07-29 Three-dimensional object rotating method, and corresponding computer system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910160673A CN101599182B (en) 2009-07-29 2009-07-29 Three-dimensional object rotating method, and corresponding computer system thereof

Publications (2)

Publication Number Publication Date
CN101599182A CN101599182A (en) 2009-12-09
CN101599182B true CN101599182B (en) 2012-10-03

Family

ID=41420615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910160673A Active CN101599182B (en) 2009-07-29 2009-07-29 Three-dimensional object rotating method, and corresponding computer system thereof

Country Status (1)

Country Link
CN (1) CN101599182B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236441A (en) * 2010-04-26 2011-11-09 鸿富锦精密工业(深圳)有限公司 Interactive three-dimensional image display system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404015A (en) * 2002-10-16 2003-03-19 威盛电子股份有限公司 Partial image rotating device and method
CN1910543A (en) * 2004-10-12 2007-02-07 日本电信电话株式会社 3D pointing method, 3D display control method, 3D pointing device, 3D display control device, 3D pointing program, and 3D display control program
CN1910619A (en) * 2003-12-19 2007-02-07 Td视觉有限公司 Three-dimensional video game system
JP2007260254A (en) * 2006-03-29 2007-10-11 Samii Kk Image processing device, image processing method, and its program
JP2008071360A (en) * 2000-11-15 2008-03-27 Sega Corp Display object generation method in information processor, program for executing the same, and recording medium for storing program
CN101189643A (en) * 2005-04-25 2008-05-28 株式会社亚派 3D image forming and displaying system
CN101465957A (en) * 2008-12-30 2009-06-24 应旭峰 System for implementing remote control interaction in virtual three-dimensional scene

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008071360A (en) * 2000-11-15 2008-03-27 Sega Corp Display object generation method in information processor, program for executing the same, and recording medium for storing program
CN1404015A (en) * 2002-10-16 2003-03-19 威盛电子股份有限公司 Partial image rotating device and method
CN1910619A (en) * 2003-12-19 2007-02-07 Td视觉有限公司 Three-dimensional video game system
CN1910543A (en) * 2004-10-12 2007-02-07 日本电信电话株式会社 3D pointing method, 3D display control method, 3D pointing device, 3D display control device, 3D pointing program, and 3D display control program
CN101189643A (en) * 2005-04-25 2008-05-28 株式会社亚派 3D image forming and displaying system
JP2007260254A (en) * 2006-03-29 2007-10-11 Samii Kk Image processing device, image processing method, and its program
CN101465957A (en) * 2008-12-30 2009-06-24 应旭峰 System for implementing remote control interaction in virtual three-dimensional scene

Also Published As

Publication number Publication date
CN101599182A (en) 2009-12-09

Similar Documents

Publication Publication Date Title
US11232534B2 (en) Scheme for compressing vertex shader output parameters
US10733691B2 (en) Fragment shaders perform vertex shader computations
JP6062438B2 (en) System and method for layering using a tile-by-tile renderer
US9164646B2 (en) Method and apparatus for accommodating display migration among a plurality of physical displays
JP2016524242A (en) Use a compute shader as the front end for a vertex shader
CN104571842B (en) Information processing method and electronic equipment
EP2854401A1 (en) Stereoscopic rendering using vertix shader instancing
WO2014193591A1 (en) Command instruction management
CN109308742A (en) A kind of method and apparatus running 2D application in the 3D scene of virtual reality
CN108595284B (en) Texture sharing method, computer equipment and storage medium
CN101599182B (en) Three-dimensional object rotating method, and corresponding computer system thereof
WO2020068456A1 (en) Blending neighboring bins
US8432406B1 (en) Apparatus, system, and method for clipping graphics primitives with accelerated context switching
TWI556167B (en) System and method for multiple native software applications user interface composition
EP3776168A1 (en) Mechanism to present in an atomic manner a single buffer that covers multiple displays
CN111782333B (en) Interface display method and device in game, storage medium and terminal equipment
JP2017072977A (en) Computer program
CN117354532A (en) Video decoding rendering method and device based on multiple display cards
CN117234655A (en) Method, device, equipment and medium for running Linux desktop program based on android system
TWI497396B (en) Method for rotating a 3d object, and computer system and recording medium thereof
JP2007520749A5 (en)
JP2014229217A (en) Image processing apparatus enabling high-speed two-dimensional graphics processing, and image processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant