CN116832434A - Method and device for rendering virtual sky in game scene - Google Patents

Method and device for rendering virtual sky in game scene Download PDF

Info

Publication number
CN116832434A
CN116832434A CN202310726628.9A CN202310726628A CN116832434A CN 116832434 A CN116832434 A CN 116832434A CN 202310726628 A CN202310726628 A CN 202310726628A CN 116832434 A CN116832434 A CN 116832434A
Authority
CN
China
Prior art keywords
weather
configuration data
target
candidate
terminal devices
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310726628.9A
Other languages
Chinese (zh)
Other versions
CN116832434B (en
Inventor
李晖
欧轶勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Weili Visual Effect Network Technology Co ltd
Original Assignee
Guangzhou Weili Visual Effect Network Technology 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 Guangzhou Weili Visual Effect Network Technology Co ltd filed Critical Guangzhou Weili Visual Effect Network Technology Co ltd
Priority to CN202310726628.9A priority Critical patent/CN116832434B/en
Publication of CN116832434A publication Critical patent/CN116832434A/en
Application granted granted Critical
Publication of CN116832434B publication Critical patent/CN116832434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images
    • A63F2300/663Methods for processing data by generating or executing the game program for rendering three dimensional images for simulating liquid objects, e.g. water, gas, fog, snow, clouds

Abstract

The application provides a method and a device for rendering virtual sky in a game scene, wherein the method comprises the following steps: acquiring a plurality of candidate weather based on a plurality of terminal devices; determining a target weather among the plurality of candidate weather; determining weather configuration data based on the target weather; and sending the weather configuration data to the plurality of terminal devices, wherein the weather configuration data is used for rendering virtual sky in the game scene by the terminal devices. The application can improve the reality, interactivity and diversity of the rendering of the virtual sky in the game scene.

Description

Method and device for rendering virtual sky in game scene
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for rendering virtual sky in a game scene, a computer device, and a computer readable storage medium.
Background
With the development of virtual technology, people can feel various highlights in various game worlds. The user can control his own roles or other virtual objects to perform tasks in the virtual game scene. The higher the reality of the game scene, the better the user experience. The virtual game scene thus also simulates real world conditions, such as weather conditions, to reveal different virtual worlds.
At present, part of games show weather in game scenes, wherein some weather is fixed, some weather is preset according to platform planning, and some weather is random. The current technology does not correlate with the user in the rendering and displaying of the virtual weather, has poor interactivity, brings insufficient experience to the user, and limits the diversity of game scenes.
Disclosure of Invention
The application provides a method and a device for rendering virtual sky in a game scene, and aims to solve the technical problems that the interactivity of virtual weather rendering is poor, the experience feeling of a user is insufficient, and the diversity of the game scene is limited.
In view of the above, the present application provides a method, an apparatus, a computer device, and a computer readable storage medium for rendering a virtual sky in a game scene.
In a first aspect of the present application, there is provided a method for rendering a virtual sky in a game scene, the method comprising:
acquiring a plurality of candidate weather based on a plurality of terminal devices;
determining a target weather among the plurality of candidate weather;
determining weather configuration data based on the target weather;
and sending the weather configuration data to the plurality of terminal devices, wherein the weather configuration data is used for rendering virtual sky in the game scene by the terminal devices.
In an exemplary embodiment of the present disclosure, the step of acquiring a plurality of candidate weather based on a plurality of terminal devices includes:
receiving a plurality of pieces of position information sent by a plurality of terminal devices;
and correspondingly acquiring a plurality of candidate weather based on the plurality of position information.
In an exemplary embodiment of the present disclosure, the step of acquiring a plurality of candidate weather based on a plurality of terminal devices includes:
and receiving weather selection messages respectively sent by a plurality of terminal devices, and correspondingly acquiring a plurality of candidate weather.
In an exemplary embodiment of the present disclosure, the step of determining the target weather among the plurality of candidate weather includes:
classifying the plurality of candidate weather, and calculating the number of the corresponding candidate weather in each class;
and determining target weather according to the number of the candidate weather.
In an exemplary embodiment of the present disclosure, the target weather includes at least one weather; the step of determining weather configuration data based on the target weather includes:
when the target weather is one type, corresponding single weather configuration data is determined according to the target weather;
when the target weather is multiple, determining composite weather configuration data according to multiple weather configuration data corresponding to the multiple target weather;
wherein the weather configuration data includes at least one of the following parameters: illumination parameters, temperature configuration parameters, cloud parameters.
In one exemplary embodiment of the present disclosure, the step of determining composite weather configuration data according to a plurality of weather configuration data corresponding to a plurality of target weather includes:
determining priorities of a plurality of target weather according to the corresponding quantity of the target weather;
and based on the priority, sequentially combining the weather configuration data corresponding to the target weather.
In an exemplary embodiment of the present disclosure, the step of sequentially merging the plurality of weather configuration data corresponding to the plurality of target weather further includes:
generating transition weather configuration data based on weather configuration data adjacent to any two priorities in the composite weather configuration data;
the transitional weather configuration data is to make the composite weather configuration data numerically continuous.
In a second aspect of the present application, there is provided a rendering device of a virtual sky in a game scene, the device comprising:
the weather acquisition module is used for acquiring a plurality of candidate weather based on a plurality of terminal devices;
a target weather module for determining a target weather among the plurality of candidate weather;
the weather configuration module is used for determining weather configuration data based on the target weather;
and the scene rendering module is used for sending the weather configuration data to the plurality of terminal devices, wherein the weather configuration data is used for rendering the virtual sky in the game scene by the terminal devices.
In an exemplary embodiment of the present disclosure, the weather obtaining module is configured to receive a plurality of location information sent by a plurality of terminal devices;
and correspondingly acquiring a plurality of candidate weather based on the plurality of position information.
In an exemplary embodiment of the disclosure, the weather obtaining module is configured to receive weather selection messages sent by a plurality of terminal devices respectively, and obtain a plurality of candidate weather correspondingly.
In an exemplary embodiment of the disclosure, the target weather module is configured to classify the plurality of candidate weather, and calculate a number of candidate weather corresponding to each class;
and determining target weather according to the number of the candidate weather.
In an exemplary embodiment of the disclosure, the weather configuration module is configured to determine, when the target weather is one, corresponding single weather configuration data according to the target weather;
when the target weather is multiple, determining composite weather configuration data according to multiple weather configuration data corresponding to the multiple target weather;
wherein the weather configuration data includes at least one of the following parameters: lamp light configuration parameters, temperature configuration parameters and cloud parameters.
In an exemplary embodiment of the present disclosure, the weather configuration module is configured to determine priorities of a plurality of target weather according to respective numbers of the plurality of target weather;
and based on the priority, sequentially combining the weather configuration data corresponding to the target weather.
In an exemplary embodiment of the disclosure, the weather configuration module is configured to generate transitional weather configuration data based on any two priority neighboring weather configuration data in the composite weather configuration data;
the transitional weather configuration data is to make the composite weather configuration data numerically continuous.
In a third aspect of the present application, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program which when executed by the processor performs the steps of the method of the first aspect.
In a fourth aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of the first aspect.
One or more technical schemes provided by the application have at least the following technical effects or advantages:
acquiring a plurality of candidate weather based on a plurality of terminal devices; determining a target weather among the plurality of candidate weather; determining weather configuration data based on the target weather; and sending the weather configuration data to the plurality of terminal devices, wherein the weather configuration data is used for rendering virtual sky in the game scene by the terminal devices.
By implementing the embodiment of the application, the target weather to be rendered can be determined based on the candidate weather corresponding to the user, so that the virtual weather rendering process of the game scene can be associated with the user, and the reality and the interactivity of the virtual weather rendering are improved. On the other hand, the limitation of fixed weather and preset weather is removed, the diversity of virtual weather is improved, and the experience of a user is improved.
Drawings
FIG. 1 is a schematic flow chart of a method for rendering virtual sky in a game scene;
FIG. 2 is a schematic flow chart of determining composite weather configuration data according to a plurality of weather configuration data in a method for rendering virtual sky in a game scene according to the present application;
FIG. 3 is a schematic flow chart of generating transitional weather configuration data in a method for rendering virtual sky in a game scene;
fig. 4 is a schematic structural diagram of a rendering device of virtual sky in a game scene according to the present application;
fig. 5 is a schematic structural diagram of an exemplary computer device according to an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc.
The terms "a," "an," "the," and "said" are used in this specification to denote the presence of one or more elements/components/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. in addition to the listed elements/components/etc.; the terms "first" and "second" and the like are used merely as labels, and are not intended to limit the number of their objects.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.
The present disclosure is applicable to game servers, and the process of data processing may be done at the server. The user installs the game application to a terminal device, such as an intelligent mobile terminal, a computer, an intelligent robot. The terminal device can also not run the game program, the terminal is only responsible for inputting user instructions and displaying game pictures, the rendering of the game pictures is completed in the cloud server, and the cloud server pushes the rendered pictures to the terminal device.
In one embodiment, for example, the server obtains a plurality of candidate weather from the terminal device, and the server determines a target weather among the received plurality of candidate weather; based on the target weather, the server determines to generate weather configuration data; and sending the weather configuration data to the plurality of terminal devices, wherein the terminal devices can render virtual sky based on the weather configuration data. The server may complete rendering according to the weather configuration data, and then push the rendering to the terminal device for display. Or, the plurality of terminal devices are connected through the local area network, candidate weather can be obtained from the terminal devices, target weather is calculated respectively, the calculation result shows that the terminal device with a faster calculation result can send the target weather to other terminal devices through the local area network, and then each terminal device respectively renders the virtual weather. The embodiments of the present disclosure are not limited herein.
The game scene is a virtual game environment: is a virtual game environment that an application displays (or provides) while running on a terminal. The virtual game environment may be a real-world simulation environment, a semi-simulation and semi-imaginary environment, or a pure imaginary environment. The virtual game environment may be any one of a two-dimensional virtual game environment, a 2.5-dimensional virtual game environment, and a three-dimensional virtual game environment, which is not limited in the present application. The following embodiments are illustrated with the virtual gaming environment being a three-dimensional virtual gaming environment.
The user can control the virtual character to perform activities in the game scene, and can control the virtual character to complete tasks and cooperate or compete with other virtual characters controlled by the user. A virtual character refers to a movable object in a virtual scene. The movable object may be a virtual character, a virtual animal, or the like. Optionally, the virtual character is a three-dimensional stereoscopic model created based on an animated skeleton technique. Each virtual character has its own shape and volume in the three-dimensional virtual scene, occupying a portion of the space in the three-dimensional virtual scene. A virtual character broadly refers to one or more virtual characters in a virtual scene. Taking a game application as an example, a virtual character is a movable object that a user controls while participating in a game.
In the game scene, the virtual game environment corresponds to changed weather, such as sunny days, rainy days, snowy days, sand storm, thunderstorm, heavy rain, snow storm and the like, and the virtual game environment is divided into various time periods like the real world, each time period can correspond to different light effect, such as six to seven am is sunrise time, the virtual game environment corresponds to sunrise light, four to five pm is sunset time, and the virtual game environment corresponds to dusk light.
It should be noted that the method provided in the present application can be applied to a three-dimensional map program, a military simulation program, a First-person shooting game (First-PersonShootingGame, FPS), a multiplayer online tactical game (MultiplayerOnlineBattleArenaGames, MOBA), a virtual reality application (VirtualReality, VR), an augmented reality application (AugmentedReality, AR), etc., and the following embodiments are exemplified by game applications.
As shown in fig. 1, the application provides a method for rendering virtual sky in a game scene, which comprises the following steps:
s110, acquiring a plurality of candidate weather based on a plurality of terminal devices.
It will be appreciated that a game play may be a many-player online participation, such as a large fleeing game, a multiplayer online tactical game (Multiplayer Online Battle Arena, abbreviation: MOBA), an Action Real-Time Strategy (abbreviation: action RTS, ARTS), and so forth. Each player, i.e. user, can operate one terminal device.
The terminal device may send its location information to the server, and the server obtains weather corresponding to the terminal device according to the location information of each terminal device, as candidate weather of the terminal device. It will be appreciated that the terminal device may also obtain weather information directly based on its own location, send the weather information directly to the server, and then the server determines the corresponding candidate weather for the terminal device.
Alternatively, the game application may provide a weather selection control in a display interface of the terminal device, the terminal device directly sends a weather selection message to the server in response to a selection operation by the user, and then the server determines the corresponding candidate weather of the terminal device. The user can select favorite weather instead of real weather of the position of the user, and interaction experience is improved.
S120, determining target weather in the plurality of candidate weather.
In embodiments of the present disclosure, the plurality of candidate weather may be categorized, for example, the category may be rainy, sunny, dust, snowy, and the like, without limitation. And counting the weather belonging to the same class in the candidate weather, and finally determining the number of the candidate weather under each class. For example, it may be that the candidate weather: rain-number: 10, candidate weather: snowing-amount: 26. then, a target weather is determined from the number of candidate weather, for example, based on the aforementioned data, the target weather being "snowing".
S130, determining weather configuration data based on the target weather.
In the disclosed embodiments, the target weather may be one or more. In determining the target weather according to the number of the candidate weather, the candidate weather may be ranked according to the number of the candidate weather, and the weather corresponding to the maximum number is selected as the target weather according to the number value. And (3) after sorting according to the number, grabbing a preset number of candidate weather with the front sorting as target weather. It is also possible to use all candidate weather that satisfies a preset threshold condition as the target weather, for example, the preset threshold condition is that the number is five or more. The embodiments of the present disclosure are not limited herein.
The weather configuration data includes at least one of a time period in which the virtual game environment is located, a time lapse mode of the virtual game environment, an illumination parameter, a temperature configuration parameter, a sky parameter, a fog parameter, a cloud parameter, a wind parameter, a particle parameter, an environmental special effect parameter, a water surface effect parameter, a sun parameter, and a moon parameter. Wherein the particle parameters are used to represent particles in the weather environment, such as raindrops, snowflakes, sand storms, etc. For example, the weather configuration data may be lighting parameters of the game scene, such as lighting parameters including a lighting direction towards the west, according to which the application may load the sky environment into the current game scene. The illumination parameters may include illumination intensity, illumination color, and the like, in addition to the illumination direction.
And S140, sending the weather configuration data to the plurality of terminal devices, wherein the weather configuration data is used for rendering virtual sky in the game scene by the terminal devices.
The terminal equipment receives the weather configuration parameters, and the game scene can be rendered by using the weather configuration parameters through three-dimensional rendering software. The three-dimensional rendering software may be, for example, a illusion engine, blender, houdini, or the like.
The game application installed in the terminal device can also be packaged with a weather system, and the weather system is used for simulating various weather environments in the virtual game scene, such as an illumination scene, a cloud scene, a raining scene, a snowing scene, a hail-down scene, a sand storm scene and the like.
The weather system can be divided into an illumination subsystem, a cloud subsystem and a particle subsystem according to different scenes, wherein the illumination subsystem is used for simulating at least one of illumination scenes in a three-dimensional game scene, such as illumination scenes when the sun is initially lifted, illumination scenes when the sun is in dusk, illumination scenes of the moon at night and the like. The cloud subsystem is used for simulating at least one of cloud scenes in a three-dimensional game scene, such as a cloudy scene, a cloudy day scene and the like. The particle subsystem is used for simulating at least one of a heavy rain scene, a thunderstorm scene, a rain and snow inclusion scene, a hail scene, a small snow scene, a big snow scene, a sand storm scene and the like in the three-dimensional game scene. The weather system of the terminal device may render a different virtual sky according to the weather configuration data.
In a game scene, only one weather is always displayed fixedly or the weather is displayed randomly. Such weather rendering is too single and has no relevance to the user.
Based on this, the embodiments of the present disclosure also provide an implementation of a method for rendering a virtual sky in a game scene. As shown in fig. 2, the step of determining composite weather configuration data according to a plurality of weather configuration data corresponding to a plurality of target weather includes:
s210, determining priorities of a plurality of target weather according to the corresponding quantity of the plurality of target weather;
and S220, based on the priority, sequentially combining the weather configuration data corresponding to the target weather.
In the embodiment of the disclosure, the number of the plurality of target weather may be directly used as the priority thereof, or the sequence number may be used as the priority after being sorted according to the number. The embodiments of the present disclosure are not limited herein.
And merging the selected target weather according to the priority, namely merging a plurality of weather configuration data corresponding to the plurality of target weather. The server or terminal device then renders weather based on the user-associated changes based on the combined weather configuration data.
By implementing the embodiment of the disclosure, the priorities of the plurality of target weather can be determined according to the respective corresponding numbers of the plurality of target weather; and merging a plurality of weather configuration data corresponding to the plurality of target weather based on the priority. The method and the system can render the weather based on the change associated with the user based on the combined weather configuration data, get rid of the limitation of weather rendering, and can associate the weather rendering of the game scene to more users, thereby improving the experience of the users.
If the two weather configuration data are directly combined, severe weather changes, even instantaneous weather changes, of the game scene may be caused, which is not beneficial to improving the reality of the game scene.
Based on this, the embodiments of the present disclosure also provide an implementation of a method for rendering a virtual sky in a game scene. As shown in fig. 3, the step of sequentially merging the weather configuration data corresponding to the target weather includes:
s310, generating transition weather configuration data based on weather configuration data with any two adjacent priorities in the composite weather configuration data.
S320, the transitional weather configuration data is used to make the composite weather configuration data numerically continuous.
In the embodiment of the disclosure, the weather configuration data is combined according to the priority of the weather configuration data to obtain composite weather configuration data, the priority of the weather configuration data in the composite weather configuration data is sequentially reduced or sequentially increased, the priorities are adjacent in value, and the two corresponding weather configuration data are also adjacent in the composite weather configuration data.
Additional transitional weather configuration data is generated based on the data parameters of two adjacent weather configuration data. For example, the first target weather may be "raining", with a priority of 5; the second target weather may be "snowing", with a priority of 4; the first target weather may be a "sunny day" with a priority of 1. The weather configuration data of "raining" is adjacent to the weather configuration data of "snowing"; the weather configuration data of "snowing" is adjacent to the weather configuration data of "sunny". However, the weather configuration data of "snowing" and "sunny" may be quite different, for example, the temperature configuration parameters may be "-10 degrees celsius" and "10 degrees celsius", and the transition weather configuration data needs to be generated according to the parameters with the quite different parameters. The transition weather configuration data includes a series of varying temperature configuration parameters, such as "-5 degrees celsius", "0 degrees celsius", "5 degrees celsius". The parameters included in the transitional weather configuration data may be more, depending on the actual weather rendering needs, and are not limited in this regard.
Based on the same inventive concept as the method for rendering the virtual sky in the game scene in the foregoing embodiment, as shown in fig. 4, the present application provides a device for rendering the virtual sky in the game scene, and the specific description of the method for rendering the virtual sky in the game scene in the foregoing embodiment is also applicable to the device for rendering the virtual sky in the game scene, where the device includes:
a weather obtaining module 410, configured to obtain a plurality of candidate weather based on a plurality of terminal devices;
a target weather module 420 for determining a target weather among the plurality of candidate weather;
a weather configuration module 430 for determining weather configuration data based on the target weather;
a scene rendering module 440, configured to send the weather configuration data to the plurality of terminal devices, where the weather configuration data is used for rendering the virtual sky in the game scene by the terminal devices.
In an exemplary embodiment of the present disclosure, the weather obtaining module is configured to receive a plurality of location information sent by a plurality of terminal devices;
and correspondingly acquiring a plurality of candidate weather based on the plurality of position information.
In an exemplary embodiment of the disclosure, the weather obtaining module is configured to receive weather selection messages sent by a plurality of terminal devices respectively, and obtain a plurality of candidate weather correspondingly.
In an exemplary embodiment of the disclosure, the target weather module is configured to classify the plurality of candidate weather, and calculate a number of candidate weather corresponding to each class;
and determining target weather according to the number of the candidate weather.
In an exemplary embodiment of the disclosure, the weather configuration module is configured to determine, when the target weather is one, corresponding single weather configuration data according to the target weather;
when the target weather is multiple, determining composite weather configuration data according to multiple weather configuration data corresponding to the multiple target weather;
wherein the weather configuration data includes at least one of the following parameters: lamp light configuration parameters, temperature configuration parameters and cloud parameters.
In an exemplary embodiment of the present disclosure, the weather configuration module is configured to determine priorities of a plurality of target weather according to respective numbers of the plurality of target weather;
and based on the priority, sequentially combining the weather configuration data corresponding to the target weather.
In an exemplary embodiment of the disclosure, the weather configuration module is configured to generate transitional weather configuration data based on any two priority neighboring weather configuration data in the composite weather configuration data;
the transitional weather configuration data is to make the composite weather configuration data numerically continuous.
As shown in fig. 5, based on the same inventive concept as the method for rendering a virtual sky in a game scene in the foregoing embodiment, the present application further provides a computer device 300, where the computer device 300 includes a memory 301 and a processor 302, and a computer program is stored in the memory 301, and the computer program is executed by the processor 302 to implement the steps of one method of the embodiment.
The computer device 300 includes: a processor 302, a communication interface 303, a memory 301. Optionally, the computer device 300 may also include a bus architecture 304. Wherein the communication interface 303, the processor 302 and the memory 301 may be interconnected by a bus architecture 304; the bus architecture 304 may be a peripheral component interconnect (peripheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry Standard architecture, EISA) bus, among others. The bus architecture 304 may be divided into address buses, data buses, control buses, and the like. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
Processor 302 may be a CPU, microprocessor, ASIC, or one or more integrated circuits for controlling the execution of the programs of the present application.
The communication interface 303 uses any transceiver-like means for communicating with other devices or communication networks, such as ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), wired access network, etc.
The memory 301 may be, but is not limited to, ROM or other type of static storage device, RAM or other type of dynamic storage device, which may store static information and instructions, or may be an electrically erasable programmable read-only memory (electrically erasable Programmable read only memory, EEPROM), a compact disk read-only memory (compact discread only memory, CD ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and coupled to the processor through bus architecture 304. The memory may also be integrated with the processor.
The memory 301 is used for storing computer-executable instructions for executing the inventive arrangements, and is controlled by the processor 302 for execution. The processor 302 is configured to execute computer-executable instructions stored in the memory 301, so as to implement a method for rendering virtual sky in a game scene according to the above embodiment of the present application.
Based on the same inventive concept as the method for rendering virtual sky in a game scene in the foregoing embodiments, the present application further provides a computer readable storage medium, in which a computer program is stored, which when executed by a processor, implements the steps of the method in the first embodiment.
The specification and figures are merely exemplary illustrations of the present application and are considered to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the application. It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the scope of the application. Thus, the present application is intended to include such modifications and alterations insofar as they come within the scope of the application or the equivalents thereof.

Claims (10)

1. A method for rendering a virtual sky in a game scene, the method comprising:
acquiring a plurality of candidate weather based on a plurality of terminal devices;
determining a target weather among the plurality of candidate weather;
determining weather configuration data based on the target weather;
and sending the weather configuration data to the plurality of terminal devices, wherein the weather configuration data is used for rendering virtual sky in the game scene by the terminal devices.
2. The method of claim 1, wherein the step of obtaining a plurality of candidate weather based on a plurality of terminal devices comprises:
receiving a plurality of pieces of position information sent by a plurality of terminal devices;
and correspondingly acquiring a plurality of candidate weather based on the plurality of position information.
3. The method of claim 1, wherein the step of obtaining a plurality of candidate weather based on a plurality of terminal devices comprises:
and receiving weather selection messages respectively sent by a plurality of terminal devices, and correspondingly acquiring a plurality of candidate weather.
4. A method according to claim 2 or 3, wherein the step of determining a target weather among the plurality of candidate weather comprises:
classifying the plurality of candidate weather, and calculating the number of the corresponding candidate weather in each class;
and determining target weather according to the number of the candidate weather.
5. The method of claim 4, wherein the target weather comprises at least one weather; the step of determining weather configuration data based on the target weather includes:
when the target weather is one type, corresponding single weather configuration data is determined according to the target weather;
when the target weather is multiple, determining composite weather configuration data according to multiple weather configuration data corresponding to the multiple target weather;
wherein the weather configuration data includes at least one of the following parameters: illumination parameters, temperature configuration parameters, cloud parameters.
6. The method of claim 5, wherein the step of determining composite weather configuration data from a plurality of weather configuration data corresponding to a plurality of target weather comprises:
determining priorities of a plurality of target weather according to the corresponding quantity of the target weather;
and based on the priority, sequentially combining the weather configuration data corresponding to the target weather.
7. The method of claim 6, wherein the step of sequentially merging the plurality of weather configuration data corresponding to the plurality of target weather, further comprises:
generating transition weather configuration data based on weather configuration data adjacent to any two priorities in the composite weather configuration data;
the transitional weather configuration data is to make the composite weather configuration data numerically continuous.
8. A device for rendering a virtual sky in a game scene, the device comprising:
the weather acquisition module is used for acquiring a plurality of candidate weather based on a plurality of terminal devices;
a target weather module for determining a target weather among the plurality of candidate weather;
the weather configuration module is used for determining weather configuration data based on the target weather;
and the scene rendering module is used for sending the weather configuration data to the plurality of terminal devices, wherein the weather configuration data is used for rendering the virtual sky in the game scene by the terminal devices.
9. A computer device, characterized in that it comprises a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, implements the steps of the method for rendering virtual sky in a game scene according to any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the steps of the method for rendering virtual sky in a game scene according to any of claims 1-7.
CN202310726628.9A 2023-06-19 2023-06-19 Method and device for rendering virtual sky in game scene Active CN116832434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310726628.9A CN116832434B (en) 2023-06-19 2023-06-19 Method and device for rendering virtual sky in game scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310726628.9A CN116832434B (en) 2023-06-19 2023-06-19 Method and device for rendering virtual sky in game scene

Publications (2)

Publication Number Publication Date
CN116832434A true CN116832434A (en) 2023-10-03
CN116832434B CN116832434B (en) 2024-04-12

Family

ID=88159136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310726628.9A Active CN116832434B (en) 2023-06-19 2023-06-19 Method and device for rendering virtual sky in game scene

Country Status (1)

Country Link
CN (1) CN116832434B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070060337A1 (en) * 2005-08-19 2007-03-15 Aruze Corp. Game program and game system
CN109395385A (en) * 2018-09-13 2019-03-01 深圳市腾讯信息技术有限公司 The configuration method and device of virtual scene, storage medium, electronic device
CN111388997A (en) * 2020-04-14 2020-07-10 网易(杭州)网络有限公司 Weather control method and system in game, readable storage medium and electronic equipment
CN112263837A (en) * 2020-11-16 2021-01-26 腾讯科技(深圳)有限公司 Weather rendering method, device, equipment and storage medium in virtual environment
CN113457134A (en) * 2021-06-28 2021-10-01 网易(杭州)网络有限公司 Game scene processing method, device, equipment and storage medium
CN114494545A (en) * 2022-01-25 2022-05-13 上海影谱科技有限公司 Implementation method and system for simulating foggy day in 3D scene
WO2022127278A1 (en) * 2020-12-18 2022-06-23 完美世界(北京)软件科技发展有限公司 Method and apparatus for rendering virtual scene
CN115409921A (en) * 2022-08-19 2022-11-29 亚信科技(中国)有限公司 Control method and device for virtual scene, electronic equipment and storage medium
US20220379208A1 (en) * 2021-05-28 2022-12-01 Tencent Technology (Shenzhen) Company Limited Method and apparatus for generating special effect in virtual environment, device, and storage medium
CN115591237A (en) * 2022-10-31 2023-01-13 不鸣科技(杭州)有限公司(Cn) Weather effect-based interaction method, device and product in virtual game
US20230041183A1 (en) * 2020-09-02 2023-02-09 Tencent Technology (Shenzhen) Company Limited Virtual object dynamic change method, apparatus, and device, and storage medium
CN115861502A (en) * 2021-09-23 2023-03-28 广州博冠信息科技有限公司 Weather rendering method and device in virtual environment, storage medium and electronic equipment
CN116139483A (en) * 2021-11-22 2023-05-23 网易(杭州)网络有限公司 Game function control method, game function control device, storage medium and computer equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070060337A1 (en) * 2005-08-19 2007-03-15 Aruze Corp. Game program and game system
CN109395385A (en) * 2018-09-13 2019-03-01 深圳市腾讯信息技术有限公司 The configuration method and device of virtual scene, storage medium, electronic device
CN111388997A (en) * 2020-04-14 2020-07-10 网易(杭州)网络有限公司 Weather control method and system in game, readable storage medium and electronic equipment
US20230041183A1 (en) * 2020-09-02 2023-02-09 Tencent Technology (Shenzhen) Company Limited Virtual object dynamic change method, apparatus, and device, and storage medium
CN112263837A (en) * 2020-11-16 2021-01-26 腾讯科技(深圳)有限公司 Weather rendering method, device, equipment and storage medium in virtual environment
WO2022127278A1 (en) * 2020-12-18 2022-06-23 完美世界(北京)软件科技发展有限公司 Method and apparatus for rendering virtual scene
US20220379208A1 (en) * 2021-05-28 2022-12-01 Tencent Technology (Shenzhen) Company Limited Method and apparatus for generating special effect in virtual environment, device, and storage medium
CN113457134A (en) * 2021-06-28 2021-10-01 网易(杭州)网络有限公司 Game scene processing method, device, equipment and storage medium
CN115861502A (en) * 2021-09-23 2023-03-28 广州博冠信息科技有限公司 Weather rendering method and device in virtual environment, storage medium and electronic equipment
CN116139483A (en) * 2021-11-22 2023-05-23 网易(杭州)网络有限公司 Game function control method, game function control device, storage medium and computer equipment
CN114494545A (en) * 2022-01-25 2022-05-13 上海影谱科技有限公司 Implementation method and system for simulating foggy day in 3D scene
CN115409921A (en) * 2022-08-19 2022-11-29 亚信科技(中国)有限公司 Control method and device for virtual scene, electronic equipment and storage medium
CN115591237A (en) * 2022-10-31 2023-01-13 不鸣科技(杭州)有限公司(Cn) Weather effect-based interaction method, device and product in virtual game

Also Published As

Publication number Publication date
CN116832434B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN106296786B (en) The determination method and device of scene of game visibility region
JP4824019B2 (en) A terrain editing tool for rule-based procedural terrain generation
JP4937907B2 (en) Rule-based procedural terrain generation
KR100740072B1 (en) Image generating device
EP1566770A2 (en) Development tool for defining attributes within a multi-dimensional space
US7349830B2 (en) Weather profiles
CN103605501A (en) Game vegetation system
KR20010113966A (en) Entertainment apparatus, storage medium, and method of deciding weather
CN113457137B (en) Game scene generation method and device, computer equipment and readable storage medium
CN112675545A (en) Method and device for displaying surface simulation picture, storage medium and electronic equipment
CN115409921A (en) Control method and device for virtual scene, electronic equipment and storage medium
CN111583378A (en) Virtual asset processing method and device, electronic equipment and storage medium
CN116832434B (en) Method and device for rendering virtual sky in game scene
CN110400366B (en) Real-time flood disaster visualization simulation method based on OpenGL
CN115690344A (en) Sponge city sand table and weather simulation system
Germanchis et al. Virtual Queenscliff: A computer game approach for depicting geography
CN113457145B (en) Weather control method, device, equipment and storage medium for game scene
CN116351067A (en) Method and device for rendering weather in game scene, storage medium and electronic device
CN113368496B (en) Weather rendering method and device for game scene and electronic equipment
CN115423917B (en) Real-time drawing method and system for global three-dimensional wind field
CN116351066A (en) Method and device for rendering weather objects in game, storage medium and electronic device
CN113209620B (en) Heat map generation method and device and scene management method and device
CN113592999B (en) Rendering method of virtual luminous body and related equipment
CN116351065A (en) Method and device for rendering weather in game, storage medium and electronic device
Häggström Real-time generation and rendering of realistic landscapes

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