Spatial viewpoint switching method and apparatus

By performing fade-in and fade-out animations within a single scene, the problem of dizziness caused by scene transitions in existing technologies is solved, achieving natural spatial point switching and improving the user experience.

WO2026056345A1PCT designated stage Publication Date: 2026-03-19BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2026-03-19

AI Technical Summary

Technical Problem

Existing technologies can easily cause dizziness in users when switching between different scenarios, resulting in a poor user experience.

Method used

By performing fade-in and fade-out animations within a single scene, the visibility of the scene view is gradually reduced and increased, achieving smooth switching of spatial points. This includes loading jump audio, creating transparent spatial nodes, and loading a list of spatial points. Transformation components are used to control the linear decrease and increase of visibility.

Benefits of technology

It reduces the user's dizziness, makes the switching of spatial points more natural, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025096821_19032026_PF_FP_ABST
    Figure CN2025096821_19032026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed are a spatial viewpoint switching method and apparatus, relating to the technical field of computers. A specific embodiment of the method comprises: in response to a user triggering a viewpoint jump operation within a single scene, acquiring viewpoint jump information corresponding to the viewpoint jump operation, the viewpoint jump information comprising a target spatial viewpoint (S101); executing a fade-out animation to gradually reduce the visibility of a scene view to a preset first threshold, such that a scene node of the scene view jumps from a current spatial viewpoint to the target spatial viewpoint (S102); and upon completion of the jump, executing a fade-in animation to gradually increase the visibility of the scene view to a preset second threshold, and displaying a target view corresponding to the target spatial viewpoint to the user (S103). The method enables spatial viewpoint jumping within a single scene and alleviates user dizziness, makes the spatial viewpoint switching process more natural, and improves user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Space point switching method and device

[0001] Cross-reference to Related Applications

[0002] This application claims priority to Chinese Patent Application No. 202411290718.9, filed September 13, 2024, the entire contents of which are incorporated herein by reference. TECHNICAL FIELD

[0003] The present disclosure relates to the field of computer technology, and in particular, to a space point switching method and device. BACKGROUND

[0004] In addition to the magnificent scene rendering and special effects, a three-dimensional virtual scene will also have some scenes that require human interaction, for example, the user needs to jump to other positions in the current space or jump to other spaces. Currently, space jumping is mainly achieved by transforming the camera pose or switching new scene data.

[0005] In the process of implementing the present disclosure, the inventors found that at least the following problems exist in the related art:

[0006] Most of the prior art switches between different scenes, and is prone to causing dizziness in users, resulting in poor user experience. SUMMARY

[0007] Therefore, the embodiments of the present disclosure provide a space point switching method and device, which can realize space point jumping within a single scene, reduce the dizziness of users, make the switching process of space points more natural, and improve the user experience.

[0008] To achieve the above-mentioned purpose, according to an aspect of an embodiment of the present disclosure, a space point switching method is provided, comprising:

[0009] In response to the user triggering a point jumping operation within a single scene, jump point information corresponding to the point jumping operation is obtained; wherein the jump point information includes a target space point;

[0010] A fade-out animation is performed to gradually reduce the visibility of the scene view to a preset first threshold value, and the scene node of the scene view is jumped from the current space point to the target space point;

[0011] In response to the end of the jump execution, a fade-in animation is performed to gradually increase the visibility of the scene view to a preset second threshold value, and a target view corresponding to the target space point is displayed to the user.

[0012] Optionally, before the user triggers the point jumping operation within the single scene, the method further comprises:

[0013] Perform initialization logic for basic data configuration; wherein the initialization logic includes loading a jump audio, creating a spatial transparent node, and loading a spatial point list.

[0014] Optionally, the method further comprises:

[0015] Creating a transformation component, and configuring the transformation component to control the linear decrease and linear increase of the visibility;

[0016] Applying the configured transformation component to the spatial transparent node to adjust the spatial transparent node using the transformation component to perform the fade-out animation and the fade-in animation, and representing the visibility of the scene view according to the adjusted spatial transparent node.

[0017] Optionally, the jump point information corresponding to the point jump operation is obtained, including:

[0018] Analyzing the point jump operation, obtaining the current spatial point clicked by the user according to the analysis result, and finding the corresponding target spatial point from the spatial point list based on the current spatial point.

[0019] Optionally, the scene node of the scene view is jumped from the current spatial point to the target spatial point, including:

[0020] Calculating the position offset of the target spatial point relative to the current spatial point using a jump algorithm, and resetting the vertical component of the position offset to zero;

[0021] Applying the reset position offset to the scene model node in the pre-configured scene node tree, adjusting the position of the scene model node corresponding to the scene model node to jump from the current spatial point to the target spatial point;

