CN108132712A - The rendering method of state of weather, device and storage medium and terminal in virtual scene - Google Patents

The rendering method of state of weather, device and storage medium and terminal in virtual scene Download PDF

Info

Publication number
CN108132712A
CN108132712A CN201810031172.3A CN201810031172A CN108132712A CN 108132712 A CN108132712 A CN 108132712A CN 201810031172 A CN201810031172 A CN 201810031172A CN 108132712 A CN108132712 A CN 108132712A
Authority
CN
China
Prior art keywords
virtual
weather
virtual scene
state
scene
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.)
Pending
Application number
CN201810031172.3A
Other languages
Chinese (zh)
Inventor
姜帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201810031172.3A priority Critical patent/CN108132712A/en
Publication of CN108132712A publication Critical patent/CN108132712A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/012Walk-in-place systems for allowing a user to walk in a virtual environment while constraining him to a given position in the physical environment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/56Particle system, point based geometry or rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/61Scene description
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2215/00Indexing scheme for image rendering
    • G06T2215/16Using real world measurements to influence rendering

Abstract

The invention discloses rendering method, device and the storage mediums and terminal of state of weather in a kind of virtual scene.Wherein, this method includes:Obtain the state of weather of virtual scene;Current observation visual angle based on virtual scene obtains the parameter value of configuration parameter corresponding with state of weather, wherein, configuration parameter is in present condition at least one of virtual scene virtual element is configured;At least one virtual element is presented according to parameter value.The present invention solves in the prior art, since with part virtual world is presented in AR platforms so that the technical issues of traditional all weathers system can not be directly applied for AR platforms.

Description

