Digital-twin-based immersive trip preview system for a tourism destination

By generating crowd proxy models and detecting dynamic line-of-sight occlusion using digital twin technology, and adjusting the observation position and travel path, the problems of line-of-sight obstruction and passage delay caused by dynamic passenger flow in the existing system are solved, and the immersive travel preview is adjusted in real time and the visual continuity is achieved.

CN123181788APending Publication Date: 2026-11-27SHANGHAI YUANJI TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611370114.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing immersive itinerary preview systems for tourist destinations cannot adjust the observation location and path according to the dynamic distribution of passenger flow, resulting in obstructed vision and passage delays when passenger flow is dense, and failing to truly reflect the problem of path inaccessibility caused by crowds.

Method used

The immersive travel preview system for tourist destinations based on digital twins utilizes a topology pathfinding module to generate an initial travel path, a scene state update module to generate crowd proxy model instances and axis-aligned bounding box colliders, a visibility detection module to detect the dynamic crowd line-of-sight occlusion rate, an iterative feedback module to search for alternative observation positions and recalculate the travel path when the occlusion rate exceeds a threshold, and a scene rendering output module to output a 3D preview screen.

Benefits of technology

It improves the consistency between the immersive itinerary preview results and the actual tour status, reduces the problem of obstructed vision in static route planning during peak tourist seasons, corrects the deviation in travel time calculation, and ensures the visual continuity of the 3D immersive preview.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181788A_ABST
    Figure CN123181788A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of digital twinning, and discloses a tourism destination immersive trip preview system based on digital twinning, which comprises a topological pathfinding module, a scene state updating module, a visibility detection module, an iterative feedback module and a scene rendering output module. The pathfinding module generates an initial trip path containing a predicted arrival time sequence; the updating module obtains passenger flow prediction data and generates a crowd collision body in the scene; the detection module calculates a line-of-sight occlusion rate by using the hitting result of the collision body on a ray; the iterative module searches for an alternative observation position and recalculates the path when the occlusion rate is greater than a threshold value, until a convergence condition is met; and the rendering module outputs an immersive preview picture based on the final path and the final observation position. By instantiating passenger flow prediction data into physical collision entities and combining a ray detection mechanism, the crowd occlusion is taken as a path planning and observation constraint condition, so that the possibility of target line-of-sight obstruction can be reduced, and the deviation of passing time can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of digital twin technology, specifically to an immersive itinerary preview system for tourist destinations based on digital twins. Background Technology

[0002] With the development of digital twin and 3D visualization technologies, virtual tours, itinerary planning, and immersive previews of tourist destinations are increasingly being used. Existing systems generate tour routes based on the 3D scene model, geographic location data, and navigation grid data of the tourist destination, and control virtual cameras to output 3D preview images along the generated routes.

[0003] For example, IN202541101518A discloses a smart tourism management system integrating augmented reality, virtual reality preview, and data-driven recommendation functions. This system can generate tourism recommendations based on user preferences and location data, and provide immersive destination previews. CN119992019A discloses a method for constructing a virtual cultural tourism platform based on digital twins, building a virtual-real mapping scene through 3D models and real-time video data. CN118310520A discloses a method for guiding scenic area visits based on digital twins, calculating tour routes using 3D real-world views of the scenic area, topological relationships of attractions, and walking time. These documents respectively address immersive previews, digital twin scene construction, and tour route planning.

[0004] However, tourist density at destinations varies over time. Existing itinerary planning methods primarily generate routes based on spatial distance, terrain conditions, or fixed travel times, failing to synchronize tourist flow forecasts for corresponding time periods with route accessibility assessments, based on tourists' expected arrival times at each node. Consequently, during periods of high tourist volume, planned routes may exhibit travel time discrepancies or become impassable in certain areas.

[0005] Furthermore, existing immersive preview systems display target points of interest (POIs) from pre-defined observation positions. When dynamic crowds in the virtual scene are located between the observation position and the POI, the core visible area of ​​the POI is obstructed. Existing technology cannot re-search for observation positions based on the obstruction caused by dynamic crowds, and cannot simultaneously adjust the travel path and estimated arrival time, resulting in a discrepancy between the preview and the visual experience experienced by tourists during their actual visit.

[0006] Therefore, there is a need to provide an immersive itinerary preview system for tourist destinations based on digital twins. This system can obtain corresponding passenger flow prediction data based on the expected arrival time of itinerary nodes, use dynamic passenger flow status for both path planning and target visibility detection, and redetermine the observation location and itinerary path when the target point of interest is obscured by crowds, so as to improve the consistency between the immersive itinerary preview results and the actual tour status. Summary of the Invention

[0007] To address the shortcomings of existing technologies, this invention provides an immersive itinerary preview system for tourist destinations based on digital twins. This system solves the problem that existing 3D itinerary preview systems rely solely on static scene data to set observation positions and planned routes, and cannot be adjusted in conjunction with dynamic passenger flow distribution. This results in obstructed views at preset observation positions during peak passenger flow periods, and the system fails to accurately reflect traffic delays and route inaccessibility caused by crowd congestion.

[0008] To achieve the above objectives, the present invention provides the following technical solution: an immersive itinerary preview system for tourist destinations based on digital twins, applied to client terminal devices, comprising: The topology pathfinding module is used to generate an initial travel path containing the expected arrival time sequence based on 3D navigation mesh data, travel start time, starting position coordinates, and target point of interest sequence. The scene state update module is used to obtain passenger flow prediction data based on the expected arrival time series, and generate crowd proxy model instances and corresponding axis-aligned bounding box colliders in batches in the three-dimensional virtual scene. The visibility detection module is used to emit detection rays for the current target interest point in the target interest point sequence, determine the occlusion of the detection rays by the axis-aligned bounding box collider based on the most recent hit result of each detection ray, and calculate the dynamic crowd line-of-sight occlusion rate. The iterative feedback module is used to search for alternative observation locations when the dynamic crowd line-of-sight occlusion rate is greater than a preset dynamic crowd line-of-sight occlusion rate threshold, recalculate the travel path and the expected arrival time series, until a preset convergence condition or termination condition is met, and obtain the final travel path and the final observation location. The scene rendering output module is used to output a three-dimensional travel preview based on the final travel path and the final observation position.

[0009] The 3D immersive journey preview referred to in this application means controlling a virtual camera to move along a journey path in a 3D virtual scene, and synchronously updating the environmental state and crowd distribution state of the corresponding prediction time slice according to the current rendering time, so as to output a 3D preview image corresponding to the journey path and observation position.

[0010] Furthermore, the topology pathfinding module is specifically used to: extract the three-dimensional navigation mesh data into a directed graph structure containing navigation edges; combine the three-dimensional spatial length of the corresponding navigation edge with the corrected walking speed determined based on slope data to determine the estimated travel time and initial path cost of each navigation edge; and sequentially accumulate the estimated travel time along the path direction in conjunction with the trip start time to generate the estimated arrival time series.

[0011] Furthermore, the scene state update module is specifically used to: determine the passenger flow density corresponding to each navigation grid polygon based on the overlap area between the passenger flow prediction grid in the passenger flow prediction data and the three-dimensional navigation grid polygon corresponding to the directed graph structure; determine the number of crowd proxy model instances based on the passenger flow density; generate a candidate sampling position sequence according to a preset deterministic sampling seed; select candidate sampling positions from the candidate sampling position sequence according to the number of crowd proxy model instances; generate crowd proxy model instances in batches at the selected candidate sampling positions; and synchronously generate an axis-aligned bounding box collider body corresponding to each crowd proxy model instance based on the position and size of each crowd proxy model instance.

[0012] Furthermore, the scenario state update module is further configured to: when the passenger flow density corresponding to the navigation grid polygon reaches the first passenger flow density threshold but is lower than the second passenger flow density threshold, add the passenger flow additional cost to the initial path cost of the corresponding navigation edge as the current path cost, and recalculate the estimated travel time according to the passenger flow speed correction coefficient; when the passenger flow density reaches or exceeds the second passenger flow density threshold, set the corresponding navigation grid polygon area as a temporary impassable area under the current prediction time slice.

[0013] Further, the visibility detection module is specifically used for: extracting a set of target feature sampling points within the core visible area of ​​the current target point of interest; emitting detection rays from the virtual camera's current three-dimensional spatial coordinates as the ray origin to the set of target feature sampling points; classifying the detection rays according to the collision layer to which the most recently hit object of each detection ray belongs, counting the number of static scene occlusion rays, the number of dynamic crowd occlusion rays, and the number of target visible rays, determining the static scene occlusion rate based on the ratio of the number of static scene occlusion rays to the total number of emitted detection rays, and determining whether the static scene visibility condition is met based on the comparison result of the static scene occlusion rate and a preset static scene occlusion rate threshold; determining the sum of the number of dynamic crowd occlusion rays and the number of target visible rays as the total number of effective rays, and calculating the dynamic crowd line-of-sight occlusion rate based on the ratio of the number of dynamic crowd occlusion rays to the total number of effective rays.

