CN103785174A - Method and system for displaying tens of thousands of people on same screen of game - Google Patents
Method and system for displaying tens of thousands of people on same screen of game Download PDFInfo
- Publication number
- CN103785174A CN103785174A CN201410067395.7A CN201410067395A CN103785174A CN 103785174 A CN103785174 A CN 103785174A CN 201410067395 A CN201410067395 A CN 201410067395A CN 103785174 A CN103785174 A CN 103785174A
- Authority
- CN
- China
- Prior art keywords
- pixel
- layer
- game
- image information
- ground forces
- 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.)
- Granted
Links
Images
Abstract
The invention provides a method and system for displaying tens of thousands of people on the same screen of a game. Image information in a game image file to be built is acquired, the game image file is built according to the image information acquired by an image information acquiring module, shielding relations and shielding ranges are judged according to position coding information in the image information and collision detection regions, and finally the image file is alternatively rendered according to the judged information and displayed. The method and system have the advantages that when the number of pixels like people or buildings is too large, only a little drawing is needed by a GPU to accomplish a game picture, the number of times of screen refreshing is greatly reduced, the refreshing rate is increased, the display speed is high, the phenomenon that images are not fluent is avoided, the game picture can be smoothly displayed for game users, shielding relations between dynamic pixels and static pixels in the game exist, and the game is more appropriate, practical and interesting and can be played for a longer period of time.
Description
Technical field
The invention belongs to field of network game technology, relate in particular to a kind of same screen display ten thousand people that play method.
Background technology
Along with the development of internet communication and online game technology, online game is also more and more by most people is liked, game player is also more and more higher to the performance requirement of game, especially aspect the demonstration of picture, all expect that game picture can smoothly finely show, whether exquisite game popularization degree and the key factor that pursued by game player of determining beyond doubt of game picture.
Game picture is conventionally by map, special efficacy, building, the part such as personage and interface forms, in the prior art, draw a soldier, need to comprise several parts, such as the haemal strand on the crown, soldier's health, sole choose circle, the simplest soldier draws, all need 3 GPU to draw, in the time that the pixel such as personage or building is too much, just need the GPU of thousands of times to draw, every drafting once will refresh once, cause screen-refresh number of times to increase, greatly reduce refresh rate, display speed is slower simultaneously, there will be Caton phenomenon can not be shown to smoothly game user, and in game pixel too much in, the hiding relation that pixel and pixel directly exist still cannot effectively be solved.
Summary of the invention
For effectively addressing the above problem, the invention provides a kind of same screen display ten thousand people that play method, can in the time showing a large amount of factor such as personage, building, can obtain better image quality and display speed.
A kind of method that the invention provides same screen display ten thousand people that play, said method comprising the steps of:
1) obtain the image information of wanting rendered image files in game;
2) be stored in material database according to the synthetic large figure of the kind of pixel;
3) GPU re-starts the drafting of figure layer;
4) judge the hiding relation of mobile pixel and static pixel;
5), according to hiding relation, selection figure layer is played up demonstration.
The present invention also provides a kind of same screen display ten thousand people's that play system, and described system comprises:
Image information acquisition module, obtains the image information of wanting rendered image files in game;
Image file drafting module, is stored in material database and re-starts figure layer with GPU according to the synthetic large figure of the kind of pixel and draw;
Image information judge module, according to the position encoded information in image information and collision detection region, judges hiding relation and blocks scope;
Display module, selectively plays up image file and shows according to the information of above-mentioned judgement.
The invention has the beneficial effects as follows: apply method for gaming of the present invention and system, when the pixel such as personage or building is too much, GPU only needs to carry out the drafting of minority, can complete game picture, greatly reduce screen-refresh number of times, increase refresh rate, display speed is fast simultaneously, there will not be Caton phenomenon, game picture can be shown to game user smoothly, and the hiding relation that the dynamic pixel in game and static pixel exist, properer reality, allows game more resistance to object for appreciation, 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.
The specific embodiment
Below in conjunction with the drawings and the specific embodiments, the present invention is described in further details, should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
A kind of method that the invention provides same screen display ten thousand people that play, comprising:
A) obtain the image information of rendered image files, wherein said image information comprises the pixel type that forms this image, the location parameter of pixel and level corresponding to this pixel, the location parameter of described pixel refers to that this pixel is in the position encoded information that will draw in game image file;
Wherein, pixel type is ground forces, building, air troops and special efficacy, the pixel of ground forces comprises soldier, tank etc., wherein the definition of the pixel of Building class has collision detection region (central point take this pixel center as region), described collision detection region can be a simple rectangle, writes in configuration file.
B) combination figure greatly, is arranged on other pixel of same class in same large figure;
Wherein, ground forces class pixels generate two large figure (because of the pixel of ground forces various, so generate two large figure, the i.e. random figure of A ground forces and the figure of B ground forces of generating), Building class pixel generates a large figure, air troops's class pixel generates a large figure, and special efficacy class pixel generates a large figure;
The full-size of the image that can realize because of GPU is conditional, and the maximum display size that the mobile phone of main flow can be supported is at present 2048 × 2048, so the picture that the large figure generating in the present invention is 2048 × 2048 is stored in material database.
C) GPU re-starts the drafting of figure layer;
Draw the figure of A ground forces layer: according to the location parameter of pixel in step 1, the picture that the definite A ground forces upper diverse location of figure layer that will draw need to show, open material database, the picture directly successively needs being shown on the large figure of A ground forces is determined, then be placed in the A ground forces figure layer that will draw (for example: be at layer position x=100, y=100, shows a width 20, the little picture of certain ground forces of height 20), and be stored in material database.Adopt this technology, in drawing new figure layer, only need to open material database once, can complete drafting, so just can greatly promote drafting efficiency, effectively reduce the loaded down with trivial details work that repeats to open material database, the demonstration object on this figure layer is same the magnifying on figure in same material database all, GPU has avoided switching material database, realizes the consumption of less GPU performance.
Apply this method for drafting, draw A ground forces layer two-layer, B ground forces layer is two-layer, construction level, air troops's layer and special efficacy layer, and will scheme layer from bottom to top successively sequence for 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, special efficacy layer, wherein A ground forces layer (on) with A ground forces layers (under) on pixel and location parameter thereof be all the same, B ground forces layer (on) with B ground forces layers (under) on pixel and location parameter thereof be all the same, by seven figure layer longitudinal combinations drawing, although belong to different levels, but in showing, effect is on same level.
D) judge the hiding relation of ground and building;
As shown in Figure 3, ground forces' pixel all possesses location parameter with building pixel, wherein ground forces' pixel judges with its geometric center point, after map overlay in step c), in the geometric center point of ground forces' pixel falls into the rectangle in collision detection region of building pixel, judge that ground forces are blocked by building, in the geometric center point of ground forces' pixel does not fall into the rectangle in collision detection region of building pixel, do not have hiding relation.Because air troops, special efficacy layer and other figure layers do not exist hiding relation, so do not need collision detection region.
Such determination methods is simple and effective, can accurately judge the hiding relation between mobile pixel (soldier or tank in ground forces) and static pixel (Building class pixel), takies game system memory few, makes game more smooth and easy.
E), according to hiding relation, selection figure layer is played up demonstration;
In step d) when ground forces' layer (on) pixel of (for example, in A ground forces) blocked by construction level pixel, this position show successively corresponding ground forces layer (under) pixel and the construction level pixel of (under A ground forces), then play up and pass through screen display, do not occur under circumstance of occlusion, the ground forces' layer below construction level is selected not show in this position (under) pixel, and show successively ground forces' layer (on) with the pixel of construction level, then play up and pass through screen display.So optionally play up can not the blocking time of game picture of demonstration, and static pixel can cover up the mobile pixel after it, allow the properer reality of game.
The present invention also comprises a kind of same screen display ten thousand people's that play system, and described system comprises:
Image information acquisition module, obtains the image information that will draw in game image file.
Image file drafting module, the image information of obtaining according to described image information acquisition module, draws game image file.
Image information judge module, according to the position encoded information in image information and collision detection region, judges hiding relation and blocks scope.
Display module, selectively plays up image file and shows according to the information of above-mentioned judgement.
Apply method for gaming of the present invention and system, when the pixel such as personage or building is too much, GPU only needs to carry out seven times and draws, and can complete game picture, greatly reduce screen-refresh number of times, increased refresh rate, display speed is fast simultaneously, there will not be Caton phenomenon, game picture can be shown to game user smoothly, and the hiding relation that the dynamic pixel in game and static pixel exist, properer reality, allows game more resistance to object for appreciation, interesting.
Above-mentioned detailed description is for the illustrating of feasibility embodiment of the present invention, and above-mentioned embodiment is not in order to limit the scope of the claims of the present invention, does not allly depart from equivalence of the present invention and implements or change, and all should be contained in the scope of the claims of the present invention.
Claims (10)
1. same screen display ten thousand people's of game a method, is characterized in that, said method comprising the steps of:
1) obtain the image information of wanting rendered image files in game;
2) be stored in material database according to the synthetic large figure of the kind of pixel;
3) GPU re-starts the drafting of figure layer;
4) judge the hiding relation of mobile pixel and static pixel;
5), according to hiding relation, selection figure layer is played up demonstration.
2. method according to claim 1, is characterized in that, wherein image information described in step 1) comprises and forms the pixel type of this image, location parameter and the level corresponding to this pixel of pixel.
3. method according to claim 2, is characterized in that, the location parameter of described pixel refers to that this pixel is in the position encoded information that will draw in game image file.
4. method according to claim 1, is characterized in that, the kind of described pixel includes but not limited to ground forces, building, air troops and special efficacy.
5. method according to claim 1, is characterized in that, step 3) specifically comprises:
1) draw new large figure and scheme layer: according to the location parameter of pixel in step 1), definite new large figure that will draw schemes layer picture that upper diverse location need to show, open material database, the picture successively needs being shown is determined, and is then placed on the new large figure that will draw and schemes in layer;
2) the large figure that draws successively other schemes layer, and above-mentioned drawn large figure is schemed to layer sequence successively from bottom to top.
6. method according to claim 5, is characterized in that, described large figure figure layer comprises lower first ground forces' layer, lower second ground forces' layer, construction level, upper second ground forces' layer, upper first ground forces' layer, air troops's layer and special efficacy layer.
7. method according to claim 1, is characterized in that, step 4) specifically comprises:
Set up the collision detection region of static pixel;
In the time that the point of mobile pixel falls into the collision detection region of static pixel, judge ground
Army is blocked by building, and in the point of mobile pixel does not fall into the collision detection region of static pixel, judgement does not exist hiding relation.
8. method according to claim 6, is characterized in that, described mobile pixel comprises soldier, the tank in ground forces; The pixel that described static pixel is Building class.
9. method according to claim 6, it is characterized in that, step 5) specifically comprises: above construction level, the pixel of figure layer is blocked by construction level pixel, pixel and the construction level pixel of figure layer below this position shows accordingly successively, then play up and pass through screen display, do not occur under circumstance of occlusion, the pixel of figure layer below this position selection does not show construction level, and scheme the pixel of layer and the pixel of construction level above showing successively.
10. same screen display ten thousand people's of game a system, is characterized in that, described system comprises:
Image information acquisition module, obtains the image information of wanting rendered image files in game;
Image file drafting module, is stored in material database and re-starts figure layer with GPU according to the synthetic large figure of the kind of pixel and draw;
Image information judge module, according to the position encoded information in image information and collision detection region, judges hiding relation and blocks scope;
Display module, selectively plays up image file and shows according to the information of above-mentioned judgement.
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 true CN103785174A (en) | 2014-05-14 |
CN103785174B 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) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104784930A (en) * | 2015-05-08 | 2015-07-22 | 四川天上友嘉网络科技有限公司 | Game role display method |
CN105126343A (en) * | 2015-08-27 | 2015-12-09 | 网易(杭州)网络有限公司 | 2D game mask display method and device |
CN106503477A (en) * | 2016-11-24 | 2017-03-15 | 腾讯科技(深圳)有限公司 | The control method of virtual objects and relevant apparatus |
CN106730840A (en) * | 2016-12-06 | 2017-05-31 | 腾讯科技(深圳)有限公司 | A kind of method for displaying image and mobile terminal |
CN107360383A (en) * | 2017-07-26 | 2017-11-17 | 北京百思科技有限公司 | A kind of method and system for automatically generating video |
CN111598984A (en) * | 2020-04-07 | 2020-08-28 | 厦门极致互动网络技术股份有限公司 | Game picture rendering method and device |
CN112541960A (en) * | 2019-09-19 | 2021-03-23 | 阿里巴巴集团控股有限公司 | Three-dimensional scene rendering method and device and electronic equipment |
WO2021226919A1 (en) * | 2020-05-14 | 2021-11-18 | Qualcomm Incorporated | Removing invisible layers from rendering queue |
Citations (7)
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 |
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 |
US20110109617A1 (en) * | 2009-11-12 | 2011-05-12 | Microsoft Corporation | Visualizing Depth |
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 |
-
2014
- 2014-02-26 CN CN201410067395.7A patent/CN103785174B/en active Active
Patent Citations (7)
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 |
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 |
US20110109617A1 (en) * | 2009-11-12 | 2011-05-12 | Microsoft Corporation | Visualizing Depth |
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 |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104784930A (en) * | 2015-05-08 | 2015-07-22 | 四川天上友嘉网络科技有限公司 | Game role display method |
CN104784930B (en) * | 2015-05-08 | 2017-11-10 | 四川天上友嘉网络科技有限公司 | The method for showing game role |
CN105126343A (en) * | 2015-08-27 | 2015-12-09 | 网易(杭州)网络有限公司 | 2D game mask display method and device |
CN105126343B (en) * | 2015-08-27 | 2019-01-22 | 网易(杭州)网络有限公司 | A kind of the mask display methods and device of 2D game |
CN106503477A (en) * | 2016-11-24 | 2017-03-15 | 腾讯科技(深圳)有限公司 | The control method of virtual objects and relevant apparatus |
CN106730840B (en) * | 2016-12-06 | 2018-09-07 | 腾讯科技(深圳)有限公司 | A kind of method for displaying image and mobile terminal |
CN106730840A (en) * | 2016-12-06 | 2017-05-31 | 腾讯科技(深圳)有限公司 | A kind of method for displaying image and mobile terminal |
CN107360383A (en) * | 2017-07-26 | 2017-11-17 | 北京百思科技有限公司 | A kind of method and system for automatically generating video |
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 |
WO2021052392A1 (en) * | 2019-09-19 | 2021-03-25 | 阿里巴巴集团控股有限公司 | Three-dimensional scene rendering method and apparatus, and electronic device |
CN111598984A (en) * | 2020-04-07 | 2020-08-28 | 厦门极致互动网络技术股份有限公司 | Game picture rendering method and device |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103785174B (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103785174A (en) | Method and system for displaying tens of thousands of people on same screen of game | |
US10328346B2 (en) | Storage medium storing game program, game processing method, and information processing apparatus | |
CN102411791B (en) | Method and equipment for changing static image into dynamic image | |
CN104765614B (en) | Color in processing method and processing device | |
CN105916057A (en) | Video barrage display method and device | |
US20140280054A1 (en) | Visual Post Builder | |
CN105261055B (en) | A kind of game role costume changing method, device and terminal | |
CN106028115A (en) | Video playing method and device | |
CN103761085A (en) | Mixed reality holographic object development | |
EP3177377B1 (en) | Composing an image | |
CN100421119C (en) | Method for drawing map in game | |
CN101596362A (en) | A kind of game picture display packing, device and games system | |
CN105631923A (en) | Rendering method and device | |
JP4706966B2 (en) | Image generation program and image processing apparatus | |
KR20160007652A (en) | Mobile device game interface | |
CN105589673A (en) | Competition voting information displaying method and device | |
CN106296828A (en) | A kind of realize the method and system that virtual scene models by different level | |
Kontogianni et al. | Exploiting textured 3D models for developing serious games | |
CN104281865A (en) | Method and equipment for generating two-dimensional codes | |
Weber | Augmented reality gaming: A new paradigm for tourist experience | |
CN105611418A (en) | Method and device for displaying game voting information | |
JP2020201985A (en) | Program, computer device and program execution method | |
CN105138296B (en) | The method and apparatus of virtual spectators' head portrait mosaic | |
CN101075277B (en) | Method for simulating roadsurface in game and its processing system | |
KR101492337B1 (en) | Apparatus and method for crossbreeding character in game |
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 |