[0022] 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 jumping, 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.

[0023] Optionally, before jumping the scene node of the scene view from the current spatial point to the target spatial point, further comprising:

[0024] 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.

[0025] Optionally, the fade-out animation is performed to gradually reduce the visibility of the scene view to a preset first threshold, including:

[0026] Performing the fade-out 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 the preset first threshold.

[0027] According to a second aspect of the embodiments of the present disclosure, a spatial point switching device is provided, comprising:

[0028] an information obtaining module, configured to, in response to a user triggering a point jump operation in a single scene, obtain jump point information corresponding to the point jump operation, wherein the jump point information comprises a target spatial point;

[0029] a fade-out animation module, configured to execute a fade-out animation to gradually reduce a visibility of a scene view to a preset first threshold value, and jump a scene node of the scene view from a current spatial point to the target spatial point;

[0030] a fade-in animation module, configured to, in response to the jump execution ending, execute a fade-in animation to gradually increase the visibility of the scene view to a preset second threshold value, and display a target view corresponding to the target spatial point to the user.

[0031] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, comprising:

[0032] one or more processors;

[0033] a memory configured to store one or more programs,

[0034] when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any of the above embodiments.

[0035] According to a fourth aspect of the embodiments of the present disclosure, a computer readable medium is provided, which stores a computer program, and the program is executed by a processor to implement the method of any of the above embodiments.

[0036] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, comprising a computer program, and the computer program is executed by a processor to implement the method of any of the above embodiments.

[0037] One of the embodiments in the above disclosure has the following advantages or beneficial effects: in response to a user triggering a point jump operation in a single scene, jump point information corresponding to the point jump operation is obtained, wherein the jump point information comprises a target spatial point; a fade-out animation is executed to gradually reduce a visibility of a scene view to a preset first threshold value, and a scene node of the scene view is jumped from a current spatial point to the target spatial point; in response to the jump execution ending, a fade-in animation is executed to gradually increase the visibility of the scene view to a preset second threshold value, and a target view corresponding to the target spatial point is displayed to the user; thereby spatial point jump can be realized in a single scene, and the user's dizziness is reduced, the switching process of the spatial point is more natural, and the user experience is improved.

[0038] Further effects of the above-described, non-conventional alternatives will be explained in the following with respect to specific embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0039] The accompanying drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and serve to explain the principles of the present disclosure.

[0040] FIG. 1 is a schematic diagram of the main flow of a space point switching method according to an embodiment of the present disclosure;

[0041] FIG. 2 is a schematic diagram of the main flow of a space point switching method according to one preferred embodiment of the present disclosure;

[0042] FIG. 3 is a schematic diagram of a three-dimensional virtual scene hierarchy according to a preferred embodiment of the present disclosure;

[0043] FIG. 4 is a schematic diagram of the main modules of a space point switching apparatus according to an embodiment of the present disclosure;

[0044] FIG. 5 is an exemplary system architecture diagram to which embodiments of the present disclosure can be applied;

[0045] FIG. 6 is a schematic diagram of the structure of a computer system of a terminal device or server suitable for use in implementing embodiments of the present disclosure. DETAILED DESCRIPTION

[0046] Exemplary embodiments of the present disclosure are described herein with reference to the accompanying drawings, which are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and serve to explain the principles of the present disclosure. It should be noted that various details of the embodiments of the present disclosure are described for the purpose of illustration only, and one of ordinary skill in the art will recognize that the embodiments described herein can be practiced with various changes and modifications without departing from the scope and spirit of the present disclosure. Also, in the interest of clarity, not all of the routine features of the implementations described herein are shown or described.

[0047] It should be noted that the acquisition, storage and application of personal information and the like involved in the embodiments of the present disclosure comply with relevant laws and regulations and do not violate public order and good customs.

[0048] Currently, in addition to the magnificent scene rendering and special effects, three-dimensional virtual scenes also have some scenes that require human interaction, for example, the user needs to jump to other locations in the current space or jump to other spaces, which is mainly achieved by transforming the camera pose or switching new scene data to realize space jumping. Most of the prior art switches between different scenes, and is prone to causing dizziness in users, resulting in poor user experience.

[0049] In view of this, according to one aspect of an embodiment of the present disclosure, a method for detecting outliers is provided.

[0050] FIG. 1 is a schematic diagram of the main flow of the spatial point switching method according to an embodiment of the present disclosure. As shown in FIG. 1, the spatial point switching method according to an embodiment of the present disclosure includes the following steps S101-S103.

[0051] In step S101, in response to a user triggering a point jump operation in a single scene, jump point information corresponding to the point jump operation is obtained; wherein the jump point information includes a target spatial point.