[0014] Further, the iterative feedback module is specifically used for: performing radial hierarchical sampling to generate multiple initial sampling positions, projecting the initial sampling positions onto the navigation mesh surface to obtain a set of candidate observation positions; eliminating candidate observation positions that do not fall inside the navigable polygon of the 3D navigation mesh, are located in a static impassable area, or are located in a temporary impassable area, as well as candidate observation positions that do not meet the view frustum coverage condition, do not meet the static scene visibility condition, or have a dynamic crowd view occlusion rate greater than the dynamic crowd view occlusion rate threshold; selecting the candidate observation position with the lowest corresponding travel path cost among the remaining candidate observation positions as the alternative observation position, and using the alternative observation position as the target observation position for the current iteration.

[0015] Furthermore, the preset convergence conditions include distance convergence tolerance and time convergence tolerance; when the Euclidean distance between the target observation positions in two consecutive iterations is not greater than the distance convergence tolerance, and the maximum absolute value of the expected arrival time difference of the travel nodes corresponding to each target interest point is not greater than the time convergence tolerance, the iterative feedback module determines that the convergence conditions are met, determines the current target observation position as the final observation position, and determines the current travel path as the final travel path.

[0016] Furthermore, the iterative feedback module is also used to: generate an iterative state identifier based on the target observation position of the current iteration and the corresponding prediction time slice identifier; when the current iterative state identifier is detected to be the same as any previous iterative state identifier and is determined to be a periodic state, perform a temporal consistency check on the candidate observation positions generated in each iteration; select the candidate observation position that simultaneously satisfies the passage condition, the view frustum coverage condition, and the static scene visibility condition, and whose dynamic crowd line-of-sight occlusion rate is not greater than the dynamic crowd line-of-sight occlusion rate threshold, and whose corresponding complete travel path cost is the lowest, as the final observation position, and determine the complete travel path corresponding to the final observation position as the final travel path.

[0017] Furthermore, the scene rendering output module is specifically used to: read the path node coordinate sequence in the final travel path, generate a continuous spatial displacement trajectory between adjacent path nodes using a three-dimensional spatial spline curve interpolation algorithm; control the virtual camera to move along the continuous spatial displacement trajectory, and interpolate the expected entry time and expected exit time of the navigation edge according to the travel ratio of the virtual camera to its navigation edge in the sub-trajectory segment to obtain the current rendering time.

[0018] Furthermore, the scene rendering output module is also used to: compare the set of crowd proxy model instances in adjacent prediction time slots based on the sampling position number of the candidate sampling position and the instance number of the crowd proxy model instance; when the number of crowd proxy model instances in the later prediction time slot is greater than that in the previous prediction time slot, adjust the transparency of the newly added crowd proxy model instances to be completely opaque frame by frame within a set time window; when the number of crowd proxy model instances in the later prediction time slot is less than that in the previous prediction time slot, adjust the transparency of the crowd proxy model instances to be removed to be completely transparent frame by frame and perform removal processing.

[0019] The technical solution described above is further explained as follows: The technical concept of this invention lies in introducing passenger flow prediction data corresponding to the expected arrival time of tourists into a three-dimensional virtual scene, and instantiating the dynamic crowd represented by the passenger flow prediction data into a crowd proxy model instance with physical collision attributes and an axis-aligned bounding box collider. The degree of occlusion caused by the dynamic crowd on the core visible area of ​​the target point of interest is quantified through the ray detection results between the virtual camera and the target point of interest.

[0020] When the dynamic crowd line-of-sight occlusion rate exceeds a preset threshold, the system does not directly use the original observation location. Instead, it searches for alternative observation locations on the navigation grid surface surrounding the original location. The system filters candidate observation locations based on accessibility conditions, view frustum coverage conditions, static scene visibility conditions, and dynamic crowd line-of-sight occlusion rate conditions, and selects the candidate observation location with the lowest corresponding travel path cost among those meeting the respective conditions.

[0021] Since changes in the observation location alter the travel path and the time it takes for tourists to arrive at the corresponding location, the topology pathfinding module recalculates the travel path and the expected arrival time series after determining the new target observation location. The scene state update module then obtains the passenger flow prediction data for the corresponding prediction time slice based on the updated expected arrival time series, and updates the crowd proxy model instance, axis-aligned bounding box collider, navigation edge path cost, and expected travel time.

[0022] Therefore, this invention forms a closed-loop processing procedure that interconnects path calculation, time mapping, state update, visibility detection, observation position adjustment, and path recalculation, ensuring a temporal correspondence between the observation position selection results, path planning results, and dynamic passenger flow status. The system determines whether the closed-loop processing procedure has reached a stable state through distance convergence tolerance and time convergence tolerance; when a periodic state occurs or the corresponding termination condition is met, the final observation position is determined from the candidate observation positions generated in previous iterations through temporal consistency verification.

[0023] In this invention, the digital twin model of a tourist destination includes at least a 3D static scene model, a 3D navigation grid, target point of interest model attributes, and dynamic state data that changes with the prediction time slice. The 3D static scene model and the 3D navigation grid form a unified spatial coordinate reference. The target point of interest model attributes are used to identify the core visible area of ​​the target point of interest, and the dynamic state data is used to update the traffic status of the navigation area, the status of the crowd proxy model, and the corresponding 3D scene status.

[0024] The system uses the estimated arrival time of each travel node as a time-series index to map the estimated arrival time to the corresponding prediction time slot. Passenger flow prediction data can come from the output of the passenger flow prediction model, the tourist destination passenger flow statistics system, or processed historical data from the same period. When the estimated arrival time is inconsistent with the standard prediction time slot, interpolation can be performed based on data from adjacent prediction time slots to obtain the passenger flow status corresponding to the estimated arrival time.

[0025] A correspondence can be established between the passenger flow prediction grid and the 3D navigation grid polygons based on the overlapping area to determine the passenger flow density corresponding to different navigation grid polygons. The system determines the number and sampling locations of crowd proxy model instances based on passenger flow density, and simultaneously generates axis-aligned bounding box colliders corresponding to the positions and sizes of the crowd proxy model instances. Using deterministic sampling seeds to generate candidate sampling locations ensures that crowd proxy model instances under the same prediction state maintain a relatively stable spatial correspondence.

[0026] When passenger flow density reaches the first passenger flow density threshold but is below the second passenger flow density threshold, the corresponding navigation area remains passable. However, by increasing the path cost of the navigation edges and reducing the expected travel speed, the planned travel path reflects the detour tendency and travel delay caused by passenger congestion. When passenger flow density reaches or exceeds the second passenger flow density threshold, the corresponding navigation grid polygon area is set as a temporarily impassable area for the current prediction time slice, thereby avoiding the generation of travel paths that traverse high-density congested areas.

[0027] After determining the final travel path and final observation position, the scene rendering output module generates a continuous spatial displacement trajectory based on the coordinate sequence of path nodes in the final travel path, and controls the virtual camera to move along the continuous spatial displacement trajectory. The system determines the current rendering time based on the virtual camera's travel ratio in the navigation edge, and updates the corresponding crowd proxy model instance state based on the current rendering time.

[0028] When the number of crowd proxy model instances changes in adjacent prediction time slices, the system determines the new and removed instances based on the sampling position number of the candidate sampling position and the instance number of the crowd proxy model instance. The display and removal of crowd proxy model instances are completed by adjusting the transparency frame by frame, reducing model mutations that occur during prediction time slice switching.

[0029] The immersive travel itinerary preview system for tourist destinations based on digital twins of the present invention has the following beneficial effects: This invention generates crowd proxy bounding box colliders in a virtual scene that correspond to predicted passenger flow data. It uses camera frustum parameters to emit detection rays to calculate the dynamic crowd line-of-sight occlusion rate. When the occlusion rate exceeds a set threshold, it triggers resampling of candidate observation positions and recalculation of the travel path. This design uses the spatial occlusion state of dynamic crowds as a constraint on observation position selection and path planning, reducing the line-of-sight obstruction problem caused by conventional static route planning during periods of high passenger flow, and improving the practical visual value of the observation positions output by the system.