The rendering method of state of weather, device and storage medium and terminal in virtual scene
Technical field
The present invention relates to area of computer graphics, in particular to a kind of presentation side of state of weather in virtual scene Method, device and storage medium and terminal.
Background technology
It is mainly presented in traditional weather system by day sylphon, day sylphon is that sky background is presented in one kind in gaming Mode.When using day sylphon, entire scene is actually to be wrapped in a huge cube.Sky, distant place Mountain and some other element that can not reach, can all be projected on a cube of volume textures, and directly display box on high On surface.
But based on the application of AR (augmented reality) technology, the often world presented by virtual element Part or virtual element, therefore the presentation mode of traditional weather system can not be grafted directly to AR application in.With cloud layer For, the cloud layer in traditional virtual scene is by the way of class day sylphon, the inside of box shows on high a hemispherical Cloud layer, and AR application in, since the visual angle of player can watch this virtual world outside virtual world, thus, it is seen that be One hemispherical can not realize the presentation effect of cloud layer.Therefore, traditional method that weather is presented using day sylphon can not be applied In AR applications.By taking rainwater as an example, the prior art mainly using particIe system come realize part (for example, around player) into Row rains, and this region of raining follows personage to move always.But in AR applications, since the visual angle of player can dynamic Enter and leave virtual local scene domain, therefore the processing mode that this kind follows can not be suitable for player from virtual scene In outer viewing virtual scene rainy the phenomenon that.
In for the above-mentioned prior art, since with part virtual world is presented in AR platforms so that traditional all weathers system The problem of system can not be directly applied for AR platforms, currently no effective solution has been proposed.
Invention content
Rendering method, device and storage medium and end an embodiment of the present invention provides state of weather in a kind of virtual scene End, at least to solve in the prior art, since with part virtual world is presented in AR platforms so that traditional all weathers system without Method is directly applied for the technical issues of AR platforms.
One side according to embodiments of the present invention provides a kind of rendering method of state of weather in virtual scene, packet It includes:Obtain the state of weather of virtual scene;Current observation visual angle based on virtual scene obtains configuration corresponding with state of weather The parameter value of parameter, wherein, configuration parameter is in present condition at least one of virtual scene virtual element is configured;According to ginseng At least one virtual element is presented in numerical value.
Further, the current observation visual angle based on virtual scene obtains the ginseng of configuration parameter corresponding with state of weather Numerical value, including:According to state of weather, virtual element to be configured in virtual scene and the corresponding configuration of virtual element are determined Parameter;Obtain the parameter value of virtual element corresponding configuration parameter under current observation visual angle.
Further, at least one virtual element includes:First kind virtual element, the second class virtual element, wherein, first Class virtual element is the virtual element for reflecting Changes in weather, and the second class virtual element is the virtual element influenced by Changes in weather.
Further, in the case where virtual element to be configured is daylight, corresponding configuration parameter includes following parameter At least one of:The color of textures in the intensity and virtual scene of the direction light that the main light source that virtual scene uses is sent out.
Further, in the case where virtual element to be configured is cloud and/or rainwater, corresponding configuration parameter includes At least one of following parameter:The quantity of particle emitter that virtual scene uses, the distributing position of each particle emitter, The number of particles and particle color of each particle emitter transmitting.
Further, it in the case where virtual element to be configured is rainwater, is presented according to parameter value at least one virtual Element, including:Obtain the position of current observation visual angle;When detecting that current observation visual angle is located in precipitation region, according to rainwater Parameter value emit particle for Simulated rainwater in the preset range of current observation visual angle position;When detecting current observation Visual angle is located at that precipitation area is overseas, then controls and be at least used in the transmitting of the boundary in precipitation region according to what the parameter value of rainwater emitted The particle of Simulated rainwater.
Further, in the case where virtual element to be configured is thunder and lightning, corresponding configuration parameter includes following parameter At least one of:The volume of the flash pattern for the main light source that virtual scene uses, the sound source of simulation thunder, wherein, sound source exists Volume outside virtual scene is less than the volume in virtual scene.
Further, in the case where virtual element to be configured is water body, corresponding configuration parameter includes following parameter At least one of:Flowing velocity, amplitude or the frequency of the wave function of water surface vertex animation.
Further, after at least one virtual element is presented according to parameter value, method further includes:To in virtual scene Virtual element to be presented carries out screen post processing;The virtual element after screen post processing is presented.
Further, after at least one virtual element is presented according to parameter value, method further includes:Detect virtual scene The situation of change of middle state of weather;In virtual scene from the case that the first state of weather transforms to second of state of weather, By the parameter value linear transformation of the corresponding configuration parameter of the first state of weather to the corresponding configuration parameter of second of state of weather Parameter value.
Another aspect according to embodiments of the present invention additionally provides a kind of presentation device of state of weather in virtual scene, Including:First acquisition unit, for obtaining the state of weather of virtual scene;Second acquisition unit watches void for being based on user Intend the visual angle of scene, obtain the parameter value of configuration parameter corresponding with state of weather, wherein, configuration parameter is used to that virtual field to be configured At least one of scape virtual element is in present condition;First display unit, at least one virtual member to be presented according to parameter value Element.
Another aspect according to embodiments of the present invention, additionally provides a kind of storage medium, and storage medium includes the journey of storage Sequence, wherein, state of weather in the virtual scene of the above-mentioned any one of equipment execution where controlling storage medium when program is run Rendering method.
Another aspect according to embodiments of the present invention additionally provides a kind of terminal, including:One or more processors are deposited Reservoir, display device and one or more program, wherein, one or more programs are stored in memory, and by with It is set to and is performed by one or more processors, one or more programs are included in the virtual scene for performing above-mentioned any one The rendering method of state of weather.
In embodiments of the present invention, by obtaining the state of weather of virtual scene;Current observation based on virtual scene regards Angle obtains the parameter value of configuration parameter corresponding with state of weather, wherein, configuration parameter is used to be configured in virtual scene at least one Kind virtual element is in present condition;At least one virtual element is presented according to parameter value, it is virtual to have reached viewing according to the observation The purpose of the state of weather of virtual scene is presented in the observation visual angle of scene, it is achieved thereby that in the virtual scene based on AR technologies Show the technique effect of state of weather, and then solve in the prior art, since with part virtual world is presented in AR platforms, make Obtain the technical issues of traditional all weathers system can not be directly applied for AR platforms.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the application, this hair Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the rendering method flow chart of state of weather in a kind of virtual scene according to embodiments of the present invention;
Fig. 2 is that a kind of optional observation visual angle according to embodiments of the present invention is illustrated for the virtual scene in virtual scene Figure;
Fig. 3 is that a kind of optional observation visual angle according to embodiments of the present invention is illustrated for the virtual scene outside virtual scene Figure;
Fig. 4 is the rendering method flow chart of state of weather in a kind of optional virtual scene according to embodiments of the present invention;
Fig. 5 is the rendering method flow chart of state of weather in a kind of optional virtual scene according to embodiments of the present invention;
Fig. 6 is that one kind according to embodiments of the present invention optionally shows lightning effect schematic diagram in virtual scene;
Fig. 7 is the rendering method flow chart of state of weather in a kind of optional virtual scene according to embodiments of the present invention; And
Fig. 8 is the presentation schematic device of state of weather in a kind of virtual scene according to embodiments of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be the object for distinguishing similar, and specific sequence or precedence are described without being used for.It should be appreciated that it uses in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not listing clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
First, the part noun or term occurred during the embodiment of the present application is described is suitable for following solution It releases:
AR:Augmented Reality, augmented reality.It is a kind of position for calculating camera image in real time and angle And the technology of respective image, video, 3D models is added, the target of this technology is that virtual world is nested in reality on the screen In the world and carry out interaction.True environment and virtual object have been added on same picture by the technology in real time, this Sample, not only presents the information of real world, but also simultaneously shows virtual world, and two kinds of information are complementary to one another, are superimposed.
Weather system:Herein, weather system is referred mainly to for a set of weather system for including all weathers conversion.It is converting In the process, every performance contains sunlight strength variation, cloud layer variation, variation of seawater, rainwater increase, the effect that lightning flashes and thunder rumbles.
Its sylphon:Its sylphon is a kind of mode that sky background is presented in gaming.When using day sylphon, entire scene It is actually wrapped in a huge cube.Sky, the mountain of distant place and some other element that can not be reached, all can It is projected on a cube of volume textures, and directly displays on the surface of box on high.
Screen post-processes:Refer to the picture rendered for current scene, then single treatment is carried out to picture, make it have and think The better effect wanted.It is exactly figuratively:PS is carried out again to the rendered picture played per frame.
ParticIe system:The technology of some specific bloomings is simulated in particIe system expression three dimensional computer graphics, And the game physics of the sense of reality that these phenomenons are difficult to realize with other traditional Renderings.Commonly using particIe system The phenomenon that simulation have fire, explosion, cigarette, flow, spark, fallen leaves, cloud, mist, snow, dirt, meteor trail or as shine track Abstract visual effect etc..
According to embodiments of the present invention, a kind of rendering method embodiment of state of weather in virtual scene is provided, is needed Bright, step shown in the flowchart of the accompanying drawings can be held in the computer system of such as a group of computer-executable instructions Row, although also, show logical order in flow charts, it in some cases, can be to be different from sequence herein Perform shown or described step.
Fig. 1 is the rendering method flow chart of state of weather in a kind of virtual scene according to embodiments of the present invention, such as Fig. 1 institutes Show, this method comprises the following steps:
Step S102 obtains the state of weather of virtual scene.
Specifically, above-mentioned virtual scene includes but not limited to the virtual scene based on VR technologies, based on the virtual of AR technologies Scene can be based on AR technology scene of game as a kind of optional embodiment.State of weather includes but not limited to following appoint Meaning is a kind of:Fine day, the cloudy day, snowy day, the rainy day, the greasy weather, thunder and lightning weather, blow.
Step S104, the current observation visual angle based on virtual scene obtain the ginseng that parameter is configured corresponding with state of weather Numerical value, wherein, configuration parameter is in present condition at least one of virtual scene virtual element is configured.
Specifically, above-mentioned observation visual angle can be the visual angle that observer watches above-mentioned virtual scene, for example, game player sees See the visual angle of scene of game.Above-mentioned at least one virtual element can include but is not limited to following two class:First kind virtual element, Second class virtual element, wherein, first kind virtual element be reflect Changes in weather virtual element, for example, daylight, cloud, rain, Snow, mist, wind, thunder, electricity etc.;Second class virtual element is the virtual element influenced by Changes in weather, for example, showing in virtual scene Mountain, river, river, stream, the earth, grass, tree, flower, personage etc..
It should be noted that in traditional scene of game (for example, VR plays), the visual angle of game player is in virtual field In scape, and for the virtual scene based on AR technologies, observer is can be appointed in virtual scene and outside virtual scene Meaning switching.Due to observer under different viewing angles, the effect for the state of weather that virtual scene is presented has differences, For example, during by particIe system Simulated rainwater, if player in virtual scene, the Simulated rainwater particle around player, i.e., The rainy effect of simulation can be achieved;If player outside virtual scene, needs the edge Simulated rainwater in virtual scene, so as to It realizes and simulates entire virtual scene in rainy effect.
In a kind of optional embodiment, Fig. 2 is that a kind of optional observation visual angle according to embodiments of the present invention is virtual field Virtual scene schematic diagram in scape, Fig. 3 are a kind of optional observation visual angles according to embodiments of the present invention for outside virtual scene Virtual scene schematic diagram,, can be in observer (for example, in Fig. 2 if observation visual angle is in virtual scene in Simulated rainwater Ship) surrounding Simulated rainwater particle, and follow-observation person move, then can simulate the effect that entire virtual world rains;If Observation visual angle, can be in the edge of entire virtual scene (cloud layer i.e. shown in Fig. 3 and the edge of ocean) mould for outside virtual scene Intend rainwater, so as to fulfill entire virtual world is simulated in rainy effect.
Easily it is noted that since some virtual elements are in different observation visual angles (in virtual scene or outside virtual scene) Under, the state showed does not have significant change, for example, the textures in virtual scene, thus, for these virtual elements not With observation visual angle under the configuration parameter that gets and corresponding parameter value can be identical;And some virtual elements exist Under different observation visual angles (in virtual scene or outside virtual scene), the state showed has significant change, for example, cloud, Rainwater, thunder etc., thus, configuration parameter that these virtual elements are got under different observation visual angles and corresponding Parameter value is different.But for different observation visual angles, it is in using different configuration parameters and corresponding parameter value Each virtual element in existing virtual scene can cause the state of weather presented closer to true effect.
By the difference of above-mentioned steps S104, according to the observation visual angle, using different configuration parameters, it can preferably show void Intend the state of weather of scene, this mode for showing state of weather can be applied to the virtual scene based on AR technologies, with The difference of family viewing angle by different configuration parameters, shows different effects.
At least one virtual element is presented according to parameter value in step S106.
Specifically, the observation visual angle (packet of virtual scene is watched in the state of weather for getting virtual scene and observer It includes but is not limited to two kinds:In virtual scene and outside virtual scene) after, obtain the corresponding configuration of each virtual element in virtual scene The parameter value of parameter, and be configured according to the parameter value got and each virtual element is presented.
From the foregoing, it will be observed that in the above embodiments of the present application, after the state of weather of virtual scene is got, based on observer The observation visual angle of the virtual scene is currently observed, obtains the configuration parameter of each virtual element in virtual scene under the state of weather And corresponding parameter value, and according to the parameter value got, be configured and each virtual element in virtual scene is presented, reach The purpose of the state of weather of virtual scene is presented in the observation visual angle of viewing virtual scene according to the observation, it is achieved thereby that in base Show the technique effect of state of weather in the virtual scene of AR technologies, so solve in the prior art, due to AR platforms with Virtual world is presented in part so that the technical issues of traditional all weathers system can not be directly applied for AR platforms.
In a kind of optional embodiment, as shown in figure 4, the current observation visual angle based on virtual scene, acquisition and weather The parameter value of the corresponding configuration parameter of state, may include steps of:
Step S402 according to state of weather, determines that virtual element to be configured in virtual scene and virtual element correspond to Configuration parameter;
Step S404 obtains the parameter value of virtual element corresponding configuration parameter under current observation visual angle.
Specifically, in the above-described embodiments, after the state of weather of virtual scene is got, determine that the virtual scene is waited to match Then the one or more virtual element put and corresponding configuration parameter, obtain each virtual element in current observation visual angle Under it is corresponding configuration parameter parameter value.
By taking the rainy day as an example, when the state of weather of virtual scene is the rainy day, it may be determined that void to be configured in virtual scene Intend element to include at least:Daylight (dimmed), cloud (becoming more), rainwater (from scratch);Optionally, can also include:Thunder and lightning etc.. Wherein, since observer watches the observation visual angle difference of virtual scene, the possible difference of presentation effect of daylight is little, and rainwater, Cloud, thunder and lightning presentation effect there are larger difference, thus, when observation visual angle for observer in virtual scene in the case of, The rainfall region that rainwater can be configured is the overhead distribution that around observer, cloud can only around observer, if there is If thunder and lightning, thunder is larger;And when observation visual angle for observer outside virtual scene in the case of, the rainfall of rainwater can be configured Region is the fringe region of entire virtual scene, and cloud is distributed in the overhead of entire virtual scene, if thunder and lightning, thunder It is smaller.
In order to preferably show the virtual element in virtual scene, in a kind of optional embodiment, it is being according to parameter value After existing at least one virtual element, as shown in figure 5, the above method can also include the following steps:
Step S502 carries out screen post processing to virtual element to be presented in virtual scene;
The virtual element after screen post processing is presented in step S504.
Specifically, in the above-described embodiments, due to certain virtual elements in different situations, the effect of presentation can also be omited It is different, it for example, when showing underwater sunlight, can be post-processed by screen, increase some droplets, simulation sunlight is by the water surface The effect broken up.
In the following, the application is illustrated by taking daylight, cloud, rainwater, thunder and lightning, several virtual elements of water body as an example, wherein, Daylight, cloud, rainwater, thunder and lightning belong to first kind virtual element, and water body belongs to the second class virtual element.Easily it is noted that originally The range of application protection includes but not limited to above-mentioned several virtual elements.
As a kind of optional embodiment, in the case where virtual element to be configured is daylight, corresponding configuration ginseng Number includes at least one of following parameter:In the intensity and virtual scene of direction light that the main light source that virtual scene uses is sent out The color of textures.
Specifically, above-mentioned main light source can be used to the light source for showing virtual scene offer, which, which can emit, appoints Anticipate direction light, above-mentioned textures can be in virtual scene in the form of textures existing for virtual element, for example, being opened up in Fig. 2 and Fig. 3 The virtual elements such as the massif, the ship that show.
It should be noted that the prior art usually realizes the change of daylight power using the sun member of day sylphon and simulation entity Change, the mode of this weak variation of simulating sun light intensity can not be suitable for the virtual scene based on AR technologies, the void based on AR technologies It is often the part in world or partial virtual element to intend scene, and the mode that sky background is presented in traditional day sylphon can not answer In the AR applications using world local as presentation mode, similarly the element of the entity sun can not be also presented.
The color of textures is deep in the intensity and scene that pass through control direction light by the embodiment above, the embodiment of the present application It is shallow, to substitute the sky background and sunlight that traditional day sylphon and the entity sun are built.
Due in the embodiment above, by the shade of textures in the intensity and scene of control direction light come simulating sun Identical configuration parameter may be used in light under different observation visual angles, different configuration parameters can also be used, due to direction Light and textures are under different observation visual angles, the state change unobvious that show, thus, simulation is virtual through the above scheme Identical configuration parameter and corresponding parameter value may be used in daylight in scene under obstructed observation visual angle.Certainly, it is Day light effect more true to nature is presented, may be used different configuration parameters and corresponding parameter under different observation visual angles Value.
It is corresponding in the case where virtual element to be configured is cloud and/or rainwater as a kind of optional embodiment Configuration parameter include at least one of following parameter:The quantity for the particle emitter that virtual scene uses, each particle hair The distributing position of emitter, the number of particles and particle color of the transmitting of each particle emitter.
Specifically, entity cloud and/or rainwater particle are made by using particIe system, by controlling particle emitter Quantity and distributing position and under different weather state, particle emitter emits the color of particle, can simulate various Cloud and/or rainwater show effect under state of weather, for example, white clouds under fine day state, overcasting when raining and rainfall Effect.
Herein it should be noted that traditional cloud layer is by the way of class day sylphon, the inside of box shows on high A hemispherical cloud layer.It is as shown below, but since the visual angle of player in AR applications alive can out-of-bounds watch this virtually The world, and this is situation about being not present in tradition is applied, therefore, this method can not be applied in AR applications.And the application is real It example is applied by the way that particIe system is controlled to simulate cloud, realizes weather weather by partly cloudy to cloudy conversion, this cloud layer of simulating Mode can be applied in the application based on AR technologies present the effect of the variation of cloud.
Easily it is noted that not occurring the weather weather system with realistic style also in existing AR applications.With game For, the prior art is directed to the real-time rendering of weather system in scene of game, and the essence of Real-time Rendering Technology is graph data It calculates and exports in real time.In the case where computing capability is limited, by some simple analogy methods, quickly to render and force Genuine virtual element.In the prior art, there is the consumable weather system solution of dissimilarity respectively in PC ends and mobile terminal.
At PC ends, by more powerful process performance, the transform effect involved by weather system is more.For example, cloud layer By cloudless to the variation overcast, sunlight scene when being blocked is dimmed, and the effect that lightning flashes and thunder rumbles, rainwater and landing splash water Colored effect, the change (for example ground becomes to moisten) that entire scene is occurred after being influenced by weather etc..Wherein, the reality of cloud layer Existing Major Epidemic uses the sampling to noise to generate the effect of cloud on a cloud layer spherical surface, sample iterations concerning to The validity of cloud layer effect.Rainwater mainly employs particIe system, and common way is rained a part, and this A rainy region follows personage to move always.Also there is the effect that rainwater is realized using the mode that screen post-processes, but pure Under 3D visual angles, when player sees heavenwards or movement, rainwater can not realize corresponding variation.
In mobile terminal, performance is limited to, common weather system is divided into two ways.A kind of is the side by piling up special efficacy Formula, and another kind is expressed by the tinter of different manifestations.The mode for piling up special efficacy is relatively simple, but the day that can be realized Gas effect is limited.And the weather system realized by the tinter of different manifestations, there is higher performance, and can express Abundant weather system details.Due to the process performance for not having PC ends enough, so the weather system of mobile terminal generally will not be complete The entire weather of whole performance, such as the variation with textures mixing simple analog cloud layer, omit rendering of raindrop etc..Since AR is put down (requirement of the AR platforms for performance is stringenter than mobile terminal, because a part of processor will go to handle for the performance limitation of platform The tracking and positioning of AR), therefore technology is showed for used weather, it to be optimized with reference to the scheme of AR (for example, in AR Cloud will use particIe system, thus, optimization will using particIe system for basis scheme under the premise of optimize, Er Feichuan Cloud prioritization scheme as the class day sylphon of system).
In addition, it should also be noted that, traditional rainwater mostly follows the particIe system of player to realize (i.e. only using one Have and rain around player, the illusion that the whole world is caused to rain).But in AR applications, since the visual angle of player can be with It dynamically enters and leaves in the range of virtual local scene, therefore the processing mode that this kind follows can not be suitable for player from field Scape appearance sees scene (god visual angle), but also in rainy situation in scene.And although the embodiment of the present application also uses particle systems System carrys out Simulated rainwater particle, but particIe system uses different modeling schemes with the variation of the view position of player.For example, When player is in the position (such as underwater region) that can't see rain, particIe system stops Simulated rainwater;When player be in rain region it In (intermediate region in such as figure), then the particIe system of Simulated rainwater by the way of player visual angle is followed (both only player eye It is preceding to rain) it simulates and rains;When player be in rain region except when (the view scene of below figure), then particIe system only exists The boundary in rainy region is simulated.
As a result, based on above-described embodiment scheme, as an alternative embodiment, being rain in virtual element to be configured In the case of water, at least one virtual element is presented according to parameter value, can include:
(1) position of current observation visual angle is obtained;
(2) when detecting that current observation visual angle is located in precipitation region, according to the parameter value of rainwater in current observation visual angle Transmitting is used for the particle of Simulated rainwater in the preset range of position;
(3) when detecting that current observation visual angle is located in precipitation region, according to the parameter value of rainwater in current observation visual angle Transmitting is used for the particle of Simulated rainwater in the preset range of position.
By the embodiment above, by controlling the quantity of particle emitter in virtual scene, distributing position, launching The quantity and color of particle come present each state of weather rain cloud or state, and currently viewing virtual scene according to the observation Visual angle be in precipitation region or precipitation area is overseas to use the scheme of different Simulated rainwaters.In being applied due to AR, play The visual angle of family is relatively free, is updated to prevent player virtual in a manner that the above embodiment is by Simulated rainwater When outside the world, still raining, the phenomenon of exposing the false of generation.
As a kind of optional embodiment, in the case where virtual element to be configured is thunder and lightning, corresponding configuration ginseng Number includes at least one of following parameter:The sound of the flash pattern for the main light source that virtual scene uses, the sound source of simulation thunder Amount, wherein, volume of the sound source outside virtual scene is less than the volume in virtual scene.
Specifically, by the way that the main light source that virtual scene uses is controlled lightning effect can be simulated, for example, logical into line flicker It crosses control main light source and realizes lightning effect shown in fig. 6.In being applied in AR, observer (for example, player of AR game) is Virtual scene can be observed outside virtual scene, therefore in the simulation of thunder, to two kinds of situations in scene and outside scene into Row is distinguished to be adapted to AR.When player is in scene (both between cloud layer and the water surface), thunder is played with constant volume;Work as player When outside scene, thunder is relatively weak, as player becomes far with a distance from scene center, volume linear decrease.
It should be noted that in addition to needing the daylight simulated, cloud, rainwater, thunder in above-mentioned several frequently seen weather weather Outside electric effect, the brightness change of entire virtual scene and some virtual elements (massif, water body etc.) can be by directly changing The mode of tinter parameter is realized, by taking the water body (including but not limited to ocean, river etc.) in virtual scene as an example, as one The optional embodiment of kind, in the case where virtual element to be configured is water body, corresponding configuration parameter can also include:Water Flowing velocity, amplitude or the frequency of the wave function of body surface vertex of surface animation.
By taking seawater as an example, the wave of seawater is realized using the parameter of adjustment vertex animation, element under different weather state The mode of adjustment tinter color parameter may be used to realize that the water surface is waves surging turbulently, water body color is by shallow in the color change of presentation To deep effect.
Based on any one above-mentioned optional embodiment, as an alternative embodiment, being presented according to parameter value After at least one virtual element, as shown in fig. 7, the above method can also include the following steps:
Step S702 detects the situation of change of state of weather in virtual scene;
Step S704, in virtual scene from the case that the first state of weather transforms to second of state of weather, by A kind of parameter value linear transformation of the corresponding configuration parameter of state of weather is to the ginseng of the corresponding configuration parameter of second of state of weather Numerical value.
Specifically, due in virtual scene state of weather be as the time is continually changing, thus, pass through above-mentioned steps S702 to S704 detects the variation of state of weather in virtual scene, and in the case where state of weather changes in real time, will be right The parameter value of the configuration parameter for the virtual element answered carries out linear change, so as to fulfill from a kind of state of weather (for example, fine day) To the variation of another state of weather.
By taking local sea shown in Fig. 3 as an example, in the case where fine, two kinds of state of weather of rain are presented, as a kind of preferred Embodiment, can be realized with scheme disclosed in S1 to S15 as follows:
S1:3 light-source brightness values of main light source in scene are configured:Wherein IL1 represents the key light source strength at fine day moment, IL2 represents the key light source strength at moment rainy day, and IL3 represents key light source strength when lightning occurs.
S2:3 color values of seawater in scene are configured:Wherein CS1 represents the color intensity of sea water at fine day moment, and CS2 represents rain The color intensity of sea water at its moment, CS3 represent color intensity of sea water when lightning occurs.
S3:3 color values of cloud in scene are configured:Wherein CC1 represents the cloud color at fine day moment, and CC2 represents rain The cloud color at its moment, CC3 represent cloud color when lightning occurs.
S4:3 brightness regulation parameters of all baked mappings in scene are configured:Wherein IB1 represents the baking at fine day moment Textures brightness, IB2 represent the baked mapping brightness at moment rainy day, and IB3 represents baked mapping brightness when lightning occurs.
S5:The transmitting position of cloud particle emitter and transmitting quantity in scene is configured:When wherein P1 represents cloud fine day Emission mode, feature is launch point negligible amounts, and the number of particles launched is less;P2 represents the transmitting during cloud rainy day Pattern, feature is more compared with P1 patterns for launch point quantity, and the number of particles of each launch point transmitting is also more compared with P1.
Above-mentioned is less and more depending on the platform property of demands of individuals and operation AR.
S6:The speed of the wave function flowing of the water body water surface vertex animation in scene, amplitude and frequency is configured:Wherein, exist During fine day, speed V1, amplitude A1, frequency F1;During the rainy day, speed V2, frequency A2, frequency F2.
By above-mentioned steps S1 to S6, virtual element to be configured and corresponding be configured are joined in virtual scene is determined After number, it can realize that " fine " turns " rain ", then turn the Changes in weather of " fine " by following step.
S7:Assuming that bringing into operation from fine day state, continue the time of t1, become clear to overcast state.Continue the time of t2, Become rainy day state.Continue the time of t3, become the state that rain clears up.Continue the time of t4, become the state of fine day.It recycles past It is multiple.
Above-mentioned t1, t2, depending on t3, t4 are according to required weather weather length.In the present embodiment, value can divide Wei not be 55 seconds, 10 seconds, 50 seconds, 10 seconds.
S8:Under fine day state, the key light source strength in scene set is IL1, and color intensity of sea water value is CS1, will simulate cloud Piece particIe system be configured to P1 patterns, cloud color is set as CC1, and the brightness regulation parameter of baked mapping is IB1 in scene, The wave function flowing velocity of setting simulation water surface animation is V1, amplitude A1, frequency F1.The phase duration is t1。
S9:After the t1 times, weather system state is changed into clear to overcast state by fine day.In the process, in scene Key light source strength by IL1 to IL2 linear transitions;Color intensity of sea water value is by CS1 to CS2 linear transitions;Simulate the particle systems of cloud System is P2 patterns by P1 pattern switchings, and in this process, the particle emitter quantity of cloud increases, and each transmitter is launched Number of particles increase so that cloud layer is enough to cover virtual scene;During cloud gradually becomes more, the color of cloud also by CC1 is to CC2 linear transitions;The brightness regulation parameter of baked mapping is by IB1 to IB2 linear transitions in scene.Simulate water surface The relevant parameter of the wave function of animation also linearly transits to rainy day state by fine day state.The phase duration is t2.
S10:After the t2 times, weather system state switchs to rainy state.Under rainy state, the master in scene set The intensity of light source is IL2, and color intensity of sea water value is CS2, and the particIe system for simulating cloud rests on P2 patterns, and cloud color is set as CC2, the brightness regulation parameter of baked mapping is IB2 in scene, and the wave function flowing velocity of setting simulation water surface animation is V2, amplitude A2, frequency F2.The phase duration is t3.
S11:Under rainy state, the particIe system of Simulated rainwater is in virtual scene model according to visual angle of the user in AR It encloses interior (following left figure) or (following right figure) switches to the particIe system of different Simulated rainwaters outside range.When in scene domain Interior, particIe system follows the position of user's current visual angle to move, both raining at the moment in user always, causes under a kind of whole world The illusion of rain.When outside scene domain, the marginal position that particIe system switches in scene rains, and user is from remote good as entire In rainy illusion in scene.
S12:When there is lightning, key light source strength in scene set is IL3, and color intensity of sea water value is CS3, cloud color It is set as CC3, the brightness regulation parameter of baked mapping is IB3 in scene.It is shinny to simulate all objects moment in a kind of scene Restore the effect of original sample again.
S13:When thundering, thunder is in the range of virtual scene or outside range also according to visual angle of the user in AR Switch to different patterns.When in the range of scene, the constant volume of thunder is Volume1.When outside scene domain, thunder Size Volumec is obtained according to following formula:
Dmax in above formula refers to farthest hearing the distance of thunder, when user is more than with a distance from scene center Dmax can not then hear thunder again.D is current time, and user is with a distance from scene center.
S14:After the t3 times, weather system state is changed into overcast to clear state by the rainy day.In the process, in scene Key light source strength by IL2 to IL1 linear transitions;Color intensity of sea water value is by CS2 to CS1 linear transitions;Simulate the particle systems of cloud System is P1 patterns by P2 pattern switchings, and in this process, the cloud particle launched under former P2 patterns reaches the lifetime, gradually disappears Melt;During cloud gradually tails off, the color of cloud is also by CC2 to CC1 linear transitions;The brightness of baked mapping in scene Adjustment parameter is by IB2 to IB1 linear transitions.The relevant parameter of the wave function of water surface animation is simulated also by rainy day condition line Property transits to fine day state.The phase duration is t4.
S15:Weather system state is restored to S108 states, continues cycling through.
By scheme disclosed in above-mentioned steps S1 to S15, variation fine, between rainy day gaseity, above-mentioned implementation are realized Mode is a kind of example, and for specific application scenarios, configuration parameter increases or decreases, and the value of each configuration parameter can have Different size.
AR platforms due to needing among dummy object is presented on real world, virtual world is often with an office Portion (such as ocean part in illustrating herein) or the mode of virtual element (such as a virtual portrait) are placed into true generation In boundary, and because player's hand-held camera freely can watch virtual scene in scene with (god visual angle) outside scene.It is logical Scheme disclosed in crossing the above-mentioned each embodiment of the application, can realize following technique effect:
(1) since traditional day sylphon and entity life pattern can not be applied to be put down the AR of virtual world is presented by part On platform, therefore this method needs to redesign a kind of mode of the presentation sunlight power of suitable AR, both using direction luminous intensity, field The brightness of baked mapping and the coloring of other elements in scape, screen post-processing technology carry out the performance of sunlight power to substitute.
(2) since player can not be used by the external viewing virtual world of scene, traditional cloud layer realization method, Therefore this method has selected that the effect of the variation of AR medium clouds is presented suitable for the control particIe system of AR platforms.
(3) since the visual angle of player is relatively free, it is therefore desirable to which the mode of original analog rainwater is updated to prevent When player is outside virtual world, still raining, the phenomenon of exposing the false of generation.
(4) it is directed to the high performance requirements of AR platforms, the implementation of weather system described herein, from design all Extremely efficient method is employed the variation characteristic of weather weather is presented.
According to embodiments of the present invention, a kind of rendering method for being used to implement state of weather in above-mentioned virtual scene is additionally provided Device embodiment, Fig. 8 is the presentation schematic device of state of weather in a kind of virtual scene according to embodiments of the present invention, such as Shown in Fig. 8, which includes:First acquisition unit 801,803 and first display unit 805 of second acquisition unit.
Wherein, first acquisition unit 801, for obtaining the state of weather of virtual scene;
Second acquisition unit 803 for watching the visual angle of virtual scene based on user, obtains match corresponding with state of weather The parameter value of parameter is put, wherein, configuration parameter is in present condition at least one of virtual scene virtual element is configured;
First display unit 805, at least one virtual element to be presented according to parameter value.
Herein it should be noted that above-mentioned first acquisition unit 801,803 and first display unit 805 of second acquisition unit Corresponding to the step S102 to S106 in embodiment 1, example and application scenarios phase that above-mentioned module and corresponding step are realized Together, but it is not limited to the above embodiments 1 disclosure of that.It should be noted that above-mentioned module can be with as a part for device It is performed in the computer system of such as a group of computer-executable instructions.
From the foregoing, it will be observed that in the above embodiments of the present application, the weather of virtual scene is got by first acquisition unit 801 State currently observes the observation visual angle of the virtual scene by second acquisition unit 803 based on observer, obtains the state of weather The configuration parameter of each virtual element and corresponding parameter value in lower virtual scene, and pass through the first display unit 805 according to The parameter value got is configured and each virtual element in virtual scene is presented, and has reached viewing virtual field according to the observation The purpose of the state of weather of virtual scene is presented in the observation visual angle of scape, it is achieved thereby that being opened up in the virtual scene based on AR technologies The technique effect of existing state of weather, and then solve in the prior art, since with part virtual world is presented in AR platforms so that The technical issues of traditional all weathers system can not be directly applied for AR platforms.
In a kind of optional embodiment, second acquisition unit 803 can include:Determining module, for vaporous according to day State determines virtual element to be configured in virtual scene and the corresponding configuration parameter of virtual element;First acquisition module is used In the parameter value for obtaining virtual element corresponding configuration parameter under current observation visual angle.
Herein it should be noted that above-mentioned determining module and the first acquisition module correspond to the step in embodiment of the method S402 to S404, above-mentioned module is identical with example and application scenarios that corresponding step is realized, but is not limited to above method reality Apply a disclosure of that.It should be noted that above-mentioned module can be such as one group of computer can as a part of of device It is performed in the computer system of execute instruction.
In a kind of optional embodiment, above-mentioned at least one virtual element includes:First kind virtual element, the second class are empty Intend element, wherein, first kind virtual element is the virtual element for reflecting Changes in weather, and the second class virtual element is by Changes in weather The virtual element of influence.
In a kind of optional embodiment in the case where virtual element to be configured is daylight, corresponding configuration parameter Including at least one of following parameter:It is pasted in the intensity and virtual scene of the direction light that the main light source that virtual scene uses is sent out The color of figure.
It is corresponding in a kind of optional embodiment in the case where virtual element to be configured is cloud and/or rainwater Parameter is configured and includes at least one of following parameter:Quantity, each particle emission for the particle emitter that virtual scene uses The distributing position of device, the number of particles and particle color of the transmitting of each particle emitter.
In a kind of optional embodiment in the case where virtual element to be configured is rainwater, the first display unit 805 It is additionally operable to obtain the precipitation region of rainwater;If current observation visual angle is located in virtual scene, current observation position is tracked, and Control is distributed in particle of the particle emitter according to the parameter value transmitting of rainwater for Simulated rainwater around current observation position; If current observation visual angle is located at outside virtual scene, control be distributed in the boundary in precipitation region particle emitter emit by Parameter value transmitting according to rainwater is used for the particle of Simulated rainwater.
In a kind of optional embodiment in the case where virtual element to be configured is thunder and lightning, corresponding configuration parameter Including at least one of following parameter:The volume of the flash pattern for the main light source that virtual scene uses, the sound source of simulation thunder, Wherein, volume of the sound source outside virtual scene is less than the volume in virtual scene.
In a kind of optional embodiment in the case where virtual element to be configured is water body, corresponding configuration parameter Including at least one of following parameter:Flowing velocity, amplitude or the frequency of the wave function of water surface vertex animation.
In a kind of optional embodiment, above device further includes:First processing units, for waiting to be in virtual scene Existing virtual element carries out screen post processing;Second display unit, for the virtual element after screen post processing to be presented.
Herein it should be noted that above-mentioned first processing units and the second display unit correspond to the step in embodiment of the method Rapid S502 to S504, above-mentioned module is identical with example and application scenarios that corresponding step is realized, but is not limited to the above method Embodiment disclosure of that.It should be noted that above-mentioned module can be in such as one group of computer as a part of of device It is performed in the computer system of executable instruction.
In a kind of optional embodiment, above device further includes:Detection unit, it is vaporous for detecting day in virtual scene The situation of change of state;Second processing unit, for transforming to second of state of weather from the first state of weather in virtual scene In the case of, the parameter value linear transformation of the corresponding configuration parameter of the first state of weather is corresponding to second of state of weather The parameter value of parameter is configured.
Herein it should be noted that above-mentioned detection unit and second processing unit correspond to the step in embodiment of the method S702 to S704, above-mentioned module is identical with example and application scenarios that corresponding step is realized, but is not limited to above method reality Apply a disclosure of that.It should be noted that above-mentioned module can be such as one group of computer can as a part of of device It is performed in the computer system of execute instruction.
According to embodiments of the present invention, a kind of storage medium is additionally provided, storage medium includes the program of storage, wherein, It is optional or preferred virtual to perform any one in above method embodiment for equipment where control storage medium when program is run The rendering method of state of weather in scene.
According to embodiments of the present invention, a kind of terminal is additionally provided, including:One or more processors, memory, display dress Put and one or more program, wherein, one or more programs are stored in memory, and be configured as by one or Multiple processors perform, and one or more programs include optional or preferred for performing any one in above method embodiment Virtual scene in state of weather rendering method.
Above-mentioned device can include processor and memory, and said units can be stored in storage as program unit In device, above procedure unit stored in memory is performed by processor to realize corresponding function.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one deposit Store up chip.
The sequence of above-mentioned the embodiment of the present application does not represent the quality of embodiment.
In above-described embodiment of the application, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.In several embodiments provided herein, it should be appreciated that It arrives, disclosed technology contents can be realized by another way.
Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, can be one Kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or It is desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical solution of the application is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the application whole or Part steps.And aforementioned storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code Medium.
The above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art For member, under the premise of the application principle is not departed from, several improvements and modifications can also be made, these improvements and modifications also should It is considered as the protection domain of the application.

