CN103785174B - A kind of same screen of playing shows the method and system of ten thousand people - Google Patents

A kind of same screen of playing shows the method and system of ten thousand people Download PDF

Info

Publication number
CN103785174B
CN103785174B CN201410067395.7A CN201410067395A CN103785174B CN 103785174 B CN103785174 B CN 103785174B CN 201410067395 A CN201410067395 A CN 201410067395A CN 103785174 B CN103785174 B CN 103785174B
Authority
CN
China
Prior art keywords
pixel
layer
big
game
image information
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
CN201410067395.7A
Other languages
Chinese (zh)
Other versions
CN103785174A (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.)
Beijing ELEX Technology Co Ltd
Original Assignee
Beijing ELEX Technology 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 Beijing ELEX Technology Co Ltd filed Critical Beijing ELEX Technology Co Ltd
Priority to CN201410067395.7A priority Critical patent/CN103785174B/en
Publication of CN103785174A publication Critical patent/CN103785174A/en
Application granted granted Critical
Publication of CN103785174B publication Critical patent/CN103785174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Display Devices Of Pinball Game Machines (AREA)

Abstract

The present invention provides a kind of same screen of playing to show the method and system of ten thousand people, by obtaining the image information in game image file to be drawn, the image information obtained according to described image information acquisition module, draw game image file, further according to the position encoded information in image information and collision detection region, judging hiding relation and block scope, image file selectivity is rendered and shows by the information finally according to above-mentioned judgement.The invention has the beneficial effects as follows: the pixel such as personage or building is too much when, GPU needs only to carry out the drafting of minority, game picture can be completed, greatly reduce screen-refresh number of times, increase refresh rate, display speed is fast simultaneously, do not have Caton phenomenon, game picture smoothly can be shown to game user, and the hiding relation that dynamic pixel in gaming exists with static pixel, properer reality, allow game more resistant to play, interesting.

Description