[0030] This invention determines passenger flow density based on the overlap area between the 3D navigation grid polygon and the passenger flow prediction grid, and adjusts the passenger flow additional cost and estimated travel time of the corresponding navigation edge according to the passenger flow density threshold, or sets it as a temporarily impassable area. This path evaluation mechanism, which combines time-series prediction data, enables the travel path generated by the topology pathfinding module to reflect the physical limitations of crowd congestion on walking speed and spatial connectivity, correcting the travel time calculation errors caused by traditional purely static map navigation.

[0031] This invention utilizes a 3D spatial spline curve interpolation algorithm to generate continuous displacement trajectories between adjacent path nodes. By comparing the sampling position indices of adjacent prediction time slices, it performs transparency gradient processing within a set time window on newly added and removed crowd proxy model instances. The above rendering pipeline control logic establishes a smooth data transition state between discrete path nodes and prediction time slices, eliminating camera jumps and scene model abrupt changes caused by position switching and data iteration, thus ensuring the visual continuity of the 3D immersive preview. Attached Figure Description

[0032] Figure 1 This is a schematic diagram of the architecture of a digital twin-based immersive itinerary preview system for tourist destinations, according to an embodiment of the present invention. Figure 2 This is a flowchart illustrating the immersive itinerary preview method for tourist destinations based on digital twins, according to an embodiment of the present invention. Figure 3 This is a schematic diagram of the topology routing module processing logic in an embodiment of the present invention; Figure 4This is a schematic diagram of the scene state update module processing logic in an embodiment of the present invention; Figure 5 This is a schematic diagram of the processing logic of the visibility detection module in an embodiment of the present invention; Figure 6 This is a schematic diagram illustrating the principle of target interest point visibility detection in an embodiment of the present invention. Figure 7 This is a schematic diagram of the processing logic of the iterative feedback module in an embodiment of the present invention. Detailed Implementation

[0033] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0034] like Figure 1 As shown, this embodiment of the invention provides an immersive itinerary preview system for tourist destinations based on digital twins. The system may include client terminal devices, cloud-based predictive data servers, and a digital twin model database.

[0035] The client terminal device is used to receive travel parameters input by the user and to perform 3D scene rendering and collision detection in the 3D scene.

[0036] The cloud-based predictive data server and client terminal devices are connected via network communication to store and distribute environmental and passenger flow prediction data for tourist destinations in the future prediction period.

[0037] The digital twin model database is used to pre-store 3D static scene model data and 3D navigation mesh data of tourist destinations.

[0038] The client terminal device calls the digital twin model data interface through the network to obtain 3D static scene model data and 3D navigation mesh data, and builds a 3D virtual scene and navigation environment locally.

[0039] The client terminal device is equipped with multiple data processing modules that operate in a coordinated manner. The client terminal device may include a topology pathfinding module, a scene state update module, a visibility detection module, an iterative feedback module, and a scene rendering output module.

[0040] The topology pathfinding module is used to parse 3D navigation mesh data, construct a directed graph structure, and execute a graph search algorithm based on the received starting point and target point of interest to generate a travel path with the estimated arrival time.

[0041] The scene state update module is used to send a data acquisition request to the cloud prediction data server, convert the environmental prediction data into rendering parameters for the 3D rendering pipeline, and generate crowd proxy model instances and corresponding axis-aligned bounding box colliders based on the passenger flow prediction data.

[0042] The visibility detection module utilizes the ray detection function of the 3D physics engine to emit detection rays based on the view frustum parameters of the virtual camera, and calculates the dynamic crowd line-of-sight occlusion rate of the core visible area of ​​the target interest point by the crowd proxy model instance.

[0043] The iterative feedback module is used to search for alternative observation positions on the local navigation grid surface when the dynamic crowd line-of-sight occlusion rate exceeds the dynamic crowd line-of-sight occlusion rate threshold, and to control the topology pathfinding module to recalculate the path and the expected arrival time until the target observation position and the expected arrival time series meet the preset convergence conditions.

[0044] The scene rendering output module is used to read the final travel path and expected arrival time sequence determined after iteration, control the virtual camera to move along the final travel path, update any multiple of the lighting parameters, material parameters and crowd proxy model states in the 3D scene according to the current rendering time, and output a 3D immersive travel preview screen.

[0045] See Figure 2 This invention provides a method for previewing an immersive travel itinerary based on digital twins, comprising the following steps: S10: Receive the trip start time, starting position coordinates, and target point of interest sequence; extract passable polygons based on a preset 3D navigation mesh and establish corresponding navigation edges; generate an initial trip path including the estimated arrival time. S20: Based on the estimated arrival time of discrete path nodes, send a request to the cloud-based prediction data server to obtain environmental prediction data and passenger flow prediction data for the corresponding prediction time slot; S30 converts environmental prediction data into parallel light source rotation parameters and material shader attribute parameters in a 3D rendering scene. At the same time, it calculates the number of crowd proxy model instances within each navigation grid polygon based on passenger flow prediction data and generates crowd proxy model instances in batches in the 3D rendering scene. S40, in the dynamic crowd collision layer of the 3D physics engine, synchronously generate axis-aligned bounding box colliders corresponding to the position and size of each crowd proxy model instance, and set the corresponding navigation area as a high passage cost area or a temporarily impassable area according to the passenger flow density, and update the path cost and estimated passage time of the corresponding navigation edge. S50, when the virtual camera moves along the initial travel path to the preset observation position of the target point of interest, it emits detection rays to the target feature sampling point of the target point of interest according to the spatial pose and view frustum parameters of the virtual camera, counts the number of dynamic crowd occlusion rays according to the most recent hit result of each detection ray, and calculates the dynamic crowd line-of-sight occlusion rate. S60: Compare the dynamic crowd line-of-sight occlusion rate with a preset dynamic crowd line-of-sight occlusion rate threshold; when the dynamic crowd line-of-sight occlusion rate is greater than the dynamic crowd line-of-sight occlusion rate threshold, search for an alternative observation location on the local navigation grid surface of the original preset observation location that satisfies the static scene visibility, view cone coverage, and spatial accessibility conditions; when the dynamic crowd line-of-sight occlusion rate is not greater than the dynamic crowd line-of-sight occlusion rate threshold, determine the initial travel path as the final travel path, determine the preset observation location as the final observation location, and end the iteration process; S70, select one of the alternative observation locations as the new target observation location, and recalculate the navigation path from the previous travel node to the target observation location and the updated estimated arrival time; S80, based on the updated estimated arrival time, repeatedly executes the prediction data acquisition, 3D scene update, line-of-sight occlusion detection, candidate observation position selection and path recalculation until the preset convergence condition or termination condition is met. S90, when the Euclidean distance between the target observation positions in two consecutive iterations is not greater than the distance convergence tolerance, and the maximum absolute value of the expected arrival time difference of the travel nodes corresponding to each target interest point is not greater than the time convergence tolerance, the iteration stops, the current target observation position is determined as the final observation position, and the current travel path is determined as the final travel path; when a periodic state is detected or the maximum number of iterations is reached, a temporal consistency check is performed on the generated candidate observation positions, and the final observation position and the final travel path are determined based on the check result; S100: After determining the final travel path and the final observation position, control the virtual camera to move along the final travel path, determine the current rendering time based on the navigation edge where the virtual camera is located and its travel progress within that navigation edge, update the environmental parameters and crowd proxy model display status of adjacent prediction time slices, and output a 3D immersive travel preview screen displaying the environmental status, crowd distribution status, final observation position, and final travel path.

[0046] See Figure 3 The topology pathfinding module is used to construct the navigation topology locally on the client terminal device and establish the correspondence between path nodes and expected arrival times based on the expected travel time of navigation edges. The process in step S10, which involves extracting traversable polygons based on the 3D navigation mesh, establishing navigation edges, and generating the initial travel path, can be divided into the following sub-steps.

[0047] S101, the topology pathfinding module reads the 3D navigation mesh data from the 3D virtual scene and navigation environment, extracting polygons with traversable attributes and the connection boundaries between adjacent traversable polygons. The topology pathfinding module represents each traversable polygon as a navigation node, and can use the geometric center of the traversable polygon as the representative position of the navigation node. For two traversable polygons with a common connection boundary and allowing mutual passage, a navigation edge is established between the corresponding navigation nodes. The navigation edge records the connection relationship between the two traversable polygons and the passage information through their common connection boundary, thereby converting the 3D navigation mesh into a directed graph structure. The directed graph topology structure is used to represent the basic spatial traversable range in the virtual scene.

