Ray interaction method, device, equipment, medium and product of virtual scene
By assigning color and intensity attributes to the ray propagation elements and adjusting the ray propagation process, the problem of limited impact of angle offset adjustment in ray gameplay was solved, achieving richer ray interaction and human-computer interaction effects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD
- Filing Date
- 2026-04-28
- Publication Date
- 2026-06-26
AI Technical Summary
In existing game applications, the angle offset adjustment of the ray-based gameplay has a limited impact, resulting in strong limitations in human-computer interaction and poor richness of interface effects.
Assign attributes such as ray color and ray intensity to ray propagation elements, enrich ray interaction effects by adjusting the attributes of incident rays, and display outgoing rays that meet specific attributes.
It enhances the diversity of ray-based interaction and the efficiency of human-computer interaction, enriching the ray-based interaction effects in virtual scenes.
Smart Images

Figure CN122273121A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of human-computer interaction, and in particular to a ray interaction method, apparatus, device, medium and product for virtual scenes. Background Technology
[0002] The game application currently offers virtual scenes, which include multiple virtual elements. Players can adjust the state of these virtual elements to achieve corresponding interface effects.
[0003] In related technologies, some game applications offer ray-based gameplay. In ray-based gameplay, a ray emitter emits a ray, and a ray receiver receives the emitted ray. Players can adjust the angle of the ray receiver to reflect or refract the emitted ray in different directions, thus achieving the effect of adjusting the angle of the emitted ray.
[0004] However, the impact of the current angle offset adjustment is limited, which makes the human-computer interaction more limited and also leads to problems such as poor richness of interface effects. Summary of the Invention
[0005] This application provides a ray interaction method, apparatus, device, medium, and product for virtual scenes. It can assign ray attributes such as ray color and ray intensity to ray propagation elements, thereby allowing for richer adjustment of the incident rays received by the ray propagation elements through the first ray attribute corresponding to the ray propagation element, to display a first outgoing ray that satisfies the first ray attribute, thus enriching the ray interaction effects in the virtual scene. The technical solution is as follows.
[0006] On the one hand, a ray-based interaction method for a virtual scene is provided, the method comprising: The system receives an element configuration operation in the virtual scene, the element configuration operation being used to enable a ray propagation element in the virtual scene, the ray propagation element corresponding to a first ray attribute; wherein, the ray attribute includes one or more of ray color and ray intensity; The first incident ray received by the ray propagation element is displayed, and the first incident ray corresponds to the second ray attribute; This displays a first outgoing ray emitted from the ray propagation element, the first outgoing ray being a ray that satisfies the first ray property after the second ray property of the first incident ray is adjusted.
[0007] On the other hand, a ray-based interaction device for a virtual scene is provided, the device comprising: A receiving module is configured to receive element configuration operations in the virtual scene, the element configuration operations being used to enable ray propagation elements in the virtual scene, the ray propagation elements corresponding to a first ray attribute; wherein, the ray attribute includes one or more of ray color and ray intensity; The display module is used to display the first incident ray received by the ray propagation element, and the first incident ray corresponds to the second ray attribute; The display module is further configured to display a first outgoing ray emitted from the ray propagation element, wherein the first outgoing ray is a ray that satisfies the first ray attribute after the second ray attribute of the first incident ray is adjusted.
[0008] In an optional embodiment, the receiving module is further configured to receive an element creation operation that creates the ray propagation element in the virtual scene; and, if the virtual scene includes the ray propagation element, to receive a ray configuration operation for the ray propagation element, the ray configuration operation being configured to configure the first ray attribute for the ray propagation element; wherein the ray propagation element includes one or more of a ray emitting element and a ray receiving element, the ray emitting element being a virtual element that performs ray emitting in the virtual scene, and the ray receiving element being a virtual element that receives incident rays in the virtual scene and performs optical propagation processing on the incident rays.
[0009] In an optional embodiment, the receiving module is further configured to receive the element creation operation for creating the ray propagation element in a first scene area of the virtual scene, the first scene area including one or more of virtual ground, virtual sky, and virtual objects; and display the ray propagation element in the first scene area of the virtual scene based on the element creation operation.
[0010] In an optional embodiment, the display module is further configured to, when the ray propagation element receives the first incident ray emitted along the first direction, display the first emitted ray emitted from the ray propagation element along the second direction based on the first incident ray and the ray propagation rate in the first ray property; wherein the second direction is a direction obtained by adjusting the first direction with the ray propagation rate, and the ray propagation rate includes one or more of ray reflectivity, ray refractive index, and ray deflection.
[0011] In an optional embodiment, the display module is further configured to display, after the first incident ray of the second ray attribute passes through the first ray propagation element, the first outgoing ray of the first ray attribute emitted from the first ray propagation element; wherein the first ray propagation element is configured to replace the second ray attribute with the first ray attribute; after the first incident ray of the second ray attribute passes through the second ray propagation element, the first outgoing ray of the third ray attribute emitted from the second ray propagation element is displayed; wherein the second ray propagation element is configured to superimpose the first ray attribute on the second ray attribute to obtain the third ray attribute.
[0012] In an optional embodiment, the display module is further configured to display, after the first incident ray of the first color passes through the first ray propagation element, the first outgoing ray of the second color emitted from the first ray propagation element; wherein, the first ray attribute corresponding to the first ray propagation element includes the second color; and after the first incident ray of the first color passes through the second ray propagation element, the first outgoing ray of the third color emitted from the second ray propagation element is displayed; wherein, the first ray attribute corresponding to the second ray propagation element includes the second color, and the third color is a color obtained by superimposing the second color on the first color.
[0013] In an optional embodiment, the display module is further configured to display, after the first incident ray of first intensity passes through the first ray propagation element, the first outgoing ray of second intensity emitted from the first ray propagation element; wherein, the first ray attribute corresponding to the first ray propagation element includes the second intensity; and after the first incident ray of first intensity passes through the second ray propagation element, the first outgoing ray of third intensity emitted from the second ray propagation element is displayed; wherein, the first ray attribute corresponding to the second ray propagation element includes the second intensity, and the third intensity is an intensity obtained by superimposing the second intensity on the first intensity.
[0014] In an optional embodiment, the display module is further configured to display at least two incident rays received by the ray propagation element, the at least two incident rays including the first incident ray; display a second outgoing ray emitted from the ray propagation element; and a fourth ray attribute corresponding to the second outgoing ray is determined based on the ray attributes corresponding to the at least two incident rays respectively.
[0015] In an optional embodiment, the display module is further configured to overlay the ray attributes corresponding to the at least two incident rays respectively, and display the second outgoing ray emitted from the ray propagation element; and display the second outgoing ray emitted from the ray propagation element based on the ray attribute corresponding to the at least one incident ray with the highest attribute priority among the at least two incident rays.
[0016] In an optional embodiment, the display module is further configured to superimpose the ray colors corresponding to the at least two incident rays to display the second outgoing ray emitted from the ray propagation element, represented by the superimposed color, wherein the superimposed color is the color obtained by superimposing the ray colors corresponding to the at least two incident rays; and to superimpose the ray intensities corresponding to the at least two incident rays to display the second outgoing ray emitted from the ray propagation element, represented by the superimposed intensity, wherein the superimposed intensity is the intensity obtained by superimposing the ray intensities corresponding to the at least two incident rays.
[0017] In an optional embodiment, the display module is further configured to, when a second incident ray in the virtual scene intersects with a first virtual element, display a first element influence result corresponding to the first virtual element based on a fifth ray attribute corresponding to the second incident ray, wherein the first element influence result is used to characterize the influence of the fifth ray attribute on the first virtual element; and when a third incident ray in the virtual scene intersects with the first virtual element, display a second element influence result corresponding to the first virtual element based on a sixth ray attribute corresponding to the third incident ray, wherein the second element influence result is used to characterize the influence of the sixth ray attribute on the first virtual element; wherein the sixth ray attribute is different from the fifth ray attribute, and the first element influence result and the second element influence result are different.
[0018] In an optional embodiment, the display module is further configured to: if the second incident ray intersects with the first virtual object in the virtual scene, and the fifth ray attribute corresponding to the second incident ray is used to weaken the first object attribute of the first virtual object, display the object attribute weakening result corresponding to the first virtual object; if the third incident ray intersects with the first virtual object, and the sixth ray attribute is used to enhance the first object attribute of the first virtual object, display the object attribute enhancement result corresponding to the first virtual object.
[0019] In an optional embodiment, the display module is further configured to display the first virtual effect at the first interactive element if the second incident ray intersects with the first interactive element in the virtual scene and the fifth ray attribute is used to present the first virtual effect; and to display the second virtual effect at the first interactive element if the third incident ray intersects with the first interactive element and the sixth ray attribute is used to present the second virtual effect.
[0020] In an optional embodiment, the display module is further configured to, when the element corresponding to the ray propagation element is enabled, display the first emitted ray emitted from the ray propagation element based on the first incident ray; and when the element corresponding to the ray propagation element is disabled, display an emission line segment starting from the first ray emitting element and ending at the ray propagation element; the first ray emitting element is a virtual element that emits the first incident ray, and the emission line segment is used to characterize the trajectory of the first incident ray in the virtual scene.
[0021] In an optional embodiment, the receiving module is further configured to, in response to receiving an element acquisition operation, display at least two candidate propagation elements; wherein different candidate propagation elements correspond to different ray attributes; and receive an element selection operation for the ray propagation element among the at least two candidate propagation elements.
[0022] In an optional embodiment, the display module is further configured to display the element unlocking result corresponding to the second virtual element based on the ray attribute of the first emitted ray when the first emitted ray intersects with the second virtual element in the virtual scene. The element unlocking result is used to characterize the influence of the first emitted ray on the state of the second virtual element. Specifically, if the ray attribute of the first emitted ray meets the element unlocking condition, the element unlocking success result corresponding to the second virtual element is displayed; or, if the ray attribute of the first emitted ray does not meet the element unlocking condition, the element unlocking failure result corresponding to the second virtual element is displayed.
[0023] In an optional embodiment, the receiving module is further configured to acquire a color sequence corresponding to the virtual scene, the color sequence being used to sequentially represent at least two ray colors that can be displayed within the virtual scene; based on the ray color of the incident ray received by the ray propagation element at a first time moment, the first base result corresponding to the first time moment is represented in binary form according to the color sequence; based on the ray color of the incident ray received by the ray propagation element at a second time moment, the second binary result corresponding to the second time moment is represented in binary form according to the color sequence; and based on the first base result and the second binary result, the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment is represented.
[0024] In an optional embodiment, the receiving module is further configured to, for a first ray color in the color sequence, if the incident ray received by the ray propagation element at the first moment includes the first ray color, and the first ray color is represented by a first value; if the incident ray received by the ray propagation element at the first moment does not include the first ray color, and the first ray color is represented by a second value; and generate a first base result corresponding to the first moment represented by one or more forms of the first value and the second value, according to the color arrangement order of at least two ray colors in the color sequence.
[0025] In an optional embodiment, the receiving module is further configured to perform an XOR operation on the first base result and the second binary result to obtain a processing result; perform a two's complement operation on the processing result to obtain a two's complement result; and perform a least significant bit operation on the processing result and the two's complement result to determine the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment.
[0026] In an optional embodiment, the receiving module is further configured to perform a bitwise AND operation on the processing result and the two's complement result to obtain the operation result; and based on the least significant bit in the operation result, determine the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment.
[0027] In an optional embodiment, the receiving module is further configured to: receive a first incident ray on the first outer surface of the ray propagation element, and, when the ray propagation element generates a refracted ray for the first incident ray, obtain the refraction direction corresponding to the refracted ray; simulate emitting a first detection ray from the outside of the ray propagation element to the second outer surface of the ray propagation element along the opposite direction corresponding to the refraction direction, wherein the second outer surface is opposite to the first outer surface; and obtain the detection intersection point between the first detection ray and the second outer surface as the refraction intersection point of the refracted ray.
[0028] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the ray-based interaction method based on a virtual scene as described in any of the embodiments of this application above.
[0029] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set, or instruction set is stored therein, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the ray-based interaction method for virtual scenes as described in any of the embodiments of this application above.
[0030] On the other hand, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the ray-based interaction method based on any of the above embodiments.
[0031] The beneficial effects of the technical solutions provided in this application include at least the following: When a ray propagation element with a corresponding first ray attribute is enabled in a virtual scene, if a first incident ray with a corresponding second ray attribute passes through the ray propagation element, the second ray attribute of the first incident ray is adjusted according to the first ray attribute, thereby displaying the first outgoing ray from the ray propagation element that satisfies the first ray attribute. Instead of solely considering the influence of the ray propagation element's orientation and position on the passing ray, ray propagation elements are assigned ray attributes such as ray color and ray intensity. Therefore, through the first ray attribute corresponding to the ray propagation element, the incident ray received by the ray propagation element (such as the first incident ray) can be adjusted more richly, thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a schematic diagram of a computer system provided in an exemplary embodiment of this application; Figure 2 This is an interactive schematic diagram of a ray-based interaction method for virtual scenes provided in an exemplary embodiment of this application; Figure 3 This is a flowchart of a ray-based interaction method for virtual scenes provided in an exemplary embodiment of this application; Figure 4 This is a flowchart of a ray-based interaction method for virtual scenes provided in another exemplary embodiment of this application; Figure 5 This is a schematic diagram of an interface for performing an element selection operation on a ray propagation element among at least two candidate propagation elements, provided by another exemplary embodiment of this application; Figure 6 This is a schematic diagram of an interface for placing ray propagation elements after selecting a first scene area, as provided in an exemplary embodiment of this application. Figure 7 This is a schematic diagram of an interface showing a first emitted ray from a ray propagation element, provided by an exemplary embodiment of this application. Figure 8 This is a schematic diagram of an interface showing a first emitted ray from a ray propagation element, provided by another exemplary embodiment of this application; Figure 9This is a schematic diagram of an interface for displaying emission lines based on the disabled state of an element, provided in an exemplary embodiment of this application. Figure 10 This is a flowchart of receiving a ray configuration operation for a ray propagation element as an element configuration operation, provided in an exemplary embodiment of this application; Figure 11 This is a schematic diagram of an interface provided in an exemplary embodiment of the present application, in which an element triggering operation is performed on a ray propagation element to display an element configuration box and then perform an attribute filling operation. Figure 12 This is a flowchart of a method for replacing a second ray attribute with a first ray propagation element using a first ray attribute, provided by an exemplary embodiment of this application. Figure 13 This is a schematic diagram of an interface for color replacement implemented through a first ray propagation element, provided in an exemplary embodiment of this application. Figure 14 This is a schematic diagram of an interface where intensity replacement is achieved through a first ray propagation element, provided in an exemplary embodiment of this application. Figure 15 This is a flowchart of a method for obtaining a third ray attribute by superimposing a first ray attribute on a second ray attribute using a second ray propagation element, provided by an exemplary embodiment of this application. Figure 16 This is a schematic diagram of an interface where color overlay is achieved through a second ray propagation element, provided in an exemplary embodiment of this application. Figure 17 This is a schematic diagram of an interface where intensity superposition is achieved through a first ray propagation element, provided in an exemplary embodiment of this application. Figure 18 This is a flowchart of a method for displaying a second emitted ray from a ray propagation element, provided by an exemplary embodiment of this application; Figure 19 This is a schematic diagram of an interface for displaying color overlay effects provided in an exemplary embodiment of this application; Figure 20 This is a schematic diagram of an interface providing an exemplary embodiment of the present application to display the intensity superposition effect; Figure 21 This is a schematic diagram of the interface of the ray with the highest display attribute priority provided in an exemplary embodiment of this application; Figure 22 This is a flowchart of a method for displaying the effect of corresponding elements, provided in an exemplary embodiment of this application; Figure 23 This is a schematic diagram of an interface where the second incident ray and the first virtual element do not intersect, provided in an exemplary embodiment of this application. Figure 24This is a schematic diagram of an interface where the second incident ray intersects with the first virtual element, provided in an exemplary embodiment of this application; Figure 25 This is an interface diagram illustrating how the fifth ray attribute, provided in an exemplary embodiment of this application, is used to reduce the object lifetime of a first virtual object; Figure 26 This is a technical flow interaction diagram of a ray-based gameplay provided in an exemplary embodiment of this application; Figure 27 This is a schematic diagram of ray reflection provided in an exemplary embodiment of this application; Figure 28 This is a schematic diagram of ray refraction provided in an exemplary embodiment of this application; Figure 29 This is a schematic diagram illustrating the principle of the refraction effect of rays on the first outer surface of the ray propagation element in a virtual scene provided by an exemplary embodiment of this application; Figure 30 This is a comparative diagram of related technologies and embodiments of this application provided in an exemplary embodiment; Figure 31 This is a structural block diagram of a ray-based interactive device based on a virtual scene provided in an exemplary embodiment of this application; Figure 32 This is a structural block diagram of an electronic device provided in an exemplary embodiment of this application. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0035] First, a brief introduction to the terms used in the embodiments of this application will be given.
[0036] Virtual scene: A virtual scene is a scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of a real scene, a semi-simulated / semi-fictional scene, or a purely fictional scene. A virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene; this application does not limit this. The following embodiments use a three-dimensional virtual scene as an example.
[0037] Virtual models are models used in virtual scenes to mimic real-world scenes. For example, a virtual model occupies a certain volume within a virtual scene. Examples of virtual models include: terrain models, building models, plant and animal models, virtual prop models, virtual vehicle models, and virtual object models. For instance, terrain models include: ground, mountains, rivers, rocks, steps, etc.; building models include: houses, walls, containers, and fixed facilities inside buildings: tables, chairs, cabinets, beds, etc.; plant and animal models include: trees, flowers, birds, etc.; virtual prop models include: virtual attack tools, first-aid kits, airdrops, etc.; virtual vehicle models include: cars, ships, helicopters, etc.; and virtual object models include: people, animals, anime characters, etc.
[0038] Virtual characters / objects: These refer to movable objects in a virtual scene. These movable objects can be virtual objects, virtual animals, anime characters, etc., such as people, animals, plants, oil drums, walls, and stones displayed in a 3D virtual scene. Optionally, virtual objects are 3D models created based on animation skeletal technology. Each virtual object has its own shape and volume in the 3D virtual scene, occupying a portion of the space within the 3D virtual scene.
[0039] In related technologies, some game applications offer ray-based gameplay. In this mode, a ray emitter emits a ray, which is then received by a ray receiver. Players can adjust the angle of the receiver to reflect or refract the emitted ray in different directions, effectively adjusting the angle of the emitted ray. However, the current effect of this angle adjustment is limited, which restricts human-computer interaction and results in a lack of richness in the interface.
[0040] This application introduces a ray-based interaction method for virtual scenes. This method assigns ray attributes, such as ray color and intensity, to ray-propagating elements. By adjusting the first ray attribute corresponding to the ray-propagating element, the method can more richly adjust the incident ray received by the ray-propagating element to display a first outgoing ray that satisfies the first ray attribute, thus enriching the ray-based interaction effects in the virtual scene. The ray-based interaction method for virtual scenes proposed in this application can be applied to various object interaction scenarios supporting virtual scenes, such as multiplayer battle games, virtual shooting games, virtual reality games, and augmented reality games; it is not limited here.
[0041] Figure 1 This is a schematic diagram of a computer system provided in an exemplary embodiment of this application. The computer system 100 includes: a first terminal 110, a server 120, and a second terminal 130.
[0042] The first terminal 110 has a client 111 installed and running that supports virtual scenes. Optionally, the client 111 can be any application involving account interaction functions, such as a virtual game program, social media program, multimedia playback software, online shopping platform, map navigation program, 3D modeling software, virtual reality (VR) program, mixed reality (MR) program, augmented reality (AR) program, etc. In this embodiment of the application, the client 111 is a puzzle adventure game program as an example.
[0043] When the first terminal runs client 111, the user interface of client 111 is displayed on the screen of the first terminal 110. This client can be a puzzle game client. The first terminal 110 is the terminal used by the first user 112. The first user 112 uses the first terminal 110 to display a virtual scene, which provides one or more puzzles. The first user 112 solves the puzzles in the virtual scene provided by the puzzle game through intellectual activities such as careful observation and logical reasoning.
[0044] The second terminal 130 has a client 131 installed and running that supports virtual scenes. This client 131 can be a puzzle-adventure game program. When the second terminal 130 runs the client 131, the user interface of the client 131 is displayed on the screen of the second terminal 130. This client can be a client of the same puzzle game. The second terminal 130 is the terminal used by the second user 132. The second user 132 uses the second terminal 130 to display virtual scenes, which provide one or more puzzles. The second user 132 can also solve the puzzles in the virtual scene provided by the puzzle game through careful observation, logical reasoning, and other intellectual activities.
[0045] In some embodiments, the first user 112 logs in with a first account through the first terminal 110; the second user 132 logs in with a second account through the second terminal 130.
[0046] Optionally, the first user 112 and the second user 132 can each perform the puzzle-solving process through their respective terminals (e.g., independently and without interference); or, the virtual scene displayed on the first terminal 110 operated by the first user 112 and the virtual scene displayed on the second terminal 130 operated by the second user 132 are a joint scene, which allows the first user 112 and the second user 132 to jointly perform the puzzle-solving process in the virtual scene, etc. Of course, more users can also participate in the puzzle-solving process by operating their respective terminals, which is not limited here.
[0047] In some embodiments, the following description is given as an example of a first user 112 operating a first terminal 110 to perform a puzzle-solving process within a displayed virtual scene.
[0048] Optionally, the virtual scene provides one or more puzzles. Taking the ray puzzle as an example, the ray puzzle is a logical challenge designed around the propagation of light. Players (such as the first user 112) need to adjust the ray propagation elements (such as virtual mirrors, virtual prisms, virtual converters, etc.) themselves and use the rules of optical propagation (such as reflection, refraction, absorption, etc.) so that the incident ray passing through the ray propagation elements can propagate along the specified path, and finally activate the task completion elements in the virtual scene to meet the decryption conditions.
[0049] In this embodiment of the application, the first user 112 can perform element configuration operations in the virtual scene. By enabling the ray propagation element, the first ray attribute corresponding to the ray propagation element is used to assist in the ray transformation process, thereby achieving the purpose of ray influence from one or more ray attribute dimensions such as ray color and ray intensity.
[0050] In a schematic manner, when a ray propagation element receives a first incident ray with a corresponding second ray attribute, the second ray attribute of the first incident ray is influenced by the first ray attribute of the ray propagation element. Thus, while realizing the ray propagation process based on the first incident ray, the first outgoing ray emitted from the ray propagation element is displayed on the interface of the first terminal 110 by comprehensively considering the influence of the ray attribute, and the first outgoing ray satisfies the first ray attribute corresponding to the ray propagation element it passes through.
[0051] Taking ray attributes including ray color as an example; if the first ray attribute corresponding to the ray propagation element includes "change the ray to green", then the first incident ray, which was originally yellow, will be displayed as a green first outgoing ray emitted from the ray propagation element on the interface of the first terminal 110 after passing through the ray propagation element; or, if the first ray attribute corresponding to the ray propagation element includes "superimpose green on the ray it passes through", then the first incident ray, which was originally yellow, will be displayed as a yellow-green (yellow + green) first outgoing ray emitted from the ray propagation element on the interface of the first terminal 110 after passing through the ray propagation element, etc.
[0052] Taking ray attributes including ray intensity as an example; if the first ray attribute corresponding to the ray propagation element includes "enhance the intensity of the ray" (such as the intensity of the ray being visualized through the thickness of the ray, such as the greater the ray intensity, the thicker the ray), then the first incident ray, which was originally of weaker intensity, will be displayed as a first outgoing ray with stronger intensity emitted from the ray propagation element on the interface of the first terminal 110 after passing through the ray propagation element; or, if the first ray attribute corresponding to the ray propagation element includes "modify to 20 ray intensities", then the first incident ray, which was originally of 10 ray intensities, will be displayed as a first outgoing ray with 20 ray intensities emitted from the ray propagation element on the interface of the first terminal 110, and so on.
[0053] Optionally, the puzzle-solving process of the second user 132, as well as the joint puzzle-solving process of the first user 112 and the second user 132, can refer to the above content and will not be repeated here.
[0054] Optionally, the clients installed on the first terminal 110 and the second terminal 130 are the same, or the clients installed on the two terminals are the same type of client on different operating system platforms (Android or iOS). The first terminal 110 can refer to one of multiple terminals, and the second terminal 130 can refer to another of multiple terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 may be the same or different, and these device types include at least one of: smartphones, tablets, e-book readers, MP3 players, MP4 players, laptops, and desktop computers. The following embodiments use smartphones as examples.
[0055] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal (i.e., the user plays against the artificial intelligence), or there may be six, eight, or more terminals. This application does not limit the number of terminals or the type of device.
[0056] Figure 1 Only two terminals are shown in the diagram, but in different embodiments, multiple other terminals 140 can access the server 120. Optionally, one or more terminals 140 may also be terminals corresponding to developers, on which a development and editing platform for clients supporting virtual scenes is installed. Developers can edit and update the client on the terminal 140 and transmit the updated client installation package to the server 120 via wired or wireless network. The first terminal 110 and the second terminal 130 can download the client installation package from the server 120 to update the client.
[0057] The first terminal 110, the second terminal 130, and other terminals 140 are connected to the server 120 via a wireless network or a wired network.
[0058] Server 120 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 120 is used to provide backend services for clients supporting 3D virtual scenes (clients for simulation management games / virtual farm games). Optionally, server 120 undertakes the main computing work, and the terminal undertakes the secondary computing work; or, server 120 undertakes the secondary computing work, and the terminal undertakes the main computing work; or, server 120 and the terminal use a distributed computing architecture for collaborative computing.
[0059] In an illustrative example, server 120 includes processor 122, user account database 123, battle service module 124, and user-facing input / output interface (I / O interface) 125. Processor 122 loads instructions stored in server 120 and processes data in user account database 123 and battle service module 124. User account database 123 stores data about user accounts used by first terminal 110, second terminal 130, and other terminals 140, such as user account avatars, nicknames, combat power indices, and the service area where the user account is located. Battle service module 124 provides multiple battle rooms for users to play against each other. User-facing I / O interface 125 establishes communication and exchanges data with first terminal 110 and / or second terminal 130 via wireless or wired network.
[0060] Taking a puzzle-adventure game as an example, server 120 is the game's backend server, used to provide attribute adjustment services. For instance, if the first user 112 independently operates the first terminal 110 to perform a puzzle-solving process, and if the first user 112 enables a ray propagation element in the virtual scene based on element configuration, and the ray propagation element corresponds to a first ray attribute, and the ray propagation element receives a first incident ray with a corresponding second ray attribute, server 120 can adjust the second ray attribute based on the first ray attribute. This adjustment considers how the first incident ray achieves its emission effect after passing through the ray propagation element. The emission effect includes one or more of the following: emission direction, ray attributes after emission (such as emission color, emission intensity, etc.). For example, considering the incident direction of the first incident ray, the emission direction of the first outgoing ray is determined, and the first ray attribute influences the second ray attribute to determine the ray attribute after emission (such as replacing the second ray attribute with the first ray attribute, or superimposing the first ray attribute on the second ray attribute, etc.). This allows server 120 to determine the emission effect of the first outgoing ray corresponding to the first incident ray. Optionally, server 120 sends the emission effect to terminal 110 so that terminal 110 renders and displays the first emitted ray emitted from the ray propagation element as presented in the emission effect on the interface.
[0061] Similarly, taking a puzzle adventure game as an example, server 120 is the game's backend server for the puzzle adventure game, used to provide attribute adjustment services; the puzzle-solving process executed by the second user 132 through the second terminal 130, and the process of the first user 112 and the second user 132 jointly solving puzzles through their respective terminals can be referred to the above content, and will not be elaborated here.
[0062] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant regions. For example, the operational data and account information involved in this application were obtained with full authorization.
[0063] To further clarify, this application may display a prompt interface, pop-up window, or output voice prompts before and during the collection of user-related data (e.g., account information, historical operation data, and real-time operation data involved in this application). These prompt interfaces, pop-ups, or voice prompts are used to inform the user that their relevant data is being collected. This ensures that the application only begins the steps for collecting user-related data after receiving confirmation from the user regarding the prompt interface or pop-up window; otherwise (i.e., without receiving confirmation from the user), the steps for collecting user-related data end, meaning no user-related data is collected. In other words, all user data collected in this application is collected with the user's consent and authorization, and the collection, use, and processing of relevant user data must comply with the relevant laws, regulations, and standards of the relevant regions.
[0064] In the embodiments of the ray-based interaction method based on virtual scenes described in this application, taking the execution of the ray-based interaction method based on virtual scenes within a puzzle adventure game as an example, the method employs the following... Figure 2 The ray interaction mechanism shown, in the virtual scene used to provide puzzle-solving functions, if an element configuration operation is received, displays the ray propagation element to be started, such as a virtual mirror 210; the virtual mirror 210 corresponds to the first ray attribute, and the ray propagation element is used to affect the performance of the ray passing through the virtual mirror 210 through the first ray attribute. The ray attribute includes one or more of the ray color and ray intensity.
[0065] If the virtual mirror 210 receives the first incident ray 220, and if the first incident ray 220 is emitted by a virtual light source (such as a virtual ray cannon in a virtual scene) or propagated by other ray propagation elements (such as reflections from other virtual mirrors), and the first incident ray 220 corresponds to a second ray attribute, the second ray attribute is affected by the first ray attribute corresponding to the virtual mirror 210, thereby displaying the first outgoing ray 230 emitted from the virtual mirror 210. For example: if the first incident ray 220 is yellow, meaning the second ray attribute includes yellow (e.g., represented as an unfilled arrow in the interface), and the first incident ray 220 changes to green after passing through the virtual mirror 210, then the green first outgoing ray 230 emitted from the virtual mirror 210 is displayed (e.g., represented as a black-filled arrow in the interface).
[0066] Optionally, the first outgoing ray 230 can affect the game outcome of a puzzle-adventure game. As shown in interface 201, the yellow first incoming ray 220 cannot unlock the virtual door 240 in the virtual scene; when the yellow first incoming ray 220 passes through the virtual mirror 210, it turns green to display the green first outgoing ray 230 emitted from the virtual mirror 210. When the green first outgoing ray 230 is projected onto the virtual door 240 in the virtual scene, it can unlock the virtual door 240, thereby displaying the content shown in interface 202, where the virtual door 240 changes from a closed style to an open style, etc. The color unlocking here is only an illustrative example and is not limited.
[0067] The ray-based interaction method based on virtual scenes proposed in this application can be applied to various ray-based interaction scenarios that support virtual scenes, such as puzzle adventure games, multiplayer battle games, virtual shooting scenarios, virtual reality scenarios, and augmented reality scenarios, without limitation here.
[0068] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; it assigns ray attributes such as ray color and intensity to the ray propagation element. Therefore, by using the first ray attribute corresponding to the ray propagation element, the incident ray received by the ray propagation element (such as the first incident ray) can be adjusted more comprehensively, thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements. Based on the above-described terminology and application scenarios, the ray-based interaction method for virtual scenes provided in this application will be explained, taking the application of this method to a first terminal as an example; for example... Figure 3 As shown, the method includes the following steps 310 to 330.
[0069] Step 310: Receive element configuration operations in the virtual scene.
[0070] In illustrative terms, players perform interface interaction processes through a first terminal. The virtual scene is a two-dimensional or three-dimensional virtual scene that the first terminal supports running. Players can engage in first-person perspective interaction processes in the virtual scene, or control virtual objects to engage in first-person or third-person perspective interaction processes in the virtual scene, etc.
[0071] Optionally, the first terminal is a mobile terminal, computer terminal, etc., and the virtual scene is a scene running within a program installed on the first terminal. The program here includes one or more of the following: application, mini-program, and web application; or, the first terminal is a head-mounted display terminal (such as a head-mounted monitor), and the virtual scene is a virtual scene supported by the head-mounted monitor, such as a scene simulated from the real world.
[0072] The element configuration operation is used to enable ray propagation elements in the virtual scene, and the ray propagation elements correspond to the first ray attribute.
[0073] Indicatively, a virtual scene includes virtual elements, which include one or more of the following: virtual props, virtual buildings, virtual obstacles, virtual plants, virtual pets, etc.; ray propagation elements are virtual elements in a virtual scene used to emit and / or propagate rays, such as virtual light sources (e.g., virtual light bulbs, virtual laser cannons, virtual energy balls, etc.), virtual mirrors, virtual prisms, virtual converters, etc.
[0074] Among them, the ray propagation element corresponds to the first ray attribute. The ray propagation element is used to influence the behavior of the ray passing through the ray propagation element through the first ray attribute. The ray attribute includes one or more of the following: ray color and ray intensity.
[0075] Optionally, if the first ray attribute includes ray color, it means that if an incident ray passes through a ray propagation element, the ray color included in the first ray attribute will affect the color of the incident ray; or, if the first ray attribute includes ray intensity, it means that if an incident ray passes through a ray propagation element, the ray intensity included in the first ray attribute will affect the intensity of the incident ray, etc.
[0076] In some embodiments, the element configuration operation is an operation performed on ray propagation elements in the virtual scene that have not yet been set.
[0077] For illustrative purposes, ray propagation elements are virtual elements that have not yet been set in the virtual scene (such as a virtual scene with no ray propagation elements at all, or a virtual scene with some ray propagation elements that players can continue to customize and place other virtual elements, etc.).
[0078] Optionally, the ray propagation element to be set may correspond to a first ray attribute in advance (such as the ray attribute configured by the system default, or the ray attribute configured by the player in advance). In this case, the element configuration operation is used to set the ray propagation element in the virtual scene so that the ray propagation element with the first ray attribute is in the activated state.
[0079] Alternatively, the ray propagation element that needs to be set may have default ray attributes or no ray attributes yet. In this case, the element configuration operation includes not only setting the ray propagation element in the virtual scene, but also custom setting the required ray attributes for the ray propagation element (i.e. setting the first ray attribute), so that the ray propagation element has the first ray attribute and is in the activated state.
[0080] In other words, the ray propagation elements required by the player are set in the virtual scene so that the ray propagation elements participate in the ray propagation process, thereby affecting the performance of the ray passing through the ray propagation elements through the first ray attribute.
[0081] For example, the virtual scene only includes virtual elements such as virtual treasure chests and virtual buildings, and does not include ray propagation elements (such as virtual mirrors); players can place virtual mirrors in the virtual scene that are pre-configured with a first ray attribute (such as the ray attribute configured by the system default, or the ray attribute pre-configured by the player) to realize element configuration operations. The activated virtual mirror can receive incident rays and emit outgoing rays through light propagation.
[0082] Alternatively, the virtual scene may include some pre-set ray propagation elements (such as some pre-existing virtual mirrors or some virtual mirrors that the player has previously set up); the player can place additional virtual mirrors with pre-defined first ray attributes at the desired locations in the virtual scene (or the player can place additional virtual mirrors at the desired locations in the virtual scene and customize the first ray attributes), thereby participating in the ray propagation process with the help of the additional virtual mirrors, etc.
[0083] In some embodiments, element configuration operations are operations performed on ray propagation elements that have been set in the virtual scene.
[0084] Schematic, a ray propagation element is a virtual element that has been set up in the virtual scene, such as a ray propagation element that has been pre-set in the virtual scene; and / or a ray propagation element that has been placed manually by the player; in this case, the element configuration operation is used to ensure that the ray propagation element in the virtual scene has the first ray attribute and is in the activated state.
[0085] Optionally, the ray propagation element targeted by the element configuration operation has a first ray attribute, and the element configuration operation is used to activate the ray propagation element with the first ray attribute; or, the ray propagation element targeted by the element configuration operation has a default ray attribute or has not yet been configured with a ray attribute, and the element configuration operation is used to configure the ray propagation element with the first ray attribute required by the player and activate the ray propagation element, etc.
[0086] In other words, when there are ray propagation elements in the virtual scene, set the first ray attribute for the ray propagation elements and / or start the ray propagation elements so that the ray propagation elements participate in the ray propagation process, thereby affecting the behavior of the rays passing through the ray propagation elements through the first ray attribute.
[0087] For example, a virtual mirror is pre-installed in the virtual scene (either pre-set or placed by the player). The virtual mirror corresponds to the first ray attribute (pre-configured by default or configured by the player). Before the element configuration operation, the virtual mirror is not yet usable (e.g., the virtual mirror is covered with dust). The element configuration operation activates the virtual mirror, allowing it to receive incident rays and emit outgoing rays through light propagation methods (e.g., light reflection, light refraction). For example, the element configuration operation is the operation of wiping the dust off the virtual mirror, so that the virtual mirror can participate in the ray propagation process.
[0088] Alternatively, a virtual mirror may be pre-defined in the virtual scene (either pre-set or placed by the player). The virtual mirror may correspond to a default ray attribute (or may not yet correspond to a ray attribute). Before the element configuration operation, the virtual mirror may not yet meet the player's needs (the player needs the first ray attribute). Based on the element configuration operation, the first ray attribute is configured for the virtual mirror and the virtual mirror is enabled, so that the virtual mirror can receive incident rays and emit outgoing rays through light propagation.
[0089] Step 320: Display the first incident ray received by the ray propagation element.
[0090] In a schematic representation, the first incident ray is a ray existing within the virtual scene. Optionally, the virtual scene includes one or more rays, which may be emitted by a virtual light source or propagated by other ray-propagating elements.
[0091] Optionally, the ray that passes through the ray propagation element is called the first incident ray. The first incident ray is one or more incident rays that enter the ray propagation element. Taking any one of the rays that enters the ray propagation element as an example, the first incident ray is taken as the first incident ray.
[0092] In a schematic way, the first incident ray is the incident ray emitted by a virtual light source (such as a virtual light bulb, virtual laser cannon, etc.) in the virtual scene and incident on the ray propagation element. For example, if the ray propagation element happens to be in the direction of the ray emission, the ray propagation element will receive the first incident ray.
[0093] Alternatively, the first incident ray is the ray emitted by the virtual light source that propagates through other ray propagation elements (such as other virtual mirrors, etc.) (such as reflection, refraction, scattering, etc.) and then enters the ray propagation element; for example, the ray propagation element happens to be located in the propagation direction (such as the reflection direction, etc.), so that the ray propagation element receives the first incident ray, etc., without being limited here.
[0094] The first incident ray corresponds to the second ray property.
[0095] In illustrative terms, the second ray attribute corresponding to the first incident ray is used to characterize the ray performance information of the first incident ray itself, such as color information, intensity information, etc., representing the first incident ray.
[0096] Optionally, the attribute of the second ray corresponding to the first incident ray is determined based on the ray attribute corresponding to the virtual light source. For example, if the first incident ray is a ray emitted by virtual light source 1, and virtual light source 1 emits a yellow ray with an intensity value of 10, then the attribute of the second ray corresponding to the first incident ray is a ray with the attribute of "yellow, intensity value: 10".
[0097] Optionally, the second ray attribute corresponding to the first incident ray is determined based on the ray attribute corresponding to the other ray propagation element that the first incident ray most recently passed through. If the ray attribute of the other ray propagation element A that the first incident ray most recently passed through is adjusted so that the first incident ray is a yellow ray with an intensity value of 10, then the second ray attribute corresponding to the first incident ray is a ray with the attribute of "yellow intensity value: 10", etc.
[0098] Step 330 shows the first emitted ray from the ray-propagating element.
[0099] The first outgoing ray is a ray that satisfies the first ray attribute after the second ray attribute of the first incident ray is adjusted.
[0100] In a schematic way, when the first incident ray passes through the ray propagation element, the second ray attribute of the first incident ray is affected by the first ray attribute corresponding to the ray propagation element, thereby obtaining the first outgoing ray that satisfies the first ray attribute. This displays the first outgoing ray emitted from the ray propagation element, achieving the purpose of adjusting the incident ray with the help of the ray propagation element, enriching the diversity of the ray changes of the outgoing ray, and improving the visual contrast between the interface between the incident ray and the outgoing ray (such as the first incident ray and the first outgoing ray).
[0101] Among them, the radiation properties include one or more of the following: radiation color and radiation intensity.
[0102] Indicatively, ray color is used to represent the color information of a ray in a virtual scene, such as yellow, blue, green, etc.; or transparent, colored, etc. Ray intensity is used to represent the intensity of the effect of a ray in a virtual scene, such as the thickness of the ray to represent the ray intensity, with thicker rays representing greater intensity and thinner rays representing less intensity, etc.
[0103] In some embodiments, the ray propagation element is used to adjust the behavior of rays passing through the ray propagation element by replacing the second ray attribute with the first ray attribute.
[0104] Indicatively, in this case, the first incident ray of the second ray property of the ray propagating element is presented in the manner of the first ray property, that is, the first outgoing ray of the second ray property emitted from the ray propagating element is shown.
[0105] For example, taking the ray attribute including ray color as an example, if the first incident ray is yellow (that is, the second ray attribute is yellow), and the first ray attribute corresponding to the ray propagation element is green, and the ray propagation element is used to replace the second ray attribute with the first ray attribute, then the green first outgoing ray emitted from the ray propagation element will be displayed.
[0106] Alternatively, taking ray properties including ray intensity as an example, if the first incident ray is a ray of the first thickness (the first thickness represents the first intensity, that is, the second ray property is the first intensity), and if the second ray property corresponding to the ray propagation element is the second thickness (indicating that the ray has the second intensity), and the ray propagation element is used to replace the second ray property with the first ray property, then the first outgoing ray of the second thickness emitted from the ray propagation element is displayed.
[0107] In some embodiments, the ray propagation element is used to adjust the behavior of rays passing through the ray propagation element by superimposing the first ray attribute on the second ray attribute.
[0108] Indicatively, in this case, the first incident ray with the second ray property of the ray propagating element is superimposed with the first ray property, thus showing that the first outgoing ray emitted from the ray propagating element is an outgoing ray with superimposed first and second ray properties.
[0109] For example, taking the ray attribute including ray color as an example, if the first incident ray is yellow (that is, the second ray attribute is yellow), and the second ray attribute corresponding to the ray propagation element is green, and the ray propagation element is used to superimpose the first ray attribute on the second ray attribute, then the yellow-green first outgoing ray emitted from the ray propagation element will be displayed.
[0110] Alternatively, taking ray properties including ray intensity as an example, the first incident ray is a ray with a relatively thin thickness (such as using thickness to represent intensity, and thickness and intensity are positively correlated). If the second ray property corresponding to the ray propagation element is 10 intensity values (indicating a gain effect on ray intensity), and the ray propagation element is used to superimpose the first ray property on the second ray property, then a thicker first outgoing ray emitted from the ray propagation element will be displayed (such as superimposing 10 intensity values on the original ray intensity of 5 intensity values), etc.
[0111] In an optional embodiment, the first outgoing ray is incident on other virtual elements in the virtual scene; other virtual elements include one or more elements such as other ray propagation elements, virtual props, virtual doors, and virtual treasure chests.
[0112] To illustrate, taking the application of the ray-based interaction method based on virtual scenes to a puzzle game as an example, if the first outgoing ray is incident on the virtual element to be deciphered (such as a virtual door), and the ray attribute corresponding to the first outgoing ray (such as the first ray attribute, or the ray attribute after superimposing the second ray attribute and the first ray attribute, etc.) satisfies the element unlocking condition of the virtual element (such as the green ray can unlock the virtual door), then the element unlocking result is displayed, such as the virtual door changing from the closed state to the open state, etc.
[0113] It is worth noting that the above are merely illustrative examples, and the embodiments of this application are not limited thereto.
[0114] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; by assigning ray attributes such as ray color and intensity to the ray propagation element, the first ray attribute corresponding to the ray propagation element can be used to more richly adjust the incident ray (such as the first incident ray), thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements.
[0115] In an optional embodiment, an element creation operation that creates ray-propagating elements in a virtual scene is received as an element configuration operation, and then the corresponding interface content is displayed based on the created ray-propagating elements. (Illustrative example, such as...) Figure 4 As shown above, Figure 3 The illustrated embodiment can also be implemented as follows: steps 410 to 430.
[0116] Step 410: Receive the element creation operation for creating ray propagation elements in the virtual scene.
[0117] The element creation operation is used to enable ray propagation elements in a virtual scene.
[0118] In illustrative terms, the element creation operation is the operation in a virtual scene that enables ray propagation by creating ray-propagating elements.
[0119] Optionally, if there are no ray propagation elements in the virtual scene before receiving the element creation operation, the ray propagation elements can be added and created in the virtual scene through the element creation operation; or, if there are some ray propagation elements in the virtual scene before receiving the element creation operation, but these ray propagation elements are not the elements that the player wants to use, the player can add and create the required ray propagation elements in the virtual scene through the element creation operation, etc.
[0120] Among them, the ray propagation element corresponds to the first ray attribute; the ray attribute includes one or more of the following: ray color and ray intensity.
[0121] In a schematic way, the purpose of creating ray propagation elements is to influence the behavior of rays incident on the ray propagation elements through the first ray attribute corresponding to the ray propagation elements. Ray color is used to influence the color behavior of rays incident on the ray propagation elements, and ray intensity is used to influence the intensity behavior of rays incident on the ray propagation elements.
[0122] Optionally, the ray attributes may also include one or more of the following: ray range, ray fluctuation attributes, etc.; ray range is used to represent the maximum effective distance that a ray can travel in a virtual scene, and the ray cannot continue to propagate beyond the ray range; ray fluctuation attributes are used to represent the situation where the ray is disturbed and has a fluctuation effect when it propagates in a virtual scene, such as the ray fluctuation attribute being affected by the fluctuation range, and interference generated within the fluctuation range may affect the fluctuation of the ray in the virtual scene (such as an attack event occurring within the fluctuation range corresponding to the ray may affect the propagation of the ray), etc.
[0123] Among them, the ray propagation element includes one or more of the ray emitting element and the ray receiving element. The ray emitting element is a virtual element that performs ray emission in the virtual scene, and the ray receiving element is a virtual element that receives incident rays in the virtual scene and performs optical propagation processing on the incident rays.
[0124] In illustrative terms, a ray-emitting element is a virtual element used for the initial emission of rays, such as one or more of a virtual light bulb, a virtual laser cannon, or a virtual energy ball. Optionally, a ray-emitting element has ray-emitting functionality but not ray-receiving functionality; or, if a ray-emitting element has ray-emitting functionality, it may also have ray-receiving functionality. For example, a virtual light bulb is a virtual glass bulb that can reflect, refract, and perform other light propagation processes on rays shining onto it in a virtual scene.
[0125] Schematic illustration: A ray-receiving element is an element capable of receiving incident rays and performing optical propagation processing on them. For example, a ray-emitting element with ray-receiving function, as described above, can also be understood as a ray-receiving element. Alternatively, ray-receiving elements may include one or more virtual mirrors, virtual prisms, virtual converters, or even one or more virtual ground, virtual walls, virtual buildings, virtual plants, and virtual animals. For a ray-receiving element, it must at least possess the ray-receiving capability to receive incident rays. Optionally, a ray-receiving element, upon receiving incident rays, may also possess a ray-emitting function, used to convert and emit the received incident rays into corresponding outgoing rays through optical propagation methods (such as reflection, refraction, and deflection). In this case, the ray-receiving element can also be understood as a form of ray-emitting element, and its corresponding outgoing rays may include reflected rays, refracted rays, and deflected rays, etc., without limitation here.
[0126] In an optional embodiment, an element creation operation is received to create a ray propagation element in a first scene area of the virtual scene; based on the element creation operation, the ray propagation element is displayed in the first scene area of the virtual scene.
[0127] The first scene area includes one or more of the following: virtual ground, virtual sky, and virtual objects.
[0128] In a schematic way, the virtual ground is the basic plane that carries virtual elements in a virtual scene, and is usually used for virtual objects to stand, walk, and interact; the virtual sky is the background environment in a virtual scene for players to observe and create spatial environment and distant atmosphere; virtual objects are virtual characters in a virtual scene, such as the main virtual object controlled by the player, as well as non-player characters, virtual characters controlled by artificial intelligence (AI), etc.
[0129] In some embodiments, the element-based creation operation uses a first scene region as a ray propagation element.
[0130] In illustrative terms, since the first scene area includes one or more of the above, the element creation operation representing the creation of ray propagation elements can be performed on a regular virtual ground, thereby selecting one or more ground areas on the virtual ground as the first scene area, thus serving as ray propagation elements; it can also be performed on a virtual sky, thereby selecting one or more sky areas on the virtual sky as the first scene area, thus serving as ray propagation elements; it can even be performed on one or more virtual objects, thereby selecting the entire virtual object or one or more object parts on the virtual object as the first scene area, thus serving as ray propagation elements, etc., to achieve the purpose of creating ray propagation elements in a diverse way.
[0131] In some embodiments, a ray propagation element is placed on a first scene area based on an element creation operation.
[0132] In illustrative terms, the ray propagation element is an additionally selected virtual element. When performing the element creation operation to create a ray propagation element for the first scene area, the player can select the ray propagation element to be placed and then place the desired ray propagation element in the first scene area.
[0133] Optionally, in response to receiving an element acquisition operation, at least two candidate propagation elements are displayed; and an element selection operation is received for the ray propagation element among the at least two candidate propagation elements.
[0134] To illustrate, the element acquisition operation is the operation of acquiring a pre-given candidate propagation element, which is a virtual element with ray propagation capability; the element selection operation is the operation used to select the ray propagation element to be placed from the pre-given candidate propagation elements.
[0135] Optionally, element acquisition operations include control-triggered operations (such as click operations, long-press operations, etc.) targeting element acquisition controls, and also include region selection operations for the first scene area, i.e., automatically triggering the display of at least two candidate propagation elements after selecting the first scene area. Element selection operations include control-triggered operations (such as click operations, long-press operations, etc.) targeting element selection controls corresponding to the candidate propagation elements.
[0136] At least two candidate propagation elements include the ray propagation element that the player wants to place. If the player performs an element selection operation on the ray propagation element, it is considered that an element creation operation has been received, thereby creating the ray propagation element in the virtual scene, such as placing the ray propagation element in the first scene area in the virtual scene.
[0137] Optionally, after selecting the first scene area, an element selection operation is performed on the ray propagation element among the candidate propagation elements to serve as an element placement operation; alternatively, after performing the element selection operation on the ray propagation element among the candidate propagation elements, the first scene area is selected to serve as an element placement operation; alternatively, after performing the element selection operation on the ray propagation element among the candidate propagation elements, no scene area is selected, thereby placing the ray propagation element in a virtual scene (such as the current scene area or a random area), which is not limited here.
[0138] Among them, the creation of ray-propagating elements in diverse scene areas allows for the creation of virtual sky and even virtual objects as areas for elements, rather than simply placing certain elements on the virtual ground to achieve the corresponding function, thus making the game more diverse.
[0139] In some embodiments, at least two candidate propagation elements each correspond to different ray attributes, which are used to have different effects on the ray attributes of rays passing through the candidate propagation elements. When displaying at least two candidate propagation elements, the at least two candidate propagation elements can be displayed individually, or the ray attributes corresponding to different candidate propagation elements can be displayed simultaneously, so that the player can more intuitively determine the candidate propagation element to be selected. Among the at least two candidate propagation elements, the ray propagation element corresponds to the first ray attribute.
[0140] like Figure 5 The diagram shows an interface for performing an element selection operation on a ray propagation element from at least two candidate propagation elements. Taking the region selection operation for the first scene area as an example of element acquisition, it displays at least two candidate propagation elements and their corresponding ray attributes. The at least two candidate propagation elements include virtual mirror 511, virtual mirror 512, virtual prism 521, etc.; the ray attribute corresponding to virtual mirror 511 is "red, 10 intensity values"; the ray attribute corresponding to virtual mirror 512 is "green, 20 intensity values"; and the ray attribute corresponding to virtual prism 521 is "red, 5 intensity values", etc.
[0141] If an element selection operation is received for the virtual mirror 512 (such as triggering the selection control 520), the virtual mirror 512 is used as a ray propagation element to be placed in the virtual scene, and its corresponding ray attribute "green, 20 intensity values" is used as the first ray attribute.
[0142] The system displays a variety of candidate propagation elements for players to choose from, catering to diverse usage needs and enhancing operational flexibility and adaptability. These abundant options cover a wide range of applications, avoiding the limitations of relying on a single element, meeting varied selection requirements, simplifying the operation process, and saving configuration time. Furthermore, it facilitates comparison of the functions and characteristics of different elements, allowing players to choose the optimal one, reducing the probability of operational errors, and effectively improving operational efficiency and stability.
[0143] In some embodiments, when one or more ground areas on the virtual ground are selected as the first scene area, the selected ray propagation element to be placed is placed in the first scene area; and / or, when one or more sky areas on the virtual sky are selected as the first scene area, the selected ray propagation element to be placed is suspended in the first scene area; and / or, when the entire virtual object or one or more object parts on the virtual object are selected as the first scene area, the selected ray propagation element to be placed is worn on the virtual object (such as the entire object) or pasted on the object parts of the virtual object, etc., without limitation.
[0144] like Figure 6 The diagram illustrates the interface for placing ray-propagating elements after selecting a first scene area. The first scene area selected by the player includes, for example, the ground area 610 on the virtual ground, the sky area 620 on the virtual sky, and another sky area 630 on the virtual sky. If the ray-propagating element to be placed is a virtual mirror, a virtual mirror is placed at ground area 610, at sky area 620, and at sky area 630 based on the element creation operation. The ray-propagating elements placed in different first scene areas can be the same or different (e.g., the same or different types, and / or their corresponding ray attributes can be the same or different), which is not limited here.
[0145] The ray propagation elements can have system-defined ray attributes, such as different elements corresponding to different ray attributes, thus having different effects on the ray, or they can be custom-configured. By placing system-configured elements, as well as element creation operations such as selecting a certain area in the virtual scene as a ray propagation element, the interaction methods of ray interaction elements in the virtual scene become more diverse, improving the interactive fun while ensuring human-computer interaction efficiency.
[0146] Step 420: Display the first incident ray received by the ray propagation element.
[0147] Indicatively, the first incident ray is an incident ray emitted by a virtual light source in the virtual scene and incident on the ray propagation element; or, the first incident ray is an incident ray emitted by the virtual light source and propagated through other ray propagation elements (such as other virtual mirrors, etc.) (such as reflection, refraction, scattering, etc.) before incident on the ray propagation element.
[0148] The first incident ray corresponds to the second ray property.
[0149] In illustrative terms, the second ray attribute corresponding to the first incident ray is used to characterize the ray performance information of the first incident ray itself, such as color information, intensity information, etc., representing the first incident ray.
[0150] Step 430 shows the first emitted ray from the ray-propagating element.
[0151] The first outgoing ray is a ray that satisfies the first ray attribute after the second ray attribute of the first incident ray is adjusted.
[0152] In a schematic manner, when the first incident ray passes through the ray propagation element, the second ray attribute of the first incident ray is affected by the first ray attribute corresponding to the ray propagation element, thereby obtaining the first outgoing ray that satisfies the first ray attribute. This shows the first outgoing ray emitted from the ray propagation element, and the first outgoing ray corresponds to the first incident ray. It is the outgoing ray obtained after the first incident ray has undergone optical propagation processing by the ray propagation element.
[0153] The attributes of a ray include one or more of the following: ray color and ray intensity. Illustratively, ray color represents the color information of a ray in a virtual scene. Ray intensity represents the intensity of a ray's effect in a virtual scene. This can be expressed as ray thickness (thicker ray indicates greater intensity, thinner ray indicates less intensity), or ray brightness (brighter ray indicates greater intensity, darker ray indicates less intensity), or ray intensity can be quantified using a labeled intensity value, etc., without limitation here.
[0154] In an optional embodiment, when the ray propagation element receives a first incident ray emitted along a first direction, a first outgoing ray emitted from the ray propagation element along a second direction is displayed based on the first incident ray and the ray propagation rate in the first ray property.
[0155] The second direction is the direction obtained by adjusting the first direction through the ray propagation rate, which includes one or more of the following: ray reflectivity, ray refractive index, and ray deflection.
[0156] Schematic, the first incident ray corresponds to the first direction, which is used to characterize the trajectory direction of the first incident ray in the virtual scene, usually representing the direction when the first incident ray is incident on the ray propagation element; optionally, the first ray attribute includes ray propagation rate, which is data that participates in the analysis and calculation when the ray propagation element performs ray propagation, such as one or more of ray reflectivity, ray refractive index and ray deflection.
[0157] Ray reflectivity is used to characterize the direction and proportion of ray reflection after it encounters a ray propagation element, and determines the reflection direction and intensity of reflected rays (a type of outgoing ray); ray refractive index is used to characterize the degree of ray deflection when it passes through a ray propagation element, and determines the refraction direction of refracted rays (a type of outgoing ray); ray deflection is used to characterize the distance by which the ray propagation path deviates from the first incident direction, reflecting path deviation, etc.
[0158] Indicatively, ray reflectivity, ray refractive index, and ray deflection are usually affected by factors such as the material and density of the ray propagating element; these factors can also be regarded as a type of ray property.
[0159] Taking the first ray attribute as an example, which includes one or more of the above-mentioned ray propagation rates, when the ray propagation element receives the first incident ray, based on the first direction corresponding to the first incident ray and the ray propagation rate, the second direction of the first outgoing ray emitted from the ray propagation element is analyzed, thereby displaying the first outgoing ray emitted along the second direction.
[0160] like Figure 7 The diagram shows an interface schematically displaying a first outgoing ray emitted from a ray propagation element. The ray propagation element is a virtual mirror 710. When the virtual mirror 710 receives a first incident ray 720 emitted along a first direction, based on the first incident ray 720 and the ray propagation rate in the first ray attribute, the diagram displays a first outgoing ray 730 emitted from the virtual mirror 710 along a second direction.
[0161] Or such as Figure 8 The diagram shown is another schematic representation of an interface displaying the first outgoing ray emitted from a ray propagation element. This includes a player-controlled virtual object 810 in the virtual scene, and a virtual mirror 820 as the ray propagation element. When the virtual mirror 820 receives the first incident ray 830 emitted along a first direction, based on the first incident ray 830 and the ray propagation rate in the first ray attribute, the diagram displays the first outgoing ray 840 emitted from the virtual mirror 820 along a second direction.
[0162] In an optional embodiment, when the element corresponding to the ray propagation element is enabled, the first outgoing ray emitted from the ray propagation element is displayed based on the first incident ray.
[0163] Indicatively, the element enable state is used to represent the state in which the ray propagation element is enabled. When the element is enabled, the ray propagation element can participate in the ray propagation process in the virtual scene. Therefore, when the ray propagation element receives the first incident ray, the first outgoing ray emitted from the ray propagation element and corresponding to the first incident ray will also be displayed.
[0164] In an optional embodiment, when the element corresponding to the ray propagation element is disabled, the emission line segment starting from the first ray emitting element and ending at the ray propagation element is displayed.
[0165] Among them, the first ray emitting element is a virtual element that emits the first incident ray; the emitting line segment is used to characterize the trajectory of the first incident ray in the virtual scene.
[0166] Indicatively, the disabled element state represents the state in which the ray propagation element is prohibited from use. The disabled element state is the opposite of the enabled element state. That is, in the disabled element state, the ray propagation element cannot participate in the ray propagation process in the virtual scene. Therefore, when the ray propagation element receives the first incident ray, it cannot form the reflected ray, refracted ray, deflected ray, etc. corresponding to the first incident ray based on the ray propagation process. Therefore, the first emitted ray (including one or more of the reflected ray, refracted ray, and deflected ray) emitted from the ray propagation element cannot be displayed. Instead, the emission line segment with the first ray emitting element as the starting point and the ray propagation element as the ending point will be displayed, which represents the situation where the first incident ray terminates its propagation upon reaching the ray propagation element.
[0167] In a schematic way, the first ray emitting element can be a virtual element that initially emits a ray, such as the first ray emitting element emitting the first incident ray and then reaching the ray propagation element; or, the first ray emitting element can be another ray propagation element that most recently emitted the first incident ray, and then the other ray propagation element receives other incident rays and emits an outgoing ray as the first incident ray, etc. There is no limitation here.
[0168] In some embodiments, a state adjustment control corresponding to the ray propagation element is displayed; an element enable operation is received on the state adjustment control, causing the ray propagation element to be in an enabled state; an element disable operation is received on the state adjustment control, causing the ray propagation element to be in an disabled state. For example, the state adjustment control includes two options, "Enable" and "Disable," and the corresponding operation is implemented based on the selection of different options.
[0169] Among them, the element enabled state and the element disabled state are used to characterize the different states of the ray propagation element.
[0170] Optionally, different element styles can be used to distinguish between the enabled and disabled states of an element.
[0171] This is illustrative, using the first element style to represent the ray propagation element being enabled, and the second element style to represent the ray propagation element being disabled. For example, the ray propagation element could be a virtual mirror with a glossy first element style and a dark second element style; or, the ray propagation element could be a virtual laser cannon with a glowing first element style and a grayscale second element style, etc.
[0172] Optionally, element status prompts can be used to distinguish between the enabled and disabled states of an element.
[0173] This is illustrative of how, when a ray-propagating element is enabled, an element-enabling prompt (such as text or screen effects) is displayed; when a ray-propagating element is disabled, an element-disabling prompt (such as text or screen effects) is displayed. For example, if the ray-propagating element is a virtual mirror, when the virtual mirror is enabled, the element-enabling prompt is "The current virtual mirror is usable"; when the virtual mirror is disabled, the element-disabling prompt is "The current virtual mirror is unusable, please try unlocking," where "unlocking" prompts the user to switch the element from disabled to enabled.
[0174] like Figure 9 The diagram shows an interface illustration of a line segment for displaying emission based on the disabled state of an element. Taking the virtual laser cannon 910, which is the first ray emitting element, and the virtual mirror 920, as an example, when the first incident ray emitted by the virtual laser cannon 910 passes through the virtual mirror 920, because the ray propagation element is in a disabled state (e.g., indicated by the disabled element prompt message "The current virtual mirror 920 is unusable, please try to unlock it"), after the first incident ray emitted by the first ray emitting element reaches the ray propagation element, a line segment 930 will be displayed, starting from the virtual laser cannon 910 and ending at the virtual mirror 920.
[0175] The ability to set enabled and disabled states for elements allows players to flexibly manage access permissions for various functions, adapting to diverse business scenarios. Enabling an element allows it to be used normally in the ray propagation process, while disabling it temporarily locks the element, preventing accidental operations, erroneous data generation, and process chaos, thus ensuring the stability of the virtual scene.
[0176] It is worth noting that the above are merely illustrative examples, and the embodiments of this application are not limited thereto.
[0177] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; by assigning ray attributes such as ray color and intensity to the ray propagation element, the first ray attribute corresponding to the ray propagation element can be used to more richly adjust the incident ray (such as the first incident ray), thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements.
[0178] In an optional embodiment, when the virtual scene includes ray propagation elements, a ray configuration operation for the ray propagation element is received as an element configuration operation, and then the ray propagation element displays corresponding interface content based on the configured first ray attribute. (Illustrative example, such as...) Figure 10 As shown above, Figure 3 The illustrated embodiment can also be implemented as follows: steps 1010 to 1030.
[0179] Step 1010: If the virtual scene includes ray propagation elements, receive ray configuration operations for the ray propagation elements.
[0180] The ray configuration operation is used to configure the first ray attribute for the ray propagation element.
[0181] For illustrative purposes, the ray propagation element is a virtual element that already exists in the virtual scene. It can be a virtual element that is set by default in the virtual scene, or a virtual element that the player sets in the virtual scene based on previous element creation operations, element selection operations, etc. (see step 410 above). There is no limitation here.
[0182] If a ray propagation element already exists in the virtual scene, a ray configuration operation can be performed on the ray propagation operation, with the aim of configuring the ray propagation element as the first ray attribute.
[0183] Among them, the ray propagation element includes one or more of the ray emitting element and the ray receiving element. The ray emitting element is a virtual element that performs ray emission in the virtual scene, and the ray receiving element is a virtual element that receives incident rays in the virtual scene and performs optical propagation processing on the incident rays.
[0184] Optionally, when the ray propagation element is a ray emitting element, the ray configuration operation enables the ray emitting element to emit a ray with a first ray attribute within the virtual scene; in addition, if the ray emitting element can also be implemented as a ray receiving element, or if the ray propagation element itself is a ray emitting element, the ray configuration operation enables the ray emitting element to influence the ray passing through the ray propagation element through the first ray attribute.
[0185] In some embodiments, when a ray propagation element is included in the virtual scene, in response to receiving an element trigger operation for the ray propagation element, an element configuration box is displayed; and an attribute filling operation for the element configuration box is received.
[0186] Indicatively, element-triggered operations include one or more operation forms such as clicking, long-pressing, and swiping on the ray-propagating element; the element configuration box includes one or more attribute fill fields, and the attribute fill operation for the element configuration box is implemented as a fill operation for the attribute fill fields. The attribute fill operation is used to fill attribute information in one or more attribute fill fields. The information filled in the attribute fill fields is the ray attribute, thereby realizing the ray configuration operation for the ray-propagating element through the attribute fill operation; or, the ray configuration operation for the ray-propagating element is realized through the attribute fill operation and the attribute confirmation operation (used to confirm the filled ray attribute).
[0187] like Figure 11 The image shown is a schematic diagram of the interface for performing element triggering operations on ray propagation elements, displaying the element configuration box, and then performing attribute filling operations.
[0188] Taking a virtual mirror 1110 as an example, if an element trigger operation is received for the virtual mirror 1110, the element configuration box 1120 shown in interface 1101 is displayed, which includes multiple attribute fill bars 1121, such as color fill bar, intensity fill bar, range fill bar, fluctuation attribute fill bar, orientation fill bar, and medium status fill bar. If an attribute fill operation is received for one or more attribute fill bars 1121, the ray attributes shown in interface 1102 are displayed, such as: "Color: Green", "Intensity: 10", "Range: 50 meters", "Fluid Attribute: Default", "Orientation: Southeast 30 degrees", and "Medium: Water Surface". The confirmation control in the trigger interface 1102 is used to realize the purpose of ray configuration operation for the virtual mirror 1110.
[0189] Based on ray configuration operations, rich ray attributes are assigned to ray propagation elements to achieve more personalized configuration of ray attributes, improve the propagation function that ray propagation elements can achieve in virtual scenes, and help to further improve human-computer interaction efficiency while ensuring personalized operation.
[0190] Step 1020: Display the first incident ray received by the ray propagation element.
[0191] The first incident ray corresponds to the second ray property.
[0192] In illustrative terms, the second ray attribute corresponding to the first incident ray is used to characterize the ray performance information of the first incident ray itself, such as color information, intensity information, or one or more such as ray range, ray wave attribute, etc., which are not limited here.
[0193] Step 1030 shows the first emitted ray from the ray-propagating element.
[0194] The first outgoing ray is a ray that satisfies the first ray attribute after the second ray attribute of the first incident ray is adjusted.
[0195] In a schematic manner, when the first incident ray passes through the ray propagation element, the second ray attribute of the first incident ray is affected by the first ray attribute corresponding to the ray propagation element, thereby obtaining the first outgoing ray that satisfies the first ray attribute. This shows the first outgoing ray emitted from the ray propagation element, and the first outgoing ray corresponds to the first incident ray. It is the outgoing ray obtained after the first incident ray has undergone optical propagation processing by the ray propagation element.
[0196] It is worth noting that the above are merely illustrative examples, and the embodiments of this application are not limited thereto.
[0197] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; by assigning ray attributes such as ray color and intensity to the ray propagation element, the first ray attribute corresponding to the ray propagation element can be used to more richly adjust the incident ray (such as the first incident ray), thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements.
[0198] In an optional embodiment, when the first ray property of the ray-propagating element affects the second ray property of the incident first ray, the following explanation is given using the example of the first ray-propagating element replacing the second ray property with the first ray property. (Illustrative, as...) Figure 12 As shown above, Figure 3 The illustrated embodiment can also be implemented as follows: steps 1210 to 1230.
[0199] Step 1210: Receive element configuration operations in the virtual scene.
[0200] The element configuration operation is used to enable ray propagation elements in the virtual scene. The ray propagation elements correspond to the first ray attribute. The ray attribute includes one or more of the following: ray color and ray intensity.
[0201] In an optional embodiment, an element creation operation is received to create a ray propagation element in a virtual scene. The element creation operation is an operation that enables the ray propagation element by creating a ray propagation element in the virtual scene.
[0202] In some embodiments, an element creation operation is received to create a ray propagation element in a first scene area of a virtual scene; based on the element creation operation, the ray propagation element is displayed in the first scene area of the virtual scene, and the ray propagation element corresponds to a first ray attribute (such as pre-corresponding to a first ray attribute, or having a first ray attribute based on the player's pre-defined custom configuration).
[0203] In some embodiments, an element acquisition operation is received, displaying at least two candidate propagation elements; an element selection operation is received for the ray propagation element among the at least two candidate propagation elements; a ray propagation element is set at any position in the virtual scene based on the element selection operation, or at the position of the main virtual object, or at the position selected by the player (such as the first scene area); the set ray propagation element has a first ray attribute (such as a pre-defined first ray attribute, or a first ray attribute based on the player's pre-defined custom configuration), to achieve the purpose of creating a ray propagation element. The player's custom configuration can refer to step 1010 above. Figure 11 The configuration interface shown is not limited here.
[0204] In some embodiments, when the virtual scene includes a ray propagation element, a ray configuration operation is received for the ray propagation element. The ray configuration operation is used to configure a first ray attribute for the ray propagation element in order to improve the flexibility of the interaction process based on the virtual scene and enable the ray propagation element with a first ray attribute that better meets the needs of the player.
[0205] Step 1220: Display the first incident ray received by the ray propagation element.
[0206] The first incident ray corresponds to the second ray property.
[0207] In illustrative terms, the second ray attribute corresponding to the first incident ray is used to characterize the ray performance information of the first incident ray itself, such as color information, intensity information, or one or more such as ray range, ray wave attribute, etc., which are not limited here.
[0208] Step 1230: After the first incident ray of the second ray attribute passes through the first ray propagation element, the first outgoing ray of the first ray attribute emitted from the first ray propagation element is displayed.
[0209] The first ray propagation element is used to replace the second ray attribute with the first ray attribute.
[0210] Schematic illustration: The first ray propagation element is a type of ray propagation element. The first ray propagation element corresponds to a first ray attribute, and its purpose in corresponding to the first ray attribute is to change the ray attribute of a ray passing through the first ray propagation element to the first ray attribute before emitting the corresponding ray. That is: if the ray attribute of a ray passing through the first ray propagation element is not the first ray attribute, then it is replaced with the first ray attribute before emitting the corresponding ray; if the ray attribute of a ray passing through the first ray propagation element is the first ray attribute, then the first ray attribute is maintained before emitting the corresponding ray.
[0211] In some embodiments, the ray propagation elements in the virtual scene are all first ray propagation elements with attribute replacement effects, or some ray propagation elements in the virtual scene are first ray propagation elements with attribute replacement effects, such as first ray propagation elements with attribute replacement effects being represented by first functional effects (such as the text form "used to replace ray attributes", the logo style "red first ray propagation element", etc.), etc., which are not limited here.
[0212] In some embodiments, the first ray attribute corresponding to the first ray propagation element is always displayed on the interface in a visual form; or, the first ray attribute corresponding to the first ray propagation element is displayed on the interface after the player triggers the first ray propagation element; or, the first ray attribute corresponding to the first ray propagation element is never displayed on the interface, and the first ray attribute is only displayed indirectly in the form of replacement change (such as the replaced color, the replaced intensity, etc.) after a ray passes through the first ray propagation element, which is not limited here.
[0213] In an optional embodiment, after a first incident ray of the first color passes through a first ray propagation element, a first outgoing ray of the second color is displayed emanating from the first ray propagation element.
[0214] Among them, the first ray attribute corresponding to the first ray propagation element includes the second color.
[0215] To illustrate, taking the example of a ray attribute including ray color, if a first incident ray of the first color passes through a first ray propagation element, it means that the second ray attribute corresponding to the first incident ray includes the first color. Since the first ray propagation element has an attribute replacement effect, and the first ray attribute corresponding to the first ray propagation element includes the second color, the first incident ray of the first color entering the first ray propagation element needs to be emitted with the second color. Thus, when the first emitted ray corresponding to the first incident ray is emitted from the first ray propagation element, the first emitted ray is represented with the second color, that is, the first emitted ray of the second color emitted from the first ray propagation element is displayed.
[0216] like Figure 13 The diagram shows an interface for color replacement achieved through the first ray propagation element. When the virtual laser cannon 1310 emits a yellow ray 1320 (represented by a dashed line, i.e., the first color), if ray 1320 passes through the first ray propagation element (a virtual mirror 1330), then ray 1320 is the first incident ray. If the first ray attribute corresponding to the virtual mirror 1330 indicates that the first ray attribute includes "green" (i.e., the second color), and a text prompt stating "Virtual mirror 1330 is used to achieve attribute replacement" is displayed (this is only an illustrative example and is not shown in the diagram; or no prompt information is displayed), then after the yellow ray 1320 passes through the virtual mirror 1330, a first outgoing ray 1340, representing green (represented by a solid line), is displayed emanating from the virtual mirror 1330.
[0217] In an optional embodiment, after a first incident ray of a first intensity passes through a first ray propagation element, a first outgoing ray of a second intensity is emitted from the first ray propagation element.
[0218] Among them, the first ray propagation element corresponds to the second ray property, which includes the second intensity.
[0219] Optionally, taking ray attributes including ray intensity as an example, different ray intensities can be presented through different thickness styles, different brightness styles, or quantified through intensity value styles; for example, the thicker the ray, the higher the ray intensity, and the thinner the ray, the lower the ray intensity; and / or, the brighter the ray, the higher the ray intensity, and the darker the ray, the lower the ray intensity; and / or, the larger the intensity value, the higher the ray intensity, and the smaller the intensity value, the lower the ray intensity. The intensity value can be positive (gain effect), negative (loss effect), or 0 (usually equivalent to loss effect in replacement cases), etc., without limitation here.
[0220] Schematic: If a first incident ray of first intensity passes through a first ray propagation element, it means that the second ray attribute corresponding to the first incident ray includes the first intensity. Since the first ray propagation element has an attribute replacement effect, and the first ray attribute corresponding to the first ray propagation element includes the second intensity, the first incident ray of first intensity entering the first ray propagation element needs to be emitted with the second intensity. Thus, when the first emitted ray corresponding to the first incident ray is emitted from the first ray propagation element, the first emitted ray is represented with the second intensity, that is, the first emitted ray of the second intensity is displayed from the first ray propagation element.
[0221] like Figure 14 The diagram shows an interface for intensity replacement achieved through the first ray propagation element. Specifically, when the virtual laser cannon 1410 emits a ray 1420 with an intensity value of 10 (represented by a visual intensity value of 10, i.e., the first intensity; it can also be represented by one or more parameters such as ray thickness and ray brightness, which are not limited here), if the ray 1420 passes through the first ray propagation element (a virtual mirror 1430), then the ray 1420 becomes the first incident ray. If the first ray attribute corresponding to the virtual mirror 1430 includes an "intensity value of 20" (i.e., the second intensity), then after the ray 1420 with an intensity value of 10 passes through the virtual mirror 1430, a first outgoing ray 1440 with an intensity value of 20 (represented by a visual intensity value of 20, i.e., the second intensity; it can also be represented by one or more parameters such as ray thickness and ray brightness, which are not limited here) is displayed from the virtual mirror 1430.
[0222] The ray changes color and intensity as it passes through the receiver; this replacement method achieves more efficient adjustment of ray attributes, ensuring the richness of the ray display in the virtual scene, and can also affect the functionality of different rays, thus enhancing the effectiveness of information delivery on the interface.
[0223] It is worth noting that the above are merely illustrative examples, and the embodiments of this application are not limited thereto.
[0224] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; by assigning ray attributes such as ray color and intensity to the ray propagation element, the first ray attribute corresponding to the ray propagation element can be used to more richly adjust the incident ray (such as the first incident ray), thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements.
[0225] In an optional embodiment, when the first ray property of the ray propagation element affects the second ray property of the incident first ray, the following explanation is given using the second ray propagation element to superimpose the first ray property on the second ray property to obtain a third ray property. This is illustrative, as shown below. Figure 15 As shown above, Figure 3 The illustrated embodiment can also be implemented as follows: steps 1510 to 1530.
[0226] Step 1510: Receive element configuration operations in the virtual scene.
[0227] The element configuration operation is used to enable ray propagation elements in the virtual scene. The ray propagation elements correspond to the first ray attribute. The ray attribute includes one or more of the following: ray color and ray intensity.
[0228] Optionally, the system receives an element creation operation that creates a ray propagation element in a virtual scene. The element creation operation is an operation that enables the ray propagation element by creating a ray propagation element in the virtual scene.
[0229] Optionally, the system receives an element acquisition operation and displays at least two candidate propagation elements; it also receives an element selection operation for the ray propagation element among the at least two candidate propagation elements, and sets the ray propagation element based on any position of the element selection operation in the virtual scene, or the position of the main virtual object, or the position selected by the player, wherein the set ray propagation element has a first ray attribute.
[0230] Step 1520: Display the first incident ray received by the ray propagation element.
[0231] The first incident ray corresponds to the second ray property.
[0232] In illustrative terms, the second ray attribute corresponding to the first incident ray is used to characterize the ray performance information of the first incident ray itself, such as one or more of the color information, intensity information, ray range, ray fluctuation attributes, etc., which are not limited here.
[0233] Step 1530: After the first incident ray of the second ray attribute passes through the second ray propagation element, the first outgoing ray of the third ray attribute is displayed as emitted from the second ray propagation element.
[0234] The second ray propagation element is used to superimpose the first ray attribute on the second ray attribute to obtain the third ray attribute.
[0235] In illustrative terms, the second ray propagation element is a different type of ray propagation element from the first ray propagation element. The second ray propagation element corresponds to the first ray attribute, and its purpose in corresponding to the first ray attribute is to superimpose the first ray attribute onto the ray attribute of the ray passing through the first ray propagation element before emitting the corresponding ray. That is, regardless of the ray attribute of the ray passing through the first ray propagation element, the corresponding ray will be emitted after superimposing the first ray attribute on top of that ray attribute. For example, if the ray attribute of the ray passing through the first ray propagation element is the second ray attribute, then the corresponding ray will be emitted after superimposing the first ray attribute on top of that second ray attribute; or, if the ray attribute of the ray passing through the first ray propagation element is the first ray attribute, then the corresponding ray will be emitted after further superimposing the first ray attribute on top of that first ray attribute (double effect); or, if the ray attribute of the ray passing through the first ray propagation element is another ray attribute, then the corresponding ray will be emitted after further superimposing the first ray attribute on top of that other ray attribute, etc., without further limitation here.
[0236] In some embodiments, the ray propagation elements in the virtual scene are all second ray propagation elements with attribute superposition effects, or some ray propagation elements in the virtual scene are second ray propagation elements with attribute superposition effects (such as the rest being first ray propagation elements with the aforementioned attribute replacement effects, etc.), such as second ray propagation elements with attribute superposition effects being represented by second functional effects (such as the text form "used to superimpose ray attributes", the logo style "blue first ray propagation element", etc.), etc., which are not limited here.
[0237] In some embodiments, the first ray attribute corresponding to the second ray propagation element is always displayed on the interface in a visual form; or, the first ray attribute corresponding to the second ray propagation element is displayed on the interface after the player triggers the first ray propagation element; or, the first ray attribute corresponding to the second ray propagation element is never displayed on the interface, and the first ray attribute is only displayed in a superimposed change form after a ray passes through the second ray propagation element (such as inferring the colors included in the first ray attribute based on the superimposed color, or inferring the intensity included in the first ray attribute based on the superimposed intensity, etc.), which is not limited here.
[0238] In an optional embodiment, after the first incident ray of the first color passes through the second ray propagation element, a first outgoing ray of the third color is displayed emanating from the second ray propagation element.
[0239] Among them, the first ray attribute corresponding to the second ray propagation element includes the second color, and the third color is the color obtained by superimposing the second color on the first color.
[0240] To illustrate, taking the example of a ray attribute including ray color, if a first incident ray of the first color passes through a second ray propagation element, it means that the second ray attribute corresponding to the first incident ray includes the first color. Based on the attribute superposition effect of the second ray propagation element, and the first ray attribute corresponding to the second ray propagation element includes the second color, after the first incident ray of the first color enters the first ray propagation element, the second color needs to be superimposed on the first color. The superimposed color is called the third color. Thus, when the first outgoing ray corresponding to the first incident ray is emitted from the second ray propagation element, the first outgoing ray is represented by the superimposed third color, that is, the first outgoing ray of the third color emitted from the second ray propagation element is displayed.
[0241] like Figure 16 The diagram shows an interface for color overlay achieved through a second ray propagation element. When the virtual laser cannon 1610 emits a yellow ray 1620 (represented as a thinner shade, i.e., the first color), if ray 1620 passes through the second ray propagation element (a virtual mirror 1630), then ray 1620 becomes the first incident ray. If the first ray attribute corresponding to the virtual mirror 1630 indicates that the first ray attribute includes "green" (i.e., the second color), such as displaying the text prompt 1640 "Virtual mirror 1630 is used to achieve attribute overlay; color: green" (or displaying no prompt information, etc., which is not limited here), then after the yellow ray 1620 passes through the virtual mirror 1630, a first outgoing ray 1650 of yellow-green (represented as a thicker shade) is displayed from the virtual mirror 1630, i.e., yellow-green is obtained by overlaying green on top of yellow.
[0242] In an alternative embodiment, after a first incident ray of first intensity passes through a second ray propagation element, a first outgoing ray of third intensity is emitted from the second ray propagation element.
[0243] Among them, the first ray property corresponding to the second ray propagation element includes the second intensity, and the third intensity is the intensity obtained by superimposing the second intensity on the first intensity.
[0244] Optionally, taking ray attributes including ray intensity as an example, different ray intensities can be presented through different thicknesses, different brightnesses, or quantified through intensity values; for example, the thicker the ray, the higher the ray intensity, and the thinner the ray, the lower the ray intensity; and / or, the brighter the ray, the higher the ray intensity, and the darker the ray, the lower the ray intensity; and / or, the larger the intensity value, the higher the ray intensity, and the smaller the intensity value, the lower the ray intensity. The intensity value can be positive (gain effect), negative (loss effect), or 0 (usually equivalent to unchanged intensity in the case of superposition), etc., without limitation here.
[0245] To illustrate, taking ray attributes including ray intensity as an example, if a first incident ray of first intensity passes through a second ray propagation element, it means that the second ray attribute corresponding to the first incident ray includes the first intensity. Since the second ray propagation element has an attribute superposition effect, and the first ray attribute corresponding to the second ray propagation element includes the second intensity, after the first incident ray of first intensity enters the first ray propagation element, the second intensity needs to be superimposed on the first intensity. The superimposed intensity is called the third intensity. Therefore, when the first outgoing ray corresponding to the first incident ray is emitted from the second ray propagation element, the first outgoing ray is represented by the superimposed third intensity, i.e., it displays the first outgoing ray of third intensity emitted from the first ray propagation element. When the second intensity included in the first ray attribute is positive, the third intensity is greater than the first intensity, i.e., an intensity gain effect is produced; when the second intensity included in the first ray attribute is negative, the third intensity is less than the first intensity, i.e., an intensity loss effect is produced, etc.
[0246] like Figure 17The diagram shows an interface schematic of intensity superposition achieved through the first ray propagation element. Specifically, when the virtual laser cannon 1710 emits a ray 1720 with an intensity value of 50 (represented as a visual intensity value of 50 and a thicker ray, i.e., the first intensity; it can also be represented by ray thickness, ray brightness, etc., which are not limited here), if ray 1720 passes through the second ray propagation element (a virtual mirror 1730), then ray 1720 becomes the first incident ray. If the first ray attribute corresponding to the virtual mirror 1730 indicates that the first ray attribute of the virtual mirror 1730 includes "intensity value -20" (i.e., the second intensity), such as displaying "Virtual mirror 17...", then... The text prompt 1740, "30 is used to achieve attribute stacking; intensity value: -20", indicates that after the ray 1720 with an intensity value of 50 passes through the virtual mirror 1730, a first outgoing ray 1750 with an intensity value of 30 (which can be represented as a thinner ray with a visual intensity value of 30, i.e., the second intensity, or by one or more representations such as ray thickness and ray brightness, etc., is displayed) is emitted from the virtual mirror 1730. In other words, the "intensity value -20" has a detrimental effect on the ray that passes through a virtual mirror 1730.
[0247] Among them, the scheme of obtaining a single ray by protecting the superposition attributes of multiple rays means that after a single ray passes through the receiver, it is superimposed with attributes (such as color and intensity) to achieve ray emission. Superposition display can enrich the visual layers of the screen, break the monotony of a single screen, make the presented content more three-dimensional and atmospheric, enrich the game strategy and ensure the timeliness of data processing.
[0248] It is worth noting that the above are merely illustrative examples. The above content can be implemented independently or in combination, and the embodiments of this application do not limit this.
[0249] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; by assigning ray attributes such as ray color and intensity to the ray propagation element, the first ray attribute corresponding to the ray propagation element can be used to more richly adjust the incident ray (such as the first incident ray), thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements.
[0250] In an optional embodiment, when the ray propagation element receives at least two incident rays, a fourth ray attribute corresponding to the second outgoing ray is determined based on the ray attributes corresponding to the at least two incident rays, thereby displaying the second outgoing ray emitted from the ray propagation element. (Illustrative, as shown...) Figure 18 As shown above, Figure 3 The illustrated embodiment may also include steps 1810 to 1820.
[0251] Step 1810: Display at least two incident rays received by the ray propagation element.
[0252] Among them, at least two incident rays include the first incident ray.
[0253] In a schematic representation, a virtual scene includes at least one ray. The ray that enters the ray propagation element is called the incident ray. The ray propagation element can receive a single incident ray or multiple incident rays. Taking the example that the ray propagation element receives at least two incident rays, including the first incident ray described above.
[0254] In some embodiments, at least two incident rays may come from the same virtual light source or from different virtual light sources; furthermore, at least two incident rays may correspond to the same ray properties or to different ray properties, without limitation here.
[0255] Step 1820 shows the second outgoing ray emitted from the ray-propagating element.
[0256] The fourth ray attribute corresponding to the second outgoing ray is determined based on the ray attributes corresponding to at least two incident rays.
[0257] Indicatively, the second outgoing ray is the outgoing ray emitted from the ray propagation element after receiving at least two incident rays from the ray propagation element.
[0258] Optionally, the second outgoing ray can be implemented as a single ray, such as: after summarizing and analyzing at least two incident rays, outputting a single second outgoing ray.
[0259] Optionally, the second emitted ray can be implemented as multiple rays, such as analyzing at least two incident rays to obtain at least two second emitted rays, with each of the at least two second emitted rays corresponding to one of the at least two incident rays; or, the second emitted ray can be implemented as multiple rays, such as analyzing at least two incident rays to obtain multiple second emitted rays, where one incident ray corresponds to multiple second emitted rays (such as refracted rays, reflected rays, etc.), and / or one emitted ray corresponds to multiple incident rays (such as some incident rays having refracted rays that overlap, thus appearing as one emitted ray, etc.), etc., without limitation here.
[0260] In an optional embodiment, when a ray propagation element receives a first incident ray, the second ray attribute corresponding to the first incident ray is affected by the first ray attribute corresponding to the ray propagation element, thereby displaying a first outgoing ray that satisfies the first ray attribute (such as attribute replacement, attribute superposition, etc.).
[0261] In an optional embodiment, when the ray propagation element receives multiple incident rays (including the first incident ray), the outgoing ray is determined solely based on the ray properties corresponding to each of the multiple incident rays.
[0262] In some embodiments, the ray properties corresponding to at least two incident rays are superimposed to display a second outgoing ray emitted from the ray propagation element.
[0263] Indicatively, at least two incident rays each have corresponding ray properties (which can be the same or different); the outgoing ray corresponding to the incident ray is determined by superimposing the properties.
[0264] Optionally, the colors corresponding to at least two incident rays are superimposed to display the second outgoing ray emitted from the ray propagation element, represented by the superimposed colors.
[0265] Among them, the superimposed color is the color obtained by superimposing the colors corresponding to at least two incident rays.
[0266] In a schematic way, when a ray propagation element receives multiple incident rays, it automatically analyzes the ray attributes corresponding to each of the multiple incident rays. If the ray attributes include ray color, it combines the ray colors corresponding to each incident ray to determine the superimposed color, thereby displaying the second outgoing ray with the superimposed color emitted from the ray propagation element.
[0267] like Figure 19 As shown, the ray propagation element is a virtual converter 1900, which receives incident rays 1910 and 1920. Incident ray 1910 is yellow (represented by a dashed line), and incident ray 1920 is green (represented by a solid line). The virtual converter 1900 superimposes the yellow and green colors based on the received multiple incident rays, thus displaying a second outgoing ray 1930 (represented by a bold solid line) emanating from the virtual converter 1900. (Here, a single second outgoing ray 1930 is used as an example, and is not limited to this example.) The second outgoing ray 1930 can also participate in the ray propagation process through other ray propagation elements (such as a virtual mirror 1940, etc.), which is not limited here.
[0268] In some embodiments, the ray intensities corresponding to at least two incident rays are superimposed to display a second outgoing ray emitted from the ray propagation element, expressed in terms of superimposed intensity.
[0269] The superposition intensity is the intensity obtained by superimposing the intensity of at least two incident rays.
[0270] In a schematic manner, when a ray propagation element receives multiple incident rays, it automatically analyzes the ray properties corresponding to each of the multiple incident rays. If the ray properties include ray intensity, it determines the superposition intensity by combining the ray intensities corresponding to each incident ray, thereby displaying the second outgoing ray with the superposition intensity emitted from the ray propagation element.
[0271] like Figure 20 As shown, the ray propagation element is a virtual converter 2000, which receives incident rays 2010 and 2020. The intensity of incident ray 2010 is intensity value 20 (expressed numerically), and the intensity of incident ray 2020 is intensity value 10. The virtual converter 2000 superimposes intensity values 20 and 10 based on the receipt of multiple incident rays, thereby displaying a second outgoing ray 2030 with an intensity value of 30 emitted from the virtual converter 2000 (here, a single second outgoing ray 2030 is used as an example, and is not limited to this). The second outgoing ray 2030 can also participate in the ray propagation process through other ray propagation elements (such as a virtual mirror 2040, etc.), which is not limited here.
[0272] In some embodiments, a second outgoing ray emitted from the ray propagation element is displayed based on the ray attribute corresponding to at least one of the at least two incident rays with the highest attribute priority.
[0273] This is illustrative, showing at least two incident rays, each with its own ray attribute (which can be the same or different). The attribute priorities of these attributes are compared; these priorities are typically pre-defined based on the ray attribute's pre-defined priority. For example, if the ray attribute is ray intensity, higher intensity generally means higher priority (or vice versa, but this is not limited here). Alternatively, if the ray attribute is ray color, red may be pre-defined as having the highest priority, followed by green, and then yellow, etc., but this is not limited here either.
[0274] Optionally, at least one incident ray with the highest attribute priority is determined from the attribute priorities corresponding to at least two incident rays, and the second outgoing ray is displayed according to the ray attribute corresponding to at least one incident ray.
[0275] This is illustrated by showing how the ray attribute corresponding to the incident ray with the highest attribute priority is used as the ray attribute of the second emitted ray, thus displaying the corresponding emission effect. For example, if the ray color corresponding to the incident ray with the highest attribute priority is "red", then a red second emitted ray emitted from the element from which the ray propagates will be displayed; or, if the ray intensity corresponding to the incident ray with the highest attribute priority is "intensity value 50", then a second emitted ray with an intensity value of 50 emitted from the element from which the ray propagates will be displayed, and so on.
[0276] like Figure 21 As shown, the ray propagation element is a virtual converter 2100, which receives incident rays 2110 and 2120. The ray intensity of incident ray 2110 is intensity value 20 (expressed in numerical form), and the ray intensity of incident ray 2120 is intensity value 10. The virtual converter 2100 compares the ray attributes corresponding to incident rays 2110 and 2120 based on the receipt of multiple incident rays. If the incident ray with the highest attribute priority is determined to be incident ray 2110 with intensity value 20, then the second outgoing ray 2130 with intensity value 20 emitted from the virtual converter 2100 is displayed (here, a single second outgoing ray 2130 is used as an example, and is not limited to this).
[0277] Similarly, the above analysis of color and intensity can be used individually or in combination, without limitation here.
[0278] In an optional embodiment, different processing methods will occur when different types of ray propagation elements receive multiple incident rays; for example, when a third ray propagation element receives multiple incident rays (including the first incident ray), the outgoing ray will be determined based on the ray properties corresponding to each of the multiple incident rays.
[0279] In illustrative terms, the type of the third ray propagation element is pre-defined and can perform different functions compared to other types of ray propagation elements (such as the first ray propagation element mentioned above). For example, the virtual converter can determine the output ray based on the ray properties corresponding to each of the multiple incident rays, while the virtual mirror will affect the ray emission mode based on the corresponding first ray property when it receives multiple incident rays. Therefore, when the virtual converter receives multiple incident rays (including the first incident ray), it will determine the output ray based on the ray properties corresponding to each of the multiple incident rays.
[0280] In an optional embodiment, when the ray propagation element receives multiple incident rays (including a first incident ray), the outgoing ray is determined by taking into account the ray properties corresponding to each of the multiple incident rays, taking into account the first ray property of the ray propagation element.
[0281] Optionally, the ray propagation element corresponds to the first ray attribute. If the ray propagation element receives multiple incident rays, each incident ray also corresponds to a ray attribute. The first ray attribute and the ray attributes corresponding to each of the multiple incident rays can be superimposed to display the second outgoing ray (such as a single ray or multiple rays determined based on the ray propagation process).
[0282] For example, taking the ray attribute including ray color as an example, the first ray attribute corresponding to the ray propagation element includes "yellow". If the ray propagation element receives "green" incident ray 1 and "blue" incident ray 2, "yellow", "green" and "blue" can be superimposed to display a second outgoing ray of "yellow, green and blue" mixture (such as a single ray or multiple rays determined based on the ray propagation process), etc.
[0283] Alternatively, taking ray attributes including ray intensity as an example, the first ray attribute corresponding to the ray propagation element includes an intensity value of 20. If the ray propagation element receives incident ray 1 with an intensity value of 15 and incident ray 2 with an intensity value of 15, the intensity values can be superimposed to display a second outgoing ray with an intensity value of 50 (such as a single ray or multiple rays determined based on the ray propagation process), etc.
[0284] Optionally, the ray propagation element corresponds to the first ray attribute. If the ray propagation element receives multiple incident rays, and each of the multiple incident rays also corresponds to a ray attribute, the ray attribute corresponding to each of the incident rays can be ignored, thereby achieving the replacement effect through the first ray attribute, that is, displaying the second outgoing ray with the first ray attribute (such as a single ray or multiple rays determined based on the ray propagation process), etc.
[0285] For example, taking the ray attribute including ray color as an example, the first ray attribute corresponding to the ray propagation element includes "yellow". If the ray propagation element receives "green" incident ray 1 and "blue" incident ray 2, the replacement effect is achieved through "yellow", thereby displaying the second outgoing ray of "yellow" (such as a single ray or multiple rays determined based on the ray propagation process), etc.
[0286] Alternatively, taking ray attributes including ray intensity as an example, the first ray attribute corresponding to the ray propagation element includes an intensity value of 20. If the ray propagation element receives incident ray 1 with an intensity value of 15 and incident ray 2 with an intensity value of 15, the replacement effect is achieved through "intensity value 20", thereby displaying the second outgoing ray with "intensity value 20" (such as a single ray or multiple rays determined based on the ray propagation process), etc., without limitation here.
[0287] It is worth noting that the above are merely illustrative examples, and the embodiments of this application are not limited thereto.
[0288] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; by assigning ray attributes such as ray color and intensity to the ray propagation element, the first ray attribute corresponding to the ray propagation element can be used to more richly adjust the incident ray (such as the first incident ray), thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements.
[0289] Among them, the content of the second outgoing ray is displayed using ray attributes; it can be displayed in an overlay form, or the display can be determined based on attribute priority, such as determining the outgoing ray based on the incident ray with the highest intensity, thereby increasing the richness of ray variations and thus improving the strategic nature of the game and the efficiency of human-computer interaction.
[0290] In an optional embodiment, if a second incident ray intersects with a first virtual element in the virtual scene, the corresponding element influence result is displayed based on the different ray attributes corresponding to the second incident ray. (Illustrative example, such as...) Figure 22 As shown above, Figure 3 The illustrated embodiment may further include one or more of steps 2210 and 2220; wherein the second incident ray can be implemented as a first incident ray that intersects with the first virtual element, or as a first outgoing ray that intersects with the first virtual element, or as any ray in the virtual scene that can intersect with the first virtual element, etc. Here, taking the second incident ray as a first outgoing ray that intersects with the first virtual element as an example, steps 2210 and 2220 are as described above. Figure 3 The steps following step 330 shown are not limited here.
[0291] Step 2210: When the second incident ray in the virtual scene intersects with the first virtual element, display the influence result of the first element corresponding to the first virtual element based on the fifth ray attribute corresponding to the second incident ray.
[0292] Among them, the influence result of the first element is used to characterize the influence of the fifth ray attribute on the first virtual element.
[0293] For illustrative purposes, the ray attribute corresponding to the second incident ray is the fifth ray attribute; when the second incident ray is implemented as the first incident ray described above, the fifth ray attribute is the second ray attribute described above, which is not limited here.
[0294] If the second incident ray in the virtual scene intersects with the first virtual element, that is, the second incident ray hits the first virtual element, it will affect the first virtual element through the fifth ray attribute, thus presenting the corresponding effect of the first element.
[0295] Optionally, the effect of the first element is determined based on the element type of the first virtual element; the first virtual element includes one or more of virtual objects, interactive elements (such as virtual buildings, virtual props), and may even include ray propagation elements, etc., without limitation here.
[0296] For illustrative purposes, the first virtual element represents a virtual object, and its effect is on the object's attributes (such as object level, object health, object mana, etc.); the first virtual element represents a virtual building, and its effect is on the virtual building's activation status (such as whether it is activated); the first virtual element represents a virtual item, and its effect is on the item's attributes (such as whether the virtual item is picked up, the virtual item's modification status, etc.); the first virtual element represents a ray propagation element, and its effect is on the ray propagation element's elemental attributes (such as whether the fifth ray attribute can be set as the ray propagation element's elemental attribute, such as if it is a special function), which is not limited here.
[0297] like Figure 23 The diagram shows an interface where the second incident ray and the first virtual element do not intersect. The first virtual element is represented by the virtual mirror 2310. If the second incident ray 2320 and the virtual mirror 2310 do not intersect, the second incident ray 2320 is emitted along its emission direction in the virtual scene.
[0298] like Figure 24 The diagram shows an interface where the second incident ray intersects with the first virtual element. The first virtual element is represented by the virtual mirror 2410. If the second incident ray 2420 intersects with the virtual mirror 2410, then the second incident ray 2420 is emitted onto the virtual mirror 2410 in the virtual scene.
[0299] In an optional embodiment, if the second incident ray intersects with the first virtual object in the virtual scene, and the fifth ray attribute corresponding to the second incident ray is used to weaken the first object attribute of the first virtual object, the weakening result of the object attribute corresponding to the first virtual object is displayed.
[0300] Optionally, the first virtual object is the master virtual object controlled by the current terminal; and / or, the first virtual object is a teammate virtual object of the master virtual object; and / or, the first virtual object is an adversary virtual object of the master virtual object, etc.
[0301] Among them, the first object attribute is the object attribute corresponding to the first virtual object. The object attribute includes one or more of the following: object health, object mana, object level, object appearance, etc. If the fifth ray attribute is used to weaken the first object attribute of the first virtual object, then the effect of the first element is the weakening result of the object attribute corresponding to the first virtual object.
[0302] like Figure 25 The diagram shows an interface illustration of the fifth ray attribute used to weaken the health of the first virtual object. The second incident ray 2510 intersects with the first virtual object 2520. Based on the fifth ray attribute corresponding to the second incident ray 2510, the health of the first virtual object 2520 is weakened, resulting in a text message 2530 displaying the weakening effect, such as "Deducting health," etc. This is not explicitly specified here.
[0303] In an optional embodiment, if the second incident ray intersects with the first interactive element in the virtual scene, and the fifth ray attribute is used to present the first virtual effect, the first virtual effect is displayed at the first interactive element.
[0304] In illustrative terms, interactive elements are virtual elements that display corresponding effects based on ray triggering. Interactive elements have interactive functions to display corresponding interface effects; for example, rays with different ray attributes can make interactive elements display different virtual effects, such as the fifth ray attribute being used to present the first virtual effect.
[0305] For example: the first interactive element is the first virtual prop, and the first virtual effect is the prop picking effect; that is, the second incident ray intersects with the first virtual prop in the virtual scene, and the fifth ray attribute is used to present the prop picking effect, to represent that the first virtual prop is successfully picked up through the second incident ray, etc.
[0306] Step 2220: When the third incident ray in the virtual scene intersects with the first virtual element, display the influence result of the second element corresponding to the first virtual element based on the sixth ray attribute corresponding to the third incident ray.
[0307] The influence result of the second element is used to characterize the influence of the sixth ray attribute on the first virtual element; the sixth ray attribute is different from the fifth ray attribute, and the influence results of the first element and the second element are different.
[0308] For illustrative purposes, the third incident ray is any incident ray, which can be either the first incident ray or the second incident ray mentioned above; the ray attribute corresponding to the third incident ray is the sixth ray attribute.
[0309] If the third incident ray in the virtual scene intersects with the first virtual element, that is, the third incident ray hits the first virtual element, it will affect the first virtual element through the sixth ray attribute, thus presenting the corresponding effect of the second element.
[0310] Optionally, the effect of the second element is determined based on the element type of the first virtual element; the first virtual element includes one or more of virtual objects, interactive elements (such as virtual buildings, virtual props), and may even include ray propagation elements, etc., without limitation here.
[0311] In an optional embodiment, if the third incident ray intersects with the first virtual object, and the sixth ray attribute is used to enhance the first object attribute of the first virtual object, the enhanced object attribute result corresponding to the first virtual object is displayed.
[0312] Optionally, the first virtual object is the master virtual object controlled by the current terminal; and / or, the first virtual object is a teammate virtual object of the master virtual object; and / or, the first virtual object is an adversary virtual object of the master virtual object, etc.
[0313] Among them, the first object attribute is the object attribute corresponding to the first virtual object. The object attribute includes one or more of the following: object health, object mana, object level, object appearance, etc. If the sixth ray attribute is used to enhance the first object attribute of the first virtual object, then the effect of the second element is to enhance the object attribute corresponding to the first virtual object.
[0314] In an optional embodiment, if the third incident ray intersects with the first interactive element, and the sixth ray attribute is used to render the second virtual effect, the second virtual effect is displayed at the first interactive element.
[0315] In illustrative terms, interactive elements are virtual elements that display corresponding effects based on ray triggering. Interactive elements have interactive functions to display corresponding interface effects; for example, rays corresponding to different ray attributes can make interactive elements display different virtual effects, such as the sixth ray attribute being used to present the second virtual effect.
[0316] For example: the first interactive element is the first virtual prop, and the first virtual effect is the prop-stealing effect; that is, there is an intersection between the third incident ray and the first virtual prop in the virtual scene, and the sixth ray attribute is used to present the prop-stealing effect, so as to represent that the first virtual prop is taken from the holder (a virtual object) through the third incident ray, etc.
[0317] In an optional embodiment, if the first emitted ray intersects with a second virtual element in the virtual scene, the element unlocking result corresponding to the second virtual element is displayed based on the ray attribute of the first emitted ray.
[0318] The element unlocking result is used to characterize the influence of the first emitted ray on the state of the second virtual element. Illustratively, the second virtual element is a virtual element in the virtual scene that can be in a locked state, unlocked state, etc., such as a virtual door, a virtual treasure chest, a virtual light source, or one or more other types of virtual elements.
[0319] Taking the second incident ray as the first outgoing ray as an example, if the first outgoing ray intersects with the second virtual element in the virtual scene, the unlocking status of the second virtual element is determined according to the ray attribute of the first outgoing ray (such as based on the first ray attribute or the third ray attribute, etc.), thereby displaying the corresponding element unlocking result.
[0320] Specifically, if the ray attribute of the first emitted ray meets the element unlocking condition, the result of successfully unlocking the element corresponding to the second virtual element is displayed; or, if the ray attribute of the first emitted ray does not meet the element unlocking condition, the result of failing to unlock the element corresponding to the second virtual element is displayed.
[0321] Indicatively, if the ray attribute of the first emitted ray (such as based on the first ray attribute or the third ray attribute, etc.) is used to successfully unlock the second virtual element, the result of successfully unlocking the element corresponding to the second virtual element is displayed, such as the virtual door being opened, the virtual treasure chest being opened, or the virtual light source being turned on to emit rays, etc.
[0322] For illustrative purposes, if the ray attribute of the first emitted ray (such as based on the first ray attribute or the third ray attribute, etc.) cannot successfully unlock the second virtual element (or is used to lock the second virtual element), the result of the element corresponding to the second virtual element being unlocked is displayed, such as the virtual door being closed (or remaining closed), the virtual treasure chest being closed (or remaining closed), the virtual light source being turned off (or remaining closed), thus preventing the emission of rays, etc., without limitation here.
[0323] like Figure 2 As shown, the second virtual element is the virtual door 240 in the virtual scene; if the first outgoing ray 230 intersects with the virtual door 240 in the virtual scene, and the ray attribute of the first outgoing ray 230 is used to successfully open the virtual door, then the unlocking result of the element corresponding to the virtual door 240 is displayed as shown in interface 202.
[0324] In the process of solving puzzles using ray casting, if a mechanism is adopted in which a ray can be used to accurately illuminate a specific second virtual element (such as a virtual door) and unlock it only when certain conditions are met, the logic and fun of the interaction will be greatly improved, the problem of accidental unlocking caused by accidental touches will be avoided, players will be guided to observe the virtual scene to find the triggering pattern, and the puzzle-solving experience will be enriched.
[0325] It is worth noting that the above are merely illustrative examples, and the embodiments of this application are not limited thereto.
[0326] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; by assigning ray attributes such as ray color and intensity to the ray propagation element, the first ray attribute corresponding to the ray propagation element can be used to more richly adjust the incident ray (such as the first incident ray), thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements.
[0327] In the case of virtual elements being implemented as virtual objects, interactive elements, etc., the intersection can be used to achieve richer interaction between rays and virtual scenes, enhance the strategic nature of the game, adapt to different screen display needs through differentiated presentation of screen performance, and greatly improve visual expressiveness to improve human-computer interaction efficiency.
[0328] In an optional embodiment, the above-described ray interaction method based on virtual scenes can be applied to puzzle-solving and reasoning game scenarios; the above-described ray interaction method based on virtual scenes can also be referred to as "an implementation scheme for in-game ray gameplay", and the ray interaction method based on virtual scenes will be introduced from the following two aspects.
[0329] (a) Interface side.
[0330] In a schematic representation, considering that in related technologies, players use virtual mirrors such as water or ice surfaces to deflect and reflect rays emitted by a light source, ultimately guiding the rays to a receiving device at their destination. The light source acts as a ray emitter (ray-emitting element), while the water and ice mirrors are ray receivers (ray-receiving elements, also understood as ray-propagating elements), each altering the ray's deflection and reflection upon receipt. However, receiving a ray doesn't change the ray itself; instead, it triggers subsequent logic for successful decryption.
[0331] The main drawbacks of the related technologies are concentrated in the following two aspects: (1) The ray receiver can only change the direction of the received ray by deflection or reflection. Deflection and reflection are essentially just corrections to the direction of the ray. The water surface mirror and ice surface mirror have limited influence on the direction of the ray as a plane, and the way to change the ray is relatively simple. The ray emitted by the ray emitter is a short segment of special effect that moves continuously in the direction of the ray. If multiple ray emitters emit at the same time, the player cannot distinguish the movement trajectory of the ray among a large number of special effects that are constantly changing direction. This limits the maximum number of rays that can exist at the same time in the puzzle, and makes it impossible to build complex ray puzzles. (2) The function of the ray itself is relatively simple. It only triggers the subsequent puzzle logic after reaching the final ray receiver. It cannot interact with or affect other objects in the scene. During the process of the ray propagating between the ray emitter and the ray receiver, the ray itself does not change except for its position and direction. It is impossible to expand the gameplay at the ray state level.
[0332] By using the solutions described in the embodiments of this application to replace related technologies, the above-mentioned problems can be solved one by one. First, the main concept of the embodiments of this application will be briefly explained.
[0333] (1) This application embodiment adds the function of deflecting, reflecting and refracting the incident ray based on the surface hit by the incident ray to generate an outgoing ray. The ray propagation element is not just a plane, but can affect the outgoing ray generated by the incident ray according to the model used. The rays emitted by the ray propagation element are a continuous and persistent form of expression. Players can observe the trajectory of the ray throughout the process, which can support the expansion of multiple rays existing at the same time in the puzzle, enriching the complexity of the puzzle and increasing the upper limit of the complexity that the puzzle can be constructed.
[0334] (2) In this embodiment, at least two ray attributes, namely color and intensity, are added to the ray. Different colors can be used to distinguish different functions, so that the ray can produce different effects in the virtual scene (such as unlocking only when irradiated by a ray of a specific color). The intensity of the ray can change the strength of the corresponding function effect (such as unlocking only when irradiated by a ray of a specific intensity value). When the ray propagation element obtains the outgoing ray through the incident ray, it can modify the color and intensity of the ray according to its own configuration, so that the function of the ray is more abundant.
[0335] The following description, in conjunction with the accompanying drawings, illustrates the interface.
[0336] In some embodiments, the rays emitted by the ray emitter are in a coherent and persistent form, capable of being deflected, reflected, and refracted by ray propagation elements (such as ray propagation elements). Figure 6As shown, the player can control the master virtual object 640 to create ray propagation elements in the virtual scene (such as adding receiver components to make it a ray receiver). Figure 6 The ray propagation element shown can be implemented as a transparent spherical model. The ray propagation element is calculated based on the surface hit by the incident ray to generate the corresponding outgoing ray.
[0337] In some embodiments, when the ray propagation element is configured with color conversion and intensity attenuation rate (e.g., influencing the ray properties of a ray passing through the ray propagation element via a first ray property), the outgoing ray is calculated to modify the ray color and / or ray intensity of the incident ray (e.g., the first incident ray) according to the first ray property. Figure 13 As shown, the ray propagation element converts the yellow incident ray into a green outgoing ray, thereby achieving the purpose of reflecting the ray.
[0338] In some embodiments, the ray-propagating element can execute different logic based on the different colors of the ray. For example, adding a ray-propagating element to the player-controlled virtual object makes the player itself a ray-propagating element. When the ray-propagating element receives a yellow ray, the player continuously deducts the object's health; when the ray receiver receives a green ray, the player continuously restores the object's health, and so on.
[0339] In some embodiments, the ray propagation element can also superimpose multiple incident rays, and the ray color and / or ray intensity of the incident rays are superimposed. In this case, the outgoing ray simultaneously possesses all the functions of all the incident rays before superposition. For example... Figure 19 As shown, the yellow incident ray 1910 and the green incident ray 1920 are superimposed to obtain the yellow-green outgoing ray 1940, which will subsequently be used as the incident ray for other receivers. Optionally, according to the settings in the above example, when the master virtual object is a ray propagation element, the object's health will not change when it receives a yellow-green ray.
[0340] In some embodiments, players can interact with the ray emitter; taking the above method on a PC as an example, players can enter a first-person perspective and control the direction of the ray emitted by the ray emitter using the W, A, S, and D keys (or other physical keys or even interface controls, etc., which are not limited here). Figure 23 and Figure 24 As shown. Of course, players can use mobile devices or even head-mounted displays to achieve the above method; there are no restrictions here.
[0341] (ii) Technical side.
[0342] In one optional embodiment, the ray-based gameplay can be mainly described in the following parts.
[0343] (1) In terms of appearance, the ray is a special effect. The corresponding parameters and materials (collectively referred to as ray properties) are modified according to the ray's starting point, ending point, and color to construct the appearance effect of a ray of a certain color from the starting point to the ending point. Logically, the ray is a structure, which mainly includes the special effect used, the ray emitter (ray emitting element) of the source, color, intensity, and information about the plane hit.
[0344] (2) A ray emitter is an object that emits rays. Any object that carries a ray emitter component can be called a ray emitter. A ray emitter can emit a corresponding ray according to the ray attributes configured on the ray emitter component. The ray's effects, color, intensity, and other ray attributes can all be defined on the emitter.
[0345] (3) A ray receiver (ray receiving element) is an object that receives rays. Any object carrying a ray receiver component can be called a ray receiver. A ray receiver can receive rays and execute logic based on the ray properties configured on the ray receiver component, or offset, reflect, and refract the incident ray to obtain the outgoing ray. The ray receiver component can dynamically set whether offset, reflection, and refraction are enabled, and can modify the offset angle and the refractive index of the refraction, which has a very high degree of flexibility.
[0346] like Figure 26 The diagram shown is a technical flow interaction diagram of the ray-based gameplay described in the embodiments of this application.
[0347] This includes a laser emitting element 2610 and at least two laser receiving elements, including laser receiving element 2621 and laser receiving element 2622.
[0348] Optionally, when the ray emitting element 2610 emits a ray that hits the ray receiving element 2621, logically the ray emitting element 2610 will transmit the structure of the ray (i.e. the incident ray that hits the ray receiving element 2621) to the hit ray receiving element 2621. Visually, this will create a line that starts at the position specified by the ray emitting element 2610, ends at the position where the ray receiving element 2621 is hit by the ray, and has a color that is configured by the ray emitting element 2610.
[0349] Subsequently, the ray receiving element 2621 superimposes or splits all received incident rays and modifies the ray properties of the rays according to its own configuration to form the ray properties of new outgoing rays. When the reflection and / or refraction functions are enabled, the ray receiving element 2621 uses the ray properties of the outgoing rays (such as the first ray property mentioned above) to calculate the ray properties of the incident rays (such as the second ray property mentioned above) to generate new outgoing rays.
[0350] In some embodiments, a first propagating ray propagated by a second propagating element is received once by a first ray receiving element, and a second propagating ray propagated by a first ray receiving element is received once by a second ray receiving element.
[0351] To illustrate, in order to avoid infinite reflections between two ray receivers, identical incident rays will be filtered out, meaning that only incident rays (propagating rays) that are received from the same ray receiver will be filtered out, and identical outgoing rays will not be created.
[0352] Optionally, if the emitted ray hits another ray-receiving element (such as ray-receiving element 2622), the process is repeated as follows. Figure 26 The process is shown.
[0353] In some embodiments, the color sequence corresponding to the virtual scene is obtained.
[0354] The color sequence is used to sequentially represent at least two ray colors that can be displayed within the virtual scene.
[0355] Optionally, the virtual scene can be pre-configured to display N ray colors (i.e., it is not certain that N ray colors will be displayed in the virtual scene, but the virtual scene supports a maximum of N ray colors). For any ray propagation element, there are M incident rays, and L colors change each time. In general, N >> M >= L. A conventional approach requires traversing all ray colors and incident rays, and finally comparing the color differences before and after, but this would have a time complexity of O(N+M).
[0356] Optionally, if the virtual scene supports the analysis of rays of 5 colors, namely yellow, red, green, blue and black, then N=5; the color sequence corresponding to the virtual scene is obtained by representing it in this order: "yellow, red, green, blue and black".
[0357] In some embodiments, based on the ray color of the incident ray received by the ray propagation element at the first moment, the first base result corresponding to the first moment is represented in binary form according to the color sequence.
[0358] In illustrative terms, the binary form is represented by 0s and 1s. Following the color sequence "yellow, red, green, blue, black," the corresponding 0s and 1s are used to indicate whether the ray-propagating element received the ray of the corresponding color. Optionally, the first moment can be the current moment; or, the first moment can be a previous historical moment. Here, we take the first moment as the current moment as an example.
[0359] Optionally, for the first ray color in the color sequence, if the incident ray received by the ray propagation element at the first moment includes the first ray color, the received first ray color is represented by a first value; if the incident ray received by the ray propagation element at the first moment does not include the first ray color, the received first ray color is represented by a second value; according to the color arrangement order of at least two ray colors in the color sequence, a first base result corresponding to the first moment represented by one or more forms of the first and second values is generated.
[0360] For illustrative purposes, the first ray color is any ray color that the virtual scene supports displaying; the first value indicates that the ray color was received, and the second value indicates that the ray color was not received. Based on the color sequence of at least two ray colors, a first-ary result corresponding to the first moment is generated. This result may include only the first value, or it may include both the first and second values (usually, the first value is included if the ray propagation element receives the ray). In binary form, if the first value is 1, the second value is 0; if the first value is 0, the second value is 1. The former is used as an example here.
[0361] Indicatively, the virtual scene supports the analysis of rays of 5 colors, namely yellow, red, green, blue, and black, and represented in this order (color sequence); there are 4 rays in the virtual scene, and the ray propagation element to be analyzed receives 3 incident rays, including the yellow ray, the red ray, and the blue ray, then the corresponding M=3 at the first moment; and the color reception status is represented in binary as 11010 (i.e., the first base result).
[0362] In some embodiments, based on the color of the incident rays received by the ray propagation element at the second time moment, the binary result corresponding to the second time moment is represented in binary form according to the color sequence.
[0363] Optionally, for the first ray color in the color sequence, if the incident ray received by the ray propagation element at the second time moment includes the first ray color, the received first ray color is represented by a first value; if the incident ray received by the ray propagation element at the second time moment does not include the first ray color, the received first ray color is represented by a second value; according to the color arrangement order of at least two ray colors in the color sequence, the binary result corresponding to the second time moment represented by one or more forms of the first and second values is generated.
[0364] Indicatively, if the second moment is the most recent previous moment, then if the element that propagated the ray received 3 incident rays in the last time, including the yellow ray, the green ray, and the blue ray, then the color reception situation is represented in binary as 10110 (i.e., the binary result).
[0365] In some embodiments, the first base result and the second binary result represent the changes in ray reception corresponding to the ray propagation element from the first time moment to the second time moment.
[0366] Indicatively, by comparing the changes between the first-ary result and the second-ary result, we obtain the ray reception change results corresponding to the ray propagation elements from the first time point to the second time point. The ray reception change results are used to characterize the color change of the rays received in the two consecutive times.
[0367] To illustrate, by comparing the first-ary result "11010" with the previous second-ary result "10110", it is possible to quickly determine that the newly received "red ray" is different from the previous one, which did not receive "green ray".
[0368] Similarly, the binary analysis method described above can be used to analyze changes in intensity and other ray properties, without limitation here.
[0369] In some embodiments, an XOR operation is performed on the first base result and the second binary result to obtain the processing result; a negative two's complement operation is performed on the processing result to obtain the two's complement result; and a least significant bit operation is performed on the processing result and the two's complement result to determine the X-ray reception change result.
[0370] To illustrate, XOR is a basic bitwise operation that compares a base-1 result with a binary result. If the corresponding bits are the same, the output is 0; otherwise, the output is 1. For example, performing an XOR operation between the base-1 result "11010" and the binary result "10110" yields the result "01100".
[0371] To illustrate, negative number two's complement processing is a computer encoding method for storing signed numbers. First, the bits of the processed result are inverted, and then one is added to the end to obtain the corresponding two's complement result. For example, inverting the bits of the processed result "01100" yields "10011", and then adding one to the end yields "10100" as the two's complement result.
[0372] Optionally, a bitwise AND operation is performed on the processing result and the complement result to obtain the operation result; based on the least significant bit in the operation result, the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment is determined.
[0373] Indicatively, the least significant bit operation is performed by taking the rightmost significant 1 from the binary representation after a bitwise AND operation. This result reflects the change in ray reception; it is 1 only if both bits are 1, otherwise it is 0. For example, the operation of "01100" and "10100" results in "00100", where the least significant bit is 1. This indicates that no "green ray" was received compared to the previous time.
[0374] In other words, for a positive integer X (the processing result), performing a bitwise AND operation between X and -X (the padding result) will yield the least significant bit of X in its binary representation. By using the idea of binary search to obtain the number of leading zeros in the least significant bit, we can get the number of bits in that bit and thus determine the specific color change. The time complexity is optimized to O(M+L).
[0375] The process begins by comparing two sets of data using an XOR operation to quickly identify the differing bits, yielding the basic processing result. Next, the result is multiplied by two's complement to enhance the representation of low-order features. Finally, the least significant bit operation is performed on the result and the two's complement, accurately determining the bit-level difference and outputting the ray reception change result representing the difference. This binary bitwise operation is concise and efficient, requiring fewer resources and executing quickly.
[0376] In other words, this application embodiment has made a simple optimization to the process of splitting and superimposing the colors of the incident rays. Optionally, binary bits are used to store the incident rays currently received by the ray propagation element, with 0 indicating that a ray of a certain color has not been received and 1 indicating that a ray of a certain color has been received. Each time the currently received incident ray is determined, it is XORed with the previously received incident ray to obtain the difference between the two. At this time, only the difference bits need to be extracted to obtain the changed color.
[0377] Within this framework, constrained by the color sequence, comparing the color changes of two received rays efficiently yields the differences between them. The binary search approach quickly narrows the search range, discards invalid data, and significantly reduces time complexity. Compared to a linear approach that iterates through the entire scene, this method reduces the number of computations by a factor of two, improves operational efficiency, enhances the response speed of the virtual scene, reduces the resource consumption of running the virtual scene, and makes the scene run more smoothly and stably.
[0378] In an optional embodiment, such as Figure 27 The diagram shown illustrates ray reflection. The incident ray 2710 passes through ray propagation element 2720 to become the reflected ray 2730. The reflection calculation formula is shown in Formula 1 below.
[0379] Formula 1:
[0380] in, The incident vector represents the incident ray. It is the unit normal vector; It is the dot product of two vectors, representing the correlation of the included angle. To double the normal projection vector, subtract this value from the incident vector, and finally... This is the outgoing vector corresponding to the reflected ray.
[0381] In an optional embodiment, such as Figure 28 The diagram shown illustrates the refraction of a ray. The incident ray 2810 passes through ray propagation element 2820 to become the refracted ray 2830. The refraction calculation formula is shown in Formula 2 below.
[0382] Formula 2:
[0383] in, It is the ray vector corresponding to the refracted ray. Let be the ray vector corresponding to the incident ray. It is the interface unit normal vector. For the angle of incidence, The angle of refraction is determined by the ratio of sinusoids to the refractive index. The incident component and the normal correction component are combined in segments and synthesized according to the law of refraction to form the final refraction direction.
[0384] In an optional embodiment, when a first incident ray is received on the first outer surface of the ray propagation element and the ray propagation element is used to generate a refracted ray for the first incident ray, the refraction direction corresponding to the refracted ray is obtained; a first detection ray is simulatedly emitted from the outside of the ray propagation element to the second outer surface of the ray propagation element along the opposite direction corresponding to the refraction direction, the second outer surface being opposite to the first outer surface; and the detection intersection between the first detection ray and the second outer surface is obtained as the refraction intersection of the refracted ray.
[0385] Indicative, such as Figure 29 The diagram illustrates the principle of how a ray refracts at the first outer surface of a ray propagation element in a virtual scene. Since the refracted ray 2920, which is the result of a ray (such as the first incident ray) striking the outer surface of the ray propagation element 2910 from outside the ray propagation element 2910, exists inside the model, and ray detection in the game engine cannot be performed inside the model (ray propagation element 2910), the result of the refracted ray 2920 hitting the inner surface of the model (i.e., detection intersection 2930) needs to be obtained by emitting a ray (such as the first detection ray 2940) in the opposite direction of the refraction direction of the refracted ray from outside the model towards the inside (second outer surface).
[0386] This design fully considers the issue that refracted rays striking the outer surface of a model from the outside exist inside the model, while ray detection in game engines cannot be performed inside the model. The location of the refracted ray striking the inner surface of the model is obtained by emitting rays from the outside of the model in the opposite direction to the refracted ray. This simplifies the internal traversal calculation, not only simplifying collision detection logic and reducing computational overhead, but also helping to ensure positioning accuracy, avoiding blind spots in internal ray calculation, improving the accuracy of physical simulation, and ensuring the stable operation of the virtual scene and its internal virtual elements.
[0387] In an optional embodiment, such as Figure 30 The diagram shows a comparison of related technology 3010 and embodiment 3020 of this application in terms of emitted / received rays.
[0388] The above describes the situation of emitting / receiving rays in related technology 3010, where at most one ray exists at a time. It is emitted by one ray emitting element (a traditional ray emitting element) and reaches its destination after passing through one or more ray receiving elements.
[0389] The following is an example of emitting / receiving rays in Embodiment 3020 of this application. There is no limit to the number of rays. The ray emitting element emits rays to any ray receiving element according to the emitted ray attribute. After receiving the ray, the ray receiving element can not only deflect, reflect, and refract it to other ray receiving elements, but also expand the influence of the ray attribute based on the received ray attribute (such as the first ray attribute). Using Embodiment 3020 of this application to replace related technology 3010 can improve the flexibility of configuration and greatly increase the upper limit of puzzle complexity.
[0390] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; by assigning ray attributes such as ray color and intensity to the ray propagation element, the first ray attribute corresponding to the ray propagation element can be used to more richly adjust the incident ray (such as the first incident ray), thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements.
[0391] In this embodiment, the configurable complexity limit of raycasting gameplay is effectively expanded, solving the problem of simple structure and limited functionality in related technologies. For players using this embodiment, compared to related solutions, it additionally supports configuring complex raycasting puzzle structures, supports diverse raycasting functions while remaining compatible with the configuration effects of current solutions, thus increasing the configurable complexity limit of raycasting gameplay. For developers using this embodiment, it only requires adding corresponding components to the raycasting elements for normal use, without affecting the original structure and logic, facilitating the integration and configuration of functions.
[0392] Figure 31 This is a structural block diagram of a ray-interaction device for a virtual scene provided in an exemplary embodiment of this application, as shown below. Figure 31 As shown, the device includes the following parts: The receiving module 3110 is configured to receive an element configuration operation in the virtual scene, the element configuration operation being used to enable a ray propagation element in the virtual scene, the ray propagation element corresponding to a first ray attribute; wherein, the ray attribute includes one or more of ray color and ray intensity; Display module 3120 is used to display the first incident ray received by the ray propagation element, the first incident ray corresponding to the second ray attribute; The display module 3120 is also used to display a first outgoing ray emitted from the ray propagation element, wherein the first outgoing ray is a ray that satisfies the first ray attribute after the second ray attribute of the first incident ray is adjusted.
[0393] In an optional embodiment, the receiving module 3110 is further configured to receive an element creation operation that creates the ray propagation element in the virtual scene; and, if the virtual scene includes the ray propagation element, to receive a ray configuration operation for the ray propagation element, the ray configuration operation being used to configure the first ray attribute for the ray propagation element; wherein the ray propagation element includes one or more of a ray emitting element and a ray receiving element, the ray emitting element being a virtual element that performs ray emitting in the virtual scene, and the ray receiving element being a virtual element that receives incident rays in the virtual scene and performs optical propagation processing on the incident rays.
[0394] In an optional embodiment, the receiving module 3110 is further configured to receive the element creation operation for creating the ray propagation element in a first scene area of the virtual scene, the first scene area including one or more of virtual ground, virtual sky, and virtual objects; and display the ray propagation element in the first scene area of the virtual scene based on the element creation operation.
[0395] In an optional embodiment, the display module 3120 is further configured to, when the ray propagation element receives the first incident ray emitted along the first direction, display the first emitted ray emitted from the ray propagation element along the second direction based on the first incident ray and the ray propagation rate in the first ray property; wherein the second direction is the direction obtained by adjusting the first direction with the ray propagation rate, and the ray propagation rate includes one or more of ray reflectivity, ray refractive index and ray deflection.
[0396] In an optional embodiment, the display module 3120 is further configured to display, after the first incident ray of the second ray attribute passes through the first ray propagation element, the first outgoing ray of the first ray attribute emitted from the first ray propagation element; wherein the first ray propagation element is configured to replace the second ray attribute with the first ray attribute; after the first incident ray of the second ray attribute passes through the second ray propagation element, the first outgoing ray of the third ray attribute emitted from the second ray propagation element is displayed; wherein the second ray propagation element is configured to superimpose the first ray attribute on the second ray attribute to obtain the third ray attribute.
[0397] In an optional embodiment, the display module 3120 is further configured to display, after the first incident ray of the first color passes through the first ray propagation element, the first outgoing ray of the second color emitted from the first ray propagation element; wherein, the first ray attribute corresponding to the first ray propagation element includes the second color; and after the first incident ray of the first color passes through the second ray propagation element, the first outgoing ray of the third color emitted from the second ray propagation element is displayed; wherein, the first ray attribute corresponding to the second ray propagation element includes the second color, and the third color is a color obtained by superimposing the second color on the first color.
[0398] In an optional embodiment, the display module 3120 is further configured to display, after the first incident ray of first intensity passes through the first ray propagation element, the first outgoing ray of second intensity emitted from the first ray propagation element; wherein, the first ray attribute corresponding to the first ray propagation element includes the second intensity; and after the first incident ray of first intensity passes through the second ray propagation element, the first outgoing ray of third intensity emitted from the second ray propagation element is displayed; wherein, the first ray attribute corresponding to the second ray propagation element includes the second intensity, and the third intensity is an intensity obtained by superimposing the second intensity on the first intensity.
[0399] In an optional embodiment, the display module 3120 is further configured to display at least two incident rays received by the ray propagation element, the at least two incident rays including the first incident ray; display a second outgoing ray emitted from the ray propagation element; and determine a fourth ray attribute corresponding to the second outgoing ray based on the ray attributes corresponding to the at least two incident rays respectively.
[0400] In an optional embodiment, the display module 3120 is further configured to overlay the ray attributes corresponding to the at least two incident rays respectively, and display the second outgoing ray emitted from the ray propagation element; and display the second outgoing ray emitted from the ray propagation element based on the ray attribute corresponding to the at least one incident ray with the highest attribute priority among the at least two incident rays.
[0401] In an optional embodiment, the display module 3120 is further configured to superimpose the ray colors corresponding to the at least two incident rays to display the second outgoing ray emitted from the ray propagation element, represented by the superimposed color, wherein the superimposed color is the color obtained by superimposing the ray colors corresponding to the at least two incident rays; and to superimpose the ray intensities corresponding to the at least two incident rays to display the second outgoing ray emitted from the ray propagation element, represented by the superimposed intensity, wherein the superimposed intensity is the intensity obtained by superimposing the ray intensities corresponding to the at least two incident rays.
[0402] In an optional embodiment, the display module 3120 is further configured to, when a second incident ray in the virtual scene intersects with a first virtual element, display a first element influence result corresponding to the first virtual element based on a fifth ray attribute corresponding to the second incident ray, wherein the first element influence result is used to characterize the influence of the fifth ray attribute on the first virtual element; and when a third incident ray in the virtual scene intersects with the first virtual element, display a second element influence result corresponding to the first virtual element based on a sixth ray attribute corresponding to the third incident ray, wherein the second element influence result is used to characterize the influence of the sixth ray attribute on the first virtual element; wherein the sixth ray attribute is different from the fifth ray attribute, and the first element influence result and the second element influence result are different.
[0403] In an optional embodiment, the display module 3120 is further configured to: if the second incident ray intersects with the first virtual object in the virtual scene, and the fifth ray attribute corresponding to the second incident ray is used to weaken the first object attribute of the first virtual object, display the object attribute weakening result corresponding to the first virtual object; if the third incident ray intersects with the first virtual object, and the sixth ray attribute is used to enhance the first object attribute of the first virtual object, display the object attribute enhancement result corresponding to the first virtual object.
[0404] In an optional embodiment, the display module 3120 is further configured to display the first virtual effect at the first interactive element if the second incident ray intersects with the first interactive element in the virtual scene and the fifth ray attribute is used to present the first virtual effect; and to display the second virtual effect at the first interactive element if the third incident ray intersects with the first interactive element and the sixth ray attribute is used to present the second virtual effect.
[0405] In an optional embodiment, the display module 3120 is further configured to, when the element corresponding to the ray propagation element is enabled, display the first emitted ray emitted from the ray propagation element based on the first incident ray; and when the element corresponding to the ray propagation element is disabled, display an emission line segment starting from the first ray emitting element and ending at the ray propagation element; the first ray emitting element is a virtual element that emits the first incident ray, and the emission line segment is used to characterize the trajectory of the first incident ray in the virtual scene.
[0406] In an optional embodiment, the receiving module 3110 is further configured to, in response to receiving an element acquisition operation, display at least two candidate propagation elements; wherein different candidate propagation elements correspond to different ray attributes; and receive an element selection operation for the ray propagation element among the at least two candidate propagation elements.
[0407] In an optional embodiment, the display module 3120 is further configured to display the element unlocking result corresponding to the second virtual element based on the ray attribute of the first emitted ray when there is an intersection between the first emitted ray and the second virtual element in the virtual scene. The element unlocking result is used to characterize the influence of the first emitted ray on the state of the second virtual element. Specifically, if the ray attribute of the first emitted ray meets the element unlocking condition, the element unlocking success result corresponding to the second virtual element is displayed; or, if the ray attribute of the first emitted ray does not meet the element unlocking condition, the element unlocking failure result corresponding to the second virtual element is displayed.
[0408] In an optional embodiment, the receiving module 3110 is further configured to acquire a color sequence corresponding to the virtual scene, the color sequence being used to sequentially represent at least two ray colors that can be displayed within the virtual scene; based on the ray color of the incident ray received by the ray propagation element at a first time moment, the first base result corresponding to the first time moment is represented in binary form according to the color sequence; based on the ray color of the incident ray received by the ray propagation element at a second time moment, the second binary result corresponding to the second time moment is represented in binary form according to the color sequence; and based on the first base result and the second binary result, the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment is represented.
[0409] In an optional embodiment, the receiving module 3110 is further configured to, for a first ray color in the color sequence, if the incident ray received by the ray propagation element at the first moment includes the first ray color, and if the incident ray received by the ray propagation element at the first moment does not include the first ray color, and if the incident ray received by the ray propagation element at the first moment does not include the first ray color, and if the incident ray received by the ray propagation element at the first moment does not include the first ray color, and if the first ray color is generated according to the color arrangement order of at least two ray colors in the color sequence, generate a first base result corresponding to the first moment represented by one or more forms of the first value and the second value.
[0410] In an optional embodiment, the receiving module 3110 is further configured to perform an XOR operation on the first base result and the second binary result to obtain a processing result; perform a two's complement operation on the processing result to obtain a two's complement result; and perform a least significant bit operation on the processing result and the two's complement result to determine the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment.
[0411] In an optional embodiment, the receiving module 3110 is further configured to perform a bitwise AND operation on the processing result and the complement result to obtain the operation result; and based on the least significant bit in the operation result, determine the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment.
[0412] In an optional embodiment, the receiving module 3110 is further configured to: receive a first incident ray on the first outer surface of the ray propagation element, and, when the ray propagation element is configured to generate a refracted ray for the first incident ray, obtain the refraction direction corresponding to the refracted ray; simulate emitting a first detection ray from the outside of the ray propagation element to the second outer surface of the ray propagation element along the opposite direction corresponding to the refraction direction, wherein the second outer surface is opposite to the first outer surface; and obtain the detection intersection point between the first detection ray and the second outer surface as the refraction intersection point of the refracted ray.
[0413] In summary, by adjusting the second ray attribute of the first incident ray through the first ray attribute, the first outgoing ray from the ray propagation element that satisfies the first ray attribute is displayed. This approach goes beyond simply considering the influence of the ray propagation element's orientation and position on the passing ray; by assigning ray attributes such as ray color and intensity to the ray propagation element, the first ray attribute corresponding to the ray propagation element can be used to more richly adjust the incident ray (such as the first incident ray), thus presenting the first outgoing ray that satisfies the first ray attribute. This enriches the ray interaction effects while preserving ray variation, improving the diversity of interface interactions and the efficiency of human-computer interaction based on ray propagation elements.
[0414] It should be noted that the ray-interaction device for virtual scenes provided in the above embodiments is only an example of the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the ray-interaction device for virtual scenes and the ray-interaction method embodiments for virtual scenes belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0415] Figure 32 A structural block diagram of an electronic device 3200 provided in an exemplary embodiment of this application is shown. The electronic device 3200 may be a portable mobile terminal, such as a smartphone, in-vehicle terminal, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The electronic device 3200 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.
[0416] Typically, electronic device 3200 includes a processor 3201 and a memory 3202.
[0417] Processor 3201 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 3201 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 3201 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 3201 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 3201 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0418] The memory 3202 may include one or more computer-readable storage media, which may be non-transitory. The memory 3202 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 3202 is used to store at least one instruction, which is executed by the processor 3201 to implement the raycasting interaction method for a virtual scene provided in the method embodiments of this application.
[0419] In some embodiments, the electronic device 3200 further includes one or more sensors. These sensors include, but are not limited to, proximity sensors, gyroscope sensors, and pressure sensors.
[0420] A proximity sensor, also known as a distance sensor, is typically located on the front panel of an electronic device 3200. The proximity sensor is used to detect the distance between the user and the front of the electronic device 3200.
[0421] The gyroscope sensor can detect the orientation and rotation angle of the electronic device 3200. The gyroscope sensor can work in conjunction with the accelerometer to collect 3D motion data from the user on the electronic device 3200. Based on the data collected by the gyroscope sensor, the processor 3201 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0422] A pressure sensor can be installed on the side bezel and / or the lower layer of the display screen of the electronic device 3200. When the pressure sensor is installed on the side bezel of the electronic device 3200, it can detect the user's grip signal on the electronic device 3200, and the processor 3201 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor. When the pressure sensor is installed on the lower layer of the display screen, the processor 3201 can control the operable controls on the UI interface based on the user's pressure operation on the display screen. Operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0423] In some embodiments, the electronic device 3200 also includes other component parts, as those skilled in the art will understand. Figure 32 The structure shown does not constitute a limitation on the electronic device 3200, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0424] Embodiments of this application also provide a computer device, which can be implemented as a terminal or a server. The computer device includes a processor and a memory, the memory storing at least one instruction, at least one program, code set, or instruction set. The processor loads and executes the at least one instruction, at least one program, code set, or instruction set to implement the ray-based interaction method for virtual scenes provided in the above-described method embodiments.
[0425] Embodiments of this application also provide a computer-readable storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, at least one program, code set, or instruction set is loaded and executed by a processor to implement the ray-based interaction method for virtual scenes provided in the above-described method embodiments.
[0426] Embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the ray-based interaction method for a virtual scene as described in any of the above embodiments.
[0427] Optionally, the computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random access memory may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM). The sequence numbers of the embodiments in this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0428] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk. The above descriptions are merely optional embodiments of this application and are not intended to limit the application. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for ray interaction based on a virtual scene, characterized in that, The method includes: The system receives an element configuration operation in the virtual scene, the element configuration operation being used to enable a ray propagation element in the virtual scene, the ray propagation element corresponding to a first ray attribute; wherein, the ray attribute includes one or more of ray color and ray intensity; The first incident ray received by the ray propagation element is displayed, and the first incident ray corresponds to the second ray attribute; This displays a first outgoing ray emitted from the ray propagation element, the first outgoing ray being a ray that satisfies the first ray property after the second ray property of the first incident ray is adjusted.
2. The method of claim 1, wherein, The receiving of element configuration operations in the virtual scene includes one or more of the following: Receive an element creation operation that creates the ray propagation element in the virtual scene; In the case where the virtual scene includes the ray propagation element, a ray configuration operation is received for the ray propagation element, the ray configuration operation being used to configure the first ray attribute for the ray propagation element; The ray propagation element includes one or more of ray emitting elements and ray receiving elements. The ray emitting element is a virtual element that performs ray emission in the virtual scene, and the ray receiving element is a virtual element that receives incident rays in the virtual scene and performs optical propagation processing on the incident rays.
3. The method of claim 2, wherein, The element creation operation of receiving the ray propagation element created in the virtual scene includes: Receive the element creation operation that creates the ray propagation element in a first scene region of the virtual scene, wherein the first scene region includes one or more of virtual ground, virtual sky, and virtual objects; After receiving the element creation operation that creates the ray propagation element in the virtual scene, the method further includes: Based on the element creation operation, the ray propagation element is displayed in the first scene area of the virtual scene.
4. The method according to any one of claims 1 to 3, characterized in that, The first emitted ray, which shows the ray emitted from the ray-propagating element, includes: When the ray propagation element receives the first incident ray emitted along the first direction, the first outgoing ray emitted from the ray propagation element along the second direction is displayed based on the first incident ray and the ray propagation rate in the first ray property. The second direction is the direction obtained by adjusting the first direction using the ray propagation rate, wherein the ray propagation rate includes one or more of ray reflectivity, ray refractive index, and ray deflection.
5. The method according to any one of claims 1 to 3, characterized in that, The first emitted ray, which shows the emission from the ray-propagating element, includes one or more of the following: After the first incident ray of the second ray attribute passes through the first ray propagation element, it is shown that the first outgoing ray of the first ray attribute is emitted from the first ray propagation element; wherein the first ray propagation element is used to replace the second ray attribute with the first ray attribute; After the first incident ray of the second ray attribute passes through the second ray propagation element, the first outgoing ray of the third ray attribute is displayed as emitted from the second ray propagation element; wherein the second ray propagation element is used to superimpose the first ray attribute on the second ray attribute to obtain the third ray attribute.
6. The method according to claim 5, characterized in that, The first incident ray of the second ray attribute, after passing through the first ray propagation element, displays the first outgoing ray of the first ray attribute emanating from the first ray propagation element, including: After the first incident ray of the first color passes through the first ray propagation element, it is displayed that the first outgoing ray of the second color is emitted from the first ray propagation element; wherein, the first ray attribute corresponding to the first ray propagation element includes the second color. The first incident ray of the second ray attribute, after passing through the second ray propagation element, displays the first outgoing ray of the third ray attribute emanating from the second ray propagation element, including: After the first incident ray of the first color passes through the second ray propagation element, the first outgoing ray of the third color is displayed as emitted from the second ray propagation element; wherein, the first ray attribute corresponding to the second ray propagation element includes the second color, and the third color is a color obtained by superimposing the second color on the first color.
7. The method according to claim 5, characterized in that, The first incident ray of the second ray attribute, after passing through the first ray propagation element, displays the first outgoing ray of the first ray attribute emanating from the first ray propagation element, including: After the first incident ray of first intensity passes through the first ray propagation element, it is shown that the first outgoing ray of second intensity is emitted from the first ray propagation element; wherein, the first ray attribute corresponding to the first ray propagation element includes the second intensity; The first incident ray of the second ray attribute, after passing through the second ray propagation element, displays the first outgoing ray of the third ray attribute emanating from the second ray propagation element, including: After the first incident ray of the first intensity passes through the second ray propagation element, a first outgoing ray of the third intensity is emitted from the second ray propagation element; wherein, the first ray attribute corresponding to the second ray propagation element includes a second intensity, and the third intensity is the intensity obtained by superimposing the second intensity on the first intensity.
8. The method according to any one of claims 1 to 3, characterized in that, The method further includes: The image shows at least two incident rays received by the ray propagation element, the at least two incident rays including the first incident ray; The second outgoing ray emitted from the ray propagation element is displayed; the fourth ray attribute corresponding to the second outgoing ray is determined based on the ray attributes corresponding to the at least two incident rays respectively.
9. The method according to claim 8, characterized in that, The second emitted ray, which shows the ray propagation element, includes one or more of the following: By superimposing the ray properties corresponding to the at least two incident rays, the second outgoing ray emitted from the ray propagation element is displayed; Based on the ray attribute corresponding to the at least one incident ray with the highest attribute priority among the at least two incident rays, the second outgoing ray emitted from the ray propagation element is displayed.
10. The method according to claim 9, characterized in that, The superposition of the ray properties corresponding to the at least two incident rays to display the second outgoing ray emitted from the ray propagation element includes one or more of the following: The superimposed ray colors corresponding to the at least two incident rays are superimposed to display the second outgoing ray emitted from the ray propagation element, represented by the superimposed colors. The superimposed colors are obtained by superimposing the ray colors corresponding to the at least two incident rays. The superimposed intensity of the radiation corresponding to the at least two incident rays is used to display the second outgoing ray emitted from the radiation propagation element, which is expressed as a superimposed intensity. The superimposed intensity is the intensity obtained by superimposing the radiation intensities corresponding to the at least two incident rays.
11. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When the second incident ray in the virtual scene intersects with the first virtual element, the influence result of the first element corresponding to the first virtual element is displayed based on the fifth ray attribute corresponding to the second incident ray. The first element influence result is used to characterize the influence of the fifth ray attribute on the first virtual element. The method further includes: When the third incident ray in the virtual scene intersects with the first virtual element, the influence result of the second element corresponding to the first virtual element is displayed based on the sixth ray attribute corresponding to the third incident ray. The influence result of the second element is used to characterize the influence of the sixth ray attribute on the first virtual element. The sixth ray property is different from the fifth ray property, and the influence results of the first element and the second element are different.
12. The method according to claim 11, characterized in that, When the second incident ray in the virtual scene intersects with the first virtual element, based on the fifth ray attribute corresponding to the second incident ray, the influence result of the first element corresponding to the first virtual element is displayed, including: If the second incident ray intersects with the first virtual object in the virtual scene, and the fifth ray attribute corresponding to the second incident ray is used to weaken the first object attribute of the first virtual object, the weakening result of the object attribute corresponding to the first virtual object is displayed. When the third incident ray in the virtual scene intersects with the first virtual element, based on the sixth ray attribute corresponding to the third incident ray, the influence result of the second element corresponding to the first virtual element is displayed, including: If the third incident ray intersects with the first virtual object, and the sixth ray attribute is used to enhance the first object attribute of the first virtual object, the enhanced object attribute result corresponding to the first virtual object is displayed.
13. The method according to claim 11, characterized in that, When a second incident ray intersects with a first virtual element in the virtual scene, the influence result of the first element corresponding to the first virtual element is displayed based on the fifth ray attribute corresponding to the second incident ray, including: If the second incident ray intersects with the first interactive element in the virtual scene, and the fifth ray attribute is used to present the first virtual effect, the first virtual effect is displayed at the first interactive element; When the third incident ray in the virtual scene intersects with the first virtual element, based on the sixth ray attribute corresponding to the third incident ray, the influence result of the second element corresponding to the first virtual element is displayed, including: If the third incident ray intersects with the first interactive element, and the sixth ray attribute is used to present the second virtual effect, the second virtual effect is displayed at the first interactive element.
14. The method according to any one of claims 1 to 3, characterized in that, The first emitted ray, which shows the ray emitted from the ray-propagating element, includes: When the element corresponding to the ray propagation element is in the enabled state, the first outgoing ray emitted from the ray propagation element is displayed based on the first incident ray. The method further includes: When the element corresponding to the ray propagation element is disabled, a line segment is displayed that starts from the first ray emitting element and ends at the ray propagation element; the first ray emitting element is a virtual element that emits the first incident ray, and the line segment is used to characterize the trajectory of the first incident ray in the virtual scene.
15. The method according to any one of claims 1 to 3, characterized in that, The receiving of element configuration operations in the virtual scene includes: In response to receiving an element acquisition operation, at least two candidate propagation elements are displayed; where different candidate propagation elements correspond to different ray properties. Receive an element selection operation for the ray propagation element among the at least two candidate propagation elements.
16. The method according to any one of claims 1 to 3, characterized in that, Following the description of the first emitted ray from the ray-propagating element, the method further includes: When the first outgoing ray intersects with the second virtual element in the virtual scene, the element unlocking result corresponding to the second virtual element is displayed based on the ray attribute of the first outgoing ray. The element unlocking result is used to characterize the state influence of the second virtual element through the first outgoing ray. Specifically, if the ray attribute of the first emitted ray meets the element unlocking condition, the result of successfully unlocking the element corresponding to the second virtual element is displayed; or, if the ray attribute of the first emitted ray does not meet the element unlocking condition, the result of failing to unlock the element corresponding to the second virtual element is displayed.
17. The method according to any one of claims 1 to 3, characterized in that, The method further includes: Obtain the color sequence corresponding to the virtual scene, the color sequence being used to sequentially represent at least two ray colors that can be displayed within the virtual scene; Based on the color of the incident rays received by the ray propagation element at the first moment, the first base result corresponding to the first moment is represented in binary form according to the color sequence. Based on the color of the incident rays received by the ray propagation element at the second time moment, the binary result corresponding to the second time moment is represented in binary form according to the color sequence; The first base result and the second binary result characterize the changes in ray reception corresponding to the ray propagation element from the first time point to the second time point.
18. The method according to claim 17, characterized in that, The description of the incident ray color received by the ray propagation element at the first moment, and the representation of the first base result corresponding to the first moment in binary form according to the color sequence, includes: For the first ray color in the color sequence, the incident ray received by the ray propagation element at the first moment includes the first ray color, and the first ray color is represented by a first value. The first ray color is not included in the incident ray received by the ray propagation element at the first moment, and the first ray color is represented by a second value. Based on the color arrangement order of at least two ray colors in the color sequence, generate the first base result corresponding to the first moment, represented by one or more forms of the first value and the second value.
19. The method according to claim 17, characterized in that, The description of the change in ray reception corresponding to the ray propagation element from the first time moment to the second time moment based on the first base result and the second binary result includes: Perform an XOR operation on the first base result and the second binary result to obtain the processing result; Perform two's complement processing on the processing result to obtain the two's complement result; Perform least significant bit operations on the processing result and the complement result to determine the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment.
20. The method according to claim 19, characterized in that, The step of performing least significant bit operations on the processing result and the two's complement result to determine the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment includes: Perform a bitwise AND operation on the processing result and the two's complement result to obtain the operation result; Based on the least significant bit in the calculation result, the ray reception change result corresponding to the ray propagation element from the first time moment to the second time moment is determined.
21. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When a first incident ray is received on the first outer surface of the ray propagation element, and the ray propagation element is used to generate a refracted ray for the first incident ray, the refraction direction corresponding to the refracted ray is obtained. A first detection ray is simulated to be emitted from the outside of the ray propagation element toward the second outer surface of the ray propagation element in the opposite direction to the refraction direction, wherein the second outer surface is opposite to the first outer surface; The detection intersection point between the first detection ray and the second outer surface is obtained as the refraction intersection point of the refracted ray.
22. A ray-based interactive device for virtual scenes, characterized in that, The device includes: A receiving module is configured to receive element configuration operations in the virtual scene, the element configuration operations being used to enable ray propagation elements in the virtual scene, the ray propagation elements corresponding to a first ray attribute; wherein, the ray attribute includes one or more of ray color and ray intensity; The display module is used to display the first incident ray received by the ray propagation element, and the first incident ray corresponds to the second ray attribute; The display module is further configured to display a first outgoing ray emitted from the ray propagation element, wherein the first outgoing ray is a ray that satisfies the first ray attribute after the second ray attribute of the first incident ray is adjusted.
23. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one program, which is loaded and executed by the processor to implement the ray-based interaction method for virtual scenes as described in any one of claims 1 to 21.
24. A computer-readable storage medium, characterized in that, The storage medium stores at least one program segment, which is loaded and executed by a processor to implement the ray-based interaction method for virtual scenes as described in any one of claims 1 to 21.
25. A computer program product, characterized in that, It includes computer instructions that, when executed by a processor, implement the ray-based interaction method for virtual scenes as described in any one of claims 1 to 21.