A kind of same screen of playing shows the method and system of ten thousand people
Technical field
The invention belongs to field of network game technology, particularly relate to a kind of method that same screen of playing shows ten thousand people.
Background technology
Along with internet communication and the development of online game technology, online game is the most increasingly liked by most people Liking, game player is more and more higher to the performance requirement of game, especially in terms of the display of picture, all expects that game picture can Smooth finely show, game picture is the most exquisite determine beyond doubt game popularization degree and whether by game player pursue important Factor.
Game picture is generally made up of parts such as map, specially good effect, building, personage and interfaces, in the prior art, draws One soldier, needs to comprise the haemal strand of several parts, the such as crown, the health of soldier, sole choose circle, simplest one Individual soldier draws, and is required for 3 GPU and draws, when the pixel such as personage or building is too much when, it is necessary to the GPU of thousands of times Draw, often draw and once will refresh once, cause screen-refresh number of times to increase, be substantially reduced refresh rate, simultaneously display speed Slower, it may appear that Caton phenomenon can not smoothly be shown to game user, and the when that pixel being too much in gaming, pixel with The hiding relation that pixel directly exists still cannot effectively be solved.
Summary of the invention
For effectively solving the problems referred to above, the present invention provides a kind of method that same screen of playing shows ten thousand people, can be in display Preferable image quality and display speed can be obtained during a large amount of factor such as personage, building.
The present invention provides a kind of method that same screen of playing shows ten thousand people, said method comprising the steps of:
1) image information of wanted drawing image file in game is obtained;
2) synthesize big figure according to the kind of pixel to be stored in material database;
3) GPU re-starts the drafting of figure layer;
4) hiding relation of mobile pixel and static pixel is judged;
5) according to hiding relation, selection figure layer carries out rendering display.
The present invention also provides for a kind of same screen of playing and shows the system of ten thousand people, and described system includes:
Image information acquisition module, obtains the image information of wanted drawing image file in game;
Image file drafting module, synthesizes big figure according to the kind of pixel and is stored in material database and re-starts with GPU Figure layer is drawn;
Image information judge module, according to the position encoded information in image information and collision detection region, it is judged that block Relation and block scope;
Display module, renders according to the information of above-mentioned judgement image file selectivity and shows.
The invention has the beneficial effects as follows: the method for gaming of the application present invention and system, in the pixel mistake such as personage or building The when of many, GPU needs only to carry out the drafting of minority, can complete game picture, greatly reduces screen-refresh number of times, increases Big refresh rate, display speed is fast simultaneously, does not haves Caton phenomenon, game picture can smoothly be shown to game and use Family, and the hiding relation that dynamic pixel in gaming and static pixel exist, properer reality, allow game more resistant to playing, Interesting.
Accompanying drawing explanation
The method flow diagram that Fig. 1 provides for the embodiment of the present invention;
The system diagram that Fig. 2 provides for the embodiment of the present invention;
Fig. 3 is the collision detection region of building in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the drawings and the specific embodiments, the present invention is described in further details, it will be appreciated that this place is retouched The specific embodiment stated only in order to explain the present invention, is not intended to limit the present invention.
The present invention provides a kind of method that same screen of playing shows ten thousand people, including:
A) obtaining the image information of drawing image file, wherein said image information includes the pixel class constituting this image The level that type, the location parameter of pixel and this pixel are corresponding, the location parameter of described pixel refers to that this pixel to be drawn Position encoded information in game image file;
Wherein, pixel type is ground forces, building, air troops and specially good effect, and the pixel of ground forces includes soldier, smooth Gram etc., wherein the pixel definition of Building class has collision detection region (with this pixel center central point as region), described collision Detection region can be a simple rectangle, in write configuration file.
B) the big figure of combination, is arranged on same category of pixel in same big figure;
Wherein, ground forces' class pixel generates two big figures (because the pixel of ground forces is various, so generating two greatly Figure, i.e. stochastic generation A ground forces figure and B ground forces are schemed), Building class pixel generates a big figure, air troops's class pixel Generating a big figure, specially good effect class pixel generates a big figure;
The full-size of the image being capable of because of GPU is conditional, the maximum that the mobile phone of current main flow can be supported Display size is 2048 × 2048, so the picture that big figure is 2048 × 2048 generated in the present invention, is stored in material database.
C) GPU re-starts the drafting of figure layer;
Draw A ground forces figure layer: according to the location parameter of pixel in step 1, determine A ground forces figure to be drawn On layer, diverse location needs the picture of display, opens material database, the most successively the figure needing display on the big figure of A ground forces Sheet is determined, and is then placed in A ground forces figure layer to be drawn (such as: will show at layer position x=100, y=100 The little picture of certain ground forces of one width 20, highly 20), and be stored in material database.Use this technology, new drawing The when of figure layer, it is only necessary to open material database once, can complete to draw, thus can greatly promote drafting efficiency, have Effect reduces and repeats to open the tedious work of material database, and display object all same in same material database on this figure layer magnify figure On, GPU avoids switching material database, it is achieved the consumption of less GPU performance.
Apply this method for drafting, draw A ground forces layer two-layer, B ground forces layer two-layer, construction level, air troops's layer With specially good effect layer, and figure layer is ordered as the most successively A ground forces layer (under), B ground forces layer (under), construction level, B Ground forces' layer (on), A ground forces layer (on), air troops's layer, specially good effect layer, wherein A ground forces layer (on) and A floor portion Team's layer (under) on pixel and location parameter be all the same, B ground forces layer (on) and B ground forces layer (under) on figure Element and location parameter thereof are all the same, seven the figure layer longitudinal combinations that will draw, although belong to different levels, but aobvious The when of showing, effect is on same level.
D) hiding relation on ground and building is judged;
As it is shown on figure 3, ground forces' pixel is provided with location parameter with building pixel, wherein ground forces' pixel is several with it What central point judges, after the map overlay in step c), when the geometric center point of ground forces' pixel falls into building In the rectangle in the collision detection region of pixel, then judge that ground forces are blocked by building, when in the geometry of ground forces' pixel In the rectangle in the collision detection region that heart point does not falls within building pixel, the most there is not hiding relation.Because of air troops, specially good effect layer with There is not hiding relation in other figure layers, so need not collision detection region.
Such determination methods is simple and effective, can accurately judge mobile pixel (soldier or tank in ground forces) And the hiding relation between static pixel (Building class pixel), take game system memory few, make game more smooth and easy.
E) according to hiding relation, selection figure layer carries out rendering display;
In step d) when ground forces' layer (on) pixel of (in such as A ground forces) blocks by construction level pixel, then This position show successively corresponding ground forces layer (under) pixel of (under A ground forces) and construction level pixel, then wash with watercolours Contaminate and shown by screen, not occurring under circumstance of occlusion, then selecting in this position not show the ground forces below construction level Layer (under) pixel, and show successively ground forces' layer (on) with the pixel of construction level, then render and shown by screen.This Sample optionally renders will not blocking time of the game picture of display, and the mobile pixel in face behind can be hidden by static pixel Dammed up come, allow game properer reality.
Present invention additionally comprises a kind of same screen of playing and show the system of ten thousand people, described system includes:
Image information acquisition module, obtains the image information in game image file to be drawn.
Image file drafting module, the image information obtained according to described image information acquisition module, draw game image File.
Image information judge module, according to the position encoded information in image information and collision detection region, it is judged that block Relation and block scope.
Display module, renders according to the information of above-mentioned judgement image file selectivity and shows.
The method for gaming of the application present invention and system, the pixel such as personage or building is too much when, GPU needs only to Carry out seven times to draw, game picture can be completed, greatly reduce screen-refresh number of times, increase refresh rate, show speed simultaneously Degree is fast, does not haves Caton phenomenon, game picture can smoothly be shown to game user, and Dynamic Graph in gaming The plain hiding relation existed with static pixel, properer reality, allow game more resistant to playing, interesting.
Above-mentioned detailed description is illustrating of the feasibility embodiment for the present invention, and above-mentioned embodiment is not used To limit the scope of the claims of the present invention, all equivalences without departing from the present invention are implemented or change, are intended to be limited solely by the patent of the present invention Scope.