[0048] In S102, the topology pathfinding module assigns two independent basic attributes to each navigation edge in the directed graph structure: estimated travel time and initial path cost. The estimated travel time is used to establish a time mapping relationship in subsequent processes; its value is obtained by dividing the three-dimensional spatial length of the corresponding navigation edge by the system's preset standard walking speed. When there is an elevation difference between navigation edges, the system extracts the slope data of the corresponding navigation grid surface and determines a slope-speed correction coefficient based on the preset correspondence between slope and walking speed.

[0049] The slope speed correction factor is greater than 0 and not greater than 1. The slope speed correction factor decreases as the slope increases. The system multiplies the standard walking speed by the slope speed correction factor to obtain the corrected walking speed for the corresponding navigation edge. Then, it divides the three-dimensional spatial length of the navigation edge by the corrected walking speed to obtain the estimated travel time for that navigation edge.

[0050] ; ; In the formula, Indicates navigation edge Corrected walking speed, Indicates standard walking speed. Indicates navigation edge The corresponding slope speed correction factor, Indicates navigation edge The length of the three-dimensional space, Indicates navigation edge The estimated travel time.

[0051] The initial path cost serves as a comprehensive evaluation value during the path search process. Its value is the base cost corresponding to the length in three-dimensional space, superimposed with a static terrain-related cost. The static terrain-related cost is obtained by multiplying the number of steps, the degree of terrain undulation, and the degree of width restriction by their respective preset weighting coefficients, and then summing the results. These weighting coefficients represent the degree of influence of various terrain conditions on path selection. Setting the estimated travel time and the initial path cost separately allows the graph search algorithm to reduce the priority of selecting navigation edges with high static terrain-related costs, while also ensuring that the estimated arrival time is calculated independently based on the estimated travel time.

[0052] S103, the topology pathfinding module receives the trip start time, starting position coordinates, and target interest point sequence. The topology pathfinding module projects the starting position coordinates and the coordinates of each target interest point to the nearest accessible navigation location, and determines the accessible polygon and corresponding navigation node to which the navigation location belongs.

[0053] When the sequence of target points of interest includes multiple target points of interest, the path search is performed segmented according to the order of the target points of interest: the navigation node corresponding to the starting position is used as the starting point of the first segment, and the navigation node corresponding to the first target point of interest is used as the ending point of the first segment; subsequently, the navigation node corresponding to the previous target point of interest is used as the starting point of the next segment, and the navigation node corresponding to the next target point of interest is used as the ending point of the next segment. The system calculates each segment of the path sequentially according to the sequence of target points of interest and connects the segments to form the initial travel path.

[0054] For the specific node expansion and path backtracking processes of the graph search algorithm, those skilled in the art can perform conventional settings based on the node heuristic cost estimation function. The underlying node queue maintenance and closed-table lookup mechanism are well-known technologies in the field and will not be elaborated upon here. When terrain obstruction prevents the graph search algorithm from generating a path connecting the start and end points, the system outputs a path unreachable message and requests the user to adjust the starting coordinates or target point of interest.

[0055] S104, the topology pathfinding module extracts the estimated travel time of each navigation edge along the initial travel path, starting from the starting node. The module accumulates the estimated travel time of each navigation edge traversed between the starting node and any specified path node, and adds the accumulated result to the travel start time to obtain the initial estimated arrival time corresponding to that path node. The topology pathfinding module traverses each path node on the initial travel path, generating the corresponding estimated arrival time series. This estimated arrival time series serves as the time index for subsequently retrieving the corresponding prediction time slice data from the cloud prediction data server.

[0056] See Figure 4The scene state update module is used to transform discrete prediction data into visual rendering elements and physical constraints within a 3D virtual space. The processes involved in steps S20 to S40—acquiring prediction data, reconstructing scene parameters, and generating bounding box colliders—can be divided into the following sub-steps.

[0057] S201, the scene state update module receives the predicted arrival time series generated by the topology pathfinding module and uses it as a query index to send a data retrieval request to the cloud-based prediction data server. The initial predicted arrival time series is used in the initial path calculation phase, and the updated predicted arrival time series is used in the iteration phase. The cloud-based prediction data server returns environmental prediction data and passenger flow prediction data for the corresponding prediction time slice. Environmental prediction data includes solar altitude angle, solar azimuth angle, solar irradiance or cloud cover, and precipitation. Passenger flow prediction data mainly records the predicted passenger flow density of each discrete passenger flow prediction grid within the tourist destination. Each passenger flow prediction grid includes a spatial range identifier or geographic coordinate range. The scene state update module, based on the pre-stored conversion relationship between geographic coordinates and 3D scene world coordinates, transforms the passenger flow prediction grid into the same coordinate system as the 3D static scene model and the 3D navigation grid.

[0058] The predicted data also includes a predicted data version identifier; the system uses the same predicted data version during the same closed-loop calculation. If a new predicted data version is obtained during the iteration, the system will either re-verify based on the new version after the current closed loop ends, or terminate the current closed loop and restart the calculation based on the new version.

[0059] When the estimated arrival time of a path node fails to align with the standard prediction time slices stored on the cloud-based prediction data server, the scene state update module extracts data from two adjacent standard prediction time slices before and after the estimated arrival time. It calculates the time difference between the estimated arrival time and the previous standard prediction time slice and divides this time difference by the time interval between the two standard prediction time slices to obtain the interpolation weight. The scene state update module then uses this interpolation weight to perform linear interpolation calculations on the preceding and following environmental prediction data and passenger flow prediction data to obtain continuous state data that matches the estimated arrival time.

[0060] ; ; In the formula, Indicates the estimated arrival time of the path node. and These represent two adjacent standard prediction time slices before and after the expected arrival time. Indicates the interpolation weights. and These represent environmental forecast data or passenger flow forecast data corresponding to two standard forecast time slots, respectively. This represents the interpolated forecast data corresponding to the expected arrival time.

[0061] When some time-slice data cannot be obtained due to network latency or missing records, the system prioritizes reading the most recently successfully obtained prediction data from the local cache that is still within its validity period. When no valid cached data exists, the system can read historical statistical data from the same period as backup data. When using backup data, the system records the data substitution status and marks the current result as not using complete real-time prediction data in the preview results.

[0062] In S202, the scene state update module maps the interpolated environmental prediction data to global environmental variables in the 3D rendering scene. The module determines the direction of the main parallel light source based on the solar altitude angle and solar azimuth angle, and converts it into a rotated quaternion of the main parallel light source; it also determines the illumination intensity of the main parallel light source based on solar irradiance or cloud cover. The solar altitude angle and solar azimuth angle are used to determine the light source direction, while solar irradiance or cloud cover is used to determine the illumination intensity. The scene state update module maps precipitation values ​​to material shader attribute parameters of the static surface and building models within the scene. Based on a preset meteorological parameter and material parameter mapping table, the system converts precipitation into material roughness, specular reflection parameters, and normal perturbation parameters for the surface and building models to generate the corresponding wet surface display effect. For the underlying logic of parallel light source matrix transformation and material shader parameter binding in the 3D rendering pipeline, those skilled in the art can perform conventional configurations based on the specific 3D graphics interface used. Parameter passing and graphics rendering calls are well-known technologies in this field and will not be elaborated upon here.

[0063] For example, in a 3D scene where the horizontal plane is the XY plane, the vertical upward direction is the positive Z-axis, and the positive X-axis is the zero direction of the solar azimuth, and the positive Y-axis is the positive direction of the solar azimuth, the solar direction vector can be determined according to the following formula: ; In the formula, Indicates the solar altitude angle. Indicates the azimuth angle of the sun. This represents the solar direction vector determined based on the solar altitude angle and solar azimuth angle. The rotation quaternion of the main parallel light source is determined based on the rotation relationship between the initial direction of the light source and the solar direction vector of the 3D rendering engine used.

[0064] S203, the scene state update module generates crowd proxy model instances in batches in the 3D rendered scene based on the interpolated passenger flow prediction data. The scene state update module calculates the spatial overlap area between the passenger flow prediction grid and each navigation grid polygon. When a passenger flow prediction grid overlaps with multiple navigation grid polygons, the system associates the passenger flow density corresponding to that passenger flow prediction grid with the corresponding navigation grid polygon based on the area of ​​each overlapping region. When a navigation grid polygon overlaps with multiple passenger flow prediction grids, the system weights the multiple passenger flow densities based on the overlapping area to obtain the passenger flow density corresponding to that navigation grid polygon.

[0065] ; In the formula, Represents navigation grid polygons Corresponding passenger flow density Indicates the first Passenger flow density for each passenger flow prediction grid Represents navigation grid polygons With the The overlapping area of ​​each passenger flow prediction grid. Represents the navigation grid polygon Number of overlapping passenger flow prediction grids.

