Ray display method and apparatus, device, computer-readable storage medium, and product
By displaying the remote control device and interactive interface in three-dimensional space and switching the display style of the ray according to user operations, the problem of single existing ray display style is solved, improving the user experience.
Patent Information
- Application Number
- PCT/CN2024/119937
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-21
- Filing Date
- 2024-09-20
- Publication Date
- 2025-03-27
AI Technical Summary
The existing ray display style is relatively single, resulting in poor user experience.
Display the preset remote control device and interactive interface in three-dimensional space, and build target rays to move the rays in real time in response to user's movement operations. When the preset switching conditions are met, switch the display style of the rays.
It enriches the display effect of rays, improves the user experience, and meets the personalized needs of users.
Smart Images

Figure CN2024119937_27032025_PF_FP_ABST
Abstract
Description
Ray display method, device, equipment, computer-readable storage medium and product
[0001] This application claims priority to Chinese Patent Application No. 202311233580.4 filed on September 21, 2023. The contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field
[0002] The embodiments of the present disclosure relate to a ray display method, apparatus, device, computer-readable storage medium, and product. Background Art
[0003] Users can use the remote control device to control the cursor, virtual characters, and other content. In some scenarios, when the user uses the remote control device to perform control operations, the ray emitted by the remote control device can be displayed in real time, and the user can perform control operations based on the intersection of the ray and the display interface.
[0004] In the related art, the rays emitted by the remote control device are generally displayed in the form of straight lines or fixed curves, and the display style is often relatively simple, resulting in a poor user experience.
[0005] Summary of the Invention
[0006] The embodiments of the present disclosure provide a ray display method, apparatus, device, computer-readable storage medium, and product, which are used to solve the technical problem that the existing ray display style is relatively single.
[0007] In a first aspect, an embodiment of the present disclosure provides a ray display method, comprising:
[0008] Displaying a preset remote control device and an interactive interface in a three-dimensional space, constructing a target ray between the remote control device and the interactive interface, and displaying the target ray in a preset display style;
[0009] In response to a movement operation triggered by a user on the remote control device, controlling the target ray to move along with the remote control device;
[0010] When it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition, a switching operation is performed on the display style of the target ray.
[0011] In a second aspect, an embodiment of the present disclosure provides a radiation display device, comprising:
[0012] A display module is configured to display a preset remote control device and an interactive interface in a three-dimensional space, construct a target ray between the remote control device and the interactive interface, and display the target ray in a preset display style;
[0013] a control module configured to control the target ray to move along with the remote control device in response to a movement operation triggered by a user on the remote control device;
[0014] The switching module is configured to switch the display mode of the target ray when it is determined that the movement-related information of the target ray during the movement meets a preset switching condition.
[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0016] The memory stores computer-executable instructions;
[0017] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the ray display method as described in the first aspect and various possible designs of the first aspect.
[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the ray display method described in the first aspect and various possible designs of the first aspect is implemented.
[0019] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the ray display method described in the first aspect and various possible designs of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] FIG1 is a schematic diagram of a flow chart of a ray display method provided by an embodiment of the present disclosure;
[0022] FIG2 is a schematic flow chart of a ray display method provided in yet another embodiment of the present disclosure;
[0023] FIG3 is a schematic diagram of a delayed intersection provided by an embodiment of the present disclosure;
[0024] FIG4 is a schematic diagram of a target ray provided by an embodiment of the present disclosure;
[0025] FIG5 is a schematic flow chart of a ray display method provided in yet another embodiment of the present disclosure;
[0026] FIG6 is a schematic flow chart of a ray display method provided in yet another embodiment of the present disclosure;
[0027] FIG7 is a schematic diagram of a three-dimensional outline provided by an embodiment of the present disclosure;
[0028] FIG8 is a schematic structural diagram of a ray display device provided in an embodiment of the present disclosure;
[0029] FIG9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0031] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0032] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0033] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0034] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0035] In order to solve the technical problem that the existing ray display style is relatively single, the present disclosure provides a ray display method, device, equipment, computer-readable storage medium and product.
[0036] It should be noted that the ray display method, device, equipment, computer-readable storage medium and product provided by the present disclosure can be applied to any scenario that requires ray display and display style adjustment.
[0037] In a virtual reality scene, users can interact with content on the display interface using a virtual controller. This virtual controller can emit rays, and interaction is achieved by moving and selecting the intersection of the ray and the display interface. However, current rays are generally straight lines or fixed curves, resulting in a relatively simple display effect that cannot meet the personalized needs of users. Furthermore, current rays are generally two-dimensional lines, often lacking a sense of three-dimensionality.
[0038] In the process of solving the above technical problems, the inventors discovered through research that in order to enrich the display effect of the target ray, the movement-related information of the target ray can be collected in real time while the target ray moves with the remote control device. When the movement-related information meets the preset switching conditions, the display style of the target ray is switched.
[0039] Optionally, the curvature of the target ray can be adjusted to give it a different "feel." Alternatively, the display state of the target ray can be switched from two-dimensional to three-dimensional, thereby making the target ray more three-dimensional and improving the user experience.
[0040] The execution entity of this embodiment is a ray display device. The ray display device can be coupled to a server, which is in communication with a virtual reality device. The server can construct a target ray and, based on a user's movement operation on a remote control device, switch the display style of the target ray when it determines that the movement-related information of the target ray during movement meets a preset switching condition, and control the display of the aforementioned content within the virtual reality scene.
[0041] Alternatively, the ray display device can be coupled to a virtual reality device. Based on the movement operation triggered by the user on the remote control device, when it is determined that the movement-related information of the target ray during the movement process meets the preset switching conditions, the display style of the target ray is switched and the above content is displayed in the virtual reality scene.
[0042] FIG1 is a flow chart of a ray display method provided by an embodiment of the present disclosure. As shown in FIG1 , the method includes:
[0043] Step 101: Display a preset remote control device and an interactive interface in a three-dimensional space, construct a target ray between the remote control device and the interactive interface, and display the target ray in a preset display style.
[0044] In this embodiment, in a virtual reality scene, a user can interact with the content in the interactive interface through a virtual handle. In order to achieve the above-mentioned interactive operations, a preset remote control device and an interactive interface can be displayed in a three-dimensional space.
[0045] The user can perform interactive operations in a three-dimensional space based on a remote control device, and the remote control device can emit an original ray and select a display object in the interactive interface based on the intersection between the original ray and the interactive interface.
[0046] To optimize the display effect in three-dimensional space, a target ray can be constructed between the remote control device and the interactive interface. The target ray is displayed in a preset display style. The preset display style can be set by the user according to actual needs or as a system default. The display style can include display shape, display dimensions, color parameters, etc.
[0047] Step 102: In response to a movement operation triggered by a user on the remote control device, control the target ray to move along with the remote control device.
[0048] In this embodiment, the user can control the target ray to move according to the remote control device by triggering a movement operation on the remote control device, so as to switch the intersection point between the target ray and the interactive interface and implement the selection operation of different display objects.
[0049] Step 103: When it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition, a display mode of the target ray is switched.
[0050] In this embodiment, to enrich the display styles of the target ray and present different display effects in three-dimensional space, switching conditions can be pre-set. When the switching conditions are met, the display style of the target ray is switched. For example, the curvature of the target ray can be switched to present a different triggering feel. Alternatively, the display dimensions of the target ray can be switched to present a more three-dimensional target ray. Alternatively, both the display dimensions and the curvature of the target ray can be adjusted simultaneously, which is not limited by this disclosure.
[0051] Optionally, in order to switch the display style of the target ray, the movement-related information of the target ray during its movement can be obtained in real time. The movement-related information includes, but is not limited to, the location of the intersection between the target ray and the interactive interface, the target object currently selected by the target ray, the movement speed of the target ray, the movement amplitude, and other contents.
[0052] Furthermore, after the movement-related information is acquired, it may be determined whether the movement-related information satisfies a preset switching condition. If so, the display style of the target ray may be switched.
[0053] The ray display method provided in this embodiment displays a remote control device and an interactive interface within a three-dimensional control, and displays a target ray with a preset display style between the remote control device and the interactive interface. Based on a user-triggered movement operation of the remote control device, the target ray's display style is switched when the target ray's movement-related information during the movement process satisfies a preset switching condition. This allows the target ray to be controlled to present a variety of different display styles within three-dimensional space, enriching the display effects of the target ray during interaction and improving the user experience.
[0054] FIG2 is a flow chart of a ray display method provided by another embodiment of the present disclosure. Based on any of the above embodiments, as shown in FIG2 , step 101 includes:
[0055] Step 201: Determine the real-time intersection point and the historical intersection point between the original ray emitted by the remote control device and the interactive interface.
[0056] Step 202: Determine a delayed intersection point based on the real-time intersection point, the historical intersection point, and a preset delay degree parameter.
[0057] Step 203: construct the target ray according to the delayed intersection, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection and a preset distance coefficient; wherein the distance coefficient is used to represent the distance between the delayed intersection and the real-time intersection.
[0058] In this embodiment, to construct the target ray, the real-time intersection point and historical intersection point between the original ray emitted by the remote control device and the interactive interface can be determined. The remote control device can emit a straight original ray. The intersection point between the original ray and the interactive interface is the real-time intersection point. The intersection point between the original ray and the interactive interface in the previous frame is the historical intersection point.
[0059] In order to construct the target ray, a distance coefficient can also be pre-set. The distance coefficient is used to characterize the distance between the delayed intersection and the real-time intersection. The distance between the real-time intersection and the delayed intersection represents the intensity with which the current user rotates (shakes) the remote control device: the farther the distance between the real-time intersection and the delayed intersection, the more intensely the current user rotates (shakes) the remote control device; the closer the distance between the real-time intersection and the delayed intersection, the less intensely the current user rotates (shakes) the remote control device.
[0060] Furthermore, a delayed intersection point can be determined based on the real-time intersection point, historical intersection points, and a preset delay parameter. This delayed intersection point does not move in real time with the movement of the remote control device. When the remote control device moves, the corresponding movement is delayed. The target ray is constructed based on the delayed intersection point, the display position of the remote control device in three-dimensional space, the position of the real-time intersection point, and a preset distance coefficient.
[0061] The ray display method provided in this embodiment determines the real-time intersection and historical intersection between the original ray emitted by the remote control device and the interactive interface respectively, so that the delayed intersection can be determined based on the real-time intersection, historical intersection and preset delay degree parameters, and then the target ray can be constructed based on the delayed intersection, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection and the preset distance coefficient, so that the target ray display style can be switched flexibly by adjusting the parameters later.
[0062] Further, based on any of the above embodiments, step 202 includes:
[0063] An interpolation operation is performed based on the coordinate information of the real-time intersection point, the coordinate information of the historical intersection point, and the delay degree parameter to obtain the delayed intersection point.
[0064] In this embodiment, when there is no delayed intersection point, the real-time intersection point moves along with the movement parameters of the remote control device, which may cause the real-time intersection point to deviate from the display interface and cause severe jitter.
[0065] In order to determine the delayed intersection point, the delay degree parameter can be determined in advance according to actual needs, and the distance between the delayed intersection point and the real-time intersection point can be controlled based on different delay length parameters.
[0066] Furthermore, an interpolation operation is performed based on the coordinate information of the real-time intersection point, the coordinate information of the historical intersection point, and the delay degree parameter to obtain the delayed intersection point. The interpolation operation can be performed using linear interpolation, or any other interpolation method can be used to implement the interpolation operation, which is not limited by the present disclosure.
[0067] FIG3 is a schematic diagram of delayed intersection points provided by an embodiment of the present disclosure. As shown in FIG3 , an original ray can be emitted from a remote control device position 31, and the intersection point between the original ray and a display interface 32 is a real-time intersection point 33. A historical intersection point 34 between the original ray and the display interface 32 is determined, and a delayed intersection point 35 is determined based on the real-time intersection point 33, the historical intersection point 34, and a preset delay parameter.
[0068] The ray display method provided in this embodiment obtains a delayed intersection by performing an interpolation operation based on the coordinate information of the real-time intersection, the coordinate information of the historical intersection, and the delay degree parameter, so that the display style of the target ray can be adjusted based on the delayed intersection, thereby enriching the display effect of the target ray.
[0069] Further, based on any of the above embodiments, step 203 includes:
[0070] A display position of the remote control device in the three-dimensional space is determined as a first coordinate.
[0071] The display position of the real-time intersection is determined as a second coordinate.
[0072] The third coordinate is determined based on the preset coordinate axis direction value in the display position corresponding to the remote control device and the distance coefficient.
[0073] The fourth coordinate is determined based on the difference between the real-time intersection point and the delayed intersection point, the distance coefficient, and one or more of the movement direction and the normal direction.
[0074] The target ray is obtained by performing data processing on the first coordinate, the second coordinate, the third coordinate, and the fourth coordinate using a preset curve generation formula.
[0075] In this embodiment, the target ray can be constructed using a third-order Bezier curve. A third-order Bezier curve is a curve defined by four points. By adjusting the positions of the four points, the shape of the curve can be adjusted. By using a third-order Bezier curve to construct the target ray, the display style of the target ray can be flexibly adjusted.
[0076] Optionally, the display position of the remote control device in three-dimensional space can be determined as the first coordinate. The display position of the real-time intersection point can be determined as the second coordinate. A third coordinate can be determined based on the preset coordinate axis direction value and the distance coefficient at the display position corresponding to the remote control device. A fourth coordinate can be determined based on the difference between the real-time intersection point and the delayed intersection point, the distance coefficient, and one or more of the motion direction and the normal direction. The first, second, third, and fourth coordinates are processed using a preset curve generation formula to obtain a target ray.
[0077] Since the third coordinate and the fourth coordinate are constructed based on one or more parameters among the distance coefficient, the direction of movement, and the normal direction, as well as the display position, the real-time intersection point, and the delayed intersection point corresponding to the remote control device, the bending shape of the target ray can be flexibly adjusted by adjusting one or more parameters among the distance coefficient, the direction of movement, and the normal direction.
[0078] Figure 4 is a schematic diagram of the target ray provided by an embodiment of the present disclosure. As shown in Figure 4, the target ray 46 can be constructed based on the first coordinate corresponding to the remote control device 41, the second coordinate of the real-time intersection 43 between the original ray and the display interface 42, the preset coordinate axis direction value in the display position corresponding to the remote control device, and the distance coefficient. The fourth coordinate 45 is determined based on the difference between the real-time intersection and the delayed intersection, the distance coefficient, and one or more of the motion direction and the normal direction.
[0079] The ray display method provided in this embodiment can flexibly switch the display style of the target ray by respectively determining the first coordinate, the second coordinate, the third coordinate, and the fourth coordinate, and then adjusting the parameters associated with each coordinate.
[0080] FIG5 is a flow chart of a ray display method according to another embodiment of the present disclosure. Based on any of the above embodiments, the movement association information includes the target intersection position between the target ray and the interactive interface. As shown in FIG5 , step 103 includes:
[0081] Step 501: Determine the currently selected target display object based on the target intersection position in real time, wherein different display objects correspond to different ray parameters.
[0082] Step 502: If the ray parameters corresponding to the currently selected target display object are different from those corresponding to the last selected display object, the display style of the target ray is switched based on the ray parameters corresponding to the currently selected target display object.
[0083] In this embodiment, the movement-related information includes the target intersection location between the target ray and the interactive interface. Users can control or select displayed objects on the interactive interface using a remote control device. To enrich the display effects within the three-dimensional space, different display styles can be presented when the user triggers different display objects based on the target ray.
[0084] In order to switch the target ray display style, the association between different display objects and ray parameters can be preset. The ray parameters can be parameters for adjusting the curved shape or the display dimension, which is not limited in this disclosure.
[0085] Furthermore, in response to a user-triggered move operation, the currently selected target display object can be determined in real time based on the target intersection position. A check is performed to determine whether the ray parameters corresponding to the currently selected target display object are the same as those of the previously selected display object. If so, the target ray may not be adjusted. Otherwise, the display style of the target ray may be switched based on the ray parameters corresponding to the currently selected target display object.
[0086] The ray display method provided in this embodiment switches the display style of the target ray based on the ray parameters corresponding to the currently selected target display object when it is detected that the ray parameters corresponding to the previously selected target display object are different from those of the last selected display object. This enables switching of the target ray display style based on the moving operation, enriches the display effect during the interactive operation process, and improves the user experience.
[0087] Optionally, based on any of the above embodiments, the movement-related information includes the movement speed and / or movement amplitude and / or movement distance of the target ray.
[0088] Step 103 includes:
[0089] When it is detected that the moving speed and / or moving amplitude and / or moving distance meet a preset switching condition, the display style of the target ray is switched.
[0090] In this embodiment, the movement-related information includes the movement speed and / or movement amplitude and / or movement distance of the target ray.
[0091] For example, when the user moves the target ray at a faster speed or the target ray moves a longer distance, different display styles can be switched to enrich the display effect in the three-dimensional space.
[0092] Therefore, in order to switch the display style of the target ray, a moving speed threshold, a moving amplitude threshold, and a moving distance threshold can be preset. When it is detected that the current moving speed of the target ray is greater than the preset moving speed threshold and / or the moving amplitude is greater than the preset moving amplitude threshold, and / or the moving distance is greater than the preset moving distance threshold, the display style of the target ray can be switched.
[0093] Optionally, object relationships between different moving speeds and / or moving amplitudes and / or moving distances and ray parameters can be pre-established, so that the display style of the target ray can be adjusted based on the ray parameters corresponding to the current moving speed and / or moving amplitude and / or moving distance.
[0094] The ray display method provided in this embodiment switches the display style of the target ray when it is detected that the moving speed and / or moving amplitude and / or moving distance meet the preset switching conditions, thereby enriching the usage scenarios of switching the target ray display style, and then being able to more flexibly adjust the target ray display style, thereby enriching the display effect during the interactive operation process.
[0095] Optionally, based on any of the above embodiments, step 103 includes:
[0096] A switching operation is performed on the curved shape of the target ray.
[0097] and / or.
[0098] Switches target rays from 2D to 3D.
[0099] In this embodiment, when the movement-related information of the target ray during movement satisfies a preset switching condition, the curved shape of the target ray can be switched so that the target ray presents different shapes, thereby providing the user with different dragging feelings.
[0100] Optionally, the display dimensions of the target ray can be adjusted. For example, a two-dimensional target ray can be switched to a three-dimensional target ray, or a three-dimensional target ray can be adjusted to a two-dimensional target ray, etc.
[0101] It should be noted that the above two implementation methods can be implemented separately or in combination. When implemented in combination, the curvature of the target ray and the display dimension can be adjusted at the same time to present more diverse display effects.
[0102] The ray display method provided in this embodiment switches the curved shape of the target ray and / or switches the two-dimensional target ray to a three-dimensional target ray, thereby adjusting the movement feel and display dimensions of the target ray, further enriching the display styles of the target ray and improving the user experience.
[0103] Furthermore, based on any of the above embodiments, the switching operation on the curved shape of the target ray includes:
[0104] A first ray parameter is obtained, wherein the first ray parameter includes one or more of a target distance coefficient, a target normal direction, a target motion direction, and a target delay degree.
[0105] The display positions of the third coordinate and the fourth coordinate are adjusted based on the first ray parameter to obtain updated third coordinate and updated fourth coordinate.
[0106] The target ray is obtained by performing data processing on the first coordinate, the second coordinate, the updated third coordinate, and the updated fourth coordinate using a preset curve generation formula.
[0107] In this embodiment, to enrich the display style of the target ray, the curvature of the target ray can be switched. Therefore, first ray parameters can be obtained, where the first ray parameters include one or more of the following: target distance coefficient, target normal direction, target motion direction, and target delay degree. The first ray parameters can be preset parameters corresponding to the target display object currently triggered by the target ray, or can be set by the user according to actual needs, and this disclosure does not impose any restrictions on this.
[0108] Since the third coordinate and the fourth coordinate are constructed based on one or more parameters among the distance coefficient, the direction of movement, and the normal direction, as well as the display position, the real-time intersection point, and the delayed intersection point corresponding to the remote control device, the bending shape of the target ray can be flexibly adjusted by adjusting one or more parameters among the distance coefficient, the direction of movement, and the normal direction.
[0109] Furthermore, after obtaining the first ray parameters, the display positions of the third coordinate and the fourth coordinate can be adjusted based on the first ray parameters to obtain updated third coordinates and updated fourth coordinates. The first coordinate, the second coordinate, the updated third coordinate, and the updated fourth coordinate are processed using a preset curve generation formula to obtain the target ray.
[0110] By adjusting the curved shape of the target ray, different hand feelings can be presented to the user, thereby improving the user experience during the interaction process.
[0111] The ray display method provided in this embodiment can flexibly switch the feel of the target ray by adjusting one or more parameters such as the target distance coefficient, the target normal direction, the target movement direction, and the target delay degree, so that the display style and feel of the target ray are more in line with the user's personalized needs.
[0112] FIG6 is a flow chart of a ray display method provided by another embodiment of the present disclosure. Based on any of the above embodiments, as shown in FIG6 , switching a two-dimensional target ray to a three-dimensional target ray includes:
[0113] Step 601: Acquire second ray parameters, wherein the second ray parameters include target shape, target map, and target size.
[0114] Step 602: Perform a sampling operation on the two-dimensional target ray to obtain a plurality of sampling points corresponding to the target ray.
[0115] Step 603: construct multiple contour points on the plane where each sampling point is located based on the target shape and target size.
[0116] Step 604: Connect the multiple contour points in the order corresponding to the sampling points to obtain a three-dimensional contour corresponding to the target ray.
[0117] Step 605: Add the target map to the three-dimensional contour to obtain a three-dimensional target ray.
[0118] In this embodiment, to enrich the display style of the target ray, the two-dimensional target ray can also be adjusted to a three-dimensional display style. Therefore, second ray parameters can be obtained, where the second ray parameters include the target shape, target texture, and target size. These second ray parameters can be preset parameters corresponding to the target display object currently triggered by the target ray, or they can be set by the user according to actual needs, and this disclosure does not impose any restrictions on this.
[0119] Optionally, to ensure that the resulting three-dimensional target ray has the same shape as the original target ray, a sampling operation can be performed on the two-dimensional target ray to obtain multiple sampling points corresponding to the target ray. The sampling operation on the target ray can be implemented using any sampling method, which is not limited in this disclosure. Users can also adjust the number of sampling points based on actual needs.
[0120] After obtaining multiple sampling points, in order to present a three-dimensional display effect, multiple contour points can be constructed on the plane where each sampling point is located based on the target shape and target size. The display position of each contour point can be determined based on the target shape, and the distance between each contour point and the sampling point can be determined based on the target size.
[0121] Furthermore, to accurately characterize the shape of the target ray, the order of the sampling points can be determined during sampling. Multiple contour points can then be connected according to the order of the sampling points to obtain the 3D contour corresponding to the target ray. During the connection process, contour points at the same relative position can be connected according to the order of the sampling points. Once the 3D contour is obtained, the target map can be added to the 3D contour to obtain the 3D target ray.
[0122] FIG7 is a schematic diagram of a three-dimensional contour provided by an embodiment of the present disclosure. As shown in FIG7 , a preset number of contour points 72 may be created around a sampling point 71 , so that a three-dimensional contour 73 may be obtained by connecting the plurality of contour points 72 in the order of the sampling points 71 .
[0123] The ray display method provided in this embodiment performs a sampling operation based on the second ray parameter to obtain multiple sampling points, constructs multiple contour points around the sampling points, and then connects the contour points to obtain a three-dimensional contour that matches the curvature of the target ray line. By mapping the three-dimensional contour, a three-dimensional target ray can be obtained, achieving a switch from two-dimensional to three-dimensional, making the target ray more three-dimensional.
[0124] Furthermore, based on any of the above embodiments, the method further includes:
[0125] In response to a radius adjustment operation triggered by a user, target radius information is obtained.
[0126] The distances between the plurality of contour points and the sampling points are adjusted based on the target radius information to obtain a plurality of updated contour points.
[0127] The updated multiple contour points are connected in the order corresponding to the sampling points to obtain an updated three-dimensional contour.
[0128] The target map is added to the updated three-dimensional contour to obtain a three-dimensional target ray with an adjusted radius.
[0129] In this embodiment, when the target ray is displayed in a three-dimensional form, the user can adjust the radius of the three-dimensional target ray according to actual needs to make it present a display effect of different thicknesses.
[0130] Optionally, in response to a radius adjustment operation triggered by a user, target radius information is obtained, wherein the target radius information may be manually input by the user or selected by the user from a preset radius list.
[0131] After determining the target radius information, the size of the 3D target ray can be adjusted based on the target radius information. Since the radius of the 3D target ray is determined based on multiple contour points, adjusting the distance between the multiple contour points and the sampling point can adjust the displayed radius of the 3D target ray.
[0132] Optionally, the distances between the multiple contour points and the sampling point can be adjusted based on the target radius information to obtain updated contour points. For example, if the target radius information is larger than the current radius information, the distances between the multiple contour points and the sampling point can be increased based on the target radius information. Conversely, if the target radius information is larger than the current radius information, the distances between the multiple contour points and the sampling point can be decreased based on the target radius information.
[0133] Furthermore, a connection operation can be performed on the updated multiple contour points according to the order corresponding to each sampling point to obtain an updated three-dimensional contour. A target map is added to the updated three-dimensional contour to obtain a three-dimensional target ray with an adjusted radius.
[0134] The ray display method provided in this embodiment adjusts the three-dimensional target ray through a radius adjustment operation triggered by the user, thereby making the display effect of the three-dimensional target ray more in line with the user's personalized needs and improving the user experience.
[0135] FIG8 is a schematic structural diagram of a ray display device provided by an embodiment of the present disclosure. As shown in FIG8 , the device includes: a display module 81, a control module 82, and a switching module 83. The display module 81 is configured to display a preset remote control device and an interactive interface in a three-dimensional space, construct a target ray between the remote control device and the interactive interface, and the target ray is displayed in a preset display style. The control module 82 is configured to control the target ray to move with the remote control device in response to a movement operation triggered by the user on the remote control device. The switching module 83 is configured to switch the display style of the target ray when it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition.
[0136] Furthermore, based on any of the above embodiments, the display module is configured to: determine a real-time intersection point and a historical intersection point between the original ray emitted by the remote control device and the interactive interface; determine a delayed intersection point based on the real-time intersection point, the historical intersection point, and a preset delay parameter; and construct the target ray based on the delayed intersection point, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection point, and a preset distance coefficient. The distance coefficient is used to represent the distance between the delayed intersection point and the real-time intersection point.
[0137] Furthermore, based on any of the above embodiments, the display module is configured to: determine the display position of the remote control device in the three-dimensional space as a first coordinate. Determine the display position of the real-time intersection as a second coordinate. Determine a third coordinate based on the preset coordinate axis direction value in the display position corresponding to the remote control device and the distance coefficient. Determine a fourth coordinate based on the difference between the real-time intersection and the delayed intersection, the distance coefficient, and one or more of the motion direction and the normal direction. Perform data processing on the first coordinate, the second coordinate, the third coordinate, and the fourth coordinate using a preset curve generation formula to obtain the target ray.
[0138] Further, based on any of the above embodiments, the display module is configured to: perform an interpolation operation based on the coordinate information of the real-time intersection, the coordinate information of the historical intersection and the delay degree parameter to obtain the delayed intersection. 5. According to the method of claim 1, the movement association information includes the target intersection position between the target ray and the interactive interface. The switching module is configured to: determine the currently selected target display object based on the target intersection position in real time, wherein different display objects correspond to different ray parameters. If the ray parameters corresponding to the currently selected target display object are different from those corresponding to the last selected display object, the display style of the target ray is switched based on the ray parameters corresponding to the currently selected target display object.
[0139] Furthermore, based on any of the above embodiments, the movement-related information includes a movement speed, a movement amplitude, and / or a movement distance of the target ray. The switching module is configured to switch the display mode of the target ray when it is detected that the movement speed, a movement amplitude, and / or a movement distance meet a preset switching condition.
[0140] Furthermore, based on any of the above embodiments, the switching module is configured to: switch the curved shape of the target ray and / or switch the two-dimensional target ray to a three-dimensional target ray.
[0141] Further, based on any of the above embodiments, the switching module is configured to: obtain first ray parameters, wherein the first ray parameters include one or more of a target distance coefficient, a target normal direction, a target motion direction, and a target delay degree; adjust the display positions of the third coordinate and the fourth coordinate based on the first ray parameters to obtain updated third coordinates and updated fourth coordinates; and perform data processing on the first coordinate, the second coordinate, the updated third coordinate, and the updated fourth coordinate using a preset curve generation formula to obtain the target ray.
[0142] Further, based on any of the above embodiments, the switching module is configured to: obtain second ray parameters, wherein the second ray parameters include a target shape, a target map, and a target size; perform a sampling operation on the two-dimensional target ray to obtain a plurality of sampling points corresponding to the target ray; construct a plurality of contour points on a plane where each sampling point is located based on the target shape and target size; connect the plurality of contour points in the order corresponding to the sampling points to obtain a three-dimensional contour corresponding to the target ray; and add the target map to the three-dimensional contour to obtain a three-dimensional target ray.
[0143] Furthermore, based on any of the above embodiments, the apparatus further includes: an acquisition module configured to acquire target radius information in response to a radius adjustment operation triggered by a user; an adjustment module configured to adjust the distances between the multiple contour points and the sampling points based on the target radius information to obtain a plurality of updated contour points; a connection module configured to connect the multiple updated contour points in the order corresponding to the sampling points to obtain an updated three-dimensional contour; and an addition module configured to add the target map to the updated three-dimensional contour to obtain a three-dimensional target ray with an adjusted radius.
[0144] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.
[0145] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the ray display method as described in any of the above embodiments is implemented.
[0146] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer program product, including a computer program, which implements the ray display method as described in any of the above embodiments when executed by a processor.
[0147] In order to implement the above embodiment, the present disclosure further provides an electronic device, including: a processor and a memory;
[0148] The memory stores computer-executable instructions;
[0149] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the ray display method as described in any of the above embodiments.
[0150] FIG9 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG9 , the electronic device 900 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG9 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0151] As shown in Figure 9, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0152] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although FIG9 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0153] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0154] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0155] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0156] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0157] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).
[0158] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0159] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0160] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0161] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0162] In a first aspect, according to one or more embodiments of the present disclosure, a ray display method is provided, comprising:
[0163] Displaying a preset remote control device and an interactive interface in a three-dimensional space, constructing a target ray between the remote control device and the interactive interface, and displaying the target ray in a preset display style;
[0164] In response to a movement operation triggered by a user on the remote control device, controlling the target ray to move along with the remote control device;
[0165] When it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition, a switching operation is performed on the display style of the target ray.
[0166] According to one or more embodiments of the present disclosure, constructing a target ray between the remote control device and the interactive interface includes:
[0167] Determining a real-time intersection point and a historical intersection point between an original ray emitted by the remote control device and the interactive interface;
[0168] Determining a delayed intersection point based on the real-time intersection point, the historical intersection point, and a preset delay degree parameter;
[0169] Constructing the target ray according to the delayed intersection point, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection point, and a preset distance coefficient;
[0170] The distance coefficient is used to represent the distance between the delayed intersection and the real-time intersection.
[0171] According to one or more embodiments of the present disclosure, constructing the target ray according to the delayed intersection, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection, and a preset distance coefficient includes:
[0172] determining a display position of the remote control device in the three-dimensional space as a first coordinate;
[0173] Determining the display position of the real-time intersection as a second coordinate;
[0174] determining a third coordinate based on a preset coordinate axis direction value in a display position corresponding to the remote control device and the distance coefficient;
[0175] determining a fourth coordinate based on a difference between the real-time intersection point and the delayed intersection point, the distance coefficient, and one or more of the motion direction and the normal direction;
[0176] The target ray is obtained by performing data processing on the first coordinate, the second coordinate, the third coordinate, and the fourth coordinate using a preset curve generation formula.
[0177] According to one or more embodiments of the present disclosure, determining the delayed intersection point based on the real-time intersection point, the historical intersection point, and a preset delay degree parameter includes:
[0178] An interpolation operation is performed based on the coordinate information of the real-time intersection point, the coordinate information of the historical intersection point, and the delay degree parameter to obtain the delayed intersection point.
[0179] According to one or more embodiments of the present disclosure, the movement association information includes a target intersection position between the target ray and the interactive interface;
[0180] When it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition, switching the display style of the target ray includes:
[0181] Determining the currently selected target display object based on the target intersection position in real time, wherein different display objects correspond to different ray parameters;
[0182] If the ray parameters corresponding to the currently selected target display object are different from those corresponding to the last selected display object, the display style of the target ray is switched based on the ray parameters corresponding to the currently selected target display object.
[0183] According to one or more embodiments of the present disclosure, the movement-related information includes a movement speed and / or a movement amplitude and / or a movement distance of the target ray;
[0184] When it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition, switching the display style of the target ray includes:
[0185] When it is detected that the moving speed and / or moving amplitude and / or moving distance meet a preset switching condition, the display style of the target ray is switched.
[0186] According to one or more embodiments of the present disclosure, the switching operation on the display style of the target ray includes:
[0187] performing a switching operation on the curved shape of the target ray;
[0188] and / or;
[0189] Switches target rays from 2D to 3D.
[0190] According to one or more embodiments of the present disclosure, the switching operation on the curved shape of the target ray includes:
[0191] Acquiring first ray parameters, wherein the first ray parameters include one or more of a target distance coefficient, a target normal direction, a target motion direction, and a target delay degree;
[0192] Adjusting the display positions of the third coordinate and the fourth coordinate based on the first ray parameter to obtain updated third coordinate and updated fourth coordinate;
[0193] The target ray is obtained by performing data processing on the first coordinate, the second coordinate, the updated third coordinate, and the updated fourth coordinate using a preset curve generation formula.
[0194] According to one or more embodiments of the present disclosure, switching the two-dimensional target ray to a three-dimensional target ray includes:
[0195] Acquire second ray parameters, wherein the second ray parameters include target shape, target map, and target size;
[0196] Performing a sampling operation on the two-dimensional target ray to obtain a plurality of sampling points corresponding to the target ray;
[0197] Constructing a plurality of contour points on the plane where each sampling point is located based on the target shape and target size;
[0198] Connecting the plurality of contour points in the order corresponding to the sampling points to obtain a three-dimensional contour corresponding to the target ray;
[0199] The target map is added to the three-dimensional contour to obtain a three-dimensional target ray.
[0200] According to one or more embodiments of the present disclosure, the method further includes:
[0201] In response to a radius adjustment operation triggered by a user, obtaining target radius information;
[0202] Adjusting the distances between the plurality of contour points and the sampling points based on the target radius information to obtain a plurality of updated contour points;
[0203] Connecting the updated contour points in the order corresponding to the sampling points to obtain an updated three-dimensional contour;
[0204] The target map is added to the updated three-dimensional contour to obtain a three-dimensional target ray with an adjusted radius.
[0205] In a second aspect, according to one or more embodiments of the present disclosure, a ray display device is provided, comprising:
[0206] A display module is configured to display a preset remote control device and an interactive interface in a three-dimensional space, construct a target ray between the remote control device and the interactive interface, and display the target ray in a preset display style;
[0207] a control module configured to control the target ray to move along with the remote control device in response to a movement operation triggered by a user on the remote control device;
[0208] The switching module is configured to switch the display mode of the target ray when it is determined that the movement-related information of the target ray during the movement meets a preset switching condition.
[0209] According to one or more embodiments of the present disclosure, the display module is configured as follows:
[0210] Determining a real-time intersection point and a historical intersection point between an original ray emitted by the remote control device and the interactive interface;
[0211] Determining a delayed intersection point based on the real-time intersection point, the historical intersection point, and a preset delay degree parameter;
[0212] Constructing the target ray according to the delayed intersection point, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection point, and a preset distance coefficient;
[0213] The distance coefficient is configured to represent the distance between the delayed intersection and the real-time intersection.
[0214] According to one or more embodiments of the present disclosure, the display module is configured as follows:
[0215] determining a display position of the remote control device in the three-dimensional space as a first coordinate;
[0216] Determining the display position of the real-time intersection as a second coordinate;
[0217] determining a third coordinate based on a preset coordinate axis direction value in a display position corresponding to the remote control device and the distance coefficient;
[0218] determining a fourth coordinate based on a difference between the real-time intersection point and the delayed intersection point, the distance coefficient, and one or more of the motion direction and the normal direction;
[0219] The target ray is obtained by performing data processing on the first coordinate, the second coordinate, the third coordinate, and the fourth coordinate using a preset curve generation formula.
[0220] According to one or more embodiments of the present disclosure, the display module is configured as follows:
[0221] An interpolation operation is performed based on the coordinate information of the real-time intersection point, the coordinate information of the historical intersection point, and the delay degree parameter to obtain the delayed intersection point.
[0222] According to one or more embodiments of the present disclosure, the movement association information includes a target intersection position between the target ray and the interactive interface;
[0223] The switching module is configured to:
[0224] Determining the currently selected target display object based on the target intersection position in real time, wherein different display objects correspond to different ray parameters;
[0225] If the ray parameters corresponding to the currently selected target display object are different from those corresponding to the last selected display object, the display style of the target ray is switched based on the ray parameters corresponding to the currently selected target display object.
[0226] According to one or more embodiments of the present disclosure, the movement-related information includes a movement speed and / or a movement amplitude and / or a movement distance of the target ray;
[0227] The switching module is configured to:
[0228] When it is detected that the moving speed and / or moving amplitude and / or moving distance meet a preset switching condition, the display style of the target ray is switched.
[0229] According to one or more embodiments of the present disclosure, the switching module is configured to:
[0230] performing a switching operation on the curved shape of the target ray;
[0231] and / or;
[0232] Switches target rays from 2D to 3D.
[0233] According to one or more embodiments of the present disclosure, the switching module is configured to:
[0234] Acquiring first ray parameters, wherein the first ray parameters include one or more of a target distance coefficient, a target normal direction, a target motion direction, and a target delay degree;
[0235] Adjusting the display positions of the third coordinate and the fourth coordinate based on the first ray parameter to obtain updated third coordinate and updated fourth coordinate;
[0236] The target ray is obtained by performing data processing on the first coordinate, the second coordinate, the updated third coordinate, and the updated fourth coordinate using a preset curve generation formula.
[0237] According to one or more embodiments of the present disclosure, the switching module is configured to:
[0238] Acquire second ray parameters, wherein the second ray parameters include target shape, target map, and target size;
[0239] Performing a sampling operation on the two-dimensional target ray to obtain a plurality of sampling points corresponding to the target ray;
[0240] Constructing a plurality of contour points on the plane where each sampling point is located based on the target shape and target size;
[0241] Connecting the plurality of contour points in the order corresponding to the sampling points to obtain a three-dimensional contour corresponding to the target ray;
[0242] The target map is added to the three-dimensional contour to obtain a three-dimensional target ray.
[0243] According to one or more embodiments of the present disclosure, the apparatus further includes:
[0244] an acquisition module, configured to acquire target radius information in response to a radius adjustment operation triggered by a user;
[0245] an adjustment module configured to adjust the distances between the plurality of contour points and the sampling points based on the target radius information to obtain a plurality of updated contour points;
[0246] a connection module configured to connect the updated plurality of contour points according to the order corresponding to the sampling points to obtain an updated three-dimensional contour;
[0247] The adding module is configured to add the target map to the updated three-dimensional contour to obtain a three-dimensional target ray with an adjusted radius.
[0248] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;
[0249] The memory stores computer-executable instructions;
[0250] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the ray display method as described in the first aspect and various possible designs of the first aspect.
Claims
1. A ray display method, comprising: Displaying a preset remote control device and an interactive interface in a three-dimensional space, constructing a target ray between the remote control device and the interactive interface, and displaying the target ray in a preset display style; In response to a movement operation triggered by a user on the remote control device, controlling the target ray to move along with the remote control device; When it is determined that the movement-related information of the target ray during the movement process meets the preset switching condition, a switching operation is performed on the display style of the target ray.
2. The method according to claim 1, wherein: The step of constructing a target ray between the remote control device and the interactive interface includes: Determine the real-time intersection point and the historical intersection point between the original ray emitted by the remote control device and the interactive interface; Determining a delayed intersection point based on the real-time intersection point, the historical intersection point and a preset delay degree parameter; Constructing the target ray according to the delayed intersection point, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection point and a preset distance coefficient; The distance coefficient is used to characterize the distance between the delayed intersection and the real-time intersection.
3. The method according to claim 2, wherein: The constructing the target ray according to the delayed intersection point, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection point and a preset distance coefficient includes: Determine a display position of the remote control device in the three-dimensional space as a first coordinate; Determine the display position of the real-time intersection as a second coordinate; Determine a third coordinate based on a preset coordinate axis direction value in a display position corresponding to the remote control device and the distance coefficient; Determine a fourth coordinate based on the difference between the real-time intersection point and the delayed intersection point, the distance coefficient, and one or more of the movement direction and the normal direction; The target ray is obtained by performing data processing on the first coordinate, the second coordinate, the third coordinate, and the fourth coordinate using a preset curve generation formula.
4. The method according to claim 2, wherein: The determining of the delayed intersection point based on the real-time intersection point, the historical intersection point and the preset delay degree parameter includes: An interpolation operation is performed based on the coordinate information of the real-time intersection point, the coordinate information of the historical intersection point, and the delay degree parameter to obtain the delayed intersection point.
5. The method according to claim 1, wherein: The movement association information includes a target intersection position between the target ray and the interactive interface; When it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition, switching the display style of the target ray includes: Determine the currently selected target display object in real time based on the target intersection position, wherein different display objects correspond to different ray parameters; If the ray parameters corresponding to the currently selected target display object are different from those corresponding to the last selected display object, a switching operation is performed on the display style of the target ray based on the ray parameters corresponding to the currently selected target display object.
6. The method according to claim 1, wherein: The movement-related information includes the movement speed and / or movement amplitude and / or movement distance of the target ray; When it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition, switching the display style of the target ray includes: When it is detected that the moving speed and / or moving amplitude and / or moving distance meets a preset switching condition, the display style of the target ray is switched.
7. The method according to any one of claims 1 to 6, wherein: The switching operation on the display style of the target ray includes: Performing a switching operation on the curved shape of the target ray; and / or; Switches the target ray from 2D to 3D.
8. The method according to claim 7, wherein: The switching operation on the curved shape of the target ray comprises: Acquire a first ray parameter, wherein the first ray parameter includes one or more of a target distance coefficient, a target normal direction, a target motion direction, and a target delay degree; Adjusting the display positions of the third coordinate and the fourth coordinate based on the first ray parameter to obtain an updated third coordinate and an updated fourth coordinate; The target ray is obtained by performing data processing on the first coordinate, the second coordinate, the updated third coordinate, and the updated fourth coordinate through a preset curve generation formula.
9. The method according to claim 7, wherein: The step of switching the two-dimensional target ray to a three-dimensional target ray includes: Acquire second ray parameters, wherein the second ray parameters include target shape, target map, and target size; Performing a sampling operation on the two-dimensional target ray to obtain a plurality of sampling points corresponding to the target ray; Constructing a plurality of contour points on the plane where each sampling point is located based on the target shape and target size; Connecting the plurality of contour points in the order corresponding to the sampling points to obtain a three-dimensional contour corresponding to the target ray; The target map is added to the three-dimensional contour to obtain a three-dimensional target ray.
10. The method according to claim 9, further comprising: In response to a radius adjustment operation triggered by a user, obtaining target radius information; The distances between the plurality of contour points and the sampling points are adjusted based on the target radius information to obtain an updated Multiple contour points after Connecting the updated multiple contour points in the order corresponding to the sampling points to obtain an updated three-dimensional contour; The target map is added to the updated three-dimensional contour to obtain a three-dimensional target ray with an adjusted radius.
11. A radiation display device, comprising: A display module is configured to display a preset remote control device and an interactive interface in a three-dimensional space, construct a target ray between the remote control device and the interactive interface, and display the target ray in a preset display style; A control module, configured to control the target ray to move following the remote control device in response to a movement operation triggered by a user on the remote control device; as well as The switching module is configured to switch the display style of the target ray when it is determined that the movement-related information of the target ray during the movement meets a preset switching condition.
12. An electronic device comprising: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs a ray display method, wherein the ray display method includes: Displaying a preset remote control device and an interactive interface in a three-dimensional space, constructing a target ray between the remote control device and the interactive interface, and displaying the target ray in a preset display style; In response to a movement operation triggered by a user on the remote control device, controlling the target ray to move along with the remote control device; When it is determined that the movement-related information of the target ray during the movement process meets the preset switching condition, a switching operation is performed on the display style of the target ray.
13. The electronic device according to claim 12, wherein: The step of constructing a target ray between the remote control device and the interactive interface includes: Determine the real-time intersection point and the historical intersection point between the original ray emitted by the remote control device and the interactive interface; Determining a delayed intersection point based on the real-time intersection point, the historical intersection point and a preset delay degree parameter; Constructing the target ray according to the delayed intersection point, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection point and a preset distance coefficient; The distance coefficient is used to characterize the distance between the delayed intersection and the real-time intersection.
14. The electronic device according to claim 13, wherein: The constructing the target ray according to the delayed intersection point, the display position of the remote control device in the three-dimensional space, the position of the real-time intersection point and a preset distance coefficient includes: Determine a display position of the remote control device in the three-dimensional space as a first coordinate; Determine the display position of the real-time intersection as a second coordinate; Determine a third coordinate based on a preset coordinate axis direction value in a display position corresponding to the remote control device and the distance coefficient; Determine a fourth coordinate based on the difference between the real-time intersection point and the delayed intersection point, the distance coefficient, and one or more of the movement direction and the normal direction; The target ray is obtained by performing data processing on the first coordinate, the second coordinate, the third coordinate, and the fourth coordinate using a preset curve generation formula.
15. The electronic device according to claim 13, wherein: The determining of the delayed intersection point based on the real-time intersection point, the historical intersection point and the preset delay degree parameter includes: An interpolation operation is performed based on the coordinate information of the real-time intersection point, the coordinate information of the historical intersection point, and the delay degree parameter to obtain the delayed intersection point.
16. The electronic device according to claim 12, wherein: The movement association information includes a target intersection position between the target ray and the interactive interface; When it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition, switching the display style of the target ray includes: Determine the currently selected target display object in real time based on the target intersection position, wherein different display objects correspond to different ray parameters; If the ray parameters corresponding to the currently selected target display object are different from those corresponding to the last selected display object, a switching operation is performed on the display style of the target ray based on the ray parameters corresponding to the currently selected target display object.
17. The electronic device according to claim 12, wherein: The movement-related information includes the movement speed and / or movement amplitude and / or movement distance of the target ray; When it is determined that the movement-related information of the target ray during the movement process meets a preset switching condition, switching the display style of the target ray includes: When it is detected that the moving speed and / or moving amplitude and / or moving distance meets a preset switching condition, the display style of the target ray is switched.
18. The electronic device according to any one of claims 12 to 17, wherein: The switching operation on the display style of the target ray includes: Performing a switching operation on the curved shape of the target ray; and / or; Switches the target ray from 2D to 3D.
19. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the ray display method according to any one of claims 1 to 10 is implemented.
20. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the ray display method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Method and device for determining interaction indication line, electronic equipment and storage medium
CN114564106A
Virtual three-dimensional object display method and head-mounted display equipment
CN116091744A
Interaction method and device of wearable display equipment, equipment and medium
CN116149491A
Interaction method and device in virtual environment, equipment and storage medium
CN116430990A
Method and system for making a selection in 3D virtual environment
US8384665B1