Claims (9)

1. the method that a same screen of playing shows ten thousand people, it is characterised in that said method comprising the steps of:
1) image information of wanted drawing image file in game is obtained;
2) synthesize big figure according to the kind of pixel to be stored in material database;
3) GPU re-starts the drafting of figure layer;
4) hiding relation of mobile pixel and static pixel is judged;
5) according to hiding relation, selection figure layer carries out rendering display,
Described step 3) specifically include:
(1) draw new big figure figure layer: according to step 1) in the location parameter of pixel, determine new big figure figure layer to be drawn Upper diverse location needs the picture of display, opens material database, successively the picture needing display is determined, is then placed on and to paint In the new big figure figure layer of system;
(2) draw other big figure figure layer successively, above-mentioned drawn big figure figure layer is sorted the most successively.
Method the most according to claim 1, it is characterised in that wherein step 1) described in image information include constituting this figure The level that the pixel type of picture, the location parameter of pixel and this pixel are corresponding.
Method the most according to claim 2, it is characterised in that the location parameter of described pixel refers to that this pixel to be painted Position encoded information in game image file processed.
Method the most according to claim 1, it is characterised in that the kind of described pixel include but not limited to ground forces, Building, air troops and specially good effect.
Method the most according to claim 1, it is characterised in that described big figure figure layer include lower first ground forces' layer, under Second ground forces' layer, construction level, upper second ground forces' layer, upper first ground forces' layer, air troops's layer and specially good effect layer.
Method the most according to claim 1, it is characterised in that step 4) specifically include:
Set up the collision detection region of static pixel;
When the point of mobile pixel falls into the collision detection region of static pixel, then judge that ground forces are blocked by building, when The point of mobile pixel does not falls within the collision detection region of static pixel, then judge to there is not hiding relation.
Method the most according to claim 6, it is characterised in that described mobile pixel includes the soldier in ground forces, smooth Gram;Described static pixel is the pixel of Building class.
Method the most according to claim 5, it is characterised in that step 5) specifically include: when the figure of construction level above figure layer Element is blocked by construction level pixel, then show the pixel of figure layer and construction level pixel below corresponding successively in this position, then Render and shown by screen, not occurring under circumstance of occlusion, then selecting in this position not show the figure scheming layer below construction level Element, and show the pixel of above figure layer and the pixel of construction level successively.
9. a same screen of playing shows the system of ten thousand people, it is characterised in that described system includes:
Image information acquisition module, obtains the image information of wanted drawing image file in game;
Image file drafting module, synthesizes big figure according to the kind of pixel and is stored in material database and re-starts figure layer with GPU Draw;Wherein, re-start figure layer drafting concrete steps with GPU to include:
(1) draw new big figure figure layer: according to the location parameter of pixel in image information acquisition module, determine to be drawn new Big figure figure layer on diverse location need display picture, open material database, successively need display picture determine, then It is placed in new big figure figure layer to be drawn;
(2) draw other big figure figure layer successively, above-mentioned drawn big figure figure layer is sorted the most successively;
Image information judge module, according to the position encoded information in image information and collision detection region, it is judged that hiding relation And block scope;
Display module, renders according to the information of above-mentioned judgement image file selectivity and shows.
CN201410067395.7A 2014-02-26 2014-02-26 A kind of same screen of playing shows the method and system of ten thousand people Active CN103785174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410067395.7A CN103785174B (en) 2014-02-26 2014-02-26 A kind of same screen of playing shows the method and system of ten thousand people

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410067395.7A CN103785174B (en) 2014-02-26 2014-02-26 A kind of same screen of playing shows the method and system of ten thousand people