Claims (13)

1. a kind of rendering method of state of weather in virtual scene, which is characterized in that including:
Obtain the state of weather of virtual scene;
Current observation visual angle based on the virtual scene obtains the parameter value of configuration parameter corresponding with the state of weather, Wherein, the configuration parameter is in present condition at least one of virtual scene virtual element is configured;
At least one virtual element is presented according to the parameter value.
2. according to the method described in claim 1, it is characterized in that, the current observation visual angle based on the virtual scene,
The parameter value of configuration parameter corresponding with the state of weather is obtained, including:
According to the state of weather, determine that virtual element to be configured in the virtual scene and the virtual element correspond to Configuration parameter;
Obtain the parameter value of the virtual element corresponding configuration parameter under the current observation visual angle.
3. according to the method described in claim 1, it is characterized in that, at least one virtual element includes:The first kind is virtual Element, the second class virtual element, wherein, the first kind virtual element be reflect Changes in weather virtual element, described second Class virtual element is the virtual element influenced by Changes in weather.
4. according to the method described in claim 2, it is characterized in that, in the situation that the virtual element to be configured is daylight Under, corresponding configuration parameter includes at least one of following parameter:The direction that the main light source that the virtual scene uses is sent out The color of textures in the intensity of light and the virtual scene.
5. according to the method described in claim 2, it is characterized in that, it is cloud and/or rain in the virtual element to be configured In the case of water, corresponding configuration parameter includes at least one of following parameter:The particle emission that the virtual scene uses The number of particles and particle color that the quantity of device, the distributing position of each particle emitter, each particle emitter emit.
6. according to the method described in claim 5, it is characterized in that, in the situation that the virtual element to be configured is rainwater Under, at least one virtual element is presented according to the parameter value, including:
Obtain the position of current observation visual angle;
When detecting that the current observation visual angle is located in precipitation region, according to the parameter value of the rainwater in the current observation Emit the particle for simulating the rainwater in the preset range of view position;
When detecting that current observation visual angle is located at that precipitation area is overseas, then control and at least pressed in the transmitting of the boundary in the precipitation region The particle for Simulated rainwater emitted according to the parameter value of the rainwater.
7. according to the method described in claim 2, it is characterized in that, in the situation that the virtual element to be configured is thunder and lightning Under, corresponding configuration parameter includes at least one of following parameter:The flash pattern for the main light source that the virtual scene uses, The volume of the sound source of thunder is simulated, wherein, volume of the sound source outside the virtual scene is less than in the virtual scene Volume.
8. according to the method described in claim 2, it is characterized in that, in the situation that the virtual element to be configured is water body Under, corresponding configuration parameter includes at least one of following parameter:The flowing velocity of the wave function of water surface vertex animation, Amplitude or frequency.
9. method as claimed in any of claims 1 to 8, which is characterized in that institute is being presented according to the parameter value After stating at least one virtual element, the method further includes:
Screen post processing is carried out to virtual element to be presented in the virtual scene;
The virtual element after screen post processing is presented.
10. method as claimed in any of claims 1 to 8, which is characterized in that institute is being presented according to the parameter value After stating at least one virtual element, the method further includes:
Detect the situation of change of state of weather in the virtual scene;
It, will the first described day in the virtual scene from the case that the first state of weather transforms to second of state of weather Gaseity it is corresponding configuration parameter parameter value linear transformation to second of state of weather it is corresponding be configured parameter parameter Value.
11. a kind of presentation device of state of weather in virtual scene, which is characterized in that including:
First acquisition unit, for obtaining the state of weather of virtual scene;
Second acquisition unit for being watched the visual angle of the virtual scene based on user, is obtained corresponding with the state of weather The parameter value of parameter is configured, wherein, the configuration parameter is at least one of virtual scene virtual element is configured Present condition;
First display unit, at least one virtual element to be presented according to the parameter value.
12. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein, it is run in described program When control the storage medium where equipment perform claim require state of weather in virtual scene described in 1 to 10 any one Rendering method.
13. a kind of terminal, which is characterized in that including:
One or more processors, memory, display device and one or more programs, wherein, one or more of journeys Sequence is stored in the memory, and is configured as being performed by one or more of processors, one or more of Program is included for the rendering method of state of weather in the virtual scene described in any one in perform claim requirement 1 to 10.
CN201810031172.3A 2018-01-12 2018-01-12 The rendering method of state of weather, device and storage medium and terminal in virtual scene Pending CN108132712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810031172.3A CN108132712A (en) 2018-01-12 2018-01-12 The rendering method of state of weather, device and storage medium and terminal in virtual scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810031172.3A CN108132712A (en) 2018-01-12 2018-01-12 The rendering method of state of weather, device and storage medium and terminal in virtual scene