[0052] A single scene refers to a specific view or area in a virtual environment or 3D (Three-Dimensional) space in which a user is located. 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. The point jump operation refers to the user selecting a specific location or point in the scene through some interaction method (such as clicking, touching, selecting, etc.), and requiring the system to move the current view, camera, or virtual location of the user to this point. Jump point information is the relevant data that the system needs to obtain when performing a point jump operation. These information includes the spatial coordinates (such as 3D coordinates) of the target spatial point or other parameters related to the jump, such as view direction, zoom level, animation time, etc., which are used to move the user's view from the current location to the target spatial point and control the visual effects during the movement.

[0053] Specifically, when the user triggers a point jump operation in the scene, the input of this user is captured, which can be done by clicking, touching, or selecting a location or object in the scene. The system immediately responds to this input and starts a process to obtain the target spatial point information. For example, when the user clicks on a certain location in the scene, the 3D coordinates of that location are determined by capturing the user's click event and using ray casting or other techniques. These coordinates are the jump point information. A predefined jump point can also be used. The system has stored a number of possible jump point information when the scene is initialized. When the user selects a point, the system directly extracts the corresponding coordinates and related information from the predefined list. Then, the obtained 3D coordinate information and other related point information (such as view direction, animation parameters, etc.) are stored and processed as jump point information.

[0054] In step S102, a fade-out animation is performed to gradually reduce the visibility of the scene view to a preset first threshold value, and the scene node of the scene view is jumped from the current spatial point to the target spatial point.

[0055] The fade-out animation is a visual effect that gradually changes the visibility of an object in a graphical interface or a 3D scene, making it go from fully visible to semi-transparent or invisible. This animation effect can be achieved by gradually reducing the object's invisibility. Visibility refers to the degree of visual representation of an element or scene node in the scene view, which shows the clarity with which the scene object can be observed visually. The scene view refers to what the user sees in the virtual environment or 3D space, reflecting the current scene captured by the camera or user's perspective, including all objects, backgrounds, lighting, and other visible elements in the entire scene. The first threshold is a preset visibility threshold set in the fade-out animation, which triggers a specific operation, such as scene node jumping, when the scene view's visibility is reduced to this threshold. Scene nodes are elements or objects in the scene view, representing an entity or a location in the 3D space. In 3D rendering, the scene view is composed of multiple scene nodes, each with its specific position, rotation, and scaling properties. Scene nodes can be individual objects, a group, or a complete sub-scene.

[0056] When the user triggers the jump operation, the system starts to execute the fade-out animation, adjusting the visibility of the scene view frame by frame through the animation. Each frame reduces the visibility of the scene view until it reaches the preset first threshold. At the moment when the visibility is reduced to the threshold, the system performs the jump of the scene node, moving it from the current spatial point to the target spatial point. In addition, a time-controlled fade-out animation can also be used, which gradually reduces the visibility of the scene view according to the preset time interval and triggers the jump of the scene node when the visibility reaches the first threshold, ensuring that the animation is completed within the set time, without relying on the number of frames.

[0057] Step S103, 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 threshold, displaying the target view corresponding to the target spatial point to the user.

[0058] The fade-in animation is a visual effect opposite to the fade-out animation, which gradually increases the visibility of an object, making it go from invisible or semi-transparent to fully visible. By gradually increasing the object's invisibility, the fade-in animation can make the object or scene element gradually appear in the user's view. The second threshold is a preset visibility threshold that defines the final target of the scene view's visibility increase during the fade-in animation. When the scene view's visibility reaches this threshold, the view becomes fully or nearly fully visible, ensuring that the user can clearly see the target view.

[0059] When the jump execution ends, the system immediately starts a fade-in animation, gradually increases the invisibility of the scene view frame by frame until it reaches a preset second critical value, the scene view becomes clear, and finally the target view is completely displayed. In addition, the visibility of the scene view can also be increased at a fixed pace according to a preset time interval until it reaches the second critical value. During this process, the system can dynamically adjust the speed of the visibility change according to the time parameter to ensure that the fade-in effect is completed and the target view is displayed within the set time. The above implementation can effectively realize the fade-in transition of the scene view, make the target view present to the user in a smooth and natural way, and to some extent, reduce the user's dizziness, making the space point position jump process more natural.

[0060] The embodiments of the present disclosure respond to the user triggering the point position jump operation in a single scene, obtain jump point position information corresponding to the point position jump operation; wherein the jump point position information includes a target space point position; execute a fade-out animation to gradually reduce the visibility of the scene view to a preset first critical value, jump the scene node of the scene view from the current space point position to the target space point position; in response to the end of the jump execution, execute a fade-in animation 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 position to the user; thereby realizing the space point position jump in a single scene, reducing the user's dizziness, making the space point position switching process more natural, and improving the user experience.