[0066] Multiply the passenger flow density corresponding to the navigation grid polygon by the effective passable area of ​​the navigation grid polygon, and round the product to obtain the number of crowd proxy model instances to be generated.

[0067] ; In the formula, Represents navigation grid polygons The corresponding number of audience proxy model instances, Represents navigation grid polygons Effective passable area This indicates the preset rounding function, including rounding to the nearest integer, rounding down, or processing the decimal part according to a preset probability.

[0068] Rounding can be done by rounding to the nearest whole number, rounding down, or processing the decimal part according to a preset probability, and the same rounding method should be used in the same implementation process. To ensure that the same navigation grid polygon has a stable correspondence between crowd proxy model instances in adjacent prediction time slices and repeated iterations, the scene state update module generates a deterministic sampling seed based on the scene identifier, navigation grid polygon identifier, and prediction data version number.

[0069] Based on a deterministic sampling seed, a spatial sampling method is used to pre-generate a sequence of candidate sampling locations with a fixed order within the effective navigable area of ​​the navigation grid polygon. For any prediction time slice, based on the number of crowd proxy model instances corresponding to that prediction time slice, a corresponding number of sampling locations are selected from the candidate sampling location sequence in the order of generation, and a corresponding crowd proxy model instance is generated at each sampling location.

[0070] When the number of crowd surrogate model instances changes between adjacent prediction time slices, the same sampling location selected in both prediction time slices corresponds to the same instance number; sampling locations selected only in the later prediction time slice are used to generate new crowd surrogate model instances, while sampling locations selected only in the earlier prediction time slice correspond to crowd surrogate model instances to be removed. New or removed crowd surrogate model instances are preferentially assigned to sampling locations with later sequence numbers in the candidate sampling location sequence.

[0071] During the candidate sampling location generation process, when the remaining available area of ​​the navigation mesh polygon is insufficient to meet the preset minimum spacing requirement, the generation of new candidate sampling locations is stopped, and the actual number of available sampling locations is recorded. When the number of crowd proxy model instances calculated based on passenger flow density is greater than the actual number of available sampling locations, the actual number of available sampling locations is used as the number of crowd proxy model instances generated in the 3D scene.

[0072] The preset minimum spacing is determined based on the bounding box collider of the crowd proxy model instance within the local horizontal plane of the navigation mesh. The preset minimum spacing is not less than the diagonal length of the bounding box collider within the local horizontal plane, so that the bounding box colliders corresponding to adjacent candidate sampling positions do not overlap within the local horizontal plane. Candidate sampling positions are generated sequentially according to the preset minimum spacing until the remaining available area can no longer generate candidate sampling positions that meet the preset minimum spacing requirement. At this point, the number of candidate sampling positions generated is the actual number of available sampling positions.

[0073] The scene state update module generates crowd proxy model instances in batches at the selected candidate sampling locations. Based on the position and size of each crowd proxy model instance, it synchronously generates corresponding axis-aligned bounding box colliders in the dynamic crowd collision layer of the 3D physics engine. Each crowd proxy model instance and an axis-aligned bounding box collider use the same instance number. The center position of the axis-aligned bounding box collider coincides with the center position of the bounding box of the corresponding crowd proxy model instance, and the size of the axis-aligned bounding box collider in the three coordinate axes is set to a 1:1 ratio with the size of the bounding box of the corresponding crowd proxy model instance in the corresponding coordinate axis direction.

[0074] S204, the scene state update module updates the navigation edge attributes in the navigation graph used by the topology pathfinding module based on passenger flow density. The scene state update module establishes a correspondence between passenger flow density, passenger flow surcharge, and passenger flow speed correction coefficient through a preset hierarchical table or segmented mapping rules. As passenger flow density increases, the passenger flow surcharge remains constant or increases, while the passenger flow speed correction coefficient remains constant or decreases.

[0075] For a navigation edge that intersects with the area corresponding to the passenger flow prediction grid, update the passenger flow additional cost and passenger flow speed correction coefficient of the navigation edge according to the length ratio of the navigation edge within the corresponding area.

[0076] Each time the navigation edge attributes are updated based on the predicted time slice, the current path cost of the corresponding navigation edge is set to the sum of the initial path cost of the navigation edge and the passenger flow additional cost corresponding to the current predicted time slice. Simultaneously, the expected travel speed of the corresponding navigation edge is reduced according to the passenger flow speed correction coefficient corresponding to the current predicted time slice, and the expected travel time of the navigation edge is recalculated. The path cost is used for path selection in the graph search algorithm, and the expected travel time is used to update the expected arrival time of each path node. The system sets a first passenger flow density threshold and a second passenger flow density threshold that is higher than the first passenger flow density threshold.

[0077] When the passenger flow density corresponding to the navigation grid polygon reaches the first passenger flow density threshold but is lower than the second passenger flow density threshold, the scene state update module sets the area corresponding to the navigation grid polygon as a high passage cost area; passage is still allowed in this area, but the path cost and estimated passage time of the corresponding navigation edge are increased according to the passenger flow density.

[0078] When the passenger flow density corresponding to the navigation grid polygon reaches or exceeds the second passenger flow density threshold, the scene state update module sets the area corresponding to the navigation grid polygon as a temporary impassable area under the current prediction time slice and excludes it from the traversable navigation area used in the current path search.

[0079] The first and second passenger flow density thresholds are determined based on road width, site design capacity, scenic area management parameters, and preset passenger flow density levels. Specifically, the passenger flow density threshold at which the passenger flow density changes from normal traffic to congested traffic in the preset passenger flow density levels is determined as the first passenger flow density threshold, and the passenger flow density threshold at which the passenger flow density changes from congested traffic to impassable traffic is determined as the second passenger flow density threshold.

[0080] See Figure 5The visibility detection module utilizes the ray detection function of the 3D physics engine to calculate the degree of occlusion of the core visible area of ​​the target point of interest by the crowd proxy model instance. As a specific implementation, the process of emitting detection rays and calculating the dynamic crowd line-of-sight occlusion rate involved in step S50 can be performed through the following sub-steps.

[0081] S301, the visibility detection module extracts a set of target feature sampling points from the surface of the 3D model of the target point of interest. The core visible region of the target point of interest is pre-determined during the 3D model preprocessing stage through model surface region marking or semantic labels, and stored as a 3D model attribute in the digital twin model database. The visibility detection module reads the core visible region and generates target feature sampling points only within the core visible region.

[0082] For models with relatively uniform vertices in the 3D mesh, downsampling of mesh vertices can be performed according to a set minimum spatial spacing. For models with uneven triangle sizes or vertex density distribution, uniform sampling can be performed on the surface of the 3D model based on the triangle surface area, and then the sampling points can be filtered according to the minimum spatial spacing. This minimum spatial spacing is determined by multiplying the diagonal length of the bounding box of the target interest point model by a preset scaling factor, which is configured between 0.01 and 0.05 to accommodate 3D models of different sizes.

[0083] ; ; In the formula, This represents the minimum spatial spacing between target feature sampling points. This represents the diagonal length of the bounding box of the target interest point model. This indicates the preset scaling factor.

[0084] The discrete set of target feature sampling points is used to characterize the target surface area for visibility evaluation, and the sampling process is used to control the number of ray detections while covering the area.

[0085] S302, the visibility detection module determines the horizontal position of the virtual camera based on the preset observation position, and increases the preset viewpoint height along the local upward direction of the navigation grid polygon to which the position belongs, thus obtaining the camera position. The preset viewpoint height is determined based on the system's preset crowd proxy model, taking the distance of the eye marker point of the crowd proxy model relative to its landing point along the local upward direction; the preset observation position and subsequent candidate observation positions use the same preset viewpoint height.

[0086] The geometric center of the target feature sampling point set is calculated, and the main line-of-sight direction of the virtual camera is set to the direction from the camera position to the geometric center to determine the horizontal orientation angle and pitch angle of the virtual camera. The same camera pose determination method is used for both the preset observation position and subsequent candidate observation positions.

[0087] The visibility detection module acquires the camera pose and frustum parameters determined in the above manner. The frustum parameters include the horizontal field of view, the vertical field of view, the near clipping distance, and the far clipping distance.

[0088] The visibility detection module determines whether each target feature sampling point is within the camera's field of view based on the virtual camera's pose and frustum parameters, and calculates the proportion of target feature sampling points within the field of view. When this proportion is lower than the preset frustum coverage proportion, the current observation position is determined not to meet the frustum coverage condition. The preset frustum coverage proportion is determined based on the maximum proportion of target feature sampling points allowed by the system to be outside the camera's field of view; the preset frustum coverage proportion is 1 minus the maximum proportion.

