CN109087369A - Virtual objects display methods, device, electronic device and storage medium - Google Patents
Virtual objects display methods, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN109087369A CN109087369A CN201810649894.5A CN201810649894A CN109087369A CN 109087369 A CN109087369 A CN 109087369A CN 201810649894 A CN201810649894 A CN 201810649894A CN 109087369 A CN109087369 A CN 109087369A
- Authority
- CN
- China
- Prior art keywords
- model
- virtual objects
- dress ornament
- display
- dressed
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of virtual objects display methods, device, electronic device and storage mediums, belong to field of computer technology.The described method includes: showing the display model of the first virtual objects in virtual scene, the display model includes the display model at each position of first virtual objects;When detecting the image change operation to first virtual objects, the corresponding first position of dress ornament to be dressed is determined;In the virtual scene, the model that the display model of the first position replaces with the dress ornament to be dressed is shown, includes the first position of first virtual objects in the model of the dress ornament.The present invention can avoid the occurrence of the interspersed situation of model by replacing the model of the first position of virtual objects with the model of dress ornament to be dressed, rather than in another model of model housing, effectively reduce the calculation amount and rendering amount of terminal, therefore, display efficiency is high, and display effect is good.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of virtual objects display methods, device, electronic device
And storage medium.
Background technique
With the development of computer technology and the diversification of terminal function, the game type being able to carry out at the terminal
It is more and more.Wherein, shooting game is a kind of game more prevailing, and terminal can show virtual scene in interface, and
Virtual objects are shown in virtual scene, specifically, the display model of virtual objects can be shown in virtual scene.Wherein,
The virtual objects may include the first virtual objects and the second virtual objects, and the first virtual objects are the virtual of the terminal control
Object, the second virtual objects are the virtual objects of other terminal controls other than the terminal.
Currently, virtual objects display methods is usually to make the whole body model for having virtual objects, with the whole body model simultaneously
Any dress ornament has not been dressed, when detecting the image change operation to the first virtual objects, dress ornament to be dressed can have been shown
It is shown in the periphery of the whole body model of first virtual objects, to show that the virtual objects have dressed the effect of dress ornament.
In the implementation of the present invention, inventor find the relevant technologies the prior art has at least the following problems:
In other models of model housing in the above method, may exist and be unable to any combination or group between certain models
Occurring the interspersed problem of model after conjunction, and terminal needs to render multiple models, calculation amount and rendering amount are larger, therefore, above-mentioned void
The display efficiency of quasi- object displaying method is low, and display effect is poor.
Summary of the invention
It, can be with the embodiment of the invention provides a kind of virtual objects display methods, device, electronic device and storage medium
It is low to solve display efficiency in the related technology, the problem of display effect difference.The technical solution is as follows:
On the one hand, a kind of virtual objects display methods is provided, which comprises
Show that the display model of the first virtual objects, the display model include described first virtual in virtual scene
The display model at each position of object, first virtual objects are the virtual objects of present terminal control;
When detecting the image change operation to first virtual objects, dress ornament to be dressed corresponding the is determined
One position, the image change operation refer to the behaviour being worn on the dress ornament to be dressed with first virtual objects
Make;
In the virtual scene, the display model of the first position is replaced with to the mould of the dress ornament to be dressed
Type is shown, includes the first position of first virtual objects in the model of the dress ornament.
On the one hand, a kind of virtual objects display device is provided, described device includes:
Display module, for showing that the display model of the first virtual objects, the display model include in virtual scene
The display model at each position of first virtual objects, first virtual objects are the virtual right of present terminal control
As;
Determining module, for when detecting the image change operation to first virtual objects, determination to be to be dressed
The corresponding first position of dress ornament, the image change operation, which refers to, is worn on described first virtually for the dress ornament to be dressed
Operation with object;
The display module is also used in the virtual scene, and the display model of the first position is replaced with institute
The model for stating dress ornament to be dressed is shown, includes described the first of first virtual objects in the model of the dress ornament
Position.
On the one hand, a kind of electronic device is provided, the electronic device includes processor and memory, the memory
In be stored at least one instruction, described instruction is loaded by the processor and is executed to realize the virtual objects display side
Operation performed by any one of method.
On the one hand, provide a kind of computer readable storage medium, be stored in the computer readable storage medium to
A few instruction, described instruction are loaded by processor and are executed to realize that any one of described virtual objects display methods is held
Capable operation.
Technical solution bring beneficial effect provided in an embodiment of the present invention includes at least:
The embodiment of the present invention passes through the corresponding first position of model according to dress ornament to be dressed, with dress ornament to be dressed
The models of first position of model replacement virtual objects can avoid the occurrence of mould rather than in another model of model housing
The interspersed situation of type, while not needing to show multiple models, and calculate the display position of each model, effectively reduce end
The calculation amount and rendering amount at end, therefore, the display efficiency of the virtual objects display methods is high, and display effect is good.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, required in being described below to embodiment
The attached drawing used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention,
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings
Other attached drawings.
Fig. 1 is a kind of terminal interface schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of virtual objects display methods flow chart provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of the script of dress ornament provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of virtual objects provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of virtual objects provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of virtual objects provided in an embodiment of the present invention;
Fig. 7 is a kind of virtual objects display methods flow chart provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of the script of dress ornament provided in an embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of virtual objects provided in an embodiment of the present invention;
Figure 10 is a kind of schematic diagram of virtual objects provided in an embodiment of the present invention;
Figure 11 is a kind of schematic diagram of the script of dress ornament provided in an embodiment of the present invention;
Figure 12 is a kind of schematic diagram of virtual objects provided in an embodiment of the present invention;
Figure 13 is a kind of virtual objects display methods flow chart provided in an embodiment of the present invention;
Figure 14 is a kind of virtual objects display methods flow chart provided in an embodiment of the present invention;
Figure 15 is a kind of virtual objects display methods flow chart provided in an embodiment of the present invention;
Figure 16 is a kind of schematic diagram of virtual objects provided in an embodiment of the present invention;
Figure 17 is a kind of virtual objects display methods flow chart provided in an embodiment of the present invention;
Figure 18 is a kind of virtual objects display methods flow chart provided in an embodiment of the present invention;
Figure 19 is a kind of structural schematic diagram of virtual objects display device provided in an embodiment of the present invention;
Figure 20 is a kind of structural schematic diagram of electronic device provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
The embodiment of the present invention relates generally to electronic game or simulated training scene, by taking electronic game scene as an example, user
It can be operated on the terminal in advance, after which detects the operation of user, the game that can download electronic game is matched
File is set, which may include the application program of the electronic game, interface display data or virtual scene data
Deng so that the user can call the game configuration file when logging in electronic game on the terminal, to electronic game interface
Rendering is carried out to show.User can carry out touch control operation at the terminal, after which detects touch control operation, can determine this
Game data corresponding to touch control operation, and rendering is carried out to the game data and is shown, which may include virtual field
The behavioral data etc. of virtual objects in scape data, the virtual scene.
The present invention relates to virtual scene can be used for simulating a virtual three dimensional space, can be used for simulation one
A two-dimensional virtual space, the virtual three dimensional space or two-dimensional virtual space can be an open space.The virtual scene can be with
For simulating the true environment in reality, for example, may include sky, land, ocean etc. in the virtual scene, which can
To include the environmental elements such as desert, city, user can control virtual objects and move in the virtual scene, this is virtual
Object can be a virtual virtual image for being used to represent user in the virtual scene, which, which can be, appoints
A kind of form, for example, people, animal etc., the present invention does not limit this.It may include multiple virtual objects in the virtual scene, often
A virtual objects, with itself shape and volume, occupy a part of space in virtual scene in virtual scene.
By taking shooting game as an example, user can control virtual objects in the aerial free-falling in the day of the virtual scene, cunning
Xiang or release a parachute falls etc., runs, beats in land, creeping, bending over forward etc., also can control void
Intend object in ocean went swimming, floating or dive etc., certainly, user also can control virtual objects and take carrier in the void
It is moved, is only illustrated herein with above-mentioned scene, the present invention is not especially limit this in quasi- scene.
User also can control virtual objects and be fought by weapons and other virtual objects, which can be cold steel, can also
To be hot weapons, the present invention is not especially limited this.
By taking the terminal is the terminal of a certain user as an example, for example, as shown in Figure 1, can be by the terminal control of the user
Virtual objects are known as the first virtual objects, and the virtual objects of other terminal controls other than the terminal are known as the second virtual objects.
Fig. 2 is a kind of virtual objects display methods flow chart provided in an embodiment of the present invention, and referring to fig. 2, this method can be with
Include:
201, terminal shows the display model of the first virtual objects in virtual scene, the display model include this first
The display model at each position of virtual objects.
In embodiments of the present invention, it can be previously stored with the display mould at each position of virtual objects in the terminal
Type, for example, can store the display model at the positions such as head, hair, upper body, the lower part of the body, both feet in the terminal.Terminal is in void
When showing the display model of the first virtual objects in quasi- scene, the display at each position of first virtual objects can be shown
Model, first virtual objects are the virtual objects of present terminal control.The display model at each position for indicate this
The form at each position of one virtual objects.
In a kind of possible implementation, the display model at least one position in each position of the virtual objects
In may include the virtual objects body and the position wearing dress ornament.For example, the display at the upper body position of the virtual objects
Model may include the body part and a jacket of the upper body of the virtual objects.It should be noted that for the virtual objects
Each position display model can also include the position initial model, can only include that this is virtual in the initial model
The body of object also may include that the body of the virtual objects and initial dress ornament, the embodiment of the present invention are not construed as limiting this.
Certainly, if user has carried out vivid change operation at the terminal before, for some portion of first virtual objects
Corresponding dress ornament has been dressed at position or certain positions, then in the step 201, terminal shows the display model of first virtual objects
When, the display model of corresponding site can be the display model of the dress ornament of above-mentioned wearing, referring specifically to subsequent step, herein
It does not repeat.
202, when detecting the image change operation to first virtual objects, terminal determines dress ornament pair to be dressed
The first position answered.
Wherein, image change operation refers to the behaviour being worn on the dress ornament to be dressed with first virtual objects
Make.For example, image change operation can be user to the clicking operation of some dress ornament in dress ornament library, it is also possible to user
To the clicking operation of some dress ornament in virtual scene, the clicking operation is for indicating that user selects the dress ornament, it is desirable to by the clothes
Decorations are worn on the first virtual objects.
It can be previously stored with the corresponding relationship at the position of dress ornament and virtual objects in the terminal, wherein in the terminal
In can be previously stored with the model of dress ornament, can be virtual when terminal needs show the dress ornament wait dressing
The model of the dress ornament is shown in scene.Specifically, terminal can be previously stored with the identification information of dress ornament and the portion of virtual objects
The corresponding relationship of position.In the step 202, when terminal detects the image change operation of user, available clothes to be dressed
The identification information of decorations, and according to the identification information, determine the first position of the corresponding virtual objects of the identification information.
For example, being somebody's turn to do dress ornament to be dressed can be a jacket, such as the identification information of the dress ornament can be Jacket_
The first position of the corresponding virtual objects of 10, the Jacket_10 can be upper body, when user in dress ornament library to the jacket
When having carried out clicking operation, the available identification information Jacket_10 to the jacket of terminal, terminal can also be according on this
Content in the blueprint of clothing determines that the first position of virtual objects is upper body.
In a kind of possible implementation, the corresponding relationship at the position of the identification information and virtual objects of above-mentioned dress ornament can
It in the script may include identification information, the corresponding void of the identification information of the dress ornament to be stored in the script of the dress ornament
The position of quasi- object can also include the storage address of the display model of the dress ornament certainly, in the script, or including the dress ornament
Other information, the embodiment of the present invention is not construed as limiting this.
For example, above- mentioned information can store in the blueprint of the dress ornament to be dressed in the step 202, blueprint is
Refer to a kind of for storing the visualization script of above- mentioned information and other functions or variable.It may include this in the blueprint wait wear
The path (quoting resource) of the model of the first position and dress ornament of the corresponding virtual objects of the dress ornament worn, in order to can be with
The model of the dress ornament is got according to the path.It should be noted that including first virtual objects in the model of the dress ornament
First position, that is to say may include in the model of the dress ornament first virtual objects first position and the dress ornament, for example,
As shown in figure 3, can also include the upper body of virtual objects in the model of jacket other than jacket.Certainly, the indigo plant of the jacket
It can also include multiple for covering the material ball of (override) in figure, wherein the material ball refers to multiple materials, the material
Matter is generally spherical display.The material information preset is generally comprised in the material ball, in different scenes, terminal can
To directly acquire corresponding material ball, material setting is realized.Wherein, which refers to that the model is true in virtual scene
Real physical property, for example, color, reflective, transparent etc..The embodiment of the present invention does not repeat herein.
203, attribute information of the terminal according to first virtual objects, multiple candidate families of the dress ornament to be dressed from this
In, obtain the corresponding model of the attribute information.
In a kind of possible implementation, it can be previously stored with multiple candidate families of each dress ornament in the terminal.
Multiple candidate family be used for embody virtual objects different sexes and different fine degrees.When first virtual objects
When attribute information difference, terminal is available and show different models when showing first virtual objects, which is
For any one candidate family in multiple candidate family.Wherein, which may include the fine journey of gender and model
Degree.
In a kind of possible implementation, the fine degree of the model can pass through detail (Levels of
Detail, LOD) technology realization, which refers to the location of in display environment and important according to the node of model
Degree, the technology of the resource allocation of decision model rendering, wherein when resource allocation difference, face number and the degrees of detail difference of model,
Then the fine degree of the model is then different.In a kind of possible implementation, the face number of the model is more, and degrees of detail is higher, then
The fine degree of the model is higher.Specifically, the fine degree of the model can also be divided into different ranks, for example,
LOD rank, LOD rank is different, and the face number and degrees of detail of the model are then different.For example, the LOD rank may include 0,1,2,3
Grade, the LOD rank is higher, and the fine degree of model is lower.Certainly, the essence of the LOD partition of the level and LOD rank and model
The corresponding relationship of thin degree is only a kind of exemplary illustration, which can also be divided into other ranks, the quantity of rank
It is also possible to other numerical value, the LOD rank is higher, and the fine degree of model can be higher, and the embodiment of the present invention does not limit this
It is fixed.
For any one dress ornament, it can be previously stored with multiple candidate families of the dress ornament, multiple time in the terminal
Modeling type may include different face number and degrees of detail, for example, the face number of multiple candidate family, number of vertex etc. can be different.
For the gender of virtual objects, the quantity of face number and degrees of detail model all the same can also be two in multiple candidate family
A, the gender of the corresponding virtual objects of two candidate families is respectively male and female.For example, as shown in figure 3, on one
Clothing can have multiple candidate families in the terminal, can be two for the quantity of the model of above-mentioned different LOD rank, property
It is not male and female respectively.
Correspondingly, terminal can be according to the attribute information of the first virtual objects, multiple candidates of the dress ornament to be dressed from this
In model, the corresponding model of the attribute information is obtained, using the model to be shown of the model dress ornament to be dressed as this.
For example, the attribute information of first virtual objects can be with are as follows: gender is female, and LOD rank is 0 grade, then the available category of terminal
The property corresponding candidate family of information.
204, terminal obtains the skin information of first virtual objects.
In embodiments of the present invention, the model of each dress ornament further includes corresponding material information, wherein the material information
Refer to the true physical property of the model in virtual scene, for example, color, reflective, transparent etc..Wherein, which is
It is a kind of material information, it is used to indicate the color of the skin of model.Then the skin information of first virtual objects refers to the
The color of skin in the display model of one virtual objects, the skin information of the model of the dress ornament refer to virtual right in the model
The color of the skin of elephant.
In a kind of possible implementation, in order to save memory space shared by model, for the model of a dress ornament,
The skin information of the multiple candidate families stored in the terminal can be identical, when the terminal is needed to some candidate family
When being shown, the skin information of the candidate family can be modified according to the skin information of the first virtual objects, with
So that the colour of skin of the whole body of first virtual objects is consistent.
It correspondingly, can be with after terminal gets the model to be shown of the dress ornament wait dressing in above-mentioned steps 203
The skin information of first virtual objects is obtained, in order to according to the skin information of first virtual objects, to mould to be shown
The skin information of type is adjusted.
In a kind of possible implementation, may be due to the position for the virtual objects for including in dress ornament to be dressed on
Body, the lower part of the body, both feet, and the display model on the head of virtual objects will not be generally replaced, terminal is available, and this is first virtual
The skin information on the head of object, is subject to the skin information on the head, following step 205 is executed, to be shown wait dress
The skin information of model of dress ornament be adjusted.For example, terminal can read the display mould on the head of first virtual objects
The skin information of type, to realize the skin information for getting the first virtual objects.
205, terminal adjusts the skin information of the model of the dress ornament to be dressed according to the skin information.
In a kind of possible implementation, after which gets the skin information of the first virtual objects, this can be waited for
The skin information of the model of the dress ornament of wearing is updated to the skin information.Correspondingly, terminal is showing the dress ornament to be dressed
When model, the color of the exposed skin outside dress ornament and the first virtual objects in the position of the first virtual objects in the model
The color of the skin at other positions is identical, so that the whole body colour of skin of first virtual objects is consistent, display effect is truer.
Certainly, in a kind of possible implementation, for any one dress ornament, different skins also can store in the terminal
The corresponding candidate family of skin information, correspondingly, terminal can first carry out step 204, then execute step 203, terminal according to this
The attribute information of one virtual objects in multiple candidate families of the dress ornament to be dressed from this, obtains the corresponding mould of the attribute information
When type, which can also include the skin information of first virtual objects.Then correspondingly, the terminal without holding again
The row step 205.
It should be noted that above-mentioned steps 203 are to obtain the process of the model of dress ornament to be dressed, step to step 205
202 be the process for determining the display position of model of the dress ornament to be dressed, and terminal can first carry out step 202, then execute step
Rapid 203 to step 205, can also first carry out step 203 to step 205, then execute step 202, certainly, the step 202 and step
Rapid 203 also may be performed simultaneously to step 205, and the embodiment of the present invention is not construed as limiting this.
206, the display model of the first position is replaced with the dress ornament to be dressed in the virtual scene by terminal
Model is shown, includes the first position of first virtual objects in the model of the dress ornament.
In the step 206, terminal can be by the display model of corresponding site in the display model shown in step 201
The model of the dress ornament to be dressed is replaced with, then the image of first virtual objects is changed, with the first virtual objects
Wearing has above-mentioned dress ornament to be dressed.The replacement process is not in the interspersed situation of model without carrying out model superposition,
Rendering performance is improved, the calculation amount and rendering amount of terminal are reduced, improves the display efficiency and display effect of virtual objects
Fruit.
For example, as shown in Figure 4 and Figure 5, in Fig. 4, first virtual objects wearing has hood clothes, when user is in dress ornament library
In when having selected a yellow jacket, terminal detects the operation of user, can execute above-mentioned steps, this is first virtual right
Model as dressing the upper body for having hood to take replaces with the model that wearing has the upper body of yellow jacket, as shown in Figure 5.Terminal is also
According to the colour of skin of the first virtual objects, the color of the exposed skin of the first virtual objects in the model of hood clothes is adjusted,
The colour of skin of the first virtual objects whole body in this way is consistent.As shown in fig. 6, if the first virtual objects of this in Fig. 4 are black race
The colour of skin, then above-mentioned steps can also be performed in terminal, obtain display effect shown in fig. 6.
In a kind of possible implementation, in step 201, when terminal shows the display model of first virtual objects,
The display model of the first position may be the first display model, it is also possible to the second display model.Wherein, first display
Model refers to the initial model of the first position of first virtual objects, which refers to that this is first virtual right
The first position of elephant currently dresses model when having dress ornament.Then correspondingly, which also may include two kinds of situations:
The first situation, when the display model of the first position be the first display model when, terminal can be in the virtual field
Jing Zhong shows the model that first display model replaces with the dress ornament to be dressed.
In the first case, user is not that first virtual objects are more corrected one's mistakes image, which also protects
Initial image is hold, that is to say that first virtual objects do not dress dress ornament or wearing and have initial dress ornament.Then user is virtual to first
When object carries out image change operation, after terminal detects image change operation, above-mentioned steps 202 can be executed to step
205, to show that first virtual objects have dressed the effect of the dress ornament of user's selection in virtual scene.
Certainly, it in a kind of possible implementation, is operated when terminal detects that the image of user is changed, and the image is more
Change operation when referring to the operation for taking off the dress ornament with first virtual objects, terminal can also determine the clothes to be taken off
The first position of decorations, so that the model of the dress ornament to be taken off to be replaced with to the introductory die of the first position in virtual scene
Type is shown.
Second situation, when the display model of the first position be the second display model when, in the virtual scene, will
The model that second display model replaces with the dress ornament to be dressed is shown, and is shown around first virtual objects
That shows the corresponding dress ornament of the second display model does not dress model, and not dressing in model for the dress ornament does not include that this is first virtual
The first position of object.
In second situation, user is that first virtual objects are more corrected one's mistakes image before, and first virtual objects are
Wearing has a corresponding dress ornament, and when other dress ornaments of user's reselection, terminal can execute above-mentioned steps, the clothes that it has been dressed
The model of decorations replaces with the model of the dress ornament of this selection, to realize the process that changes the outfit.In this case, if the image
Change operation is the clicking operation that user carries out the dress ornament in virtual scene, and terminal can also be in the week of first virtual objects
That encloses that dress ornament that display user's replacement is gone down does not dress model, that is to say, in virtual scene, first virtual objects
Around show that dress ornament for changing.Model is not dressed refer to and only include dress ornament, without the body including virtual objects
The model of position.
Correspondingly, as shown in fig. 7, for above-mentioned steps 201 to step 206 detailed process provide it is a kind of exemplary
Illustrate, when user selects some clothes, the available article identity mark issued to server of terminal
(Identification, ID), that is to say the identification information of dress ornament, and text can be locally stored according to the identification information in terminal
The blueprint of the clothes is got in part, so that terminal can detecte whether current clothes have corresponding position, namely refers to that detection is worked as
Whether the corresponding site of preceding first virtual objects has dressed other clothes (not including initial dress ornament), if it is, wearing is had
That position of clothes is deleted, and new clothes are replaced with;If it is not, then naked mould is deleted and applies new clothes, wherein the naked mould
Refer to that the virtual objects do not dress the model of dress ornament or the virtual objects dress the model for having initial dress ornament.Certainly, the end
The skin information can be applied to pair with the skin information of read head by end before the model to new clothes is shown
It answers in material slot, that is to say that the skin information by the model of the new clothes is updated to the skin information on head.
In a kind of possible implementation, there can also be arranging effect between different dress ornaments to simulate, in the terminal
It can also be stored with the built-up pattern of different dress ornaments, that is to say in the built-up pattern to may include the first dress ornament and the second clothes
Decorations, for example, the first dress ornament is a jacket, the second dress ornament is a trousers, and the jacket and trousers can be combined into a set
Dress, that is to say built-up pattern.Specifically, which can be with are as follows: when the dress ornament to be dressed is the first dress ornament, and this first
When virtual objects have dressed the second dress ornament, the built-up pattern of terminal available first dress ornament and second dress ornament, the group
It include the first position of first dress ornament, second dress ornament and first virtual objects in molding type, then terminal can be with
In the virtual scene, the model of the display model of the first position and second dress ornament is replaced with into the built-up pattern and is carried out
Display.
Similarly, there can be arranging effect between dress ornament, people there can also be different shapes when dressing different dress ornaments
State, in order to which real simulation virtual objects may have different forms when dressing different dress ornaments, in above-mentioned dress ornament to be dressed
Script in can also include other information, for example, should dress ornament be dressed can also correspond to second position, third position or
4th position.These positions refer in each position of the first virtual objects in addition to first position, with dress ornament to be dressed
The position that model is overlapped or partially overlaps.For these positions, display which can also further to the first virtual objects
Model is handled, so that the display effect of virtual objects is more preferable.Correspondingly, which can also include following several
Kind situation:
The first situation, when the dress ornament wait dressing is corresponding with second position, terminal can only show the second position
Except position model, the second position be first virtual objects each position in addition to the first position, with this
The position that the model of dress ornament to be dressed is overlapped.
It may include second position in the script of the dress ornament to be dressed in the first situation, for example, if
The dress ornament to be dressed is lucky clothes, which, which refers to, has drawn from naturally, color preferably takes with concealment similar in environment
Dress.Generally, when virtual objects dress lucky take, from the beginning which can be arrived into the lower part of the body and all covered, thus real
Now preferable concealment.As shown in figure 8, can be corresponding with second position in the blueprint of the lucky clothes, which be can be
Hair, cap, trousers, flak jackets, the helmet, knapsack, that is to say, terminal can be hidden when showing the model of the lucky clothes
The model of second position is stated, only shows the model at the position other than second position.In another example as shown in figs. 5 and 9, if should
Dress ornament to be dressed is hood clothes, which, which takes corresponding second position, can be hair, and in Fig. 5, terminal can be shown
When terminal shows the model of hood clothes, it is virtual right can to hide first in Fig. 9 for the model of the hair of first virtual objects
The model of the hair of elephant.
Second situation, when the dress ornament wait dressing is corresponding with third position, terminal is by the display mould of the first position
The model that type replaces with the dress ornament to be dressed is shown, and the display model at the third position is replaced with the third portion
Position object module shown, the third position be first virtual objects each position in addition to the first position,
The position being overlapped with the model part of the dress ornament to be dressed, the object module refer in the complete model at the third position
Remove the model for the part being overlapped with the model of dress ornament that should be to be dressed.
It can also include third position in the script of the dress ornament to be dressed, for example, such as in the second situation
In Figure 10 shown in left figure and right figure, if dress ornament that should be to be dressed is cowboy cap or baseball cap, the indigo plant of the cowboy cap or baseball cap
Third position can be corresponding in figure, which can be hair and can also obtain when terminal shows the model of cowboy cap
The first object model of hair is taken, the hair of the first virtual objects only has the edge below cowboy cap in the first object model
Region, then without hair and horse hair at the position of the cowboy cap.Terminal can also obtain the of hair when showing baseball cap
Two object modules, the hair of the first virtual objects has fringe region and horse hair below baseball cap in second object module
Part, then without hair at the position of the baseball cap.
Certainly, it is worn other than the case where dress ornament combines in conjunction with virtual objects in the arranging effect between above-mentioned dress ornament
Different shape when different dress ornaments is worn, then there may also be other situations, for example, hood clothes have the jacket of cap for one,
When then hood clothes being worn on the first virtual objects, then there may be different forms.For example, the first virtual objects are worn
Hood clothes cap or the first virtual objects do not have on hood clothes cap or the first virtual objects do not have on hood clothes
Cap and have on other caps.In this case, which can be with are as follows: when the dress ornament to be dressed is third clothes
When decorations, terminal can dress situation or the touch control operation of user according to the dress ornament of first virtual objects, from the third dress ornament
In multiple candidate families, the model of dress ornament wearing situation or the corresponding third dress ornament of the touch control operation is obtained, then terminal
In the virtual scene, the model that the display model of the first position replaces with the third dress ornament is shown.
For example, as shown in figure 11, hood, which takes corresponding third position, can be hair, as shown in Fig. 9 and Figure 12, if
The dress ornament to be dressed is hood clothes, and hood clothes can also include the candidate family of multiple forms.In Fig. 9, when the first void
When quasi- object does not dress other caps or when user selects the form of the cap of first virtual objects wearing hood clothes, eventually
The first model that is available and showing hood clothes is held, the first virtual objects dress the pocket of hood clothes in first model
Cap, and terminal can hide the model of hair.In Figure 12, when the first virtual objects have dressed other caps or user is selected
When selecting the form for the cap that first virtual objects do not wear hood clothes, terminal is available and shows the second mould of hood clothes
Type, the first virtual objects dress baseball cap in second model, which can show the of the hair of first virtual objects
Two object modules.
In a kind of possible implementation, which can also realize by other means, for example, can make
It is cut with the part that the model that mask treats the dress ornament of wearing is overlapped with the model at third position, it is interspersed to avoid model
Phenomenon can reduce the storage load of terminal although will increase the calculation amount of terminal, and the embodiment of the present invention does not make this
It limits.
The third situation, when the dress ornament wait dressing is corresponding with four positions, terminal is by the display mould of the first position
The model that type replaces with the dress ornament to be dressed is shown, and by the size scaling of the bone at the 4th position to zero, this
Four positions are each position of first virtual objects in addition to the first position, the mould of the dress ornament to be dressed with this in bone
The position that type is overlapped.
It can also include the 4th position in the script of the dress ornament to be dressed, for example, such as in the third situation
In Figure 10 shown in left figure, if dress ornament that should be to be dressed is cowboy cap, it can be corresponding with the 4th position in the cowboy cap blueprint,
4th position can be horse hair.When terminal shows the model of cowboy cap, the first object model of hair can also be obtained, and
On this basis, by the size scaling of the bone at the 4th position (horse hair) to zero, then the display model of first virtual objects
In no longer include horse hair.
It should be noted that above-mentioned three kinds of situations can any combination according to the difference of the dress ornament to be dressed, obtain
Final display effect can effectively improve the display effect of virtual objects also by the method and step in above-mentioned three kinds of situations
Rate improves display effect.Certainly, above-mentioned three kinds of situations specifically use which kind of or which kind can also be by related technical personnel
Freely it is arranged, the embodiment of the present invention is not construed as limiting this.
As shown in Figure 13 and Figure 14, in the above process, terminal can traverse in the blueprint of dress ornament to be dressed hide and
List is replaced, second position and third position is that is to say, and check whether the position in list has existed, that is to say detection
Whether corresponding site is had shown that in the display model of current first virtual objects, if it is, can hide or replace this
The display model at position, and the object of record effect, that is to say and be marked in portion structure body, to indicate currently to hide
Or which position is substituted.The portion structure body is the state for the model for recording each position of first virtual objects
The structure of information.Terminal can safeguard the status information of the model at each position based on the portion structure body, can also be with
Status information based on record, detection current interface show whether situation is consistent with setting.If do not had in current display model
It shows corresponding site, then can be marked in corresponding position structural body and be hidden and replaced, then terminal can be based on being somebody's turn to do
The status information of record, no longer shows the model of the corresponding position, or directly displays the model of replacement.Terminal is replaced in display
Model when, above-mentioned label can be checked for, that is to say the status information of record, with realize interface display and setting
Synchronization.
Certainly, similarly, terminal can also inquire whether dress ornament to be dressed is corresponding with the 4th position, that is to say inquiry
The scaling bone slot position of blueprint that is to say if so, then hiding the bone and carry out bone scaling, by the size scaling of the bone
To zero, and effective object is recorded in corresponding position structural body, that is to say that the status information to the size of the bone is tieed up
Shield.
207, when detecting in virtual scene includes the second virtual objects, terminal obtains the aobvious of second virtual objects
Representation model.
Wherein, the fine degree of the display model of second virtual objects and the display model of first virtual objects
Fine degree is different.In a kind of possible implementation, the fine degree of the display model of second virtual objects can be than this
The fine degree of the display model of first virtual objects is low.With in step 203 similarly, first virtual objects and second virtual
The fine degree of the display model of object can be realized by LOD technology.It that is to say, when virtual objects are the first virtual objects
When, the high model of the available fine degree of terminal, when virtual objects are the second virtual objects, terminal is available fine
The low model of degree.Make the fine degree of the model of the first virtual objects and the second virtual objects different by LOD technology,
User can be made more accurately to distinguish the virtual objects and other virtual objects of oneself control, but also virtual right to first
The display effect of the model of elephant is more preferable, promotes user experience.
In a kind of possible implementation, terminal specifically obtains the original aobvious of the second virtual objects of which kind of fine degree
Representation model can also proportion determines in screen according to the second virtual objects.Specifically, in the step 207, terminal can
The size of the root bone in original display model to obtain second virtual objects and the ratio of screen size, terminal can be with
According to the corresponding relationship of the ratio and ratio section, the display model of target fine degree is obtained.Wherein, the fine journey of the target
It spends corresponding with the ratio section where the ratio.The size of the root bone refers to the display model of current second virtual objects
In size of root bone when being mapped in screen in screen.
Wherein, the bone in the display model of the second virtual objects can have set membership, wherein father's bone is being transported
When dynamic, sub- bone can be moved with father's skeleton motion, and sub- bone is during exercise, father's bone will not with sub- skeleton motion and
Movement, then father's bone is root bone.Above-mentioned different ratio section can correspond to different fine degrees, for example, not
Same ratio section corresponds to different LOD ranks.For example, 50% to 90% corresponds to 1 grade, 20% to 50% corresponds to 2
Grade, 0% to 20% corresponds to 3 grades.Certainly, these numerical value and corresponding relationship are a kind of exemplary illustration, and the present invention is implemented
Example is not construed as limiting this.In this way if the ratio of the size of the root bone of the display model of the second virtual objects and screen size
It is smaller, it is believed that the second virtual objects first virtual objects of distance are far, the display of second virtual objects in screen
Ratio is smaller, without subtly showing the details of its display model, whereas if above-mentioned ratio is larger, then it can be subtly
The details of its display model is shown, to guarantee the display effect of the virtual objects in interface.
In a kind of possible implementation, in order to enable the fine degree of the display model of second virtual objects is lower than
First virtual objects can set the fine degree of the display model of the first virtual objects to highest, the second virtual objects
The highest fine degree of display model is lower than the fine degree of the first virtual objects.For example, can be by the first virtual objects
The LOD rank of display model is set as 0 grade, and the LOD rank of the display model of the second virtual objects can be 1 grade, 2 grades or 3
Grade.
Specifically, terminal can also obtain the root bone of target site in the original display model of second virtual objects
Size and screen size ratio, so as to obtain the target site of target fine degree and the display at other positions
Model.Since the size of root bone in the possible display model of the different virtual objects of attribute information may be different, in order to unified aobvious
The method of determination of the fine degree of representation model, can be according to the consistent target site of size of root bone in each display model, really
Determine fine degree.
For example, as shown in figure 15, which can be head, and higher with LOD rank, the fine degree of model is got over
For low.For the second virtual objects, terminal can calculate the root bone on head percentage (screen accounting) on the screen,
When percentage is lower than preset threshold value in model resource, then it is switched to next stage LOD, terminal can also calculate other positions
LOD rank " can hide the position ", by the LOD grade of the model at other positions if being higher than the LOD rank of head model
It is not updated to the LOD rank of head model, guarantees that the LOD rank of the model of the second virtual objects systemic sites is consistent.And if
Not higher than the LOD rank of head model, then next stage LOD rank can be directly switch into.Above-mentioned is LOD rank handoff procedure,
In a kind of possible implementation, for that can be deposited in the terminal in the minimum LOD rank of fine degree (for example, 3 grades)
A coarse whole body model is contained, when terminal is according to the screen accounting of the root bone on head, determines the LOD rank of head model
When being 3 grades, terminal can also directly hide the model at other positions, show coarse whole body model.
208, terminal shows the display model of second virtual objects in virtual scene.
After terminal gets the display model of the second virtual objects, the display model can be shown in virtual scene.?
In a kind of possible implementation, since terminal configures different, different configuration levels can be set in the terminal, for
Different configuration levels can also be corresponding with different texture mappings (Mipmap) rank.Wherein, configuration level can be finger drawing
Quality and grade is other, for example, smoothness, equilibrium, high definition, ultra high-definition.Wherein, Mipmap is a kind of computer graphic image technique, it is used for
Reach illusion of depth in the two-dimentional substitute of 3-D image, that is to say a kind of mapping technology.Mipmap technology and material
Textures technology combines, and can at varying resolutions show single texturing in the form of multiple image.It is different
The corresponding planar grains of Mipmap rank readability it is different.
In a kind of possible implementation, in above-mentioned steps 201, step 206 and step 208, terminal is in virtual scene
It, can be by the display model of the first virtual objects when the display model of the first virtual objects of middle display or the second virtual objects
Mipmap rank is set as the first estate, sets the second grade for the Mipmap rank of the display model of the second virtual objects,
Wherein, the readability of the readability of the corresponding planar grains of the first estate planar grains corresponding with the second grade is not
Together, in a kind of possible implementation, the readability of the corresponding planar grains of the first estate can be than the second more corresponding grade
Planar grains readability it is good, thus while improving display effect, improve rendering performance.Specifically, terminal can be with
The Mipmap setting up procedure is realized using texture stream (TextureStreaming) technology.For example, as shown in figure 16, in the figure
The virtual objects on the left side are the first virtual objects, and the right is the second virtual objects, the textures of the display model of the first virtual objects
Resolution ratio be 512*512, the rates respectively of the textures of the display model of the second virtual objects is 256*256, and first is virtual right
The polygon facet number of elephant is bigger than the polygon facet number of the second virtual objects, that is to say the essence of the display model of the first virtual objects
Thin degree is higher than the fine degree of the display model of the second virtual objects.Certainly, terminal can also be by the aobvious of the first virtual objects
The Mipmap rank of representation model is set as highest level, that is to say the readability highest of planar grains, and the second virtual objects
The Mipmap rank of display model can be determined according to the current configuration level of terminal.
In a kind of possible implementation, terminal shows the first virtual objects or the second virtual objects in virtual scene
Display model when, the display model of the first virtual objects can also be shown using the first render mode, using second
Render mode shows that the display effect of first render mode is rendered with second to the display model of the second virtual objects
Mode display effect is different.In a kind of possible implementation, the display effect of first render mode can be than the second rendering
Mode display effect is good.For example, first render mode can be physics renders (Physically based Shading,
PBR) mode, the second render mode can be Lambert mode.Specifically, terminal carries out rendering to the first virtual objects and shows
The material tinter (shader) of Shi Caiyong can use PBR illumination model, adopt when carrying out rendering display to the second virtual objects
Material shader can use Lambert illumination model.For example, as shown in figure 16, first virtual objects on the left side are adopted
Lambert illumination model is used with the second virtual objects of PBR illumination model, the right, so that the wash with watercolours of the first virtual objects
It is better than the rendering display effect of the second virtual objects to contaminate display effect.
For example, as shown in figure 17, terminal can also be detected when dress ornament material is arranged in above two implementation
Whether virtual objects are the first virtual objects, if it is not, then according to the configuration of the configuration level (that is to say image quality) of present terminal
The material of dress ornament is arranged in information, that is to say determining Mipmap rank;If it is, creation dynamic material (dynamic
Material), original material parameter is copied in the dynamic material, and corrects the Mipmap deviant of the dynamic material, namely
It is to set the first estate for the Mipmap rank of the first virtual objects, further, terminal can also will force setting, and this is moved
The render mode of state material is PBR render mode, thus to the rendering display effect of the first virtual objects and the second virtual objects
It is distinguished, to improve the display effect of virtual objects in terminal interface, also improves rendering performance.
In a kind of possible implementation, in order to reduce the load of terminal, display efficiency and display effect, terminal are improved
Can be with the display model at the asynchronous each position for obtaining first virtual objects, in above-mentioned steps 201, terminal can be with
In virtual scene, the display model at each position of asynchronous display first virtual objects.For example, as shown in figure 18, taking
When business device issues identification information (ID) of dress ornament to be shown, terminal can be according to the identification information, in locally stored file
Get the corresponding blueprint path of the dress ornament, and according to the asynchronous load condition of blueprint coordinates measurement and registered callbacks function,
It is that terminal can will be loaded according to the determination of blueprint path, and after loading is complete, can be notified according to call back function
Loading procedure is completed.For the blueprint of different dress ornaments, terminal asynchronous can acquire multiple blueprints, and according to
Whether the virtual objects of display are the first virtual objects, obtain corresponding model resource path, then generate asynchronous load request
And registered callbacks function, it that is to say, the display model of corresponding site, fine degree can be obtained according to the model resource path,
The process of the acquisition model is also the process of asynchronous load, and after model is got, it is aobvious that rendering can be carried out in virtual scene
Show, for different parts, it is believed that be that different models are installed, finally obtain the display model of virtual objects
Process.
Certainly, the setting of the asynchronous acquisition and display can be not limited to the model and dress ornament at each position of virtual objects
Model acquisition and display process, apply also for the acquisition and the display process or void of the model of different virtual objects
The acquisition of the prop model of virtual item in quasi- scene and display process, the embodiment of the present invention are not construed as limiting this.By this
The display efficiency and display effect of terminal can be improved in asynchronous acquisition process, effectively reduces the frequency of Caton, improves user
Experience can also judge whether have other virtual in surrounding enviroment according to Caton phenomenon to avoid user in electronic game scene
Object.
The embodiment of the present invention passes through the corresponding first position of model according to dress ornament to be dressed, with dress ornament to be dressed
The models of first position of model replacement virtual objects can avoid the occurrence of mould rather than in another model of model housing
The interspersed situation of type, while not needing to show multiple models, and calculate the display position of each model, effectively reduce end
The calculation amount and rendering amount at end, therefore, the display efficiency of the virtual objects display methods is high, and display effect is good.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
Figure 19 is a kind of structural schematic diagram of virtual objects display device provided in an embodiment of the present invention, should referring to Figure 19
Device includes:
Display module 1901, for showing the display model of the first virtual objects in virtual scene, the display model packet
The display model at each position of first virtual objects is included, which is the virtual objects of present terminal control;
Determining module 1902, for determining wait dress when detecting the image change operation to first virtual objects
The corresponding first position of dress ornament, image change operation refers to the dress ornament to be dressed being worn on first virtual objects
Operation with it;
The display module 1901, is also used in the virtual scene, by the display model of the first position replace with this to
The model of the dress ornament of wearing is shown, includes the first position of first virtual objects in the model of the dress ornament.
In a kind of possible implementation, the device further include:
First obtain module, for the attribute information according to first virtual objects, the dress ornament to be dressed from this it is multiple
In candidate family, the corresponding model of the attribute information is obtained, which includes the fine degree of gender and model.
In a kind of possible implementation, which is used for:
When the display model of the first position is the first display model, in the virtual scene, by the first display mould
The model that type replaces with the dress ornament to be dressed shown, first display model refer to first virtual objects this
The initial model at one position;
When the display model of the first position is the second display model, in the virtual scene, by the second display mould
The model that type replaces with the dress ornament to be dressed is shown, and second display is shown around first virtual objects
The corresponding dress ornament of model does not dress model, which refers to that the first position of first virtual objects is current
Model when wearing has a dress ornament, the dress ornament do not dress do not include in model first virtual objects the first position.
In a kind of possible implementation, which is used for:
When the dress ornament wait dressing is corresponding with second position, the model at the position except the second position is only shown, it should
Second position is model of dress ornament to be dressed with this in each position of first virtual objects in addition to the first position
The position of coincidence;Or,
When the dress ornament wait dressing is corresponding with third position, the display model of the first position is replaced with this wait wear
The model for the dress ornament worn shown, and by the display model at the third position replace with the object module at the third position into
Row display, the third position are clothes to be dressed with this in each position of first virtual objects in addition to the first position
The position that the model part of decorations is overlapped, which, which refers to, removes in the complete model at the third position and is somebody's turn to do wait dress
Dress ornament model be overlapped part model;Or,
When the dress ornament wait dressing is corresponding with four positions, the display model of the first position is replaced with this wait wear
The model for the dress ornament worn shown, and by the size scaling of the bone at the 4th position to zero, the 4th position be this first
Each position of virtual objects in addition to the first position, in bone with should dress ornament be dressed the position that is overlapped of model.
In a kind of possible implementation, which is used for:
When the dress ornament to be dressed is the first dress ornament, and first virtual objects have dressed the second dress ornament, obtaining should
The built-up pattern of first dress ornament and second dress ornament, include in the built-up pattern first dress ornament, second dress ornament and this
The first position of one virtual objects;
In the virtual scene, the model of the display model of the first position and second dress ornament is replaced with into the combination
Model is shown.
In a kind of possible implementation, which is used for:
When the dress ornament wait dressing is third dress ornament, situation or user are dressed according to the dress ornament of first virtual objects
Touch control operation, from multiple candidate families of the third dress ornament, obtain the dress ornament wearing situation or the touch control operation it is corresponding
The model of third dress ornament;
In the virtual scene, the model that the display model of the first position replaces with the third dress ornament is shown.
In a kind of possible implementation, the device further include:
Second obtains module, for obtaining the skin information of first virtual objects;
Module is adjusted, for adjusting the skin information of the model of the dress ornament to be dressed according to the skin information.
In a kind of possible implementation, the device further include:
Third obtains module, second virtual for when detecting in virtual scene includes the second virtual objects, obtaining this
The display model of object, the display model of the fine degree of the display model of second virtual objects and first virtual objects
Fine degree it is different;
The display module 1901 is used to show the display model of second virtual objects in virtual scene.
In a kind of possible implementation, which obtains module and is also used to:
Obtain the size of the root bone in the original display model of second virtual objects and the ratio of screen size;
According to the corresponding relationship of the ratio and ratio section, the display model of target fine degree is obtained, the target is fine
Degree is corresponding with the ratio section where the ratio.
In a kind of possible implementation, which obtains module and is also used to:
Obtain the size and screen size of the root bone of target site in the original display model of second virtual objects
Ratio;
Correspondingly, the display model of the acquisition target fine degree, comprising:
Obtain the target site of target fine degree and the display model at other positions.
In a kind of possible implementation, which is also used to show that first is virtual right in virtual scene
As or the second virtual objects display model when, the texture mapping Mipmap rank of the display model of the first virtual objects is set
It is set to the first estate, sets the second grade for the Mipmap rank of the display model of the second virtual objects, wherein this first
The readability of the readability of the corresponding planar grains of grade planar grains corresponding from the second grade is different.
In a kind of possible implementation, which is also used to show that first is virtual right in virtual scene
As or the second virtual objects display model when, shown using display model of first render mode to the first virtual objects
Show, is shown using display model of second render mode to the second virtual objects, the display effect of first render mode
It is different from the display effect of the second render mode.
In a kind of possible implementation, the device further include:
4th obtains module, the display model for the asynchronous each position for obtaining first virtual objects;
The display module 1901 is also used in virtual scene, each position of asynchronous display first virtual objects
Display model.
Device provided in an embodiment of the present invention passes through according to the corresponding first position of model of dress ornament to be dressed, with to
The model of the first position of the model replacement virtual objects of the dress ornament of wearing, rather than in another model of model housing, can be with
The interspersed situation of model is avoided the occurrence of, while not needing to show multiple models, and calculate the display position of each model, is had
Effect reduces the calculation amount and rendering amount of terminal, and therefore, the display efficiency of the virtual objects display methods is high, and display effect is good.
It should be understood that virtual objects display device provided by the above embodiment is when showing virtual objects, only more than
The division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by difference
Functional module complete, i.e., the internal structure of device is divided into different functional modules, with complete it is described above whole or
Person's partial function.In addition, virtual objects display device provided by the above embodiment belongs to virtual objects display methods embodiment
Same design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Figure 20 is a kind of structural schematic diagram of electronic device provided in an embodiment of the present invention, which can be mentioned
For for above-mentioned terminal, it may include one which, which can generate bigger difference because configuration or performance are different,
Or more than one processor (central processing units, CPU) 2001 and one or more memory
2002, wherein be stored at least one instruction in the memory 2002, which is loaded by the processor 2001
And the method executed to realize above-mentioned each embodiment of the method offer.Certainly, which can also have wired or wireless
The components such as network interface, keyboard and input/output interface, to carry out input and output, which can also include it
He is for realizing the component of functions of the equipments, and this will not be repeated here.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, the storage for example including instruction
Device, above-metioned instruction can be executed by processor to complete the virtual objects display methods in above-described embodiment.For example, the computer
Readable storage medium storing program for executing can be read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM), tape, floppy disk and
Optical data storage devices etc..
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, which can store in a kind of computer-readable storage
In medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It above are only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all in the spirit and principles in the present invention
Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (15)
1. a kind of virtual objects display methods, which is characterized in that the described method includes:
Show that the display model of the first virtual objects, the display model include first virtual objects in virtual scene
The display model at each position, first virtual objects are the virtual objects of present terminal control;
When detecting the image change operation to first virtual objects, determine that dress ornament to be dressed is first corresponding
Position, the image change operation refer to the operation being worn on the dress ornament to be dressed with first virtual objects;
In the virtual scene, the model that the display model of the first position replaces with the dress ornament to be dressed is carried out
It shows, includes the first position of first virtual objects in the model of the dress ornament.
2. the method according to claim 1, wherein the display model by the first position replaces with institute
State dress ornament to be dressed model shown before, the method also includes:
According to the attribute information of first virtual objects, from multiple candidate families of the dress ornament to be dressed, institute is obtained
The corresponding model of attribute information is stated, the attribute information includes the fine degree of gender and model.
3. the method according to claim 1, wherein described in the virtual scene, by the first position
Display model replace with the model of the dress ornament to be dressed and shown, comprising:
When the display model of the first position is the first display model, in the virtual scene, described first is shown
The model that model replaces with the dress ornament to be dressed is shown that first display model refers to first virtual objects
The first position initial model;
When the display model of the first position is the second display model, in the virtual scene, described second is shown
The model that model replaces with the dress ornament to be dressed shown, and shows around first virtual objects described the
The corresponding dress ornament of two display models does not dress model, and second display model refers to described the of first virtual objects
Model when having dress ornament is currently dressed at one position, the dress ornament do not dress do not include in model first virtual objects institute
State first position.
4. the method according to claim 1, wherein the display model by the first position replaces with institute
The model for stating dress ornament to be dressed is shown, comprising:
When the dress ornament wait dress is corresponding with second position, the model at the position except the second position, institute are only shown
It states in each position that second position is first virtual objects in addition to the first position, with the dress ornament to be dressed
Model be overlapped position;Or,
When the dress ornament wait dress is corresponding with third position, the display model of the first position is replaced with described wait wear
The model for the dress ornament worn is shown, and the display model at the third position is replaced with to the object module at the third position
It has been shown that, the third position be in each position of first virtual objects in addition to the first position, and it is described
The position that the model part of dress ornament to be dressed is overlapped, the object module refer in the complete model at the third position
Fall the model for the part being overlapped with the model of the dress ornament to be dressed;Or,
When the dress ornament wait dress is corresponding with four positions, the display model of the first position is replaced with described wait wear
The model for the dress ornament worn is shown, and by the size scaling of the bone at the 4th position to zero, the 4th position is institute
Each position of the first virtual objects is stated in addition to the first position, is overlapped in bone with the model of the dress ornament to be dressed
Position.
5. the method according to claim 1, wherein described in the virtual scene, by the first position
Display model replace with the model of the dress ornament to be dressed and shown, comprising:
When the dress ornament to be dressed is the first dress ornament, and first virtual objects have dressed the second dress ornament, institute is obtained
The built-up pattern of the first dress ornament and second dress ornament is stated, includes first dress ornament, second clothes in the built-up pattern
It is decorated with and the first position of first virtual objects;
In the virtual scene, the model of the display model of the first position and second dress ornament is replaced with described group
Molding type is shown.
6. the method according to claim 1, wherein described in the virtual scene, by the first position
Display model replace with the model of the dress ornament to be dressed and shown, comprising:
When the dress ornament wait dress is third dress ornament, situation or user are dressed according to the dress ornament of first virtual objects
Touch control operation obtains the dress ornament wearing situation or the touch control operation pair from multiple candidate families of the third dress ornament
The model for the third dress ornament answered;
In the virtual scene, the model that the display model of the first position replaces with the third dress ornament is shown
Show.
7. the method according to claim 1, wherein the method also includes:
Obtain the skin information of first virtual objects;
Correspondingly, the model that the display model by the first position replaces with the dress ornament to be dressed carries out showing it
Before, the method also includes:
According to the skin information, the skin information of the model of the adjustment dress ornament to be dressed.
8. the method according to claim 1, wherein the method also includes:
When detecting in virtual scene includes the second virtual objects, the display model of second virtual objects is obtained, it is described
The fine degree of the display model of second virtual objects is different from the fine degree of display model of first virtual objects;
The display model of second virtual objects is shown in virtual scene.
9. according to the method described in claim 8, it is characterized in that, the display model for obtaining second virtual objects,
Include:
Obtain the size of the root bone in the original display model of second virtual objects and the ratio of screen size;
According to the corresponding relationship of the ratio and ratio section, the display model of target fine degree is obtained, the target is fine
Degree is corresponding with the ratio section where the ratio.
10. according to the method described in claim 9, it is characterized in that, the original display for obtaining second virtual objects
The size of root bone in model and the ratio of screen size, comprising:
Obtain the ratio of the size and screen size of the root bone of target site in the original display model of second virtual objects
Value;
Correspondingly, the display model for obtaining target fine degree, comprising:
Obtain the target site of target fine degree and the display model at other positions.
11. the method according to claim 1, wherein the method also includes:
When showing the display model of the first virtual objects or the second virtual objects in virtual scene, by the aobvious of the first virtual objects
The texture mapping Mipmap rank of representation model is set as the first estate, by the Mipmap rank of the display model of the second virtual objects
It is set as the second grade, wherein the readability plane corresponding with the second grade of the corresponding planar grains of described the first estate
The readability of texture is different.
12. the method according to claim 1, wherein the method also includes:
When showing the display model of the first virtual objects or the second virtual objects in virtual scene, using the first render mode pair
The display model of first virtual objects is shown, is shown using display model of second render mode to the second virtual objects
Show, the display effect of first render mode is different from the display effect of the second render mode.
13. the method according to claim 1, wherein first virtual objects of being shown in virtual scene
Before display model, the method also includes:
The display model at the asynchronous each position for obtaining first virtual objects;
Correspondingly, the display model that the first virtual objects are shown in virtual scene, comprising:
In virtual scene, the display model at each position of the first virtual objects described in asynchronous display.
14. a kind of electronic device, which is characterized in that the electronic device includes processor and memory, is deposited in the memory
At least one instruction is contained, described instruction is loaded by the processor and executed to realize such as claim 1 to claim 13
Operation performed by described in any item virtual objects display methods.
15. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium
Item instruction, described instruction are loaded by processor and are executed to realize such as claim 1 to the described in any item void of claim 13
Operation performed by quasi- object displaying method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810649894.5A CN109087369B (en) | 2018-06-22 | 2018-06-22 | Virtual object display method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810649894.5A CN109087369B (en) | 2018-06-22 | 2018-06-22 | Virtual object display method, device, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109087369A true CN109087369A (en) | 2018-12-25 |
CN109087369B CN109087369B (en) | 2021-02-09 |
Family
ID=64840139
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810649894.5A Active CN109087369B (en) | 2018-06-22 | 2018-06-22 | Virtual object display method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109087369B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111259019A (en) * | 2020-01-09 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Resource allocation method, device, equipment and storage medium |
CN111598981A (en) * | 2020-05-15 | 2020-08-28 | 广州酷狗计算机科技有限公司 | Role model display method, role model display device, role model equipment and storage medium |
WO2020173222A1 (en) * | 2019-02-28 | 2020-09-03 | 北京京东尚科信息技术有限公司 | Object virtualization processing method and device, electronic device and storage medium |
CN111773719A (en) * | 2020-06-23 | 2020-10-16 | 完美世界(北京)软件科技发展有限公司 | Rendering method and device of virtual object, storage medium and electronic device |
CN112704881A (en) * | 2020-12-29 | 2021-04-27 | 苏州亿歌网络科技有限公司 | Dress assembling display method, device, server and storage medium |
CN113350788A (en) * | 2021-05-11 | 2021-09-07 | 广州三七极创网络科技有限公司 | Virtual character reloading method, device and medium |
CN113554760A (en) * | 2021-08-05 | 2021-10-26 | 网易(杭州)网络有限公司 | Reloading method and device, computer equipment and storage medium |
CN116212361A (en) * | 2021-12-06 | 2023-06-06 | 广州视享科技有限公司 | Virtual object display method and device and head-mounted display device |
WO2023241206A1 (en) * | 2022-06-14 | 2023-12-21 | 腾讯科技(深圳)有限公司 | Suit processing method and apparatus for virtual object, and electronic device, storage medium and program product |
WO2024130734A1 (en) * | 2022-12-23 | 2024-06-27 | 西门子股份公司 | Display method and device for digital model, and readable medium and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003103047A (en) * | 2001-09-28 | 2003-04-08 | Namco Ltd | Image generation system and method and program for image generation |
CN1979560A (en) * | 2005-12-01 | 2007-06-13 | 腾讯科技(深圳)有限公司 | Figure processing method and system |
CN101276475A (en) * | 2008-03-31 | 2008-10-01 | 康佳集团股份有限公司 | Method for implementing real time altering virtual role appearance in network game |
CN106075909A (en) * | 2016-07-15 | 2016-11-09 | 珠海金山网络游戏科技有限公司 | A kind of system and method that changes the outfit of playing |
-
2018
- 2018-06-22 CN CN201810649894.5A patent/CN109087369B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003103047A (en) * | 2001-09-28 | 2003-04-08 | Namco Ltd | Image generation system and method and program for image generation |
CN1979560A (en) * | 2005-12-01 | 2007-06-13 | 腾讯科技(深圳)有限公司 | Figure processing method and system |
CN101276475A (en) * | 2008-03-31 | 2008-10-01 | 康佳集团股份有限公司 | Method for implementing real time altering virtual role appearance in network game |
CN106075909A (en) * | 2016-07-15 | 2016-11-09 | 珠海金山网络游戏科技有限公司 | A kind of system and method that changes the outfit of playing |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11978111B2 (en) | 2019-02-28 | 2024-05-07 | Beijing Jingdong Shangke Information Technology Co., Ltd. | Object virtualization processing method and device, electronic device and storage medium |
WO2020173222A1 (en) * | 2019-02-28 | 2020-09-03 | 北京京东尚科信息技术有限公司 | Object virtualization processing method and device, electronic device and storage medium |
CN111259019A (en) * | 2020-01-09 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Resource allocation method, device, equipment and storage medium |
CN111259019B (en) * | 2020-01-09 | 2023-05-12 | 腾讯科技(深圳)有限公司 | Resource allocation method, device, equipment and storage medium |
CN111598981A (en) * | 2020-05-15 | 2020-08-28 | 广州酷狗计算机科技有限公司 | Role model display method, role model display device, role model equipment and storage medium |
CN111773719A (en) * | 2020-06-23 | 2020-10-16 | 完美世界(北京)软件科技发展有限公司 | Rendering method and device of virtual object, storage medium and electronic device |
CN112704881A (en) * | 2020-12-29 | 2021-04-27 | 苏州亿歌网络科技有限公司 | Dress assembling display method, device, server and storage medium |
CN113350788A (en) * | 2021-05-11 | 2021-09-07 | 广州三七极创网络科技有限公司 | Virtual character reloading method, device and medium |
CN113554760A (en) * | 2021-08-05 | 2021-10-26 | 网易(杭州)网络有限公司 | Reloading method and device, computer equipment and storage medium |
CN113554760B (en) * | 2021-08-05 | 2024-02-13 | 网易(杭州)网络有限公司 | Method and device for changing package, computer equipment and storage medium |
CN116212361B (en) * | 2021-12-06 | 2024-04-16 | 广州视享科技有限公司 | Virtual object display method and device and head-mounted display device |
CN116212361A (en) * | 2021-12-06 | 2023-06-06 | 广州视享科技有限公司 | Virtual object display method and device and head-mounted display device |
WO2023241206A1 (en) * | 2022-06-14 | 2023-12-21 | 腾讯科技(深圳)有限公司 | Suit processing method and apparatus for virtual object, and electronic device, storage medium and program product |
WO2024130734A1 (en) * | 2022-12-23 | 2024-06-27 | 西门子股份公司 | Display method and device for digital model, and readable medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN109087369B (en) | 2021-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109087369A (en) | Virtual objects display methods, device, electronic device and storage medium | |
US20200380333A1 (en) | System and method for body scanning and avatar creation | |
US11640672B2 (en) | Method and system for wireless ultra-low footprint body scanning | |
US11694392B2 (en) | Environment synthesis for lighting an object | |
US10628666B2 (en) | Cloud server body scan data system | |
US9892540B2 (en) | Image-based deformation of simulated characters of varied topology | |
WO2018072470A1 (en) | Image display method, and terminal | |
US20140078144A1 (en) | Systems and methods for avatar creation | |
CN107209962A (en) | For the method for the 3D virtual body models for generating the people combined with 3D clothes images, and related device, system and computer program product | |
CN111282277B (en) | Special effect processing method, device and equipment and storage medium | |
CN103262126B (en) | Image processing apparatus, illumination processing device and method thereof | |
CN110090440B (en) | Virtual object display method and device, electronic equipment and storage medium | |
US20220230375A1 (en) | Three-dimensional avatar generation and customization | |
Argudo et al. | Single-picture reconstruction and rendering of trees for plausible vegetation synthesis | |
US10650524B2 (en) | Designing effective inter-pixel information flow for natural image matting | |
CN107038745A (en) | A kind of 3D tourist sights roaming interaction method and device | |
CN106898040A (en) | Virtual resource object rendering intent and device | |
CN109712226A (en) | The see-through model rendering method and device of virtual reality | |
CN114494570A (en) | Rendering method and device of three-dimensional model, storage medium and computer equipment | |
CN108230430B (en) | Cloud layer mask image processing method and device | |
Xu et al. | Matlaber: Material-aware text-to-3d via latent brdf auto-encoder | |
KR20060108271A (en) | Method of image-based virtual draping simulation for digital fashion design | |
CN117333637B (en) | Modeling and rendering method, device and equipment for three-dimensional scene | |
Marques et al. | Deep Light Source Estimation for Mixed Reality. | |
CN116485981A (en) | Three-dimensional model mapping method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |