Method and apparatus for displaying environmental objects
By acquiring the generation and interaction time of virtual reality environment objects and dynamically determining time parameters, the problem of stiff display of environment objects in virtual reality is solved, achieving a realistic simulation and low resource consumption display effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI MIHA YOUHAIYUANCHENG TECH CO LTD
- Filing Date
- 2021-12-28
- Publication Date
- 2026-05-15
AI Technical Summary
The way environmental objects are displayed in existing virtual reality technology is rather rigid, unable to realistically reproduce the state of the real world, and consumes a lot of computing resources.
By obtaining the generation time of the environment object and the interaction time of the associated object, the time parameter is dynamically determined, and the environment object is displayed in combination with the time parameter, thus avoiding a fixed display.
It enables dynamic display of environmental objects, realistically simulates the effects of time, reduces system resource consumption, and improves display speed and smoothness.
Smart Images

Figure CN116360638B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of virtual reality, specifically to a method and apparatus for displaying environmental objects. Background Technology
[0002] With the rapid development of virtual reality technology, the variety of objects in the virtual world is becoming increasingly rich, and the visual display effects of each virtual object are becoming more and more realistic, enabling users to achieve an immersive experience. For example, the virtual world can present various geological features such as deserts, snow-capped mountains, cliffs, and valleys, thereby achieving a high-precision simulation of real-world scenes through environmental objects.
[0003] However, in the process of realizing this invention, the inventors discovered that the existing methods have at least the following drawbacks: environmental objects such as deserts, snow-capped mountains, cliffs, and valleys presented in the virtual world are usually virtual objects with fixed pre-set forms. Therefore, the way environmental objects such as deserts, snow-capped mountains, cliffs, and valleys in the virtual world are displayed is rather rigid, presenting a uniform display form regardless of the scene, and failing to reproduce the real state of the real world. Summary of the Invention
[0004] In view of the above problems, the present invention is proposed to provide a method and apparatus for displaying environmental objects that overcomes or at least partially solves the above problems.
[0005] According to one aspect of the present invention, a method for displaying an environment object is provided, comprising:
[0006] In response to the creation operation of an environment object contained in a virtual world application, the object creation time of the environment object is obtained;
[0007] Identify the associated objects that are related to the environment object, and obtain the associated interaction time when the associated objects interact with the environment object;
[0008] Based on the object's creation time and the associated interaction time, the time parameters of the environment object are determined, and the environment object is displayed according to the time parameters.
[0009] Optionally, prior to the response to the creation operation of environment objects included in the virtual world application, the method further includes:
[0010] In response to the first launch operation of the virtual world application, obtain the application start time of the virtual world application;
[0011] The step of determining the time parameters of the environment object based on the object's generation time and the associated interaction time specifically includes: determining the time parameters of the environment object by combining the application's start time.
[0012] Optionally, obtaining the associated interaction time between the associated object and the environment object includes:
[0013] Determine the first interaction time when the associated object and the environment object first interact, and the continuous interaction time between the associated object and the environment object;
[0014] An interaction impact factor is determined based on the interaction operations generated during the continuous interaction time, and the interaction impact time corresponding to the continuous interaction time is determined through the interaction impact factor.
[0015] The associated interaction time is determined based on the initial interaction time and the interaction impact time.
[0016] Optionally, the associated objects that are related to the environment object include:
[0017] The target role object that is associated with the environment object and the auxiliary role object that is associated with the target role object;
[0018] Furthermore, the first interaction time is the time when the target character object and the environment object first interact;
[0019] The continuous interaction time includes: a first continuous interaction time between the target character object and the environment object, and a second continuous interaction time between the auxiliary character object and the environment object.
[0020] Optionally, determining the interaction influence factor based on the interaction operations generated during the continuous interaction time includes:
[0021] Determine the operation type and / or operation frequency of the interactive operation, and determine the interaction impact factor based on the operation type and / or operation frequency;
[0022] The types of interactive operations include: character skill operations, interactive attack operations, and environmental impact operations.
[0023] Optionally, displaying the environmental object according to the time parameter includes:
[0024] The environmental attribute information of the environmental object is determined based on the time parameter, and the environmental object is displayed through an environmental texture map corresponding to the environmental attribute information.
[0025] Optionally, determining the environmental attribute information of the environmental object based on the time parameter includes:
[0026] If a collision operation is detected that is triggered against the environment object, the time parameter is obtained and the environmental attribute information of the environment object is determined.
[0027] The method of displaying the environmental object through an environmental texture corresponding to the environmental attribute information includes:
[0028] The collision response state of the environment object is determined based on the environmental attribute information, and the environment object is displayed through the environment map data corresponding to the collision response state.
[0029] Optionally, the environmental objects include: desert environmental objects, swamp environmental objects, snow environmental objects, and mountain environmental objects.
[0030] Optionally, interactive elements associated with the environmental object are obtained, and the interactive factors are determined by combining the element attributes of the interactive elements; wherein, the interactive elements include: water element, fire element, lightning element, ice element, grass element, rock element, wind element, and mixed elements composed of at least two elements.
[0031] According to another aspect of the present invention, an environmental object display device is provided, comprising:
[0032] The generation time acquisition module is adapted to acquire the object generation time of the environment object in response to the creation operation of the environment object contained in the virtual world application.
[0033] The interaction time acquisition module is adapted to identify associated objects that have a relationship with the environment object, and to acquire the associated interaction time between the associated objects and the environment object.
[0034] The display module is adapted to determine the time parameters of the environment object based on the object's generation time and the associated interaction time, and to display the environment object based on the time parameters.
[0035] Optionally, the device further includes:
[0036] The start time acquisition module is adapted to acquire the application start time of the virtual world application in response to the first launch operation of the virtual world application;
[0037] The display module is specifically adapted to: determine the time parameters of the environment object based on the application start time.
[0038] Optionally, the interaction time acquisition module is specifically adapted to:
[0039] Determine the first interaction time when the associated object and the environment object first interact, and the continuous interaction time between the associated object and the environment object;
[0040] An interaction impact factor is determined based on the interaction operations generated during the continuous interaction time, and the interaction impact time corresponding to the continuous interaction time is determined through the interaction impact factor.
[0041] The associated interaction time is determined based on the initial interaction time and the interaction impact time.
[0042] Optionally, the associated objects that are related to the environment object include:
[0043] The target role object that is associated with the environment object and the auxiliary role object that is associated with the target role object;
[0044] Furthermore, the first interaction time is the time when the target character object and the environment object first interact;
[0045] The continuous interaction time includes: a first continuous interaction time between the target character object and the environment object, and a second continuous interaction time between the auxiliary character object and the environment object.
[0046] Optionally, the interaction time acquisition module is specifically adapted to:
[0047] Determine the operation type and / or operation frequency of the interactive operation, and determine the interaction impact factor based on the operation type and / or operation frequency;
[0048] The types of interactive operations include: character skill operations, interactive attack operations, and environmental impact operations.
[0049] Optionally, the display module is specifically adapted to:
[0050] The environmental attribute information of the environmental object is determined based on the time parameter, and the environmental object is displayed through an environmental texture map corresponding to the environmental attribute information.
[0051] Optionally, the display module is specifically adapted to:
[0052] If a collision operation is detected that is triggered against the environment object, the time parameter is obtained and the environmental attribute information of the environment object is determined.
[0053] The method of displaying the environmental object through an environmental texture corresponding to the environmental attribute information includes:
[0054] The collision response state of the environment object is determined based on the environmental attribute information, and the environment object is displayed through the environment map data corresponding to the collision response state.
[0055] Optionally, the environmental objects include: desert environmental objects, swamp environmental objects, snow environmental objects, and mountain environmental objects.
[0056] According to another aspect of the present invention, an electronic device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;
[0057] The memory is used to store at least one executable instruction that causes the processor to perform operations corresponding to the display method of the environment object described above.
[0058] According to another aspect of the present invention, a computer storage medium is provided, the storage medium storing at least one executable instruction that causes a processor to perform an operation corresponding to the above-described environment object display method.
[0059] In the method and apparatus for displaying environmental objects provided by this invention, the object generation time of the environmental object and the interaction time of associated objects related to the environmental object are obtained. Based on the object generation time and the associated interaction time, the time parameters of the environmental object are determined so that the environmental object can be displayed according to the time parameters. This method can dynamically determine the time parameters of the environmental object by combining the object generation time and the interaction time of associated objects related to the environmental object, thereby displaying the environmental object according to the time parameters. Because time parameters are set for the environmental object, and these time parameters change dynamically with the object generation time and associated interaction time, the display state of the environmental object can realistically simulate the state affected by time, ensuring that the display state of the environmental object is different at different times, thus avoiding a uniform display method and accurately restoring the real state of the real world. Furthermore, compared with the traditional method of performing complex calculations through a physics engine, this method can reduce system resource consumption and improve display speed.
[0060] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0061] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0062] Figure 1 A flowchart illustrating a method for displaying an environment object according to an embodiment of the present invention is shown;
[0063] Figure 2 A flowchart of a method for displaying an environment object according to another embodiment of the present invention is shown;
[0064] Figure 3 A schematic diagram illustrating the calculation of the time parameter is shown;
[0065] Figure 4 A structural diagram of an environmental object display device according to another embodiment of the present invention is shown;
[0066] Figure 5 A schematic diagram of the structure of an electronic device provided in another embodiment of the present invention is shown. Detailed Implementation
[0067] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0068] Figure 1 A flowchart illustrating a method for displaying an environment object according to an embodiment of the present invention is shown. Figure 1 As shown, the method includes:
[0069] Step S110: In response to the first launch operation of the virtual world application, obtain the application start time of the virtual world application.
[0070] Virtual world applications include various applications based on virtual worlds, such as game applications set up around virtual worlds. Correspondingly, the application start time of a virtual world application corresponds to the first launch time of a game application, such as the first registration or first login time. Therefore, the launch operation includes: registration, login, or unlocking.
[0071] In practice, when the startup operation of the virtual world application is detected for the first time, the startup operation time of the virtual world application is obtained and stored as the application start time of the virtual world application in the preset storage space.
[0072] The preset storage space can be a time database or a storage space for storing time data tables; this invention does not limit this. Various types of time-related data are stored and maintained through the preset storage space.
[0073] Specifically, a pre-defined start time writing function is configured. The execution logic of this function is as follows: when a startup event associated with the first launch operation of the virtual world application is detected, the startup operation time is obtained and written to the aforementioned pre-defined storage space. This start time writing function can be a callback function or a hook function.
[0074] This step is optional and may be omitted in other embodiments of the present invention.
[0075] Furthermore, the initial launch of a virtual world application can also be understood as the initial creation of the virtual world. For example, taking a game application as an example, the application's start time can also be the game's background start time. Accordingly, when a game user is detected entering the game application via a login command, the aforementioned game background start time is obtained.
[0076] Step S120: In response to the creation operation of the environment object contained in the virtual world application, obtain the object creation time of the environment object.
[0077] The virtual world application includes environment objects, which can be various environment-related objects, such as surface objects, vegetation objects, and large covering objects. When an environment object creation operation is detected, the creation operation time is obtained and stored as the object generation time of the environment object in the aforementioned preset storage space.
[0078] In practice, the creation of environment objects can be determined by detecting object creation events. These object creation events can be triggered by a pre-defined object creation function. Correspondingly, a pre-defined generation time writing function is set up. The execution logic of this function is as follows: when an object creation event associated with the creation of the environment object is detected, the creation time is obtained and written to the aforementioned pre-defined storage space. This generation time writing function can be a callback function or a hook function.
[0079] Step S130: Determine the associated objects that have a relationship with the environment objects, and obtain the associated interaction time when the associated objects interact with the environment objects.
[0080] Among them, associated objects that are related to the environment include virtual objects that can affect the environmental attributes of the environment. For example, associated objects that are related to the environment include target character objects and auxiliary character objects that are related to the target character objects. The target character object can be a protagonist object or an action object corresponding to the game user. The auxiliary character object can be a supporting character object or a character object corresponding to a virtual character in the game application. Alternatively, the auxiliary character object can also be a scene object, etc. This invention does not limit the type and number of associated objects; any virtual object that can affect the environment can be used as an associated object.
[0081] The associated interaction time, which describes the initial interaction time, duration of continuous interaction, and type of interaction between the associated object and the environment object, is used to describe relevant information. In summary, the associated interaction time describes the degree and frequency of interaction between the associated object and the environment object. This invention does not limit the specific method of determining the associated interaction time, as long as it reflects the interaction characteristics.
[0082] Step S140: Determine the time parameters of the environment object based on the application start time, object generation time, and associated interaction time, and display the environment object according to the time parameters.
[0083] In this embodiment, a time parameter is set for the environment object. This time parameter describes the creation time information of the environment object, and is specifically determined by combining the application start time, object generation time, and associated interaction time. Since the relative duration of the application start time and object generation time with respect to the current moment is dynamically changing, and the associated interaction time also dynamically changes with the interaction state, the time parameter of the environment object is a dynamic parameter that changes dynamically with the change of the current moment and the change of the interaction state.
[0084] Correspondingly, a mapping relationship between time parameters and the display state of environmental objects can be preset, thereby determining the display state that matches the time parameters based on the time parameters and the preset mapping relationship, so as to realize the display operation of environmental objects.
[0085] When step S110 is omitted, the time parameters of the environment object can be determined directly based on the object generation time and the associated interaction time.
[0086] Therefore, this method can dynamically determine the time parameters of the environment object by combining the object's creation time and the interaction time of related objects, and then display the environment object according to the time parameters. Because time parameters are set for the environment object, and these parameters change dynamically based on the object's creation time and related interaction times, the display state of the environment object can realistically simulate a state affected by time, ensuring that the display state of the environment object is different at different times. This avoids a uniform display and accurately reproduces the true state of the real world.
[0087] Figure 2 A flowchart illustrating a method for displaying an environment object according to another embodiment of the present invention is shown. Figure 2 As shown, the method includes:
[0088] Step S210: In response to the first launch operation of the virtual world application, obtain the application start time of the virtual world application.
[0089] In this embodiment, the virtual world application is mainly a game application. Specifically, when the startup operation of the virtual world application is detected for the first time, the startup operation time of the virtual world application is obtained and stored as the application start time in a preset storage space.
[0090] Step S220: In response to the creation operation of the environment object contained in the virtual world application, obtain the object creation time of the environment object.
[0091] The virtual world application includes environmental objects such as desert, swamp, snowfield, and mountain environments. When an environment object creation operation is detected, the creation time is obtained and stored as the object's creation time in the aforementioned preset storage space. In specific implementation, the environment object creation operation can be determined by detecting an object creation event. This object creation event can be triggered by a preset object creation function.
[0092] Specifically, the creation of environment objects can be automatically triggered by the system at a specified time or when specified conditions are met, or it can be triggered by a creation command sent by the game user through the creation entry point. The creation entry point can take various forms, such as operation controls or virtual buttons; this invention does not limit its application to these.
[0093] Step S230: Identify the associated objects that have a relationship with the environment objects.
[0094] Among them, associated objects that are related to the environment include virtual objects that can affect the environmental attributes of the environment. For example, associated objects that are related to the environment include target character objects and auxiliary character objects that are related to the target character objects. The target character object can be a protagonist object or an action object corresponding to the game user. The auxiliary character object can be a supporting character object or a character object corresponding to a virtual character in the game application. Alternatively, the auxiliary character object can also be a scene object, etc. This invention does not limit the type and number of associated objects; any virtual object that can affect the environment can be used as an associated object.
[0095] In one implementation, the associated objects that are related to the environment object include: a target role object that is related to the environment object and auxiliary role objects that are related to the target role object. The target role object, which is related to the environment object, refers to a virtual object controlled by the game user. The actions of this virtual object are determined by control commands triggered by the game user; this virtual object is also called a user-controlled object, corresponding to the game user. Additionally, auxiliary role objects include other virtual objects in the game application besides user-controlled objects, such as character objects, animal objects, and scene objects. This invention does not limit the specific meaning of the auxiliary role objects.
[0096] Step S240: Obtain the associated interaction time between the associated object and the environment object.
[0097] The associated interaction time, which describes the initial interaction time, duration of continuous interaction, and type of interaction between the associated object and the environment object, is used to describe relevant information. In summary, the associated interaction time describes the degree and frequency of interaction between the associated object and the environment object. This invention does not limit the specific method of determining the associated interaction time, as long as it reflects the interaction characteristics.
[0098] In one implementation, the interaction time between the associated object and the environment object is obtained in the following way:
[0099] First, determine the initial interaction time when the associated object and the environment object first interact, and the duration of their continuous interaction. The initial interaction time describes when the associated object first interacts with the environment object. Typically, the initial interaction time is the time when the target role object and the environment object first interact. The continuous interaction time includes: the first continuous interaction time between the target role object and the environment object, and the second continuous interaction time between the auxiliary role object and the environment object.
[0100] Then, the interaction impact factor is determined based on the interactive operations generated during the continuous interaction time. The interaction impact factor is then used to determine the interaction impact time corresponding to the continuous interaction time. Specifically, the operation type and / or operation frequency of the interactive operations are determined, and the interaction impact factor is determined based on the operation type and / or operation frequency. The operation types include: character skill operations, interactive attack operations, and environmental impact operations. Character skill operations include: fire-breathing skills, water-breathing skills, etc. Interactive attack operations include: physical contact attacks, attacks using props, etc. Environmental impact operations include: volcanic eruptions, flood discharges, snowfall, etc.
[0101] Finally, the associated interaction time is determined based on the initial interaction time and the interaction impact time. The interaction impact time is determined by the continuous interaction time and the interaction impact factor, which, combined with the initial interaction time, yields the associated interaction time.
[0102] Step S250: Determine the time parameters of the environment object based on the application start time, object generation time, and associated interaction time.
[0103] In this embodiment, a time parameter is set for the environment object. This time parameter describes the creation time information of the environment object, and is specifically determined by combining the application start time, object generation time, and associated interaction time. Since the relative duration of the application start time and object generation time with respect to the current moment is dynamically changing, and the associated interaction time also dynamically changes with the interaction state, the time parameter of the environment object is a dynamic parameter that changes dynamically with the change of the current moment and the change of the interaction state.
[0104] Step S260: Display the environment object based on the time parameter.
[0105] Specifically, a mapping relationship between time parameters and the display state of environmental objects can be preset, thereby determining the display state that matches the time parameters based on the time parameters and the preset mapping relationship, so as to realize the display operation of environmental objects.
[0106] In one implementation, environmental attribute information of an environmental object is determined based on a time parameter, and the environmental object is displayed using environmental texture data corresponding to this information. The environmental attribute information describes the material characteristics of the environmental object, such as its material type and the attribute characteristics of each type. Material types include: gravel, snowflakes, and soil. The attribute characteristics of each material type include: moisture content, hardness, load-bearing capacity, and size. Correspondingly, the environmental attribute information in each dimension changes with the time parameter. That is, there is a pre-defined correspondence between the environmental attribute information and the time parameter. For example, the first type of attribute characteristic (such as hardness) is directly proportional to the time parameter, while the second type (such as moisture content) is inversely proportional. In practice, the types and quantities of the first and second types of attribute characteristics can be flexibly set according to the actual scenario. In practice, environmental texture data corresponding to various environmental attribute information is pre-set, allowing for the rapid display of environmental objects using this texture data.
[0107] In one implementation, upon detecting a collision operation triggered against an environment object, a time parameter is acquired, and the environment attribute information of the environment object is determined based on the time parameter. The collision response state of the environment object is then determined based on the environment attribute information, and the environment object is displayed using an environment map data corresponding to the collision response state. The collision response state includes virtual imprint states such as virtual footprints.
[0108] Furthermore, those skilled in the art can make various modifications and variations to the above embodiments. For example, when determining the interaction impact factor based on the interactive operations generated during the continuous interaction time, it can be further achieved by: acquiring the interaction impact elements associated with the environmental object, and determining the interaction impact factor by combining the element attributes of the interaction impact elements. The interaction impact elements associated with the environmental object refer to external elements that can affect the environmental attribute information of the environmental object, including: water elements, fire elements, wind elements, lightning elements, ice elements, grass elements, rock elements, and mixed elements composed of at least two elements. Mixed elements are used to reflect the superimposed effect produced by the mixing of multiple elements. For example, several external elements are set around the environmental object, such as water elements like rivers and waterfalls, or elements that can erupt flames like volcanoes. Correspondingly, the interaction impact factor is determined by combining the element attributes of the interaction impact elements. There is a preset correspondence between the element attributes of the interaction impact elements and the interaction impact factor; for example, when the element attribute of the interaction impact element is fire, the interaction impact factor will increase; when the element attribute of the interaction impact element is water, the interaction impact factor will decrease. In summary, by acquiring the interactive elements associated with environmental objects, we can determine the interactive factors by combining the element attributes of these interactive elements, thereby making the final time parameters more accurate.
[0109] In another optional implementation, when displaying the environmental object based on the time parameter in step S260, after determining the environmental attribute information of the environmental object based on the time parameter, the environmental attribute information is further modified by combining the element attributes of the interactive elements associated with the environmental object. The environmental object is then displayed using an environmental texture map corresponding to the modified environmental attribute information, allowing the finally displayed environmental object to dynamically change according to the different environmental influence elements. Furthermore, when the environmental attribute information includes multiple dimensions as mentioned above, the environmental attribute information of each dimension can be adjusted according to the element attributes of the interactive elements. For example, the first type of attribute feature (such as hardness) in the environmental attribute information is directly proportional to the fire element attribute, while the second type of attribute feature (such as water content) in the environmental attribute information is inversely proportional to the fire element attribute.
[0110] The interactive elements associated with the environmental object can be determined based on the geographical scope of the environmental object and the element coverage of each interactive element. For example, suppose the environmental object is an object corresponding to a sub-region of the entire plot area, and interactive elements may be set in each sub-region of the plot area, each with a preset element coverage. Accordingly, interactive elements whose element coverage matches the geographical scope of the environmental object corresponding to the current sub-region are obtained, and the environmental attribute information is corrected based on the element attributes of the obtained interactive elements.
[0111] In summary, by combining the application start time of the virtual world application, the object creation time of the environment object, and the interaction time of related objects associated with the environment object, the time parameters of the environment object are dynamically determined, and the environment object is displayed according to these time parameters. Since time parameters are set for the environment object, and these parameters change dynamically with the application start time, the object creation time of the environment object, and the interaction time, the display state of the environment object can realistically simulate the state affected by time, ensuring that the display state of the environment object is different at different times. This avoids a uniform display method and accurately restores the real state of the real world. Furthermore, in this embodiment, the time parameters are associated with the environment attribute information of the environment object. The time parameters can affect the environment attribute information, making the environment object displayed based on the environment attribute information closer to the real physical situation. Moreover, by identifying the target character object and the auxiliary character object associated with the target character object as associated objects, and determining the time parameters based on the interaction time, the interaction between the character object and the environment object can be considered, thereby determining the impact of the interaction operation on the environment object and further ensuring the realism of the environment object's display effect. In summary, this application enables the display state of the environment object to vary over time by adding a time parameter attribute to the environment object.
[0112] To facilitate understanding, the method for displaying the environment object in the above embodiments is described in detail below using a specific example. In this example, the environment object is a desert object in a game application. In practice, the game application's timeline is first defined so that time parameters can be calculated based on the timeline.
[0113] First, define the game background start time: zeroTime. During this start time, game users enter the game; the specific time depends on each user's progress. zeroTime corresponds to the application start time mentioned above. In practice, when an operation defining the game background start time (equivalent to the initial launch of the virtual world application) is detected, the operation mentioned above for obtaining the virtual world application's start time is executed.
[0114] Next, define the desert object's formation time: `takeTime`. This parameter represents the desert object's formation time within the Teyvat timeline; for example, it has been formed for 500 years, and subsequent occurrences are added to this time. In practice, when an operation related to the desert object's formation time (i.e., the creation operation of the environment object) is detected, the operation mentioned above for obtaining the environment object's creation time is executed. This `takeTime` is the object creation time mentioned above.
[0115] Next, define the time when the game user first enters this desert area: firstIntoTime. For example, this could be the game time when the user drives to the snow mountain. This firstIntoTime is equivalent to the first interaction time when the associated object and the environment object first interact, as mentioned above.
[0116] Next, define the time a game user experiences within this desert area: userAfterTime. This userAfterTime is equivalent to the continuous interaction time mentioned above.
[0117] In addition, the following time algorithm needs to be defined:
[0118] (zeroTime + takeTime + firstIntoTime) + userAfterTime * changing parameters
[0119] The aforementioned time algorithm is used to calculate the time parameters of environmental objects. The changing parameters are the interaction influence factors mentioned above, which can be determined based on the interactive actions of game users.
[0120] Therefore, in this example, a "creation time parameter" is recorded for each plot (i.e., the environment object). The formation time of the current desert plot is determined based on a time algorithm, and the environmental attribute information is determined based on the calculated time parameter. This environmental attribute information then influences the animation presentation. The environmental attribute information can be represented by the sand and gravel softness value.
[0121] The above methods allow for flexible changes to the display state of various environmental objects. For example, taking snow as an example, one year ago, when a user entered the snow mountain, the snow was quite thick. One year later, corresponding to 1k years in the game, the snow has thinned due to the influence of time parameters. Since the time parameters are related to the application's start time, the object creation time of the environmental objects, and the associated interaction time, the game world for each user can differ depending on the interaction duration and method, achieving a personalized experience for each user. This makes the virtual environmental objects in the game world more realistically visually appealing.
[0122] The following code snippet describes the specific method for determining the time parameter:
[0123]
[0124]
[0125]
[0126]
[0127] The code snippet above allows the function to automatically obtain the values of zeroTime, takeTime, firstIntoTime, userAfterTime, and changeParameter (change parameter) mentioned above, thereby dynamically calculating the value of the time parameter. Figure 3 A schematic diagram of the calculation of the time parameters corresponding to the above code segment is shown. Figure 3 It can be seen that by defining four time points—zeroTime, takeTime, firstIntoTime, and userAfterTime—on the time axis, time parameters can be calculated based on each time point and the changing parameters.
[0128] Additionally, in this example, the auxiliary role object mentioned above can also be a climate-related object, such as a rain or snow object; correspondingly, the interaction impact factor can be the rain or snow frequency. Furthermore, if the continuous interaction time further includes multiple continuous interaction time periods, the interaction impact time corresponding to the continuous interaction time is determined by the weighted result of each continuous interaction time period and its corresponding rain or snow frequency. For example,
[0129] The interaction duration is calculated as follows: Rain / snow frequency in the region during time period T1 * duration of time period T1 + Rain / snow frequency in the region during time period T2 * duration of time period T2. This interaction duration reflects the impact of rain and snow on the region.
[0130] In summary, the method described in this example ensures that each game user's virtual world differs depending on the time of their in-game interactions, thus making the state of the virtual world closer to that of the real physical environment.
[0131] Furthermore, the inventors discovered during the development of this invention that traditional display methods require simulating environmental objects using a realistic physics engine, necessitating substantial computational resources and easily causing interface lag. Compared to traditional methods that rely on a physics engine for realistic simulation, the method in this application eliminates the need for complex calculations using a real physics engine, directly displaying environmental objects based on time parameters. This achieves a more realistic visual simulation effect with lower computational load and system resource consumption, while also improving interface smoothness and avoiding lag.
[0132] Figure 4 This invention illustrates a display device for an environmental object according to another embodiment of the present invention, comprising:
[0133] The generation time acquisition module 41 is adapted to acquire the object generation time of the environment object in response to the creation operation of the environment object contained in the virtual world application.
[0134] The interaction time acquisition module 42 is adapted to determine the associated object that has a relationship with the environment object, and to acquire the associated interaction time between the associated object and the environment object.
[0135] Display module 43 is adapted to determine the time parameters of the environment object based on the object generation time and the associated interaction time, and to display the environment object based on the time parameters.
[0136] Optionally, the device further includes:
[0137] The start time acquisition module is adapted to acquire the application start time of the virtual world application in response to the first launch operation of the virtual world application;
[0138] The display module is specifically adapted to: determine the time parameters of the environment object based on the application start time.
[0139] Optionally, the interaction time acquisition module is specifically adapted to:
[0140] Determine the first interaction time when the associated object and the environment object first interact, and the continuous interaction time between the associated object and the environment object;
[0141] An interaction impact factor is determined based on the interaction operations generated during the continuous interaction time, and the interaction impact time corresponding to the continuous interaction time is determined through the interaction impact factor.
[0142] The associated interaction time is determined based on the initial interaction time and the interaction impact time.
[0143] Optionally, the associated objects that are related to the environment object include:
[0144] The target role object that is associated with the environment object and the auxiliary role object that is associated with the target role object;
[0145] Furthermore, the first interaction time is the time when the target character object and the environment object first interact;
[0146] The continuous interaction time includes: a first continuous interaction time between the target character object and the environment object, and a second continuous interaction time between the auxiliary character object and the environment object.
[0147] Optionally, the interaction time acquisition module is specifically adapted to:
[0148] Determine the operation type and / or operation frequency of the interactive operation, and determine the interaction impact factor based on the operation type and / or operation frequency;
[0149] The types of interactive operations include: character skill operations, interactive attack operations, and environmental impact operations.
[0150] Optionally, the display module is specifically adapted to:
[0151] The environmental attribute information of the environmental object is determined based on the time parameter, and the environmental object is displayed through an environmental texture map corresponding to the environmental attribute information.
[0152] Optionally, the display module is specifically adapted to:
[0153] If a collision operation is detected that is triggered against the environment object, the time parameter is obtained and the environmental attribute information of the environment object is determined.
[0154] The method of displaying the environmental object through an environmental texture corresponding to the environmental attribute information includes:
[0155] The collision response state of the environment object is determined based on the environmental attribute information, and the environment object is displayed through the environment map data corresponding to the collision response state.
[0156] Optionally, the environmental objects include: desert environmental objects, swamp environmental objects, snow environmental objects, and mountain environmental objects.
[0157] The specific structure and working principle of each of the above modules can be found in the description of the corresponding part of the method embodiment, and will not be repeated here.
[0158] Another embodiment of this application provides a non-volatile computer storage medium storing at least one executable instruction that can perform the method for displaying an environment object in any of the above method embodiments. Specifically, the executable instruction can be used to cause a processor to perform the corresponding operations in the above method embodiments.
[0159] Figure 4 A schematic diagram of an electronic device according to another embodiment of the present invention is shown. The specific embodiments of the present invention do not limit the specific implementation of the electronic device.
[0160] like Figure 4 As shown, the electronic device may include: a processor 502, a communications interface 506, a memory 504, and a communications bus 508.
[0161] in:
[0162] The processor 502, communication interface 506, and memory 504 communicate with each other via communication bus 508.
[0163] Communication interface 506 is used to communicate with other network elements such as clients or other servers.
[0164] The processor 502 is used to execute program 510, specifically to execute the relevant steps in the above-described embodiment of the display method for the environment object.
[0165] Specifically, program 510 may include program code that includes computer operation instructions.
[0166] Processor 502 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The electronic device may include one or more processors of the same type, such as one or more CPUs; or it may include processors of different types, such as one or more CPUs and one or more ASICs.
[0167] Memory 504 is used to store program 510. Memory 504 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0168] Specifically, program 510 can be used to cause processor 502 to perform the corresponding operations in the above method embodiments.
[0169] The algorithms and displays provided herein are not inherently related to any particular computer, virtual device, or other equipment. Various general-purpose devices can also be used in conjunction with the teachings herein. The required structure for constructing such devices is apparent from the above description. Furthermore, this invention is not directed to any particular programming language. It should be understood that the contents of the invention described herein can be implemented using various programming languages, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of the invention.
[0170] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0171] Similarly, it should be understood that, in order to streamline this disclosure and aid in understanding one or more of the various aspects of the invention, features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the invention. However, this method of disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.
[0172] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0173] Furthermore, those skilled in the art will understand that although some embodiments described herein include certain features but not others included in other embodiments, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, any of the claimed embodiments can be used in any combination.
[0174] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the apparatus according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
[0175] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.
Claims
1. A method for displaying an environment object, comprising: In response to the creation operation of an environment object contained in a virtual world application, the object creation time of the environment object is obtained; Identify the associated objects that are related to the environment object, and obtain the associated interaction time when the associated objects interact with the environment object; Based on the object's generation time and the associated interaction time, the time parameters of the environment object are determined, and the environment object is displayed according to the mapping relationship between the preset time parameters and the display state of the environment object. The step of obtaining the associated interaction time between the associated object and the environment object includes: determining the first interaction time when the associated object and the environment object first interact, and the continuous interaction time between the associated object and the environment object; determining an interaction influence factor based on the interaction operations generated during the continuous interaction time, and determining the interaction influence time corresponding to the continuous interaction time through the interaction influence factor; determining the associated interaction time based on the first interaction time and the interaction influence time; wherein the associated object that has an association relationship with the environment object includes: a target role object that has an association relationship with the environment object and an auxiliary role object that has an association relationship with the target role object; wherein the environment object includes: desert environment objects, swamp environment objects, snowfield environment objects, and mountain environment objects.
2. The method according to claim 1, wherein, Prior to the response to the creation operation of environment objects contained in the virtual world application, the method further includes: In response to the first launch operation of the virtual world application, obtain the application start time of the virtual world application; The step of determining the time parameters of the environment object based on the object's generation time and the associated interaction time specifically includes: determining the time parameters of the environment object by combining the application's start time.
3. The method according to claim 1, wherein, The first interaction time is the time when the target character object and the environment object first interact. The continuous interaction time includes: a first continuous interaction time between the target character object and the environment object, and a second continuous interaction time between the auxiliary character object and the environment object.
4. The method according to claim 3, wherein, The step of determining the interaction impact factor based on the interaction operations generated during the continuous interaction time includes: Determine the operation type and / or operation frequency of the interactive operation, and determine the interaction impact factor based on the operation type and / or operation frequency; The types of interactive operations include: character skill operations, interactive attack operations, and environmental impact operations.
5. The method according to claim 1, wherein, The step of determining the interaction impact factor based on the interaction operations generated during the continuous interaction time includes: Obtain the interactive elements associated with the environmental object, and determine the interactive factor by combining the element attributes of the interactive elements; wherein, the interactive elements include: water element, fire element, lightning element, ice element, grass element, rock element, wind element, and mixed elements composed of at least two elements.
6. The method according to any one of claims 1-5, wherein, The step of displaying the environment object according to the mapping relationship between the preset time parameter and the display state of the environment object includes: The environmental attribute information of the environmental object is determined based on the time parameter, and the environmental object is displayed through an environmental texture map corresponding to the environmental attribute information.
7. The method according to claim 6, wherein, Determining the environmental attribute information of the environmental object based on the time parameter includes: If a collision operation is detected that is triggered against the environment object, the time parameter is obtained and the environmental attribute information of the environment object is determined. The method of displaying the environmental object through an environmental texture corresponding to the environmental attribute information includes: The collision response state of the environment object is determined based on the environmental attribute information, and the environment object is displayed through the environment map data corresponding to the collision response state.
8. A display device for environmental objects, comprising: The generation time acquisition module is adapted to acquire the object generation time of the environment object in response to the creation operation of the environment object contained in the virtual world application. The interaction time acquisition module is adapted to identify associated objects that have a relationship with the environment object, and to acquire the associated interaction time between the associated objects and the environment object. The display module is adapted to determine the time parameters of the environment object based on the object's generation time and the associated interaction time, and to display the environment object according to the mapping relationship between the preset time parameters and the display state of the environment object; Specifically, the interaction time acquisition module is adapted to: determine the initial interaction time when the associated object and the environment object first interact, and the continuous interaction time between the associated object and the environment object; determine an interaction influence factor based on the interaction operations generated during the continuous interaction time, and determine the interaction influence time corresponding to the continuous interaction time through the interaction influence factor; determine the associated interaction time based on the initial interaction time and the interaction influence time; wherein, the associated object that has an association relationship with the environment object includes: a target role object that has an association relationship with the environment object and an auxiliary role object that has an association relationship with the target role object; wherein, the environment object includes: desert environment objects, swamp environment objects, snowfield environment objects, and mountain environment objects.
9. An electronic device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform an operation corresponding to the display method of the environment object as described in any one of claims 1-7.
10. A computer storage medium storing at least one executable instruction that causes a processor to perform an operation corresponding to the display method of an environment object as described in any one of claims 1-7.