[0061] Optionally, before the user triggers the point position jump operation in a single scene, it further includes: executing initialization logic to configure basic data; wherein the initialization logic includes loading jump audio, creating a space transparent node, and loading a space point position list.

[0062] Before the point jump operation, the system can perform initialization in advance to ensure that subsequent operations can be smoothly executed. The system can load the jump audio, read the audio files related to the space point jump from the resource library, and load them into the memory, so that they can be played immediately when the user performs the point jump operation. These audio files include prompt sound effects, background music, or other sound effects related to user interaction; enhance user experience, making the jump operation more intuitive and immersive. The system can also create a space transparent node, which is a special element in the scene graph used to handle the visibility changes of different objects or views in the scene; when creating a space transparent node, initialize its properties such as position, visibility, and relationship with other scene nodes, control the visibility through the space transparent node to achieve fade-in or fade-out animation, thereby controlling the visibility and transition effects of each part of the scene. You can also load the space point list, read the space point information from the preset data source, which contains the coordinates, names, and associated views or nodes of each key position in the scene, etc. After loading these space point information, the system can dynamically jump to the corresponding space point according to the user's operation. The loading of the point list improves the navigability of the scene, and the user can freely switch between different views or positions within the scene.

[0063] In the initialization logic of the embodiments of the present disclosure, the jump audio can be loaded, the space transparent node can be created, and the space point list can be loaded, so that the system can respond quickly after receiving user input and present visual and auditory effects in the expected way.

[0064] Optionally, the method further comprises: creating a transformation component, configuring the transformation component to control linear decrease and linear increase of visibility; applying the configured transformation component to the space transparent node to adjust the space transparent node using the transformation component to perform fade-in and fade-out animations, and representing the visibility of the scene view according to the adjusted space transparent node.

[0065] First, a transformation component can be defined, which can linearly change the visibility within a certain time range. Linear decrease is used to implement fade-out animation, and linear increase is used to implement fade-in animation. Specifically, the transformation component is configured to gradually adjust the value of visibility 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 configuration, apply this transformation component to the space transparent node. The transformation component can operate on the visibility attribute of the space transparent node, for example, when performing a fade-out animation, the transformation component will gradually reduce the visibility of the space transparent node frame by frame until it reaches the preset minimum value; when performing a fade-in animation, the visibility will increase frame by frame until it returns to the initial visibility state.

[0066] The embodiments of the present disclosure can flexibly control the visibility change of the scene view by applying the transformation component to the spatial transparent node. The fade-out animation makes the scene view gradually disappear through linear decrease of the visibility, and the fade-in animation makes the scene view gradually appear through linear increase of the visibility. The adjusted spatial transparent node can directly affect the display effect of the entire scene view, which not only improves the visual experience, but also enhances the immersion of the user in the virtual space.

[0067] Optionally, the jump point information corresponding to the point jump operation is obtained, including: analyzing the point jump operation, obtaining the current space point clicked by the user according to the analysis result, and finding the corresponding target space point from the space point list based on the current space point.

[0068] After the user clicks a certain position in the scene, the system identifies and analyzes the point jump operation to determine the specific position clicked by the user, i.e., the current space point. Specifically, the ray casting technology can be used to find the intersection point of the scene object by emitting a ray from the camera's perspective in the direction clicked by the user, and the 3D coordinates of this intersection point are the current space point clicked by the user. The system finds the corresponding target space point in the preloaded space point list based on the current space point. The space point list contains information of all key points in the scene, such as coordinates, names, and associated jump points. The system can find the corresponding target space point in the list by matching the attributes of the current space point, for example, finding the target point closest to the current point, or matching the associated point according to a specific rule. After finding the corresponding target space point, the target space point is used as the target of the jump. The system performs the point jump operation in the scene according to the target space point, and moves the user's perspective or camera position to the target space point. The embodiments of the present disclosure enable the user to accurately navigate in the scene and smoothly jump from the current space point to the intended target space point.

[0069] Optionally, the scene node of the scene view is jumped from the current space point to the target space point, including: calculating the position offset of the target space point relative to the current space point by using a jump algorithm, and resetting the vertical component of the position offset to zero; applying the reset position offset to the scene model node in the preconfigured scene node tree, adjusting the position of the scene model node corresponding to the scene model node to jump from the current space point to the target space point; determining the rotation amount of the target space point relative to the vertical axis based on the orientation coordinate data of the target space 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 space point to the target space point.