Publications (1)

Publication Number Publication Date
CN108132712A true CN108132712A (en) 2018-06-08

Family

ID=62400496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810031172.3A Pending CN108132712A (en) 2018-01-12 2018-01-12 The rendering method of state of weather, device and storage medium and terminal in virtual scene

Country Status (1)

Country Link
CN (1) CN108132712A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110992444A (en) * 2019-11-22 2020-04-10 珠海豹趣科技有限公司 Image processing method and device and electronic equipment
CN111367605A (en) * 2020-02-28 2020-07-03 珠海豹趣科技有限公司 Raindrop special effect display method and device and computer readable storage medium
CN111784804A (en) * 2020-06-01 2020-10-16 北京像素软件科技股份有限公司 Lightning simulation method and device in virtual scene, terminal and readable storage medium
CN112102492A (en) * 2020-08-21 2020-12-18 完美世界(北京)软件科技发展有限公司 Game resource manufacturing method and device, storage medium and terminal
CN113032072A (en) * 2021-03-25 2021-06-25 北京小米移动软件有限公司 Weather state display method and device, electronic equipment and storage medium
CN113230651A (en) * 2021-04-20 2021-08-10 网易(杭州)网络有限公司 Game scene display method and device, electronic equipment and storage medium
EP3889750A1 (en) * 2020-03-31 2021-10-06 Beijing Xiaomi Mobile Software Co., Ltd. Method, apparatus and storage medium for displaying weather elements
CN114399612A (en) * 2021-11-29 2022-04-26 武汉未来幻影科技有限公司 Weather simulation method for driving test simulation scene
WO2022100437A1 (en) * 2020-11-16 2022-05-19 腾讯科技(深圳)有限公司 Weather rendering method and apparatus in virtual environment, and device, medium and program

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120053887A1 (en) * 2010-09-01 2012-03-01 Nokia Corporation Method, Apparatus, and Computer Program Product for Implementing a Variable Content Movable Control
CN102542483A (en) * 2011-11-08 2012-07-04 莫健新 House position display system, house position display method, house position display data generation system and house position display data generation method
CN104024984A (en) * 2011-10-05 2014-09-03 弗兰霍菲尔运输应用研究公司 Portable Device, Virtual Reality System And Method
US20160026253A1 (en) * 2014-03-11 2016-01-28 Magic Leap, Inc. Methods and systems for creating virtual and augmented reality
CN106293557A (en) * 2015-05-04 2017-01-04 北京智谷睿拓技术服务有限公司 Display control method and device
CN106373197A (en) * 2016-09-06 2017-02-01 广州视源电子科技股份有限公司 Augmented reality method and augmented reality device
CN107179908A (en) * 2017-05-16 2017-09-19 网易(杭州)网络有限公司 Audio method of adjustment, device, electronic equipment and computer-readable recording medium
CN107250728A (en) * 2014-12-14 2017-10-13 埃尔比特系统公司 The visually-perceptible that shown colour symbolism is represented is strengthened
CN107349603A (en) * 2017-06-27 2017-11-17 苏州蜗牛数字科技股份有限公司 A kind of method that Changes in weather is simulated in VR scenes
CN107376349A (en) * 2016-05-10 2017-11-24 迪士尼企业公司 The virtual image being blocked is shown

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120053887A1 (en) * 2010-09-01 2012-03-01 Nokia Corporation Method, Apparatus, and Computer Program Product for Implementing a Variable Content Movable Control
CN104024984A (en) * 2011-10-05 2014-09-03 弗兰霍菲尔运输应用研究公司 Portable Device, Virtual Reality System And Method
CN102542483A (en) * 2011-11-08 2012-07-04 莫健新 House position display system, house position display method, house position display data generation system and house position display data generation method
US20160026253A1 (en) * 2014-03-11 2016-01-28 Magic Leap, Inc. Methods and systems for creating virtual and augmented reality
CN107250728A (en) * 2014-12-14 2017-10-13 埃尔比特系统公司 The visually-perceptible that shown colour symbolism is represented is strengthened
CN106293557A (en) * 2015-05-04 2017-01-04 北京智谷睿拓技术服务有限公司 Display control method and device
CN107376349A (en) * 2016-05-10 2017-11-24 迪士尼企业公司 The virtual image being blocked is shown
CN106373197A (en) * 2016-09-06 2017-02-01 广州视源电子科技股份有限公司 Augmented reality method and augmented reality device
CN107179908A (en) * 2017-05-16 2017-09-19 网易(杭州)网络有限公司 Audio method of adjustment, device, electronic equipment and computer-readable recording medium
CN107349603A (en) * 2017-06-27 2017-11-17 苏州蜗牛数字科技股份有限公司 A kind of method that Changes in weather is simulated in VR scenes

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110992444A (en) * 2019-11-22 2020-04-10 珠海豹趣科技有限公司 Image processing method and device and electronic equipment
CN111367605A (en) * 2020-02-28 2020-07-03 珠海豹趣科技有限公司 Raindrop special effect display method and device and computer readable storage medium
EP3889750A1 (en) * 2020-03-31 2021-10-06 Beijing Xiaomi Mobile Software Co., Ltd. Method, apparatus and storage medium for displaying weather elements
CN111784804A (en) * 2020-06-01 2020-10-16 北京像素软件科技股份有限公司 Lightning simulation method and device in virtual scene, terminal and readable storage medium
CN112102492A (en) * 2020-08-21 2020-12-18 完美世界(北京)软件科技发展有限公司 Game resource manufacturing method and device, storage medium and terminal
CN112102492B (en) * 2020-08-21 2022-12-30 完美世界(北京)软件科技发展有限公司 Game resource manufacturing method and device, storage medium and terminal
WO2022100437A1 (en) * 2020-11-16 2022-05-19 腾讯科技(深圳)有限公司 Weather rendering method and apparatus in virtual environment, and device, medium and program
CN113032072A (en) * 2021-03-25 2021-06-25 北京小米移动软件有限公司 Weather state display method and device, electronic equipment and storage medium
CN113230651A (en) * 2021-04-20 2021-08-10 网易(杭州)网络有限公司 Game scene display method and device, electronic equipment and storage medium
CN113230651B (en) * 2021-04-20 2024-02-02 网易(杭州)网络有限公司 Game scene display method and device, electronic equipment and storage medium
CN114399612A (en) * 2021-11-29 2022-04-26 武汉未来幻影科技有限公司 Weather simulation method for driving test simulation scene
CN114399612B (en) * 2021-11-29 2023-06-30 武汉未来幻影科技有限公司 Weather simulation method for driving test simulation scene