[0089] For target feature sampling points located within the view frustum of the virtual camera, the visibility detection module uses the current three-dimensional spatial coordinates of the virtual camera as the ray starting point, and the three-dimensional coordinates of the corresponding target feature sampling point as the target point to construct the ray direction, and calls the ray detection interface of the three-dimensional physics engine to emit the detection ray.

[0090] S303, the visibility detection module performs a nearest-hit query on each detected ray and sets a collision query mask that includes static scene collision layers, dynamic crowd collision layers, and target interest point collision layers. The detection results are categorized based on the collision layer to which the nearest hit object from the ray's origin belongs. When a ray spatially intersects with a physical collider in the scene before reaching a feature sampling point, the visibility detection module obtains the layer label of that physical collider. If the nearest hit collider belongs to the static scene collision layer, the ray is determined to be occluded by terrain, buildings, or other static scene objects, and it is marked as a static scene occluded ray.

[0091] If the most recently hit collider belongs to the dynamic crowd collision layer, then the ray is determined to be occluded by the bounding box collider generated by the scene state update module, and it is marked as a dynamic crowd occlusion ray.

[0092] If the detected ray first hits the target interest point collider, or does not hit a static scene collider or a dynamic crowd collider within the detection distance from the virtual camera position to the target feature sampling point, it is marked as a visible ray of the target. For the ray-collider intersection calculation in the 3D physics engine, those skilled in the art can use the ray detection interface provided by the 3D physics engine to implement it, which will not be elaborated here.

[0093] S304, the visibility detection module counts the number of rays obscured by static scenes, the number of rays obscured by dynamic crowds, and the number of visible rays of the target.

[0094] The static scene occlusion rate is defined as the proportion of static scene occlusion rays to the total number of initially detected rays, and this rate is compared with a preset static scene occlusion rate threshold. If the static scene occlusion rate exceeds the threshold, the current observation location is determined not to meet the static scene visibility condition, and the location is no longer considered a valid observation location. The preset static scene occlusion rate threshold is determined based on the maximum proportion that the system allows the core visible area of ​​the target point of interest to be occluded by terrain, buildings, or other static scene objects, and this maximum proportion is used as the preset static scene occlusion rate threshold.

[0095] When the static scene occlusion rate does not exceed the threshold, the sum of the number of dynamic crowd occlusion rays and the number of target visible rays is taken as the total number of effective rays, and the dynamic crowd line-of-sight occlusion rate is calculated according to the following formula: ; In the formula, Indicates the rate of visual obstruction among dynamic crowds; Indicates the number of rays blocked by a dynamic crowd; Indicates the number of visible rays of the target.

[0096] When the sum of the number of dynamic crowd occlusion rays and the number of visible target rays is zero, it is determined that the current observation position does not meet the visibility conditions of the static scene, and the invisible state caused by the static scene is not recorded as dynamic crowd occlusion.

[0097] See Figure 6 The virtual camera, using its current 3D spatial coordinates as the ray origin, emits a detection ray towards the set of target feature sampling points within the core visible area of ​​the target point of interest. Crowd proxy model instances in the scene are assigned corresponding axis-aligned bounding box colliders. For each detection ray, the detection result is classified according to the collision layer to which the nearest hit object belongs: if the nearest hit object belongs to the dynamic crowd collision layer, the corresponding detection ray is marked as a dynamic crowd occlusion ray; if the nearest hit object belongs to the static scene collision layer, the corresponding detection ray is marked as a static scene occlusion ray; if the detection ray first hits the target point of interest collider, or does not hit the static scene collider or dynamic crowd collider before reaching the target feature sampling point, the corresponding detection ray is marked as a target visible ray.

[0098] See Figure 7The iterative feedback module is used to search for alternative observation positions on the local navigation grid surface when the dynamic crowd line-of-sight occlusion rate exceeds the dynamic crowd line-of-sight occlusion rate threshold, and to control the topology pathfinding module to recalculate the path and the expected arrival time until the target observation position and the expected arrival time series meet the convergence condition.

[0099] As a specific implementation method, the process of candidate observation location search, navigation path recalculation and iterative update involved in steps S60 to S90 can be divided into the following sub-steps.

[0100] S401, the iterative feedback module receives the dynamic crowd line-of-sight occlusion rate output by the visibility detection module and compares it with a preset dynamic crowd line-of-sight occlusion rate threshold. The dynamic crowd line-of-sight occlusion rate threshold can be set between 0.3 and 0.5, with the specific value determined based on the system's allowed target visible area occlusion ratio. When the dynamic crowd line-of-sight occlusion rate is greater than the dynamic crowd line-of-sight occlusion rate threshold, the candidate observation position search process is initiated. The iterative feedback module performs a radial layered sampling operation centered on the three-dimensional coordinates of the original preset observation position. Specifically, the sampling operation increases the sampling radius by a preset distance step, and at each radius level, the circumference is equally divided according to a preset angle step, calculating multiple two-dimensional plane coordinates distributed around the perimeter. The system uses the nearest point query of the navigation grid to project each initial sampling position onto the navigation grid surface that is in the same reachable navigation area as the original preset observation position. When the projection distance exceeds the preset maximum projection distance (configured to be between 1.0 meter and 3.0 meters), or when the projected navigation position does not belong to the same reachable navigation area as the original preset observation position, the system excludes the sampling position.

[0101] S402, the iterative feedback module performs constraint filtering and path cost comparison on the generated candidate observation location set. The iterative feedback module traverses the set of 3D coordinate points of the candidate observation locations, and eliminates candidate observation locations that do not fall inside the traversable polygon of the 3D navigation grid, are located in a static impassable area, or are located in a temporary impassable area of ​​the current prediction time slice.

[0102] For candidate observation locations located in high-passage-cost areas but still meeting the passage conditions, the system retains them and includes the passenger flow additional cost and estimated passage time of the corresponding navigation edge in the subsequent path calculation.

[0103] For candidate observation locations that pass the accessibility condition verification, the poses of the corresponding candidate virtual cameras are determined according to the S302 virtual camera pose determination method. The visibility detection module then sequentially judges their frustum coverage conditions, static scene visibility conditions, and dynamic crowd line-of-sight occlusion rates. The iterative feedback module excludes candidate observation locations whose dynamic crowd line-of-sight occlusion rates exceed the dynamic crowd line-of-sight occlusion rate threshold.

[0104] Based on this, the navigation path from the previous travel node to each valid candidate observation position is calculated, the path cost of each navigation path is accumulated to obtain the path cost corresponding to each candidate observation position, and the valid candidate observation position with the lowest path cost is selected as the target observation position for the current iteration. When there is no candidate observation position within the sampling radius that simultaneously satisfies the passage condition, view frustum coverage condition, static scene visibility condition, and dynamic crowd line-of-sight occlusion rate threshold, the iterative feedback module increases the sampling radius according to the preset distance step size and regenerates the candidate observation position point set; if after the sampling radius reaches the preset maximum search radius, there is still no candidate observation position with a dynamic crowd line-of-sight occlusion rate not greater than the dynamic crowd line-of-sight occlusion rate threshold, then the system selects the position with the lowest dynamic crowd line-of-sight occlusion rate from the candidate observation positions that satisfy the passage condition, view frustum coverage condition, and static scene visibility condition as the alternative observation position; when multiple candidate observation positions have the same dynamic crowd line-of-sight occlusion rate, the candidate observation position with the lowest path cost is selected.

[0105] When there are no candidate observation locations that meet the above basic conditions within the maximum search range, the system retains the original preset observation location and records the status information that there is no effective alternative observation location.

[0106] S403, the iterative feedback module performs target node updates and path recalculation. Once the system determines the target observation location or alternative observation location, it updates the path target node corresponding to the current target point of interest to the target observation location or alternative observation location.

[0107] The topology pathfinding module starts from the previous travel node and recalculates the travel path from the updated target observation position to the subsequent target interest point sequence. It recalculates at least the path segment from the previous travel node to the updated target observation position, and the path segment from the updated target observation position to the next target interest point. For the last target interest point in the travel sequence, only the path segment from the previous travel node to the updated target observation position is recalculated.

[0108] Based on the recalculated current path segment and subsequent path segments, the estimated arrival times of the current target point of interest and the corresponding travel nodes of each subsequent target point of interest are updated sequentially.

[0109] When there is no effective alternative observation location and the original preset observation location is retained, the system does not perform target node replacement and uses the path calculation result with the original preset observation location as the path target node.