[0070] The system determines the relative position of the target space point and the current space point in three-dimensional space through mathematical calculation, for example, by subtracting the coordinates of the current space point from the coordinates of the target space point through vector subtraction, thereby obtaining a three-dimensional vector. This three-dimensional vector represents the position offset and contains 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 the position offset is reset to zero, so that the view angle or scene object does not move in the vertical direction during the jump, avoiding up-and-down shaking 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 view angle during the jump. The reset position offset is applied to the scene model nodes in the scene node tree, which is the core structure of scene management and 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 a 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 space point to the target space point. For example, the position of the scene model nodes can be updated frame by frame to ensure smooth transition during the jump, and the user perceives natural movement rather than instantaneous jump. After the jump is completed, the correct orientation of the view angle can also be processed. The rotation amount of the target space point relative to the vertical axis is calculated based on the orientation coordinate data of the target space point, which reflects the direction that the user needs to face in the new position, such as facing a specific object or area. The system applies this rotation amount to the root node of the scene node tree, which 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 view angle direction of the user at the target space point, ensuring that the user's view angle is consistent with the direction of the scene.

[0071] In addition, the position change between the current space point and the target space point can also be calculated through direct interpolation without resetting the vertical component. Through linear interpolation or smooth interpolation, the system can calculate intermediate transition points and gradually move the scene nodes to the target space point, maintaining the height consistency of the scene during the jump and avoiding the abrupt movement sensation during the jump.

[0072] The embodiments of the present disclosure adjust the position and set the view angle, allowing the user to experience real and smooth movement and direction conversion in the virtual environment while maintaining the stability and correctness of the view angle, eliminating the user's dizziness during the jump.

[0073] Optionally, before jumping the scene node of the scene view from the current spatial point to the target spatial point, the method further includes: resetting the node matrix corresponding to the target spatial point, so as to jump the scene node of the scene view from the current spatial point to the target spatial point after the resetting.

[0074] The system first determines the relationship between the target spatial point and each node in the current scene. The node matrix is usually a 4x4 transformation matrix containing displacement, rotation, and scaling information, which defines the position and orientation of objects in the scene. The system can adjust or reset this node matrix to ensure that the target spatial point can be correctly mapped to a certain position in the scene. First, extract the matrix of the current scene node and the matrix of the target spatial point, which represent the current state and target state of the objects in the scene. Then, through matrix operations such as matrix multiplication or inversion, calculate the transformation required to move the current node from the current position to the target position, and reset the translation component of the matrix to directly update the position of the object to the coordinates of the target spatial point. During the matrix resetting process, the orientation and scaling of the object are maintained to ensure that the pose of the object in the scene is consistent with the target spatial point. This adjustment makes the rotation part of the matrix correctly reflect the orientation of the target spatial point, while the translation part accurately positions to the target position. After completing the node matrix resetting, apply the node matrix to the scene node of the scene view, and the scene node adjusts its position and orientation according to the updated node matrix, realizing the jump from the current spatial point to the target spatial point.

[0075] The embodiments of the present disclosure enable the scene node in the scene view to accurately jump from the current spatial point to the target spatial point after resetting the node matrix, realize dynamic updating of the scene, ensure the accuracy and consistency of the jump process, and make the navigation experience of the user in the virtual environment more natural and smooth.

[0076] Optionally, the method further includes: adjusting the transparency, brightness, light intensity, or color of the scene view by performing the fade-out animation, so that the transparency, brightness, light intensity, or color gradually decreases to the preset first threshold value.

[0077] The change in visibility 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, as the transparency gradually decreases, the objects in the scene gradually transition from fully visible to blurred and even disappear; brightness affects the visual intensity of the scene, as the brightness decreases, the objects in the scene gradually become dark until they cannot 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; adjusting the color also affects the visibility, gradually reducing the color saturation or transitioning the color to the background color or transparent color, which can gradually weaken the visual presence of the object until it completely disappears.

[0078] Optionally, the gradual appearance animation is performed to gradually increase the visibility of the scene view to a preset second threshold value, comprising: performing the gradual appearance 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 threshold value.

[0079] Specifically, the related steps of adjusting the above-mentioned gradual disappearance animation have been described in detail, and the implementation manner of the gradual appearance animation of the embodiments of the present disclosure is opposite to that of the gradual disappearance animation. By gradually adjusting the visual properties such as transparency, brightness, light intensity, or color, the elements in the scene gradually transition from an invisible state to a visible state.

