Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of method for realizing MMO game earth's surface applique, including it is following
Step:
S1, it is loaded into presupposed information;
S2, role positioning information is obtained;
S3, direction model is created based on presupposed information and location information;
S4, terrain model is obtained based on direction model block and role's coordinate;
S5, model to be processed is created based on direction model and terrain model;
S6, rendering model to be processed simultaneously generate applique.
Further, the presupposed information includes applique material, applique diameter.
Further, the location information includes role's changing coordinates, direction vector.
Further, the direction vector is the vector set of x-axis in three-dimensional system of coordinate, y-axis and z-axis.
Further, the direction model is using role's changing coordinates as origin, using direction vector as direction, with applique diameter
For the square of side length creation.
Further, the terrain model is based role changing coordinates and direction model, chooses and to intersect with square
Earth surface area.
Further, the model to be processed is six planes by square in direction model to corresponding terrain model
It carries out cutting generation.
Further, applique material set in advance in presupposed information is used when rendering model to be processed.
A kind of device for realizing MMO game earth's surface applique, comprising:
It insmods, for being loaded into presupposed information;
Locating module, for obtaining role positioning information;
Direction model creation module, for creating direction model;
Terrain model creation module, for obtaining terrain model;
Model creation module to be processed, for creating model to be processed;And
Applique generation module, for rendering model to be processed and generating applique.
A kind of computer readable storage medium, is stored thereon with computer instruction, it is characterised in that the instruction is by processor
It realizes when execution such as the step of method described in any item of the claim 1 to 8.
The invention has the benefit that while so that indicateing arm is normally fulfiled direction guiding function in scene of game, more
It is bonded earth's surface well, shows more natural art effect, greatly promotes the game experiencing of player.
Specific embodiment
It should be appreciated that the embodiment of the present invention can be by computer hardware, the combination of hardware and software or by depositing
The computer instruction in non-transitory computer-readable memory is stored up to be effected or carried out.Standard volume can be used in the method
Journey technology-includes that the non-transitory computer-readable storage media configured with computer program is realized in computer program,
In configured in this way storage medium computer is operated in a manner of specific and is predefined --- according in a particular embodiment
The method and attached drawing of description.Each program can with the programming language of level process or object-oriented come realize with department of computer science
System communication.However, if desired, the program can be realized with compilation or machine language.Under any circumstance, which can be volume
The language translated or explained.In addition, the program can be run on the specific integrated circuit of programming for this purpose.
In addition, the operation of process described herein can be performed in any suitable order, unless herein in addition instruction or
Otherwise significantly with contradicted by context.Process described herein (or modification and/or combination thereof) can be held being configured with
It executes, and is can be used as jointly on the one or more processors under the control of one or more computer systems of row instruction
The code (for example, executable instruction, one or more computer program or one or more application) of execution, by hardware or its group
It closes to realize.The computer program includes the multiple instruction that can be performed by one or more processors.
Further, the method can be realized in being operably coupled to suitable any kind of computing platform, wrap
Include but be not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated
Computer platform or communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be to deposit
The machine readable code on non-transitory storage medium or equipment is stored up to realize no matter be moveable or be integrated to calculating
Platform, such as hard disk, optical reading and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when
Storage medium or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.This
Outside, machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include combining microprocessor
Or other data processors realize steps described above instruction or program when, invention as described herein including these and other not
The non-transitory computer-readable storage media of same type.When methods and techniques according to the present invention programming, the present invention
It further include computer itself.
Computer program can be applied to input data to execute function as described herein, to convert input data with life
At storing to the output data of nonvolatile memory.Output information can also be applied to one or more output equipments as shown
Device.In the preferred embodiment of the invention, the data of conversion indicate physics and tangible object, including the object generated on display
Reason and the particular visual of physical objects are described.
It should be noted that such as without Special Statement, in the disclosure used in the "an" of singular, " described " and
"the" is also intended to including most forms, unless the context clearly indicates other meaning.In addition, unless otherwise defined, this paper institute
All technical and scientific terms used are identical as the normally understood meaning of those skilled in the art.This paper specification
Used in term be intended merely to description specific embodiment, be not intended to be limiting of the invention.Term as used herein
"and/or" includes the arbitrary combination of one or more listed items.
(" such as ", " such as ") makes it should be appreciated that provided in this article any and all example or exemplary language
With being intended merely to that the embodiment of the present invention is better described, and unless the context requires otherwise, otherwise the scope of the present invention will not be applied
Limitation.
Next specific embodiments of the present invention are described further in conjunction with attached drawing:
It show overview flow chart according to the present invention referring to Fig.1, specifically includes the following steps:
S1, it is loaded into presupposed information;The presupposed information includes applique material, applique diameter, but presupposed information comprises more than
Applique material, applique diameter, according to the demand of actual development application environment, developer can suitably adjust in due course needs and mention
The information of preceding input;
S2, role positioning information is obtained;The location information includes role's changing coordinates, direction vector;The direction to
Amount is the vector set of x-axis in three-dimensional system of coordinate, y-axis and z-axis, it can is interpreted as the direction of game role or face this moment
To direction, the vector set that separation forms an x-axis, y-axis and z-axis in three-dimensional system of coordinate is carried out to direction or face direction;
S3, direction model is created based on presupposed information and location information;The direction model is to be with role's changing coordinates
Origin, using direction vector as direction, the square that is created using applique diameter as side length;
S4, terrain model is obtained based on direction model block and role's coordinate;The terrain model is that based role is current
Coordinate and direction model choose the earth surface area intersected with square;
S5, model to be processed is created based on direction model and terrain model;The model to be processed is by direction mould
Six planes of square generate after cutting to corresponding terrain model in type;
S6, rendering model to be processed simultaneously generate applique;It uses in presupposed information when rendering model to be processed and sets in advance
The applique material set.
Apparatus according to the invention connection figure is shown referring to Fig. 2, comprising:
It insmods, realization interaction is connect with direction model creation module, for being loaded into presupposed information;
Locating module connect realization interaction with direction model creation module, for obtaining role positioning information;
Direction model creation module connect realization interaction with terrain model creation module, for creating direction model;
Terrain model creation module connect realization interaction with model creation module to be processed, for obtaining terrain model;
Model creation module to be processed connect realization interaction with generation module, for creating model to be processed;And
Applique generation module, for being rendered to model to be processed and generating corresponding applique.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as
It reaches technical effect of the invention with identical means, all should belong to protection scope of the present invention.In protection model of the invention
Its technical solution and/or embodiment can have a variety of different modifications and variations in enclosing.