[0110] S404, based on the updated estimated arrival time series, repeatedly executes the data acquisition and scene state update of the scene state update module, and the occlusion detection of the visibility detection module. Since the estimated arrival time corresponding to the target observation location has changed, the passenger flow prediction data for the corresponding prediction time slice is reacquired, and the dynamic crowd line-of-sight occlusion rate of the target observation location is recalculated, thus forming an iterative update process of path planning, estimated arrival time update, and visibility verification. At the end of each iteration, the iterative feedback module performs convergence condition determination, and the convergence determination logic includes tolerance checks in both spatial and temporal dimensions. ; In the formula, This represents the Euclidean distance between the target observation positions in two consecutive iterations. Indicates the distance convergence tolerance; This represents the maximum absolute value of the estimated arrival time difference between the corresponding travel nodes for each target point of interest; This represents the time convergence tolerance. Specifically, it includes the preset distance convergence tolerance. Set to 0.5 meters to 1.0 meters, with a preset time convergence tolerance. The time is set to 60 to 180 seconds. Those skilled in the art can configure the specific value according to the spatial scale and time accuracy requirements of the application scenario.

[0111] when Not greater than the distance convergence tolerance, and When the convergence time tolerance is not greater than the current time tolerance, the iteration is considered converged, the current iteration is stopped, the current target observation position is determined as the final observation position, and the current travel path is determined as the final travel path. To handle the non-convergence of the iteration process or the repeated switching of candidate observation positions caused by changes in prediction data, for observation positions with fixed node identifiers, an iteration status identifier is generated based on the target observation position identifier and the corresponding prediction time slice identifier; for observation positions on the continuous navigation grid surface, the observation position coordinates are quantized according to the distance convergence tolerance, and an iteration status identifier is generated based on the quantized observation position and the corresponding prediction time slice identifier.

[0112] When the current iteration state identifier is the same as the state identifier of any previous iteration, the system determines that the iteration process has entered a periodic state.

[0113] The system also sets a maximum number of iterations to ensure that the iteration process ends within a finite number of iterations.

[0114] When the number of iterations reaches the maximum number of iterations, or when the system detects a periodic state, the iterative feedback module performs a final timing consistency check on the candidate observation positions generated in each iteration.

[0115] For each candidate observation location to be verified, the system sets the candidate observation location as the target observation location corresponding to the current target point of interest, and recalculates the travel path including the candidate observation location and the estimated arrival time corresponding to each target point of interest. Based on the recalculated estimated arrival time, the system obtains the passenger flow prediction data for the corresponding prediction time slot, and regenerates the crowd proxy model and axis-aligned bounding box collider.

[0116] The system determines whether the candidate observation location and its corresponding navigation path are located within the navigable navigation area of ​​the current prediction time slice, and whether the corresponding navigation path passes through a temporarily impassable area. If the candidate observation location or its corresponding navigation path does not meet the navigability conditions, the candidate observation location is excluded.

[0117] For candidate observation locations that meet the passage conditions, the system determines the corresponding candidate camera pose according to method S302, and then sequentially judges whether the candidate camera pose meets the frustum coverage condition, whether the candidate observation location meets the static scene visibility condition, and whether the dynamic crowd line-of-sight occlusion rate of the candidate observation location is not greater than the dynamic crowd line-of-sight occlusion rate threshold.

[0118] The system identifies candidate observation locations that simultaneously meet the conditions for passage, view frustum coverage, static scene visibility, and dynamic crowd line-of-sight occlusion as those that pass the temporal consistency check. If multiple candidate observation locations pass the temporal consistency check, the system selects the one with the lowest cost for the corresponding complete travel path as the final observation location.

[0119] When there are no candidate observation locations that meet the dynamic crowd line-of-sight occlusion rate threshold and pass the temporal consistency check, the system selects the candidate observation location with the lowest dynamic crowd line-of-sight occlusion rate at its corresponding expected arrival time from among the candidate observation locations that meet the passage conditions, view cone coverage conditions, and static scene visibility conditions. When multiple candidate observation locations have the same dynamic crowd line-of-sight occlusion rate, the candidate observation location with the lowest corresponding complete travel path cost is selected.

[0120] When there are no candidate observation positions that meet the conditions of passage, view cone coverage, and static scene visibility, the system retains the original preset observation position and records the status information that there is no effective alternative observation position.

[0121] The scene rendering output module is used to generate a 3D roaming video or real-time rendered screen based on the final travel path and expected arrival time data after iterative convergence or the termination condition is met. As a specific implementation method, the process of driving the virtual camera to move, continuously interpolating environmental variables, and outputting the preview screen involved in step S100 can be divided into the following sub-steps.

[0122] S501, the scene rendering output module reads the path node coordinate sequence, the estimated entry and exit times of each navigation edge, and the estimated arrival time of each target point of interest corresponding to the path node in the final travel path. To improve the smoothness of the camera's spatial movement trajectory, the scene rendering output module uses the spatial node coordinate sequence as control points and a 3D spatial spline curve interpolation algorithm to generate continuous spatial displacement trajectories between adjacent path nodes.

[0123] The system defines the set of navigation grid polygons traversed by the final travel path as the navigation corridor. It then discretely samples the continuous spatial displacement trajectory and projects each trajectory sampling point into the navigation corridor. The system detects whether the line connecting adjacent trajectory sampling points lies within the passable navigation area and determines whether it intersects with static obstacles.

[0124] When a trajectory segment exceeds the passable navigation area or intersects with a static obstacle, the smoothing range of that trajectory segment is reduced, or the polyline path corresponding to the original navigation path is directly used as the virtual camera's movement trajectory.

[0125] When generating continuous spatial displacement trajectories, the scene rendering output module retains the association between each trajectory segment and the corresponding navigation edge in the original travel path. When a smooth trajectory segment crosses multiple navigation edges, the system divides the trajectory segment into multiple sub-trajectory segments according to the navigation edge boundaries and records the navigation edge corresponding to each sub-trajectory segment.

[0126] As the virtual camera moves frame by frame along a continuous spatial displacement trajectory, the scene rendering output module determines the corresponding navigation edge based on the sub-trajectory segment where the camera is located. The estimated entry time of the navigation edge is the estimated arrival time of the starting path node of that navigation edge, and the estimated departure time of the navigation edge is the estimated arrival time of the ending path node of that navigation edge.

[0127] When a constant expected travel speed is used within the same navigation edge, the expected entry time and expected exit time of the navigation edge are interpolated based on the travel ratio of the virtual camera within the corresponding sub-track segment to obtain the current rendering time corresponding to the current rendering frame.

[0128] For the specific selection and parameter control of the three-dimensional spatial spline curve interpolation algorithm, those skilled in the art can use Bézier curves or Catmull-Rom spline curves for conventional configuration. The path smoothing processing is a well-known technology in this field and will not be elaborated here.

[0129] S502, the scene rendering output module performs a smooth timeline transition on the visual representation of the environment based on the current rendering time. The scene rendering output module reads environmental prediction data from the local cache or obtains it from the cloud prediction data server for two adjacent standard prediction time slices before and after the current rendering time. For ambient light intensity, surface roughness, and other scalar environmental parameters, the scene rendering output module performs interpolation calculations based on the time ratio between the current rendering time and the two adjacent prediction time slices.

[0130] For the rotation quaternion of the parallel light source, the system uses spherical linear interpolation to avoid discontinuous rotation when the solar azimuth angle crosses the angular boundary. The scene rendering output module submits the various environmental visual parameters calculated by interpolation to the 3D rendering pipeline in real time, driving the lighting and materials of the virtual scene to present a visual effect of continuous transition over time.

[0131] S503, the scene rendering output module performs transition processing on the display state of crowd proxy model instances between adjacent prediction time slices. Since the number of crowd proxy model instances differs between adjacent prediction time slices, directly switching the number and display state of crowd proxy model instances will cause the instances to suddenly appear or disappear.

[0132] The scene rendering output module updates the fixed and ordered candidate sampling position sequence generated by the scene state update module for the same navigation grid polygon, and compares the crowd proxy model instance set of two adjacent prediction time slices with the sampling position number and the crowd proxy model instance number.

[0133] Crowd proxy model instances that use the same sampling location number in two adjacent prediction time slices are identified as corresponding instances; crowd proxy model instances that exist only in the later prediction time slice are identified as new instances; and crowd proxy model instances that exist only in the previous prediction time slice are identified as instances to be removed.