Publications (2)

Publication Number Publication Date
CN103785174A CN103785174A (en) 2014-05-14
CN103785174B true CN103785174B (en) 2016-08-17

Family

ID=50661491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410067395.7A Active CN103785174B (en) 2014-02-26 2014-02-26 A kind of same screen of playing shows the method and system of ten thousand people

Country Status (1)

Country Link
CN (1) CN103785174B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104784930B (en) * 2015-05-08 2017-11-10 四川天上友嘉网络科技有限公司 The method for showing game role
CN105126343B (en) * 2015-08-27 2019-01-22 网易(杭州)网络有限公司 A kind of the mask display methods and device of 2D game
CN106503477B (en) * 2016-11-24 2018-09-07 腾讯科技(深圳)有限公司 The control method and relevant apparatus of virtual objects
CN106730840B (en) * 2016-12-06 2018-09-07 腾讯科技(深圳)有限公司 A kind of method for displaying image and mobile terminal
CN107360383B (en) * 2017-07-26 2019-07-30 北京百思科技有限公司 A kind of method and system automatically generating video
CN112541960A (en) * 2019-09-19 2021-03-23 阿里巴巴集团控股有限公司 Three-dimensional scene rendering method and device and electronic equipment
CN111598984B (en) * 2020-04-07 2023-06-16 厦门极致互动网络技术股份有限公司 Game picture rendering method and device
WO2021226919A1 (en) * 2020-05-14 2021-11-18 Qualcomm Incorporated Removing invisible layers from rendering queue

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312540A (en) * 2008-07-03 2008-11-26 浙江大学 Virtual visual point synthesizing method based on depth and block information
CN101605211A (en) * 2009-07-23 2009-12-16 杭州镭星科技有限公司 Virtual three-dimensional building and actual environment real scene shooting video there is not the method that is stitched into
CN102508994A (en) * 2011-09-30 2012-06-20 北京航空航天大学 Virtual experiment teaching oriented dynamic component visualization method
JP2012529120A (en) * 2009-06-02 2012-11-15 クゥアルコム・インコーポレイテッド Display a visual representation of performance metrics for rendered graphics elements
CN103489214A (en) * 2013-09-10 2014-01-01 北京邮电大学 Virtual reality occlusion handling method, based on virtual model pretreatment, in augmented reality system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080098305A1 (en) * 2006-10-24 2008-04-24 Young Electric Sign Company System and method for content management in electronic displays
US20110109617A1 (en) * 2009-11-12 2011-05-12 Microsoft Corporation Visualizing Depth

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312540A (en) * 2008-07-03 2008-11-26 浙江大学 Virtual visual point synthesizing method based on depth and block information
JP2012529120A (en) * 2009-06-02 2012-11-15 クゥアルコム・インコーポレイテッド Display a visual representation of performance metrics for rendered graphics elements
CN101605211A (en) * 2009-07-23 2009-12-16 杭州镭星科技有限公司 Virtual three-dimensional building and actual environment real scene shooting video there is not the method that is stitched into
CN102508994A (en) * 2011-09-30 2012-06-20 北京航空航天大学 Virtual experiment teaching oriented dynamic component visualization method
CN103489214A (en) * 2013-09-10 2014-01-01 北京邮电大学 Virtual reality occlusion handling method, based on virtual model pretreatment, in augmented reality system

