CN104063240A - Method and device for displaying map - Google Patents

Method and device for displaying map Download PDF

Info

Publication number
CN104063240A
CN104063240A CN201310188254.6A CN201310188254A CN104063240A CN 104063240 A CN104063240 A CN 104063240A CN 201310188254 A CN201310188254 A CN 201310188254A CN 104063240 A CN104063240 A CN 104063240A
Authority
CN
China
Prior art keywords
map
container
unit
type
shake
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
Application number
CN201310188254.6A
Other languages
Chinese (zh)
Other versions
CN104063240B (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310188254.6A priority Critical patent/CN104063240B/en
Publication of CN104063240A publication Critical patent/CN104063240A/en
Application granted granted Critical
Publication of CN104063240B publication Critical patent/CN104063240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and device for displaying a map. The method comprises the following steps: according to a map display command of a user, acquiring a map configuration file; according to the configuration information related to a container in the map configuration file, invoking a map engine corresponding method to create one or more containers; using the containers for loading and managing articles on the map; according to the configuration information related to the articles in the map configuration file, invoking the map engine corresponding method to create the articles which are all displayed objects on the map; adding the created articles to the corresponding containers, so as to display the map. The articles are divided into different containers for managing; when the map engine receives the command of displaying the map, the articles are divided into the different containers for managing, the sizes and the functions of the containers can be designed according to the actual application, and the containers with different functions can be used to manage the map articles belonging to the same type, so that the display efficiency can be improved, and the user experience can be better.

Description

A kind of map-indication method and device
Technical field
The present invention relates to computer realm, be specifically related to a kind of map-indication method and device.
Background technology
In prior art, engine map shows that the method for map is generally divided into two classes, and to be map be spliced by small articles one by one a class, in map shows, demonstrates complete map by each fritter splicing is complete, as: island paradise game; Another kind of map-indication method is the whole figure of background that the fine arts are finished, and the whole figure of this background is shown.
For the map displaying scheme that is spliced into large figure, the method is focused on performance, less to performance optimization consideration, if a scene is very large, the earth's surface of fritter connecting method, can, because show that object too much and blocks very much, affect user and experience.Scene is larger, and object need to be placed a lot, and what still can see is but sub-fraction wherein, if all add display list to, the performance that can consume electric energy brain, affects player's experience.
A kind of more rational map displaying scheme can not be provided in prior art, make current display effect not good, reduced user's experience, especially player's (MMORPG:Massive (or Massively) Multiplayer Online Role-Playing Game) experience in the game on line of the same screen of many people in online game.
Summary of the invention
The embodiment of the present invention provides a kind of map-indication method and device, uses interface to do the abstract of height to engine, makes this technical scheme can be applicable to multiple disparity items demand.
The embodiment of the present invention provides a kind of map-indication method, and described method comprises:
Demonstration map instruction according to user, gets map configuration file;
According to the map in configuration file about the configuration of container, create one or more than one container; Described container, for loading, is managed the object in map;
According to the map in configuration file about the configuration of object, create the object in map; Described object is demonstration things all in map;
Object in the map of described establishment is added in corresponding container, thereby demonstrate map.
The embodiment of the present invention also provides a kind of map display, and described device comprises: acquiring unit, the first creating unit, the second creating unit, and interpolation and display unit;
Described acquiring unit, for according to user's demonstration map instruction, gets map configuration file;
Described the first creating unit, about the configuration of container, creates one or more than one container for configuration file according to the map; Described container, for loading, is managed the object in map;
Described the second creating unit, about the configuration of object, creates object for configuration file according to the map; Described object is demonstration things all in map;
Described interpolation and display unit, for the object of the map of described establishment is added in corresponding container, thereby demonstrate map.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: each object is divided in different containers and is managed, when engine map is when receiving instruction demonstration map, because being divided in different containers, each object manages, the size of container and function can design according to actual application, therefore, compare with fritter or whole the technical scheme that shows map of the map of fixing demonstration fixed size in prior art, this scheme is more flexible, can be by showing the object in difference in functionality container, the final whole figure of map that shows, display efficiency is higher, user experiences better.According to different project demands, can expand very easily existing container (reason is because used interface easily), existing object (reason is the same) can easily be used this engine in various project.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of map-indication method flow process simplified schematic diagram that the embodiment of the present invention provides;
Fig. 2 is the Governance framework schematic diagram to map in engine map in the embodiment of the present invention;
Fig. 3 is the injection mode display update object that the embodiment of the present invention provides;
Fig. 4 is a kind of map display simplified schematic diagram that the embodiment of the present invention provides;
Fig. 5 is a kind of map display simplified schematic diagram that the embodiment of the present invention provides.
Embodiment
The embodiment of the present invention provides a kind of map-indication method, the method adopt by map abstract be three parts, and with interface conjunctionn, can join easily starling etc. gives in the bottom render engine of GPU, when the user installation of flash player11 meets the requirements, can access very fast, that will be that user is experienced further and optimized.As shown in Figure 1, a kind of map-indication method, the method comprises:
Step S01, the demonstration map instruction according to user, gets map configuration file;
Engine map can be specifically to obtain by whole figure interface (IDMWorld) instruction that user sends by mouse, IDMWorld interface can be the main entrance of external program access, also be responsible for each function point as displayed scene (onstage) simultaneously, show shake (juggler), the management of mouse (mouse) is obtained and is accessed by NameSpace in engine.
Wherein, map configuration file is the file that game developer has been write according to different scene maps.
Step S02, according to the map in configuration file about the configuration of container, create one or more than one container; Described container, for loading, is managed the object in map;
It will be appreciated that, in the present embodiment, said container can be understood as, and whole map is divided into a plurality of layers, in each layer, can comprise one or more container, therefore, by a plurality of containers, can form complete map.Also it should be noted that the object that will illustrate as follows can be understood as a plurality of objects and is divided in different containers and manages.
Container, for loading, is managed the demonstration object in map; The container of difference in functionality is realized unified interface, is convenient to external reference and access; In a map, can there be a plurality of similar and different containers.
The feature of container can be passed through following character representation:
For example: the figure image container (be DMContainerAvatar :) of player in game, this container is avatar container, because avatar(is as leading role, non-role (NPC), strange beasts (monster) etc.) having some unifies characteristic, they need every frame to upgrade to show, can move, and can use separately the unified and avatar in Manage Containers easily of the type container.
Again for example: grid-like container (DMContainerGrid), such container coordinate is grid coordinate system, the object in this container shows all take grid as benchmark.Be applicable to the map that connecting method shows.
Again for example: space pixel type of container (DMContainerSpace), such container coordinate is pixel coordinate system, it can be arbitrary coordinate that the object in this container shows.Be applicable to arbitrarily to place the map of object.
Again for example: test-types container (DMContainerDebug), for convenience of developer, debug use.
Again for example: 3D type of container (DMContainertainer3D), this container is for (a kind ofly playing up the picture of 2d for the starling technology of flash specially by video card, to alleviate CPU, consume, the technology that raising user experiences) a kind of container of doing, the convenient situation of higher display efficiency that needs is used.
Step S03, according to the map in configuration file about the configuration of object, create the object in map; Described object is demonstration things all in map;
Step S04, adds the object in the map of described establishment in corresponding container to, thereby demonstrates map.
Owing to the object being included in container being had to managerial role in container, object is added in container, object is that the dependency rule according to container shows when showing.Therefore, after object and container have all been created, object is added to after cell therefor, the demonstration of map be take container as unit, according to effective rule targetedly in container, object in indication range in map can be shown fast, and the common combination by a plurality of containers demonstrates whole map.
Wherein, specifically can pass through object interface, the object of described establishment is added in corresponding container.On map, can by object interface, be presented in container by actual all objects of seeing, can arbitrary extension, arbitrarily realization.In different containers, the object obtaining by object interface is different.
Object comprises all demonstration objects in map, as meadow, and static tree, people's motion of motion etc.
The attribute of object is once described as follows, and the attribute of object can be understood as the demonstration information of object, and for the description to individual object, the attribute of following object is also non exhaustive, is only the explanation of being convenient to understanding.For example:
The object (DMEventItem) of concrete Event Function, has added a class object of Event Function, and the event of can conveniently dishing out/accept event (a kind of program communication mechanism of flash), intercepts for the side of intercepting; The object (AvatarItem) with basic avatar function, as needs real-time update, can move etc.; The static object (DMMapItem) with basic map object function, as meadow, trees etc.; A class object (DMItem3D) of doing for the starling technology of flash (a kind of picture by 2d is played up by video card, consumes to alleviate CPU, improves the technology that user experiences), the convenient situation of higher display efficiency that needs is used.
As described in Figure 2, Governance framework to map in engine map, in this framework, can there be a plurality of containers (or creating a plurality of containers), in each container, can comprise a plurality of objects (object is added to the result in container), in each object, there is object from the description attribute in map, can be understood as the demonstration information of object, by describing attribute in each object, can in map, reproduce object.In the container of variant function, there is the management attribute of container, by this management attribute, this container is described.In engine map, to the superiors of the Governance framework of map, be to the processing module of the integration of each object in container and container (as the DMworld in figure), this module can be understood as machine and user's interface module, and user's instruction is finally converted to the module of the feedback of user's needs.In this Governance framework, user's demand and the interface of machine can be IDMworld interfaces, adopt IDMContainer interface between container and processing module, the employing IDMItem interface between object and container.
A kind of map-indication method that the embodiment of the present invention provides, each object is divided in different containers and is managed, when engine map is when receiving instruction demonstration map, because being divided in different containers, each object manages, the size of container can design according to actual application, therefore, the fritter or whole the technical scheme that shows map that show the map of fixed size with prior art are compared, this scheme is more flexible, can be by showing the object in difference in functionality container, the final whole figure of map that shows, display efficiency is higher, and user experiences better.
Preferably, after the described object by described establishment adds in corresponding container, described method also comprises:
Step S05, the object that corresponding container is added in judgement to whether in viewing area, step S06 if, the described object of demonstration in viewing area, thus demonstrate map.
By increasing above-mentioned steps S05 and step S06, make the object outside display viewing area not show, effectively alleviate the load of equipment.
Preferably, the technical scheme that the embodiment of the present invention provides not only can improve the display efficiency of map, and, for the efficiency of management of map, also greatly improve, be embodied in: described in demonstrate map after, described method also comprises:
Step S07, obtains shake instruction,
Step S08, according to shake instruction, each container shake, wherein, is added to object shake together with container of container.
Because object is all added in corresponding container, therefore, after receiving shake instruction, the shake of container, must drive the shake of each object in container.
Preferably, described in demonstrate map after, described method also comprises:
Step S09, obtains object update instruction;
Step S10, judges that object is whether in viewing area, and step S11, if so, upgrades described object.
Preferably, in engine map, can in advance object be synthesized to large figure by fritter figure, then figure cutting is greatly called to length and width and be all the bulk of 2 n power form, the large figure of preferred object can be cut into the bulk of 512*256.By the bulk after cutting, give GPU and process (the bulk map picture after cutting, also regards a kind of object as, can not block other objects, meets the GPU condition of using).If the map of project is (as some social gaming) that can expand, cannot synthesize in advance large figure, dynamically synthetic BitmapData (bitmap) when this also can move, expansion is revised during plot again, also can reach effect of optimization.
In the demonstration information of object, at least comprise that the large figure of object is split into the information of bulk, show each object, container is when management object, according to the demonstration of the demonstration information of object.
Preferably, while showing map in engine map, can watch according to user the angle of map, within the scope of screen, be object in the visual map of user, can adopt 4 fork tree algorithms to judge that an object is whether within the scope of display, during initialization by map by 4 fork tree algorithms groupings, map object is also divided in smallest group, and screen is just equivalent to video camera, when video camera moves, just can find fast in requisition for the object showing.
The specific implementation of this operation can be to adopt 4 fork tree algorithms to judge that object whether within the scope of display, if within the scope of display, shows each object.
Preferably, while showing map picture in engine map, because some object relates to renewal, as objects such as torches, easily fall frame phenomenon, player's impression can think that one one, picture blocks very much, affects player's game experiencing.If fall frame, in order to allow picture seem, be not to block very much, can be by obtaining absolute time by getTimer () global approach in enterframe, divided by frame per second, obtain current theoretical frame, the frame of directly skipping delayed, only fall one or two frame, human eye is very indistinguishable, and false code is as follows:
// obtain current working time of flashplayer
_currentTime=getTimer();
// which frame calculates current should be
_cFrame=((_currentTime-_gameStartTime)/FRAME_TIME_24)>>0;
// with last time buffer memory frame do subtraction, normal condition should be 1
if(_cFrame-_frameTotal>0)
Preferably, while showing the object of map in engine map, all relate to renewal, common way is the update method of every frame invocation map object, but actual conditions be a lot of objects not in indication range, or static picture, needn't upgrade, for example the one tree in map, need not all call by every frame.Therefore, the embodiment of the present invention provides the mode by injecting, and obtains the object in indication range, and whether object can own control want `advanceTime () `, is illustrated in fig. 3 shown below, and changes existing active method of calling into injection mode.
Preferably, between the object showing, have sequence in engine map, the object having is arranged in front, after some objects are arranged in, may exist the object coming above to shelter from the object coming below between the object of front and back, in prior art, map object adopts sequence in real time, because every frame has calculating, if object is a lot, calculated amount is large, affects display efficiency.In the embodiment of the present invention, prioritization scheme comprises two kinds, a kind of scheme is for object that can not be moving, use interpolation ranking method, after sequencing, just record position, the figure image (avatar) of player in game used Y-axis ranking method, and sequence between avatar and object that can be not moving is by transparency is set, the mode such as can not walk is avoided.
Another kind of scheme is that province mode is 3 layers altogether, map, surface layer, avatar layer, barrier bed, wherein barrier bed only includes the picture that can block avatar, and transparency is directly set, when people passes by, sensation is by transparent, just there is the effect of blocking, under this mode, only with the y axle of avatar, sorted.Wherein, the surface layer of above-mentioned explanation, avatar layer, barrier bed, can be interpreted as respectively and respectively represent a container, a container represents surface layer, a container represents avatar layer, a container represents barrier bed, at engine map, during in the management to each container, can be set to transparency through the object on the avatar layer of barrier bed.Therefore, when having people to pass by, sensation, by transparent, just has the effect of blocking.
Preferably, the especially activity of player in game of the object showing in engine map, the personage in game often need to carry out map pathfinding, and prior art is mainly to adopt a star pathfinding algorithm, but this algorithm is based on grid.While calculating for the first time, calculated amount is large, and the level and smooth not nature in the path generating.In the embodiment of the present invention, prioritization scheme comprises: a star pathfinding algorithm of take is example, precomputation in the time of initialized, and the later stage can be economized a lot of time when calculating; During across map pathfinding, be all generally click task, by configuration, waited and can be known by that transmission gate and can be sent to target map, this transmission gate is only sought in pathfinding, switches after map pathfinding again to this specified point; After pathfinding finishes, can obtain an array that comprises coordinate points, can judge and filter some points by direction, reach the effect of smooth paths.
Preferably, if show that in engine map map object is all vector, and be animation, when thing more than will block.The embodiment of the present invention is for the demonstration information of each object, and while showing each object, same item, does bitmapped buffer memory, if project is cartoon style, resource is directly the vector animation of making in flashCS instrument, can adopt the every frame of dynamic drafting buffer memory to get off.Or, relate to animation, can revise the attribute of object, the performance of object for example, static during such as acquiescence, mouse just moves while moving into; Or the attribute unified management to object, every how many seconds, allows several objects play (controlling the size) at random.
Preferably, in engine map, in map initialization, object is many, loads and plays up and come together, and causes picture to make a short pause, and affects player's experience.The embodiment of the present invention, for the demonstration of each object, before showing each object, can arrange priority to each object resource in advance, such as preferential loading leading role, first loads the object in viewing area, first loads the map of fuzzy small size.Or, postpone to play up, such as once having loaded a lot of resources, while playing up, can consume a large amount of CPU in a frame, can be deferred in a plurality of frames playing up, allow every frame have more time processing logic.
By the explanation of above-mentioned preferred method, make the embodiment of the present invention can be applicable to the more different demands (mmorpg, sns) of polymorphic type project; Performance optimization during game running, makes under identical computer configuration, and game picture performance is better; Under same frame performance, computer configuration requirement is lower.
As Fig. 4, shown in a kind of map display of providing of the embodiment of the present invention, this device comprises: acquiring unit 301, the first creating unit 302, the second creating units 303, and adding device 304;
Described acquiring unit 301, for according to user's demonstration map instruction, gets map configuration file;
Engine map can be specifically to obtain by whole figure interface (IDMWorld) instruction that user sends by mouse, IDMWorld interface can be the main entrance of external program access, also be responsible for each function point as displayed scene (onstage) simultaneously, show shake (juggler), the management of mouse (mouse) is obtained and is accessed by NameSpace in engine.
Wherein, map configuration file is the file that game developer has been write according to different scene maps.
Described the first creating unit 302, about the configuration of container, creates one or more than one container for configuration file according to the map; Described container, for loading, is managed the object in map;
In the present embodiment, said container can be understood as, and whole map is divided into a plurality of layers, in each layer, can comprise one or more container, therefore, by a plurality of containers, can form complete map.Also it should be noted that the object that will illustrate as follows can be understood as a plurality of objects and is divided in different containers and manages.
Container, for loading, is managed the demonstration object in map; The container of difference in functionality is realized unified interface, is convenient to external reference and access; In a map, can there be a plurality of similar and different containers.
The feature of container can be passed through following character representation:
For example: the figure image container (be DMContainerAvatar :) of player in game, this container is avatar container, because avatar(is as leading role, non-role (NPC), strange beasts (monster) etc.) having some unifies characteristic, they need every frame to upgrade to show, can move, and can use separately the unified and avatar in Manage Containers easily of the type container.
Again for example: grid-like container (DMContainerGrid), such container coordinate is grid coordinate system, the object in this container shows all take grid as benchmark.Be applicable to the map that connecting method shows.
Again for example: space pixel type of container (DMContainerSpace), such container coordinate is pixel coordinate system, it can be arbitrary coordinate that the object in this container shows.Be applicable to arbitrarily to place the map of object.
Again for example: test-types container (DMContainerDebug), for convenience of developer, debug use.
Again for example: 3D type of container (DMContainertainer3D), this container is for (a kind ofly playing up the picture of 2d for the starling technology of flash specially by video card, to alleviate CPU, consume, the technology that raising user experiences) a kind of container of doing, the convenient situation of higher display efficiency that needs is used.
Described the second creating unit 303, about the configuration of object, creates the object in map for configuration file according to the map; Described object is demonstration things all in map;
Described adding device 304, for the object of the map of described establishment is added in corresponding container, thereby demonstrates map.
Owing to the object being included in container being had to managerial role in container, object is added in container, object is that the dependency rule according to container shows when showing.Therefore, after object and container have all been created, object is added to after cell therefor, the demonstration of map be take container as unit, according to effective rule in container, object in indication range in map can be shown fast, and the common combination by a plurality of containers demonstrates whole map.
Wherein, specifically can pass through object interface, the object of described establishment is added in corresponding container.On map, can by object interface, be presented in container by actual all objects of seeing, can arbitrary extension, arbitrarily realization.In different containers, the object obtaining by object interface is different.
Object comprises all demonstration objects in map, as meadow, and static tree, people's motion of motion etc.
The attribute of object is once described as follows, and the attribute of object can be understood as the demonstration information of object, and for the description to individual object, the attribute of following object is also non exhaustive, is only the explanation of being convenient to understanding.For example:
The object (DMEventItem) of concrete Event Function, has added a class object of Event Function, and the event of can conveniently dishing out/accept event (a kind of program communication mechanism of flash), intercepts for the side of intercepting; The object (AvatarItem) with basic avatar function, as needs real-time update, can move etc.; The static object (DMMapItem) with basic map object function, as meadow, trees etc.; A class object (DMItem3D) of doing for the starling technology of flash (a kind of picture by 2d is played up by video card, consumes to alleviate CPU, improves the technology that user experiences), the convenient situation of higher display efficiency that needs is used.
A kind of map-indication method that the embodiment of the present invention provides, each object is divided in different containers and is managed, when engine map is when receiving instruction demonstration map, because being divided in different containers, each object manages, the size of container can design according to actual application, therefore, the fritter or whole the technical scheme that shows map that show the map of fixed size with prior art are compared, this scheme is more flexible, can be by showing the object in difference in functionality container, the final whole figure of map that shows, display efficiency is higher, and user experiences better.
Preferably, after the described object by described establishment adds in corresponding container, described device also comprises: the first judging unit 305,
The first judging unit 305, for judging that the object that adds corresponding container to is whether in viewing area,
Add and display unit, if be also in viewing area for adding the object of corresponding container to, the described object of demonstration in viewing area, thus demonstrate map.
By increasing by the first judging unit 305, make the object outside display viewing area not show, effectively alleviate the load of equipment.
Preferably, the technical scheme that the embodiment of the present invention provides not only can improve the display efficiency of map, and the also raising greatly of the efficiency of management for map, is embodied in: described device also comprises: shake command unit 307, and dither unit 308;
Obtain command unit 307, for obtaining shake instruction,
Dither unit 308, for according to shake instruction, the shake of each container, wherein, is added to object shake together with container of container.
Because object is all added in corresponding container, therefore, after receiving shake instruction, the shake of container, must drive the shake of each object in container.
Preferably, described device also comprises: update instruction unit 309, the second judging units 310, and updating block 311,
Update instruction unit 309, for obtaining object update instruction;
The second judging unit 310, for judging that object is whether in viewing area;
Updating block 311, if be in viewing area for object, upgrades described object.
Please refer to Fig. 5, it shows the related serializing device of the embodiment of the present invention, and this serializing device can be for the method for implementing to provide in above-described embodiment.Specifically:
Storer 120, input block 130, the output unit 140 that serializing device can include one or more computer-readable recording mediums includes the parts such as or above processor 180 of processing core and power supply 190.It will be understood by those skilled in the art that the serializing apparatus structure shown in Fig. 5 does not form the restriction to serializing device, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.Wherein:
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by operation, thereby carries out various function application and data processing.Storer 120 can mainly comprise storage program district and storage data field, and wherein, storage program district can storage operation system, the required application program of at least one function; The data that create according to the use of serializing device etc. can be stored in storage data field.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, so that the access of processor 180 and 130 pairs of storeies 120 of input block to be provided.
Input block 130 can be used for receiving numeral or the character information of input, and generation arranges with user and function is controlled relevant keyboard, mouse, control lever, optics or the input of trace ball signal.
Processor 180 is control centers of serializing device, utilize various interface and connection various piece, by moving or carry out software program and/or the module being stored in storer 120, and call the data that are stored in storer 120, carry out various functions and the deal with data of terminal 1200, thereby mobile phone is carried out to integral monitoring.Optionally, processor 180 can comprise one or more processing cores.
Serializing device also comprises that the power supply 190(powering to all parts is such as battery), preferably, power supply can be connected with processor 180 logics by power-supply management system, thereby realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise the random component such as one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, power supply status indicator.
Specifically in the present embodiment,
Input block 130, obtains user instruction for receiving.Input block 130 can be specifically to obtain by whole figure interface (IDMWorld) instruction that user sends by mouse, IDMWorld interface can be the main entrance of external program access, also be responsible for each function point as displayed scene (onstage) simultaneously, show shake (juggler), the management of mouse (mouse) is obtained and is accessed by NameSpace in engine.
Processing unit 180, for according to user's demonstration map instruction, get map configuration file according to the map in configuration file about the configuration of container, create one or more than one container; Described container, for loading, is managed the object in map; According to the map in configuration file about the configuration of object, create the object in map; Described object is demonstration things all in map; The object of described establishment is added in corresponding container, thereby output unit 140 demonstrates map.
Processing unit 180 can be specifically from each container, by object interface (IDMItem), obtain the demonstration information of each object showing in container, on map, can by object interface, can be presented in container by actual all objects of seeing, can arbitrary extension, arbitrarily realization.In different containers, the object obtaining by object interface is different.
Object comprises all demonstration objects in map, as meadow, and static tree, people's motion of motion etc.
A kind of map display that the embodiment of the present invention provides, each object is divided in different containers and is managed, when engine map is when receiving instruction demonstration map, because being divided in different containers, each object manages, the size of container can design according to actual application, therefore, compare with fritter or whole the technical scheme that shows map of the map of fixing demonstration fixed size in prior art, this scheme is more flexible, can be by showing the object in difference in functionality container, the final whole figure of map that shows, display efficiency is higher, user experiences better.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
Above a kind of map-indication method provided by the present invention and device are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (14)

1. a map-indication method, is characterized in that, described method comprises:
Demonstration map instruction according to user, gets map configuration file;
According to the map in configuration file about the configuration of container, create one or more than one container; Described container, for loading, is managed the object in map;
According to the map in configuration file about the configuration of object, create the object in map; Described object is demonstration things all in map;
Object in the map of described establishment is added in corresponding container, thereby demonstrate map.
2. method according to claim 1, is characterized in that, after the described object by described establishment adds in corresponding container, described method also comprises:
The object that corresponding container is added in judgement to whether in viewing area, if so, the described object of demonstration in viewing area, thereby demonstrate map.
3. method according to claim 2, is characterized in that, described in demonstrate map after, described method also comprises:
Obtain shake instruction,
According to shake instruction, each container shake, wherein, is added to object shake together with container of container.
4. method according to claim 2, is characterized in that, described in demonstrate map after, described method also comprises:
Obtain object update instruction;
Judge that object whether in viewing area, if so, upgrades described object.
5. method according to claim 1, is characterized in that, described more than one container has different types, and described Container Type comprises:
Character types container, grid-like container, type of pixel container, test-types container, GPU accelerates type of container, wherein combination in any.
6. method according to claim 1, is characterized in that, described object has different type of item, and described type of item comprises:
Event type object, character types object, general type object, GPU accelerates type object, wherein combination in any.
7. method according to claim 1, is characterized in that, the described object by described establishment adds in corresponding container, specifically comprises:
By object interface, the object of described establishment is added in corresponding container.
8. a map display, is characterized in that, described device comprises: acquiring unit, the first creating unit, the second creating unit, and interpolation and display unit;
Described acquiring unit, for according to user's demonstration map instruction, gets map configuration file;
Described the first creating unit, about the configuration of container, creates one or more than one container for configuration file according to the map; Described container, for loading, is managed the object in map;
Described the second creating unit, about the configuration of object, creates the object in map for configuration file according to the map; Described object is demonstration things all in map;
Described interpolation and display unit, for the object of the map of described establishment is added in corresponding container, thereby demonstrate map.
9. install according to claim 7, it is characterized in that, described device also comprises: the first judging unit,
Described the first judging unit, for judging that the object that adds corresponding container to is whether in viewing area,
Described interpolation and display unit, if be also in viewing area for adding the object of corresponding container to, the described object of demonstration in viewing area, thus demonstrate map.
10. install according to claim 7, it is characterized in that, described device also comprises: shake command unit, and dither unit;
Described shake command unit, for obtaining shake instruction;
Described dither unit, for according to shake instruction, the shake of each container, wherein, is added to object shake together with container of container.
11. install according to claim 7, it is characterized in that, described device also comprises: update instruction unit, the second judging unit, and updating block;
Described update instruction unit, for obtaining object update instruction;
Described the second judging unit, for judging that object is whether in viewing area;
Described updating block, for when object is in viewing area, upgrades described object.
12. install according to claim 7, it is characterized in that, described more than one container has different types, and described Container Type comprises:
Character types container, grid-like container, type of pixel container, test-types container, GPU accelerates type of container, wherein combination in any.
13. install according to claim 7, it is characterized in that, described object has different type of item, and described type of item comprises:
Event type object, character types object, general type object, GPU accelerates type object, wherein combination in any.
14. install according to claim 7, it is characterized in that described interpolation and display unit, specifically for by object interface, add the object of described establishment in corresponding container to.
CN201310188254.6A 2013-05-20 2013-05-20 A kind of map-indication method and device Active CN104063240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310188254.6A CN104063240B (en) 2013-05-20 2013-05-20 A kind of map-indication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310188254.6A CN104063240B (en) 2013-05-20 2013-05-20 A kind of map-indication method and device

Publications (2)

Publication Number Publication Date
CN104063240A true CN104063240A (en) 2014-09-24
CN104063240B CN104063240B (en) 2015-09-09

Family

ID=51550964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310188254.6A Active CN104063240B (en) 2013-05-20 2013-05-20 A kind of map-indication method and device

Country Status (1)

Country Link
CN (1) CN104063240B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469382A (en) * 2014-12-04 2016-04-06 苏州蜗牛数字科技股份有限公司 3D map display method and display system
CN105582672A (en) * 2015-12-23 2016-05-18 厦门光趣投资管理有限公司 Display method and calculation equipment of game scene layers
CN106855881A (en) * 2016-12-16 2017-06-16 北京奇鱼时代科技有限公司 A kind of method and apparatus of many Map Switchs based on mobile device
CN107679164A (en) * 2017-09-28 2018-02-09 上海交通大学 The browsing method and system of the vast capacity image virtually shown based on quaternary tree
WO2018103633A1 (en) * 2016-12-06 2018-06-14 腾讯科技(深圳)有限公司 Image processing method and device
CN108211360A (en) * 2016-12-14 2018-06-29 盛趣信息技术(上海)有限公司 More people's online games across map road-seeking method
CN108786112A (en) * 2018-04-26 2018-11-13 腾讯科技(上海)有限公司 A kind of application scenarios configuration method, device and storage medium
CN109821242A (en) * 2019-01-16 2019-05-31 福建省天奕网络科技有限公司 Map visualization edit methods and its system
CN110772790A (en) * 2019-10-23 2020-02-11 福建天晴在线互动科技有限公司 Method and system for resetting strange area of game map brush
CN110891661A (en) * 2017-07-11 2020-03-17 株式会社万代南梦宫娱乐 Game system, processing method, and information storage medium
CN113769402A (en) * 2021-09-16 2021-12-10 厦门极致互动网络技术股份有限公司 Method for updating visible region of geodetic map in frames

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020112180A1 (en) * 2000-12-19 2002-08-15 Land Michael Z. System and method for multimedia authoring and playback
US20100144441A1 (en) * 2008-12-04 2010-06-10 International Business Machines Corporation Method and System for Rendering the Scenes of a Role Playing Game in a Metaverse

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100583108C (en) * 2004-12-30 2010-01-20 中山大学 Method for implementing dynamic configuration for scene of game on mobile digital terminals
CN101308524A (en) * 2007-05-15 2008-11-19 上海灵禅信息技术有限公司 All-purpose two-dimensional horizontal edition game map edition design
CN102591629A (en) * 2011-01-18 2012-07-18 腾讯科技(深圳)有限公司 Method and apparatus for adding image element

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020112180A1 (en) * 2000-12-19 2002-08-15 Land Michael Z. System and method for multimedia authoring and playback
US20100144441A1 (en) * 2008-12-04 2010-06-10 International Business Machines Corporation Method and System for Rendering the Scenes of a Role Playing Game in a Metaverse

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469382A (en) * 2014-12-04 2016-04-06 苏州蜗牛数字科技股份有限公司 3D map display method and display system
CN105469382B (en) * 2014-12-04 2019-10-25 苏州蜗牛数字科技股份有限公司 A kind of 3D map-indication method and display system
CN105582672B (en) * 2015-12-23 2019-06-04 厦门光趣投资管理有限公司 A kind of scene of game figure layer display methods and calculate equipment
CN105582672A (en) * 2015-12-23 2016-05-18 厦门光趣投资管理有限公司 Display method and calculation equipment of game scene layers
WO2018103633A1 (en) * 2016-12-06 2018-06-14 腾讯科技(深圳)有限公司 Image processing method and device
US10888782B2 (en) 2016-12-06 2021-01-12 Tencent Technology (Shenzhen) Company Limited Image processing method and apparatus
US11260300B2 (en) 2016-12-06 2022-03-01 Tencent Technology (Shenzhen) Company Limited Image processing method and apparatus
CN108211360A (en) * 2016-12-14 2018-06-29 盛趣信息技术(上海)有限公司 More people's online games across map road-seeking method
CN108211360B (en) * 2016-12-14 2021-08-10 盛趣信息技术(上海)有限公司 Cross-map path finding method for multi-player online network game
CN106855881A (en) * 2016-12-16 2017-06-16 北京奇鱼时代科技有限公司 A kind of method and apparatus of many Map Switchs based on mobile device
CN106855881B (en) * 2016-12-16 2021-01-08 北京奇鱼时代科技有限公司 Multi-map switching method and device based on mobile equipment
CN110891661A (en) * 2017-07-11 2020-03-17 株式会社万代南梦宫娱乐 Game system, processing method, and information storage medium
CN107679164A (en) * 2017-09-28 2018-02-09 上海交通大学 The browsing method and system of the vast capacity image virtually shown based on quaternary tree
CN108786112A (en) * 2018-04-26 2018-11-13 腾讯科技(上海)有限公司 A kind of application scenarios configuration method, device and storage medium
CN108786112B (en) * 2018-04-26 2024-03-12 腾讯科技(上海)有限公司 Application scene configuration method, device and storage medium
CN109821242A (en) * 2019-01-16 2019-05-31 福建省天奕网络科技有限公司 Map visualization edit methods and its system
CN109821242B (en) * 2019-01-16 2022-04-01 福建省天奕网络科技有限公司 Map visual editing method and system
CN110772790A (en) * 2019-10-23 2020-02-11 福建天晴在线互动科技有限公司 Method and system for resetting strange area of game map brush
CN110772790B (en) * 2019-10-23 2023-02-10 福建天晴在线互动科技有限公司 Method and system for resetting strange area of game map brush
CN113769402A (en) * 2021-09-16 2021-12-10 厦门极致互动网络技术股份有限公司 Method for updating visible region of geodetic map in frames

Also Published As

Publication number Publication date
CN104063240B (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN104063240B (en) A kind of map-indication method and device
WO2021258994A1 (en) Method and apparatus for displaying virtual scene, and device and storage medium
US10792566B1 (en) System for streaming content within a game application environment
KR102258278B1 (en) Seasonal reward distribution system
US9724610B2 (en) Creation and prioritization of multiple virtual universe teleports in response to an event
CN108337547B (en) Character animation realization method, device, terminal and storage medium
CN104298427A (en) Result interface display method and device
CN112988400B (en) Video memory optimization method and device, electronic equipment and readable storage medium
CN103582509A (en) Load balancing between general purpose processors and graphics processors
Tang et al. A platform independent game technology model for model driven serious games development
CN105184847A (en) 3D game rendering engine rendering method
CN112717404B (en) Virtual object movement processing method and device, electronic equipment and storage medium
CN113952720A (en) Game scene rendering method and device, electronic equipment and storage medium
US8952967B2 (en) Method for inserting moving picture into 3-dimension screen and record medium for the same
CN112927332A (en) Skeletal animation updating method, device, equipment and storage medium
US20230285855A1 (en) Virtual scene display method and apparatus, terminal, and storage medium
CN112206519A (en) Method, device, storage medium and computer equipment for realizing game scene environment change
CN102880470A (en) Three-dimensional game engine kernel structure
CN113082705B (en) Game scene switching method, game scene switching device, computer equipment and storage medium
CN114130022A (en) Method, apparatus, device, medium, and program product for displaying screen of virtual scene
JP2020201985A (en) Program, computer device and program execution method
CN112667410A (en) Cross-process communication method, terminal and computer readable storage medium
WO2021143262A1 (en) Map element adding method, device, terminal, and storage medium
CN112316419B (en) Application program running method, device and equipment and readable storage medium
US11684852B2 (en) Create and remaster computer simulation skyboxes

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240102

Address after: 518000 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 Floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 518031 East 403 room, Sai Ge science and Technology Park, Futian District Zhenxing Road, Shenzhen, Guangdong, China, 2

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.