[0134] When the number of crowd proxy model instances in the next prediction time slice is greater than that in the previous prediction time slice, the scene rendering output module sets the newly added crowd proxy model instances to be completely transparent, and adjusts their transparency to be completely opaque frame by frame within a set time window (which is configured to be between 0.5 seconds and 2.0 seconds).

[0135] When the number of crowd proxy model instances in the next prediction time slice is less than that in the previous prediction time slice, the scene rendering output module adjusts the transparency of the crowd proxy model instances to be removed frame by frame until they are completely transparent, and removes the corresponding instances after they are fully transparent. This transparency gradient processing is used to reduce the sudden changes in the scene caused by the sudden appearance or disappearance of crowd proxy model instances.

[0136] The above embodiments are used to illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the present invention. Those skilled in the art can make equivalent substitutions or adjustments to some technical features without departing from the technical concept of the present invention. The scope of protection of the present invention is defined by the scope of the claims.

Claims

1. A digital twin-based immersive itinerary preview system for tourist destinations, characterized in that: include: The topology pathfinding module is used to generate an initial travel path containing the expected arrival time sequence based on 3D navigation mesh data, travel start time, starting position coordinates, and target point of interest sequence. The scene state update module is used to obtain passenger flow prediction data based on the expected arrival time series, and generate crowd proxy model instances and corresponding axis-aligned bounding box colliders in batches in the three-dimensional virtual scene. The visibility detection module is used to emit detection rays for the current target interest point in the target interest point sequence, determine the occlusion of the detection rays by the axis-aligned bounding box collider based on the most recent hit result of each detection ray, and calculate the dynamic crowd line-of-sight occlusion rate. The iterative feedback module is used to search for alternative observation locations when the dynamic crowd line-of-sight occlusion rate is greater than a preset dynamic crowd line-of-sight occlusion rate threshold, recalculate the travel path and the expected arrival time series, until a preset convergence condition or termination condition is met, and obtain the final travel path and the final observation location. The scene rendering output module is used to output a three-dimensional travel preview based on the final travel path and the final observation position.

2. The immersive travel itinerary preview system for tourist destinations based on digital twins according to claim 1, characterized in that, The topology pathfinding module is specifically used for: The three-dimensional navigation mesh data is extracted into a directed graph structure containing navigation edges; By combining the three-dimensional spatial length of the corresponding navigation edge with the corrected walking speed determined based on slope data, the estimated travel time and initial path cost of each navigation edge are determined. The estimated travel time is generated by sequentially adding the estimated travel time along the path direction and the start time of the journey.

3. The immersive travel itinerary preview system for tourist destinations based on digital twins according to claim 2, characterized in that, The scene state update module is specifically used for: Based on the overlap area between the passenger flow prediction grid in the passenger flow prediction data and the three-dimensional navigation grid polygon corresponding to the directed graph structure, the passenger flow density corresponding to each navigation grid polygon is determined. The number of crowd proxy model instances is determined based on the passenger flow density. A candidate sampling position sequence is generated according to a preset deterministic sampling seed. Candidate sampling positions are selected from the candidate sampling position sequence according to the number of crowd proxy model instances. Crowd proxy model instances are generated in batches at the selected candidate sampling positions. A bounding box collider corresponding to each crowd proxy model instance is generated synchronously according to the position and size of each crowd proxy model instance.

4. The immersive travel itinerary preview system for tourist destinations based on digital twins according to claim 3, characterized in that, The scenario state update module is further configured to: preset a first passenger flow density threshold and a second passenger flow density threshold higher than the first passenger flow density threshold; When the passenger flow density corresponding to the navigation grid polygon reaches the first passenger flow density threshold but is lower than the second passenger flow density threshold, the passenger flow additional cost is added to the initial path cost of the corresponding navigation edge as the current path cost, and the estimated travel time is recalculated according to the passenger flow speed correction coefficient. When the passenger flow density reaches or exceeds the second passenger flow density threshold, the corresponding navigation grid polygon area is set as a temporary impassable area under the current prediction time slice.

5. The immersive travel itinerary preview system for tourist destinations based on digital twins according to claim 1, characterized in that, The visibility detection module is specifically used for: Extract a set of target feature sampling points within the core visible region of the current target point of interest; A detection ray is emitted from the current three-dimensional spatial coordinates of the virtual camera as the ray origin to the set of target feature sampling points; The detection rays are classified according to the collision layer to which the most recently hit object belongs. The number of static scene occlusion rays, the number of dynamic crowd occlusion rays, and the number of target visible rays are counted. The static scene occlusion rate is determined based on the ratio of the number of static scene occlusion rays to the total number of emitted detection rays. The static scene visibility condition is determined based on the comparison between the static scene occlusion rate and the preset static scene occlusion rate threshold. The sum of the number of dynamic crowd-obstructed rays and the number of visible rays of the target is determined as the total number of effective rays, and the dynamic crowd line-of-sight occlusion rate is calculated based on the ratio of the number of dynamic crowd-obstructed rays to the total number of effective rays.

6. The immersive travel itinerary preview system for tourist destinations based on digital twins according to claim 5, characterized in that, The iterative feedback module is specifically used for: Radial hierarchical sampling is performed to generate multiple initial sampling locations, which are then projected onto the navigation grid surface to obtain a set of candidate observation locations. Candidate observation positions that do not fall within the traversable polygon of the 3D navigation grid, are located in a static impassable area, or are located in a temporary impassable area are removed, as well as candidate observation positions that do not meet the view cone coverage condition, do not meet the static scene visibility condition, or have a dynamic crowd view occlusion rate greater than the dynamic crowd view occlusion rate threshold. The alternative observation position is selected from the remaining candidate observation positions, and the one with the lowest corresponding travel path cost is selected as the alternative observation position. The alternative observation position is then used as the target observation position for the current iteration.

7. The immersive travel itinerary preview system for tourist destinations based on digital twins according to claim 6, characterized in that, The preset convergence conditions include distance convergence tolerance and time convergence tolerance; The iterative feedback module is used to determine that the convergence condition is met when the Euclidean distance between the target observation positions in two consecutive iterations is not greater than the distance convergence tolerance, and the maximum absolute value of the expected arrival time difference of the travel nodes corresponding to each target interest point is not greater than the time convergence tolerance. In this case, the current target observation position is determined as the final observation position, and the current travel path is determined as the final travel path.

8. The immersive travel itinerary preview system for tourist destinations based on digital twins according to claim 7, characterized in that, The iterative feedback module is also used for: Generate an iteration status identifier based on the target observation position and the corresponding prediction time slice identifier of the current iteration; When the current iteration state identifier is found to be the same as any previous iteration state identifier and is determined to be a periodic state, a time sequence consistency check is performed on the candidate observation positions generated in each iteration. The candidate observation position that simultaneously satisfies the passage conditions, the view cone coverage conditions, and the static scene visibility conditions, and whose dynamic crowd line-of-sight occlusion rate is not greater than the dynamic crowd line-of-sight occlusion rate threshold, and whose corresponding complete travel path cost is the lowest, is selected as the final observation position, and the complete travel path corresponding to the final observation position is determined as the final travel path.

9. The immersive travel itinerary preview system for tourist destinations based on digital twins according to claim 2, characterized in that, The scene rendering output module is specifically used for: Read the path node coordinate sequence in the final travel path, and use a three-dimensional space spline curve interpolation algorithm to generate a continuous spatial displacement trajectory between adjacent path nodes; The virtual camera is controlled to move along the continuous spatial displacement trajectory, and the expected entry time and expected exit time of the navigation edge are interpolated according to the travel ratio of the virtual camera to the navigation edge within the sub-trajectory segment to obtain the current rendering time.

10. The immersive travel itinerary preview system for tourist destinations based on digital twins according to claim 3, characterized in that, The scene rendering output module is also used for: Based on the sampling location number of the candidate sampling location and the instance number of the crowd proxy model instance, compare the set of crowd proxy model instances in adjacent prediction time slices. When the number of crowd proxy model instances in the later prediction time slice is greater than that in the previous prediction time slice, the transparency of the newly added crowd proxy model instances will be adjusted to be completely opaque frame by frame within the set time window. When the number of crowd proxy model instances in the next prediction time slice is less than that in the previous prediction time slice, the transparency of the crowd proxy model instances to be removed is adjusted to be completely transparent frame by frame and the removal process is performed.

Citation Information

Patent Citations

  • Digital twinborn-based scenic spot sightseeing guiding method and system, and storage medium

    CN118310520A

  • Virtual travel platform construction method based on digital twinning

    CN119992019A

  • Smart tourism and expo management system with integrated ar / VR previews and data-driven recommendation engine

    IN202541101518A