Also Published As

Publication number Publication date
CN103785174A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
CN103785174B (en) A kind of same screen of playing shows the method and system of ten thousand people
CN106296785B (en) A kind of picture rendering intent and picture rendering apparatus
CN105354872B (en) A kind of rendering engine based on 3D web games, implementation method and tools
CN104038807B (en) A kind of figure layer mixed method and device based on OpenGL
CN108710462A (en) Equipment, method and graphic user interface for manipulating user interface object using vision and/or touch feedback
US9457273B2 (en) Storage medium storing game program, game processing method, and information processing apparatus
CN103530903A (en) Realizing method of virtual fitting room and realizing system thereof
US20180197335A9 (en) System and method to integrate content in real time into a dynamic real-time 3-dimensional scene
CN102012805B (en) Custom cursor realization method and device
WO2016023971A1 (en) Selecting objects on a user interface
EP3177377B1 (en) Composing an image
CN103971416A (en) Partition of a 3D scene into a plurality of zones processed by a computing resource
CN107168534A (en) It is a kind of that optimization method and projecting method are rendered based on CAVE systems
EP3547661A1 (en) Image processing device, image processing method, and program
US10685472B1 (en) Animation brushes
CN108022283A (en) Rainwater analogy method, device and readable storage medium storing program for executing
CN105589673A (en) Competition voting information displaying method and device
CN104167009B (en) A kind of implementation method of animation effect
CN111210486B (en) Method and device for realizing streamer effect
US20110161837A1 (en) Virtual world presentation composition and management
CN101350107B (en) Method and apparatus for drafting role
CN106210003A (en) A kind of method and system showing user's liveness
CN102662589A (en) Method and device for improving operation of menu of smart phone
CN105611418A (en) Method and device for displaying game voting information
CN105611417A (en) Method and device for displaying game voting information

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
CP03 Change of name, title or address

Address after: 100191 floor six, C block, Zhi Zhen building, 7 Zhichun Road, Haidian District, Beijing.

Patentee after: Beijing Zhi star through Polytron Technologies Inc

Address before: 100191 406A, Bai Yan mansion, 238 North Fourth Ring Road, Haidian District, Beijing.

Patentee before: Beijing ELEX Technology Co., Ltd.

CP03 Change of name, title or address