[0080] FIG. 2 is a schematic diagram of the main flow of the space point switching method according to one preferred embodiment of the present disclosure. As shown in FIG. 2, initialization processing is first performed before jumping, for example, loading jump audio in advance, creating a space transparent node, and loading basic configuration data such as a space point list. When the user triggers (clicks the jump area) the jump function, the clicked space point information (virtual camera position and orientation) is first obtained. And set one or more transformation components to the "available" state, so that the transformation component can be animated or other interactive operations. Perform the gradual disappearance animation of the space transparent node, apply the transparent value of the gradual disappearance animation to the space view, and gradually reduce the transparency of the component to make it slowly disappear. Check whether the gradual disappearance animation has been completed, if the gradual disappearance animation is completed, directly enter the jump algorithm and play the jump audio; if not, continue to perform the gradual disappearance animation. Perform the jump algorithm, which can also reset the node matrix, for example, recalculate the position, rotation, and scaling matrix of the transformation component to ensure that the position and state of the transformation component in the scene are correctly updated. After the jump is completed, the gradual appearance animation of the space transparent node is then performed to restore the brightness of the view. Then, set the transformation component to the "unavailable" state to completely hide the transformation component, and display the scene view to the user, and the entire animation or point switching process is completed.

[0081] The embodiment of the present disclosure realizes the fade-out animation and the fade-in animation through the transformation component, realizes linear decreasing and increasing transformation of the transparent value, and the transparent value indirectly acts on the transparent layer of the immersive environment view. The jump algorithm is entered after the fade-out animation ends, the related node matrix is directly reset, the fade-in animation is activated after the fade-out animation ends, the transformation component is reset to hidden after the fade-in animation ends, and the whole jump process ends. Through the transparency transformation, the transparency is indirectly reflected to the transparency of the immersive environment view, and the jump of the space point position is completed at the critical point of the intermediate transformation of the transparency, so as to eliminate the dizziness of the jump.

[0082] FIG. 3 is a schematic diagram of a three-dimensional virtual scene hierarchy according to a preferred embodiment of the present disclosure. In order to fully realize the rationality of the space point position display, for the data information related to the space point position, the hierarchy as shown in FIG. 3 is designed herein. The root node is the starting point or root node of the whole scene, representing the top-level container of the scene, and all scene elements are derived from this node. The root node can be regarded as the "master version" or "master node" of the whole scene, managing all other elements in the scene. The model node is connected below the root node, representing a specific model or a group of models. This model node can contain multiple child nodes under it, and each child node represents a specific object or component in the scene, such as a 3D model, a geometric body, etc. In FIG. 3, multiple child nodes are connected below the model node, and each child node represents a scene object. Under this model node, multiple child nodes branch out, which represent different 3D objects or components, such as the robot model, the chair model and the sofa model seen in the picture, etc. These child nodes can contain 3D models, materials, textures, etc. Each child node is an independent element in the scene. The camera node is on the right side of the diagram, and there is a separate camera node. This node is not directly connected to the model and root nodes, and is independent of another part of the scene. The camera node is used to define the viewing angle or observation point of the scene, and the whole 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 space point position (such as group_two_position_camera) relative to the scene node (model), denoted as offsetPos, reset offsetPos.y to 0, and assign -offsetPos to the coordinate position of the scene node model; assign the position of the head-mounted device (cameraPos) to the position of the root node (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, and set the rotation amount of the root node according to the rotation amount, to solve the correct orientation problem after rotation.

[0083] According to a second aspect of the embodiments of the present disclosure, a spatial point switching device is provided.

[0084] FIG. 4 is a schematic diagram of main modules of a spatial point switching device according to an embodiment of the present disclosure. As shown in FIG. 4, a spatial point switching device 400 includes:

[0085] The information acquisition module 401 is configured to acquire 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 a target spatial point.

[0086] The fade-out animation module 402 is configured to perform a fade-out animation to gradually reduce the visibility of the scene view to a preset first threshold value, and jump the scene node of the scene view from the current spatial point to the target spatial point.

[0087] The fade-in animation module 403 is configured to perform a fade-in animation to gradually increase the visibility of the scene view to a preset second threshold value in response to the end of the jump execution, and display the target view corresponding to the target spatial point to the user.

[0088] Optionally, the device 400 further includes an initial configuration module, which is configured to:

[0089] perform initialization logic to configure basic data; wherein the initialization logic includes loading jump audio, creating a spatial transparent node, and loading a spatial point list.

[0090] Optionally, the device 400 further includes a component configuration module, which is configured to:

[0091] create a transformation component, and configure the transformation component to control linear decrease and linear increase of the visibility;

[0092] apply the configured transformation component to the spatial transparent node, so as to adjust the spatial transparent node by using the transformation component to perform the fade-out animation and the fade-in animation, and represent the visibility of the scene view according to the adjusted spatial transparent node.

[0093] Optionally, the information acquisition module 401 is further configured to:

[0094] parse the point jump operation, acquire 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.

[0095] Optionally, the fade-out animation module 402 is further configured to:

[0096] calculate the position offset of the target spatial point relative to the current spatial point by using a jump algorithm, and reset the vertical component of the position offset to zero.

[0097] The position offset after resetting is applied to the scene model node in the preconfigured scene node tree, and the position corresponding to the scene model node is adjusted to realize the jump from the current space point to the target space point.

[0098] 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, so as to adjust the orientation when jumping from the current space point to the target space point.

[0099] Optionally, the device 400 further includes a matrix resetting module, which is configured to:

[0100] 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 target space point after resetting.

[0101] Optionally, the fade-out animation module 402 is further configured to:

[0102] The transparency, brightness, light intensity or color of the scene view is adjusted by the fade-out animation, so that the transparency, brightness, light intensity or color gradually decreases to a preset first threshold value.

[0103] It should be noted that the specific implementation of the space point switching device in the present disclosure has been described in detail in the above space point switching method, and therefore the repeated content will not be described here.

[0104] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including: one or more processors; a storage device configured to store 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 provided by the first aspect of the embodiments of the present disclosure.

[0105] According to a fourth aspect of the embodiments of the present disclosure, a computer readable medium is provided, and the computer readable medium stores a computer program, when the program is executed by a processor, the method provided by the first aspect of the embodiments of the present disclosure is implemented.

[0106] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, including a computer program, when the computer program is executed by a processor, the method provided by the first aspect of the embodiments of the present disclosure is implemented.

[0107] FIG. 5 shows an exemplary system architecture 500 to which the space point switching method or the space point switching device of the embodiments of the present disclosure can be applied.

[0108] As shown in FIG. 5, the system architecture 500 can include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is a medium for providing communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 can include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0109] A user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0110] The terminal devices 501, 502, 503 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.