Similar Documents

Publication Publication Date Title
CN108132712A (en) The rendering method of state of weather, device and storage medium and terminal in virtual scene
US10217289B2 (en) Augmented reality device with predefined object data
AU2018206892B2 (en) Augmented reality display reflective of visibility affecting features in real-world environment
US7710418B2 (en) Systems and methods for the real-time and realistic simulation of natural atmospheric lighting phenomenon
CN102243770B (en) Method for quickly drawing realistic rendering of naval battlefield based on OSG
Behrendt et al. Realistic real-time rendering of landscapes using billboard clouds
US9164723B2 (en) Virtual lens-rendering for augmented reality lens
CN108984169B (en) Cross-platform multi-element integrated development system
US9183654B2 (en) Live editing and integrated control of image-based lighting of 3D models
CN108043027B (en) Storage medium, electronic device, game screen display method and device
CN111815780A (en) Display method, display device, equipment and computer readable storage medium
CN110199319A (en) Superposition in augmented reality display is emphasized to modify
CN112529022A (en) Training sample generation method and device
CN115761105A (en) Illumination rendering method and device, electronic equipment and storage medium
CN110136239B (en) Method for enhancing illumination and reflection reality degree of virtual reality scene
CN115082607A (en) Virtual character hair rendering method and device, electronic equipment and storage medium
CN115205439A (en) Image rendering method and device
Catanese et al. Rendering of 3d dynamic virtual environments
KR20150020437A (en) Triple presentation for image, video, and virtual reality of building using game engine
US20240054693A1 (en) Show effect system for amusement park attraction system
Sawicki et al. A brief history of computer graphics
Head 3D weather–Towards a real-time 3D simulation of localised weather
Im et al. Efficient Rain Simulation based on Constrained View Frustum
WO2024039679A1 (en) Show effect system for amusement park attraction system
Raskar Projectors: advanced graphics and vision techniques

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