Space point location switching method and device
By using fading animation and progressive animation technology in a single scene, the natural switching of space points is achieved, and the user vertigo caused by switching between scenes in the existing technology is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202411290718.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art can easily cause dizziness and poor user experience when switching between different scenarios.
By implementing spatial point jumps in a single scene, using fading animations and fading animations to gradually reduce and increase the visibility of the scene view, so as to adjust the scene nodes of the scene view when the user triggers the point jump operation. Jump from the current space point to the target space point and display the target view at the end of the jump.
It reduces the user's dizziness, makes the switching process of space points more natural, and improves the user experience.
Smart Images

Figure CN119127024A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a spatial point switching method and device. Background Art
[0002] In addition to gorgeous scene rendering and special effects, three-dimensional virtual scenes also have some scenes that require human interaction. For example, users are required to jump to other locations in the current space or to other spaces. Currently, space jumps are mainly achieved by changing the camera posture or switching to new scene data.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art: Most of the existing technologies switch between different scenes, which can easily cause dizziness in users and result in a poor user experience. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a spatial point switching method and device, which can realize spatial point jumping in a single scene, reduce the user's dizziness, make the spatial point switching process more natural, and improve the user experience.
[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a spatial point switching method is provided, comprising: In response to a user triggering a point jump operation within a single scene, obtaining jump point information corresponding to the point jump operation; wherein the jump point information includes a target space point; Execute a fade-out animation to gradually reduce the visibility of the scene view to a preset first critical value, and jump the scene node of the scene view from the current spatial point to the target spatial point; In response to the completion of the jump execution, a gradual animation is executed to gradually increase the visibility of the scene view to a preset second critical value, and the target view corresponding to the target space point is displayed to the user.
[0006] Optionally, before responding to the user triggering a point jump operation within a single scene, the method further includes: Execute the initialization logic to configure basic data; the initialization logic includes loading jump audio, creating spatial transparent nodes, and loading spatial point lists.
[0007] Optionally, the method further comprises: Create a transformation component and configure the transformation component to control the linear decrease and linear increase of visibility; The configured transformation component is applied to the spatial transparent node, so as to adjust the spatial transparent node by performing the fading animation and the fading-in animation using the transformation component, and the visibility of the scene view is represented according to the adjusted spatial transparent node.
[0008] Optionally, obtaining the jump point information corresponding to the point jump operation includes: Parse the point jump operation, obtain the current spatial point clicked by the user according to the parsing result, and find the corresponding target spatial point from the spatial point list based on the current spatial point.
[0009] Optionally, the scene node of the scene view is jumped from the current spatial point to the target spatial point, including: The jump algorithm is used to calculate the position offset of the target spatial point relative to the current spatial point, and the vertical component of the position offset is reset to zero; Apply the reset position offset to the scene model node in the pre-configured scene node tree, and adjust the position corresponding to the scene model node to jump from the current space point to the target space point; The rotation amount of the target space point relative to the vertical axis is determined based on the orientation coordinate data of the target space point after the jump, and the rotation attribute of the root node in the scene node tree is configured according to the rotation amount to adjust the orientation when jumping from the current space point to the target space point.
[0010] Optionally, before jumping the scene node of the scene view from the current spatial point to the target spatial point, the process further includes: The node matrix corresponding to the target space point is reset to jump the scene node of the scene view from the current space point to the reset target space point.
[0011] Optionally, performing a fading animation to gradually reduce the visibility of the scene view to a preset first critical value includes: The fading animation is executed to adjust the transparency, brightness, light intensity or color of the scene view so that the transparency, brightness, light intensity or color gradually decreases to a preset first critical value.
[0012] According to a second aspect of an embodiment of the present invention, there is provided a spatial point switching device, comprising: An information acquisition module, configured to acquire jump point information corresponding to the point jump operation in a single scene in response to a user triggering the point jump operation; wherein the jump point information includes a target space point; A fading animation module, used to perform a fading animation so that the visibility of the scene view is gradually reduced to a preset first critical value, and the scene node of the scene view is jumped from the current spatial point to the target spatial point; The gradual display animation module is used to execute the gradual display animation in response to the end of the jump execution to gradually increase the visibility of the scene view to a preset second critical value, and display the target view corresponding to the target space point to the user.
[0013] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including: one or more processors; a memory for storing one or more programs, When one or more programs are executed by one or more processors, the one or more processors are enabled to implement the method of any of the above embodiments.
[0014] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method of any of the above embodiments is implemented.
[0015] According to a fifth aspect of an embodiment of the present invention, there is provided a computer program product, including a computer program, which implements the method of any of the above embodiments when the computer program is executed by a processor.
[0016] An embodiment of the above invention has the following advantages or beneficial effects: by responding to a user triggering a point jump operation within a single scene, jump point information corresponding to the point jump operation is obtained; wherein the jump point information includes a target spatial point; a fade-in animation is executed to gradually reduce the visibility of the scene view to a preset first critical value, and the scene node of the scene view jumps from the current spatial point to the target spatial point; in response to the end of the jump execution, a fade-in animation is executed to gradually increase the visibility of the scene view to a preset second critical value, and the target view corresponding to the target spatial point is displayed to the user; thereby, spatial point jumps can be achieved within a single scene, and the user's dizziness is reduced, making the spatial point switching process more natural and improving the user experience.
[0017] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention. Figure 1 is a schematic diagram of the main process of the spatial point switching method according to an embodiment of the present invention; Figure 2 is a schematic diagram of the main process of a spatial point switching method according to a preferred embodiment of the present invention; Figure 3 is a schematic diagram of a three-dimensional virtual scene hierarchy according to a preferred embodiment of the present invention; Figure 4 is a schematic diagram of main modules of a spatial point switching device according to an embodiment of the present invention; Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied; Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0020] It should be noted that the acquisition, storage and application of personal information etc. involved in the embodiments of the present invention are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0021] At present, in addition to gorgeous scene rendering and special effects, 3D virtual scenes also have some scenes that require human interaction. For example, users are required to jump to other locations in the current space or jump to other spaces. The space jump is mainly achieved by changing the camera posture or switching to new scene data. Most of the existing technologies switch between different scenes, which can easily cause users to feel dizzy and have a poor user experience.
[0022] In view of this, according to one aspect of an embodiment of the present invention, a method for detecting an outlier is provided.
[0023] Figure 1 FIG. 1 is a schematic diagram of the main process of the spatial point switching method according to an embodiment of the present invention. Figure 1 As shown, the spatial point switching method according to an embodiment of the present invention includes the following steps S101 to S103.
[0024] Step S101, in response to a user triggering a point jump operation within a single scene, obtaining jump point information corresponding to the point jump operation; wherein the jump point information includes a target space point.
[0025] A single scene refers to a specific view or area where the user is located in a virtual environment or 3D (Three-Dimensional) space. In this scene, the user can interact with various objects or elements. The scene has a clear spatial boundary, and all operations and navigation occur within this scene. For example, a room, a park, or a virtual museum exhibition hall can be regarded as a single scene. Point jump operation refers to the user selecting a specific position or point in this scene through some interactive method (such as clicking, touching, selecting, etc.), and requiring the system to move the current view, camera, or user's virtual position to this point. Jump point information is the relevant data that the system needs to obtain when performing a point jump operation. This information includes the spatial coordinates of the target spatial point (such as 3D coordinates) or other parameters related to the jump, such as the view direction, zoom level, animation time, etc., which are used to move the user's view from the current position to the target spatial point and control the visual effects during the movement.
[0026] Specifically, when the user triggers a point jump operation in the scene, the user's input is captured, and the input can be completed by clicking, touching or selecting a location or object in a specific scene. The system immediately responds to this input and starts a process of obtaining the target space point information. For example, when the user clicks a certain location in the scene, the 3D coordinates of the location are determined by capturing the user's click event and using techniques such as ray casting. These coordinates are the jump point information; predefined jump points can also be used. When the scene is initialized, the system has stored multiple possible jump point information. When the user selects a point, the system directly extracts the corresponding coordinates and related information from the predefined list. Then, the acquired 3D coordinate information and other related point information (such as viewing direction, animation parameters, etc.) are stored and processed as jump point information.
[0027] Step S102, executing a fading animation to gradually reduce the visibility of the scene view to a preset first critical value, and jumping the scene node of the scene view from the current spatial point to the target spatial point.
[0028] A fade animation is a visual effect used to gradually change the visibility of an object in a graphical interface or 3D scene, making it gradually become semi-transparent or invisible from fully visible. This animation effect can be achieved by gradually reducing the invisibility of the object. Visibility refers to the degree of visual presentation of elements or scene nodes in the scene view, showing the clarity with which the scene objects can be visually observed. The scene view refers to what the user sees in a virtual environment or 3D space, reflecting the picture of the current scene captured by the camera or the user's perspective, including all objects, backgrounds, lighting, and other visual elements in the entire scene. The preset first critical value is the visibility threshold set in the fade animation. When the visibility of the scene view is reduced to this threshold, a specific operation can be triggered, such as the jump of the scene node. A scene node is an element or object in the scene view, representing an entity or a position in 3D space. In 3D rendering, the scene view consists of multiple scene nodes, each of which has its specific position, rotation, and scale properties. A scene node can be a single object, a group, or a complete subscene.
[0029] When the user triggers the jump operation, the system starts to execute the fade animation, adjusting the visibility of the scene view frame by frame through the animation. Each frame will reduce the visibility of the scene view until it reaches the preset first critical value. At the moment when the visibility is reduced to the critical value, the system will execute the jump of the scene node and move it from the current spatial point to the target spatial point. In addition, you can also use a time-controlled fade animation. The system gradually reduces the visibility of the scene view at a preset time interval and triggers the jump of the scene node when the visibility reaches the first critical value, ensuring that the animation is completed within the set time without relying on the number of frames.
[0030] Step S103, in response to the completion of the jump execution, a gradual animation is executed to gradually increase the visibility of the scene view to a preset second critical value, and the target view corresponding to the target space point is displayed to the user.
[0031] The fade-in animation is a visual effect opposite to the fade-out animation, which is used to gradually increase the visibility of an object, making it fully visible from an invisible or semi-transparent state. By gradually increasing the invisibility of the object, the fade-in animation can make the object or scene element gradually appear in the user's view. The second critical value is a preset visibility threshold that defines the ultimate goal of the visibility increase of the scene view during the fade-in animation. When the visibility of the scene view reaches this critical value, the view becomes fully or nearly fully visible to ensure that the user can clearly see the target view.
[0032] When the jump is completed, the system immediately starts the gradual display animation, increasing the invisibility of the scene view frame by frame until it reaches the preset second critical value and the scene view becomes clear, and finally the target view is fully displayed. In addition, the visibility of the scene view can also be increased at a fixed pace according to the preset time interval until the second critical value is reached. In this process, the system can dynamically adjust the speed of visibility change according to the time parameter to ensure that the gradual display effect is completed within the set time and the target view is displayed. The above implementation method can effectively realize the gradual display transition of the scene view, so that the target view is presented to the user in a smooth and natural manner, which can reduce the user's dizziness to a certain extent and make the spatial point jump process more natural.
[0033] The embodiment of the present invention obtains jump point information corresponding to the point jump operation in response to a user triggering a point jump operation in a single scene; wherein the jump point information includes a target spatial point; a fade-in animation is executed to gradually reduce the visibility of the scene view to a preset first critical value, and the scene node of the scene view is jumped from the current spatial point to the target spatial point; in response to the end of the jump execution, a fade-in animation is executed to gradually increase the visibility of the scene view to a preset second critical value, and the target view corresponding to the target spatial point is displayed to the user; thereby, spatial point jumps can be achieved in a single scene, and the user's dizziness is reduced, the spatial point switching process is made more natural, and the user experience is improved.
[0034] Optionally, before responding to a user triggering a point jump operation within a single scene, it also includes: executing initialization logic to perform basic data configuration; wherein the initialization logic includes loading jump audio, creating spatial transparent nodes, and loading a spatial point list.
[0035] Before responding to a point jump operation, the system can be initialized in advance to ensure that subsequent operations can be performed smoothly. The system can load jump audio, read audio files related to spatial point jumps from the resource library, and load them into memory so that they can be played immediately when the user performs a point jump operation. These audio files include prompt sound effects, background music, or other sound effects related to user interaction; the user experience is enhanced, making the jump operation more intuitive and immersive. The system can also create spatial transparent nodes, which are special elements in the scene graph that are used to handle visibility changes of different objects or views in the scene; when creating a spatial transparent node, initialize its properties, such as position, visibility, and relationship with other scene nodes, and control visibility through the spatial transparent node to achieve fade-in or fade-out animations, thereby controlling the visibility and transition effects of various parts of the scene. You can also load a list of spatial points and read spatial point information from a preset data source. This information includes the coordinates, names, and associated views or nodes of each key location in the scene. After loading this spatial point information, the system can dynamically jump to the corresponding spatial point based on the user's operation. The loading of the point list improves the navigability of the scene, and users can freely switch between different views or locations within the scene.
[0036] In the embodiment of the present invention, the initialization logic is executed to load jump audio, create spatial transparent nodes, and load spatial point lists, so that the system can respond quickly after receiving user input and present visual and auditory effects in an expected manner.
[0037] Optionally, the method also includes: creating a transformation component, configuring the transformation component to control linear decrease and linear increase of visibility; applying the configured transformation component to the spatial transparent node, so as to adjust the spatial transparent node by using the transformation component to perform fade-in animation and fade-out animation, and characterizing the visibility of the scene view according to the adjusted spatial transparent node.
[0038] First, you can define a transformation component that can linearly change the visibility within a certain time range. Linear decrease is used to implement fade-in animation, and linear increase is used to implement fade-in animation. Specifically, configure the transformation component to gradually adjust the visibility value according to time or frame number, so that the object or scene gradually changes from fully visible to invisible, or from invisible to visible. After the configuration is completed, apply this transformation component to the spatial transparent node. The transformation component can operate on the visibility property of the spatial transparent node. For example, when performing a fade-out animation, the transformation component will reduce the visibility of the spatial transparent node frame by frame until it reaches the preset minimum value; when performing a fade-in animation, on the contrary, the visibility will increase frame by frame until it returns to the initial visible state.
[0039] By applying transformation components to spatial transparent nodes, the embodiment of the present invention can flexibly control the visibility change of the scene view. The fade-out animation makes the scene view gradually disappear through the linear decrease of visibility, while the fade-in animation makes the scene view gradually appear through the linear increase of visibility. The adjusted spatial transparent nodes can directly affect the display effect of the entire scene view, which not only improves the visual experience, but also enhances the user's immersion in the virtual space.
[0040] Optionally, obtaining jump point information corresponding to the point jump operation includes: parsing the point jump operation, obtaining the current spatial point clicked by the user according to the parsing result, and searching for the corresponding target spatial point from the spatial point list based on the current spatial point.
[0041] After the user clicks a certain position in the scene, the system will identify and parse the point jump operation to determine the specific position clicked by the user, that is, the current spatial point. Specifically, the ray casting technology can be used to send a ray from the camera's perspective along the direction of the user's click to find its intersection with the scene object. The 3D coordinates of this intersection are the current spatial point clicked by the user. Based on the current spatial point, the system searches for the corresponding target spatial point in the pre-loaded spatial point list. The spatial point list contains information about all key points in the scene, such as coordinates, names, and associated jump points. The system can find the corresponding target spatial point in the list by matching the attributes of the current spatial point, for example, finding the target point closest to the current point, or matching the associated points according to specific rules. After finding the corresponding target spatial point, the target spatial point is used as the jump target. The system performs the point jump operation in the scene according to the target spatial point, and moves the user's perspective or camera position to the target spatial point. The embodiment of the present invention enables the user to achieve accurate navigation in the scene and smoothly jump from the current spatial point to the expected target spatial point.
[0042] Optionally, the scene node of the scene view is jumped from the current spatial point to the target spatial point, including: using a jump algorithm to calculate the position offset of the target spatial point relative to the current spatial point, and resetting the vertical component of the position offset to zero; applying the reset position offset to the scene model node in a pre-configured scene node tree, and adjusting the corresponding position of the scene model node to achieve a jump from the current spatial point to the target spatial point; determining the rotation amount of the target spatial point relative to the vertical axis based on the orientation coordinate data of the target spatial point after the jump, and configuring the rotation attribute of the root node in the scene node tree according to the rotation amount to adjust the orientation when jumping from the current spatial point to the target spatial point.
[0043] The system determines the relative position of the target space point and the current space point in three-dimensional space through mathematical calculations. For example, by vector subtraction, the coordinates of the target space point are subtracted from the coordinates of the current space point to obtain a three-dimensional vector. This three-dimensional vector represents the position offset, which includes the offset values on the X, Y and Z axes. The vertical component of the three-dimensional vector represents the displacement in the vertical direction. The vertical component of this position offset is reset to zero, so that during the jump process, the perspective or scene object will not move in the vertical direction, avoiding up and down jitter or unexpected height changes in the scene. The reset position offset only retains the horizontal component, so that the jump path will be a horizontal line, allowing the user to maintain a stable perspective during the jump process. The reset position offset is applied to the scene model node in the scene node tree. The scene node tree is the core structure of scene management, which is used to organize and control all objects or views in the scene. The scene model node represents a specific scene element, such as a 3D model, a building, or a specific object in the virtual environment. By applying the position offset to the scene model nodes, the system can dynamically adjust the coordinate positions of these scene model nodes so that they move from the current spatial point to the target spatial point, for example, by updating the position of the scene model node frame by frame to ensure a smooth transition during the jump process, and the user perceives a natural movement rather than an instantaneous jump. After the jump is completed, the correct orientation of the perspective can also be processed. The rotation of the target spatial point relative to the vertical axis is calculated based on the orientation coordinate data of the target spatial point. This rotation reflects the direction the user needs to face in the new position. For example, the user may need to face a specific object or area. The system applies this rotation to the root node of the scene node tree. The root node is the highest level node of the scene tree and controls the direction and rotation properties of the entire scene. By adjusting the rotation properties of the root node, the system can accurately set the user's viewing direction at the target spatial point to ensure that the user's viewing angle is consistent with the direction of the scene.
[0044] In addition, the position change between the current spatial point and the target spatial point can be calculated by direct interpolation without resetting the vertical component. Through linear interpolation or smooth interpolation, the system can calculate the intermediate transition points and gradually move the scene nodes to the target spatial points. This can maintain a high degree of consistency in the scene during the jump process and avoid abrupt movement during the jump.
[0045] The embodiment of the present invention adjusts the position and sets the viewing angle, so that the user can feel real and smooth movement and direction change in the virtual environment, while maintaining the stability and correctness of the viewing angle, eliminating the user's feeling of dizziness when jumping.
[0046] Optionally, before jumping the scene node of the scene view from the current spatial point to the target spatial point, it also includes: resetting the node matrix corresponding to the target spatial point to jump the scene node of the scene view from the current spatial point to the reset target spatial point.
[0047] The system first determines the relationship between the target space point and each node in the current scene. The node matrix is usually a 4x4 transformation matrix that contains information such as displacement, rotation, and scaling, defining the position and orientation of the object in the scene. The system can adjust or reset this node matrix to ensure that the target space point can be correctly mapped to a certain position in the scene. First, the matrix of the current scene node and the matrix of the target space point are extracted, which represent the current state and target state of the object in the scene. Then, through matrix operations such as matrix multiplication or inversion, the transformation required to move the current node from the current position to the target position is calculated, and the translation component of the matrix is reset to directly update the position of the object to the coordinates of the target space point. During the matrix reset process, the orientation and scale of the object are maintained to ensure that the posture of the object in the scene is consistent with the target space point. This adjustment makes the rotation part of the matrix correctly reflect the orientation of the target space point, while the translation part is accurately located at the target position. After completing the node matrix reset, the node matrix is applied to the scene node of the scene view. The scene node readjusts its position and direction according to the updated node matrix to achieve a jump from the current spatial point to the target spatial point.
[0048] The embodiment of the present invention resets the node matrix so that the scene nodes in the scene view can accurately jump from the current spatial point to the reset target spatial point, thereby realizing dynamic updating of the scene, ensuring the accuracy and consistency of the jump process, and making the user's navigation experience in the virtual environment more natural and smooth.
[0049] Optionally, executing a fading animation to gradually reduce the visibility of the scene view to a preset first critical value includes: executing a fading animation to adjust the transparency, brightness, light intensity or color of the scene view to gradually reduce the transparency, brightness, light intensity or color to a preset first critical value.
[0050] Visibility changes can be achieved by adjusting visual properties such as transparency, brightness, light intensity, and color. Transparency is used to control the clarity of the view object. When transparency is gradually reduced, the objects in the scene will gradually transition from being fully visible to blurry or even disappearing; brightness affects the visual intensity of the scene. As the brightness decreases, the objects in the scene will gradually darken until they can no longer be observed; light intensity determines the strength of the light source in the scene. As the light intensity decreases, the objects gradually lose the lighting effect and appear more blurred and invisible; color adjustment also affects visibility. Gradually reducing the color saturation or transitioning the color to the background color or transparent color can gradually weaken the visual presence of the object until it disappears completely.
[0051] Optionally, executing a gradual animation to gradually increase the visibility of the scene view to a preset second critical value includes: executing a gradual animation to adjust the transparency, brightness, light intensity or color of the scene view so that the transparency, brightness, light intensity or color gradually increases to the preset second critical value.
[0052] Specifically, the adjustment method and the steps for executing the fade-in animation have been described in detail. The implementation method of the fade-in animation in the embodiment of the present invention is opposite to the fade-out animation. By gradually adjusting visual attributes such as transparency, brightness, light intensity or color, the elements in the scene gradually transition from an invisible state to a visible state.
[0053] Figure 2 FIG. 1 is a schematic diagram of the main process of a spatial point switching method according to a preferred embodiment of the present invention. Figure 2 As shown, before jumping, initialization processing is first performed, for example, basic configuration data such as loading jump audio in advance, creating spatial transparent nodes, and loading spatial point lists are loaded. When the user triggers the jump function (clicks on the jump area), the clicked spatial point information (virtual camera position and orientation) is first obtained. In addition, one or more transformation components are set to the "available" state so that the transformation components can perform animation or other interactive operations. Execute the spatial transparent node fade-in animation, apply the transparent value of the fade-out animation to the spatial view, and gradually reduce the transparency of the component to make it disappear slowly. Check whether the fade-in animation has been completed. If the fade-in animation is completed, directly enter the jump algorithm and play the jump audio; if not, continue to execute the fade-in animation. When executing the jump algorithm, you can also reset the node matrix, for example, recalculate the position, rotation and scale matrix of the transformation component to ensure that the position and state of the transformation component in the scene are correctly updated. When the jump is completed, then execute the spatial transparent node fade-in animation to restore the brightness of the view. Then, the transformation component is set to the "unavailable" state to completely hide the transformation component, and the scene view is displayed to the user, and the entire animation or point switching process is completed.
[0054] The embodiment of the present invention realizes the fading animation and the gradually appearing animation through the transformation component, and realizes the linear decreasing and increasing transformation of the transparency value, and the transparency value indirectly acts on the transparent layer of the immersive environment view. After the fading animation ends, the jump algorithm is entered, and the relevant node matrix is directly reset. After the fading animation ends, the gradually appearing animation is activated. After the animation ends, the transformation component is reset to hidden, and the whole jump process ends. Through the transparency transformation, the transparency is indirectly reflected in the transparency of the immersive environment view, and the jump of the spatial point is completed at the critical point of the middle transparency transformation, so as to eliminate the dizziness of the jump.
[0055] Figure 3 Schematic diagram of the hierarchical structure of a three-dimensional virtual scene according to a preferred embodiment of the present invention. In order to fully realize the rationality of spatial point display, for the data information related to the spatial point, this paper designs the following Figure 3 In the hierarchical structure shown, Root is the starting point or root node of the entire scene, representing the top-level container of the scene. All scene elements are derived from this node. The root node can be regarded as the "master" or "master control node" of the entire scene, managing all other elements in the scene. Model is connected under the root node, representing a specific model or a group of models. This model node can contain multiple child nodes, each of which represents a specific object or component in the scene, such as a 3D model, geometry, etc. Figure 3In the figure, multiple child nodes are connected under the model node, and each child node represents a scene object. Under this model node, multiple child nodes are branched out, and these child nodes represent different 3D objects or components, such as the robot model, chair model, and sofa model seen in the picture. These child nodes can contain 3D models, materials, textures and other information. Each child node is an independent element in the scene. Camera (camera node) On the right side of the figure, there is a separate camera node. This node is not directly connected to the model and the root node, and is independent of another part of the scene. The camera node is used to define the perspective or observation point of the scene. The entire scene is rendered from the position and angle of this node. By changing the position and angle of the camera, different views or scene effects can be obtained. The specific jump implementation steps are as follows: first calculate the offset of the next spatial point position (such as group_two_position_camera) relative to the scene node (model), record it as offsetPos, reset offsetPos.y to 0, and assign -offsetPos to the scene node model coordinate position; assign the head-mounted device (camera) position cameraPos to the root node position (rootPos), and reset rootPos.y to 0; according to the orientation coordinate data of the next point (such as group_two_position_look), calculate the rotation amount of the next point along the Y axis, set the rotation amount of the root node according to the rotation amount, and solve the problem of correct orientation after rotation.
[0056] According to a second aspect of an embodiment of the present invention, a spatial point switching device is provided.
[0057] Figure 4 Schematic diagram of the main modules of the spatial point switching device according to an embodiment of the present invention. Figure 4 As shown, a spatial point switching device 400 includes: The information acquisition module 401 is used to acquire the jump point information corresponding to the point jump operation in response to the user triggering the point jump operation in a single scene; wherein the jump point information includes the target space point; A fading animation module 402 is used to perform a fading animation so that the visibility of the scene view is gradually reduced to a preset first critical value, and the scene node of the scene view is jumped from the current spatial point to the target spatial point; The gradual display animation module 403 is used to execute a gradual display animation in response to the completion of the jump execution to gradually increase the visibility of the scene view to a preset second critical value, and display the target view corresponding to the target space point to the user.
[0058] Optionally, the apparatus 400 further includes an initial configuration module, and the initial configuration module is used to: Execute the initialization logic to configure basic data; the initialization logic includes loading jump audio, creating spatial transparent nodes, and loading spatial point lists.
[0059] Optionally, the apparatus 400 further includes a component configuration module, and the component configuration module is used to: Create a transformation component and configure the transformation component to control the linear decrease and linear increase of visibility; The configured transformation component is applied to the spatial transparent node, so as to adjust the spatial transparent node by performing the fading animation and the fading-in animation using the transformation component, and the visibility of the scene view is represented according to the adjusted spatial transparent node.
[0060] Optionally, the information acquisition module 401 is further used to: Parse the point jump operation, obtain the current spatial point clicked by the user according to the parsing result, and find the corresponding target spatial point from the spatial point list based on the current spatial point.
[0061] Optionally, the fading animation module 402 is further used for: The jump algorithm is used to calculate the position offset of the target spatial point relative to the current spatial point, and the vertical component of the position offset is reset to zero; Apply the reset position offset to the scene model node in the pre-configured scene node tree, and adjust the position corresponding to the scene model node to jump from the current space point to the target space point; The rotation amount of the target space point relative to the vertical axis is determined based on the orientation coordinate data of the target space point after the jump, and the rotation attribute of the root node in the scene node tree is configured according to the rotation amount to adjust the orientation when jumping from the current space point to the target space point.
[0062] Optionally, the apparatus 400 further includes a matrix resetting module, and the matrix resetting module is used to: The node matrix corresponding to the target space point is reset to jump the scene node of the scene view from the current space point to the reset target space point.
[0063] Optionally, the fading animation module 402 is further used for: The fading animation is executed to adjust the transparency, brightness, light intensity or color of the scene view so that the transparency, brightness, light intensity or color gradually decreases to a preset first critical value.
[0064] It should be noted that the specific implementation content of the spatial point switching device of the present invention has been described in detail in the above spatial point switching method, so the repeated content will not be described again here.
[0065] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present invention.
[0066] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0067] According to a fifth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0068] Figure 5 An exemplary system architecture 500 is shown to which the spatial point switching method or spatial point switching device according to the embodiment of the present application can be applied.
[0069] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0070] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0071] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0072] The server 505 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received spatial point switching request and other data, and feed back the processing results (such as the target view - only an example) to the terminal device.
[0073] It should be noted that the spatial point switching method provided in the embodiment of the present application is generally executed by the server 505 , and accordingly, the spatial point switching device is generally arranged in the server 505 .
[0074] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0075] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present application. Figure 6 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0076] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0077] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0078] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains 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 through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present application are executed.
[0079] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable storage media may include, for example, but are not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, 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 application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This 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. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit 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 appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0080] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a 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 from the order 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 or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0081] The units involved in the embodiments described in the present application may be implemented by software or by hardware. The units described may also be provided in a processor, for example, may be described as: a processor including an information acquisition module, a fade-in animation module, and a fade-in animation module. The names of these modules do not, in some cases, constitute limitations on the modules themselves, for example, the information acquisition module may be described as "a module for obtaining jump point information corresponding to a point jump operation triggered by a user within a single scene" .
[0082] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: in response to a user triggering a point jump operation within a single scene, obtaining jump point information corresponding to the point jump operation; wherein the jump point information includes a target space point; executing a fade-in animation to gradually reduce the visibility of the scene view to a preset first critical value, and jumping the scene node of the scene view from the current space point to the target space point; in response to the end of the jump execution, executing a fade-in animation to gradually increase the visibility of the scene view to a preset second critical value, and displaying the target view corresponding to the target space point to the user.
[0083] The computer program product provided by the embodiment of the present invention includes a computer program, and when the computer program is executed by a processor, the spatial point switching method in the embodiment of the present invention is implemented.
[0084] According to the technical solution of the embodiment of the present invention, it has the following advantages or beneficial effects: by responding to the user triggering a point jump operation within a single scene, the jump point information corresponding to the point jump operation is obtained; wherein the jump point information includes the target spatial point; a fade-in animation is executed to gradually reduce the visibility of the scene view to a preset first critical value, and the scene node of the scene view is jumped from the current spatial point to the target spatial point; in response to the end of the jump execution, a fade-in animation is executed to gradually increase the visibility of the scene view to a preset second critical value, and the target view corresponding to the target spatial point is displayed to the user; thereby, spatial point jumps can be achieved within a single scene, and the user's dizziness is reduced, making the spatial point switching process more natural and improving the user experience.
[0085] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
[0086] It should be noted that the acquisition, storage and application of user personal information involved in the technical solution of the present disclosure are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
Claims
1. A spatial point switching method, characterized in that: include: In response to a user triggering a point jump operation within a single scene, obtaining jump point information corresponding to the point jump operation; wherein the jump point information includes a target space point; Executing a fading animation to gradually reduce the visibility of the scene view to a preset first critical value, and jumping the scene node of the scene view from the current spatial point to the target spatial point; In response to the completion of the jump execution, a gradual animation is executed to gradually increase the visibility of the scene view to a preset second critical value, and the target view corresponding to the target space point is displayed to the user.
2. The method according to claim 1, characterized in that Before responding to the user triggering a point jump operation within a single scene, the method further includes: Execute initialization logic to configure basic data; wherein, the initialization logic includes loading jump audio, creating spatial transparent nodes, and loading spatial point lists.
3. The method according to claim 2, characterized in that The method further comprises: Creating a transformation component, configuring the transformation component to control linear decrease and linear increase of visibility; The configured transformation component is applied to the spatial transparent node, so as to adjust the spatial transparent node by using the transformation component to perform a fade-in animation and a fade-out animation, and the visibility of the scene view is represented according to the adjusted spatial transparent node.
4. The method according to claim 2, characterized in that: Obtaining the jump point information corresponding to the point jump operation includes: The point jump operation is analyzed, a current spatial point clicked by the user is obtained according to the analysis result, and a corresponding target spatial point is found from the spatial point list based on the current spatial point.
5. The method according to claim 1, characterized in that Jumping the scene node of the scene view from the current spatial point to the target spatial point includes: Calculate the position offset of the target spatial point relative to the current spatial point using a jump algorithm, and reset the vertical component of the position offset to zero; Applying the reset position offset to the scene model node in the pre-configured scene node tree, adjusting the position corresponding to the scene model node to achieve jumping from the current spatial point to the target spatial point; Based on the orientation coordinate data of the target space point after the jump, the rotation amount of the target space point relative to the vertical axis is determined, and the rotation attribute of the root node in the scene node tree is configured according to the rotation amount to adjust the orientation when jumping from the current space point to the target space point.
6. The method according to claim 1, characterized in that Before the scene node of the scene view jumps from the current spatial point to the target spatial point, the method further includes: The node matrix corresponding to the target spatial point is reset to jump the scene node of the scene view from the current spatial point to the reset target spatial point.
7. The method according to claim 1, characterized in that Executing a fading animation so that the visibility of the scene view gradually decreases to a preset first threshold value, including: The fading animation is executed to adjust the transparency, brightness, light intensity or color of the scene view so that the transparency, brightness, light intensity or color gradually decreases to a preset first critical value.
8. A spatial point switching device, characterized in that: include: An information acquisition module, configured to acquire jump point information corresponding to a point jump operation triggered by a user in a single scene; wherein the jump point information includes a target space point; A fading animation module, used to perform a fading animation so that the visibility of the scene view is gradually reduced to a preset first critical value, and the scene node of the scene view is jumped from the current spatial point to the target spatial point; The gradual display animation module is used to execute the gradual display animation in response to the completion of the jump execution so that the visibility of the scene view gradually increases to a preset second critical value, and the target view corresponding to the target space point is displayed to the user.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Panoramic animation jumping method and system
CN104182999A
Scene switching method, device and equipment and medium
CN109859328A
Scene switching method and device, equipment and storage medium
CN115202792A
VR scene processing method and device and storage medium
CN115423920A
Method and device for virtual reality space switching
CN116824101A
Cited By
Spatial viewpoint switching method and apparatus
WO2026056345A1