[0111] The server 505 can be a server providing various services, such as a background management server providing support for a user browsing a shopping website using the terminal devices 501, 502, 503 (only as an example). The background management server can analyze and process received spatial point switching request data, etc., and feed back the processing results (such as a target view - only as an example) to the terminal devices.

[0112] It should be noted that the spatial point switching method provided by the embodiments of the present application is generally executed by the server 505, and correspondingly, the spatial point switching apparatus is generally provided in the server 505.

[0113] It should be understood that the number of terminal devices, networks, and servers in FIG. 5 is merely illustrative. According to the needs of implementation, there can be any number of terminal devices, networks, and servers.

[0114] Reference is made to FIG. 6, which shows a structural schematic diagram of a computer system 600 of a terminal device suitable for implementing the embodiments of the present application. The terminal device shown in FIG. 6 is merely an example and should not bring any limitation to the functions and use range of the embodiments of the present application.

[0115] As shown in FIG. 6, the computer system 600 includes a central processing unit (CPU) 601 which can perform various appropriate actions and processes in accordance with programs stored in a read only memory (ROM) 602 or programs loaded from a storage section 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 through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0116] The following are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a display device such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a loudspeaker, 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 necessary. A removable recording medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 610 as necessary, so that a computer program read out therefrom is installed in the storage section 608 as necessary.

[0117] In particular, according to the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, the embodiments of the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program codes for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication section 609, and / or installed from the removable recording medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-described functions defined in the system of the present application are executed.

[0118] Note that the computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium or a combination thereof. The computer-readable storage medium can include, for example, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program used by an instruction execution system, apparatus, or device to function according to the program. In the present application, the computer-readable signal medium can include a computer-readable storage medium or any computer-readable medium that transmits, propagates, or transfers programs used by an instruction execution system, apparatus, or device to function according to the programs. The program code contained in the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber, RF, etc., or any suitable combination of the foregoing.

[0119] The flow diagrams and block diagrams in the accompanying drawings illustrate possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.

[0120] The units described in the embodiments of the present application can be implemented in the form of software or in the form of hardware. The described units can also be arranged in a processor, for example, a processor can be described as including an information acquisition module, a fade-out animation module, and a fade-in animation module. In some cases, the names of these modules do not constitute a limitation on the modules themselves, for example, the information acquisition module can be described as "a module for acquiring jump point information corresponding to a point jump operation in response to a user triggering a point jump operation in a single scene".

[0121] As another aspect, the present application also provides a computer readable medium, which can be included in the device described in the above embodiments, or can exist independently without being assembled into the device. The computer readable medium carries one or more programs, which, when executed by the device, cause the device to include: acquiring jump point information corresponding to a point jump operation in response to a user triggering the point jump operation in a single scene; wherein the jump point information includes a target space point; performing a fade-out animation to gradually reduce the visibility of a scene view to a preset first threshold value, jumping a scene node of the scene view from a current space point to a target space point; in response to the end of the jump execution, performing a fade-in animation to gradually increase the visibility of the scene view to a preset second threshold value, and displaying a target view corresponding to the target space point to the user.

[0122] The computer program product provided by the embodiments of the present disclosure includes a computer program, which, when executed by a processor, implements the space point switching method in the embodiments of the present disclosure.

[0123] According to the technical solutions of the embodiments of the present disclosure, the following advantages or beneficial effects are achieved: by acquiring jump point information corresponding to a point jump operation in response to a user triggering the point jump operation in a single scene; wherein the jump point information includes a target space point; performing a fade-out animation to gradually reduce the visibility of a scene view to a preset first threshold value, jumping a scene node of the scene view from a current space point to a target space point; in response to the end of the jump execution, performing a fade-in animation to gradually increase the visibility of the scene view to a preset second threshold value, and displaying a target view corresponding to the target space point to the user; thus, the space point jump can be realized in a single scene, and the user's dizziness is reduced, the switching process of the space point is more natural, and the user experience is improved.

[0124] The foregoing detailed description has not been presented to limit the scope of the application. Various modifications and equivalent substitutions will be apparent to those skilled in the art in view of the foregoing detailed description. Therefore, it is the true intent of the application to include all such modifications and equivalent substitutions as within the scope of the following claims.

[0125] It should be noted that the acquisition, storage and application of user personal information in the technical solutions of the present disclosure comply with relevant laws and regulations and do not violate public order and good customs.

Claims

1. A method for switching spatial point, comprising: in response to a user triggering a point jump operation in a single scene, obtaining jump point information corresponding to the point jump operation, wherein the jump point information comprises a target spatial point; performing a fade-out animation to gradually reduce the visibility of a scene view to a preset first threshold, and jumping a scene node of the scene view from a current spatial point to the target spatial point; and in response to the end of the jump execution, performing a fade-in animation to gradually increase the visibility of the scene view to a preset second threshold, and displaying a target view corresponding to the target spatial point to the user.

2. The method of claim 1, wherein, Before the user triggers the point jump operation in the single scene, the method further comprises: performing initialization logic to configure basic data, wherein the initialization logic comprises loading jump audio, creating a spatial transparent node, and loading a spatial point list.

3. The method of claim 2, further comprising: creating a transform component configured to control linear decrease and linear increase of the visibility; applying the configured transform component to the spatial transparent node to adjust the spatial transparent node using the transform component to perform the fade-out animation and the fade-in animation, and representing the visibility of the scene view according to the adjusted spatial transparent node.

4. The method of claim 2, wherein, Obtaining the jump point information corresponding to the point jump operation comprises: parsing the point jump operation, obtaining a current spatial point clicked by the user according to the parsing result, and finding a corresponding target spatial point from the spatial point list based on the current spatial point.

5. The method of claim 1, wherein, Jumping the scene node of the scene view from the current spatial point to the target spatial point comprises: calculating a position offset of the target spatial point relative to the current spatial point using a jump algorithm, resetting a vertical component of the position offset to zero; applying the reset position offset to a scene model node in a preconfigured scene node tree, adjusting the position of the scene model node to jump from the current spatial point to the target spatial point; and determining a rotation amount of the target spatial point relative to a vertical axis based on orientation coordinate data of the target spatial point after the jump, and configuring a rotation attribute of a 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.

6. The method of claim 1, wherein, Before jumping the scene node of the scene view from the current spatial point to the target spatial point, the method further comprises: resetting a 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.

7. The method of claim 1, wherein, Performing the fade-out animation to gradually reduce the visibility of the scene view to the preset first threshold comprises: performing the fade-out 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 the preset first threshold.

8. A device for switching spatial point, comprising: An information obtaining module is configured to, in response to a user triggering a point jump operation in a single scene, obtain jump point information corresponding to the point jump operation, wherein the jump point information comprises a target space point. A fade-out animation module is configured to execute a fade-out animation to gradually reduce the visibility of a scene view to a preset first threshold value, and jump a scene node of the scene view from the current space point to a target space point. A fade-in animation module is configured to, in response to the end of the jumping, execute a fade-in animation to gradually increase the visibility of the scene view to a preset second threshold value, and display a target view corresponding to the target space point to the user. 9.An electronic device, comprising: 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 of any one of claims 1-7. 10.A computer readable medium having stored thereon a computer program, the program being executed by a processor to implement the method of any one of claims 1-7. 11.A computer program product comprising a computer program, the computer program being executed by a processor to implement the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Scene switching method and device

    CN107817895A

  • Scene switching method and device and storage medium

    CN112967389A

  • Scene switching method and device and storage medium

    CN112967390A

  • Model display method and device, electronic equipment and storage medium

    CN113112613A

  • VR scene processing method and device and storage medium

    CN115423920A