Digital map reproduction method and system of ancient building, terminal and storage medium
By constructing and rendering a panoramic three-dimensional model of ancient buildings, and combining bird's-eye map and panoramic display, the problem of a single perspective of traditional display methods is solved, and multi-angle and multi-dimensional display of ancient buildings is realized, improving the display effect and user interaction.
Patent Information
- Application Number
- CN202411618423.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-11-13
AI Technical Summary
The display method of traditional ancient buildings in the prior art relies on a single-view bird's-eye map model or simple three-dimensional modeling and panoramic images, and fails to combine the bird's-eye map model with panoramic images to display, resulting in poor display effect and cannot meet users' viewing needs.
By obtaining multi-dimensional data of ancient buildings, aggregating and extracting bird's aerial view data and panoramic view data, building a panoramic three-dimensional model of ancient buildings, and rendering it. Combining the bird's-eye map and panoramic view display, multi-angle and multi-dimensional display of ancient buildings is realized.
It improves the display effect of ancient buildings, enables users to obtain a more realistic and intuitive browsing experience, enhances the interaction between users and ancient buildings, and meets users' multi-angle viewing needs.
Smart Images

Figure CN119672240A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, system, terminal and computer-readable storage medium for reproducing a digital map of an ancient building. Background Art
[0002] With the development of digital technology, the display method of historical and cultural heritage (for example, traditional ancient buildings) has gradually changed from traditional two-dimensional images and text descriptions to more vivid and interactive experiential browsing.
[0003] However, the current display methods of traditional ancient buildings mostly rely on single-perspective bird's-eye map models, or simple three-dimensional modeling and panoramic images for display, but do not combine the bird's-eye map model with the panoramic image for display, resulting in poor display effects of ancient buildings and failure to meet users' viewing needs.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a digital map reproduction method, system, terminal and computer-readable storage medium of ancient buildings, aiming to solve the problem that the display method of traditional ancient buildings in the prior art mostly relies on a single-perspective bird's-eye map model, or simple three-dimensional modeling and panoramic images for display, but does not combine the bird's-eye map model with the panoramic image for display, resulting in a poor display effect of the ancient buildings and unable to meet the viewing needs of users.
[0006] To achieve the above object, the present invention provides a method for reproducing a digital map of an ancient building, the method comprising the following steps:
[0007] Acquire multi-dimensional data of the target ancient building, and aggregate the multi-dimensional data to obtain the multi-dimensional data of the target ancient building;
[0008] Acquire bird's-eye view data and panoramic view data from the multi-dimensional data of the target ancient building, and construct a panoramic three-dimensional model of the ancient building according to the bird's-eye view data and the panoramic view data;
[0009] Rendering the panoramic three-dimensional model of the ancient building to obtain a rendered three-dimensional model of the ancient building;
[0010] When an ancient building viewing instruction is received, a target sub-building panoramic view of the rendered ancient building three-dimensional model is determined according to the ancient building viewing instruction, and the target sub-building panoramic view is displayed.
[0011] Optionally, in the digital map reproduction method of ancient buildings, the multi-dimensional data includes spatial multi-dimensional data and architectural reference data;
[0012] The step of obtaining multi-dimensional data of the target ancient building and performing aggregation processing on the multi-dimensional data to obtain the multi-dimensional data of the target ancient building specifically includes:
[0013] Determine a target ancient building, and obtain spatial multi-dimensional data of the target ancient building, wherein the spatial multi-dimensional data includes building structure data, spatial layout data, and terrain feature data;
[0014] Acquire architectural reference data of the target ancient building, and aggregate the architectural reference data with the spatial multi-dimensional data to obtain multi-dimensional data of the target ancient building, wherein the architectural reference data includes historical documents of the target ancient building and drawings of the target ancient building.
[0015] Optionally, the method for reproducing a digital map of an ancient building, wherein the step of obtaining bird's-eye view data and panoramic view data from the multi-dimensional data of the target ancient building, and constructing a panoramic three-dimensional model of the ancient building according to the bird's-eye view data and the panoramic view data, specifically comprises:
[0016] Extracting bird's-eye view data from the multi-dimensional data of the target ancient building, and performing three-dimensional modeling processing on the bird's-eye view data using a preset three-dimensional modeling software to obtain a bird's-eye view model;
[0017] Extracting panoramic data from the multi-dimensional data of the target ancient building, and performing three-dimensional modeling processing on the panoramic data using the preset three-dimensional modeling software to obtain a panoramic model;
[0018] The bird's-eye view model and the panoramic view model are initially rendered to obtain a panoramic three-dimensional model of the ancient building.
[0019] Optionally, the digital map reproduction method of the ancient building, wherein the initial rendering process is performed on the bird's-eye view model and the panoramic view model to obtain a panoramic three-dimensional model of the ancient building, specifically comprising:
[0020] Setting first rendering parameters, and performing first rendering processing on the bird's-eye view model according to the first rendering parameters to obtain a rendered bird's-eye view model, wherein the first rendering parameters include panoramic light brightness, shooting position, shooting angle, and camera focal length;
[0021] Setting second rendering parameters, and performing second rendering processing on the panoramic model according to the second rendering parameters to obtain a rendered panoramic model, wherein the second rendering parameters include a user visual position, a rendering light source, a rendering style, and an object rendering material;
[0022] The rendered bird's-eye view model and the rendered panoramic view model are associated with each other to obtain a panoramic three-dimensional model of the ancient building.
[0023] Optionally, the method for reproducing a digital map of an ancient building, wherein the step of associating the rendered bird's-eye view model with the rendered panoramic view model to obtain a panoramic three-dimensional model of the ancient building, specifically comprises:
[0024] Dividing the plurality of sub-buildings in the rendered bird's-eye view model and the rendered panoramic view model into sub-building areas to obtain a building area identifier corresponding to each of the sub-buildings;
[0025] The rendered bird's-eye view model is associated with the rendered panoramic view model according to the building area identifier to obtain a panoramic three-dimensional model of the ancient building.
[0026] Optionally, the method for reproducing a digital map of an ancient building, wherein the step of rendering the panoramic three-dimensional model of the ancient building to obtain a rendered three-dimensional model of the ancient building, specifically comprises:
[0027] Creating a three-dimensional scene, and placing the three-dimensional model of the ancient building panorama in the three-dimensional scene to obtain an initial three-dimensional panorama of the ancient building;
[0028] Determine a user viewing angle and a user viewing position, set camera parameters according to the user viewing angle and the user viewing position, and optimize and adjust the three-dimensional panoramic view of the ancient building according to the camera parameters to obtain the three-dimensional panoramic view of the ancient building;
[0029] A renderer is used to re-render the three-dimensional panorama of the ancient building to obtain a rendered three-dimensional model of the ancient building.
[0030] Optionally, the digital map reproduction method of the ancient building, wherein when the ancient building viewing instruction is received, the target sub-building panoramic view of the rendered ancient building three-dimensional model is determined according to the ancient building viewing instruction, and the target sub-building panoramic view is displayed, specifically comprising:
[0031] When receiving an ancient building viewing instruction issued by a user, jumping to the bird's-eye view map in the rendered ancient building three-dimensional model according to the ancient building viewing instruction;
[0032] Acquire a click position in the bird's-eye view map clicked by a user, and determine a target sub-building identifier corresponding to the click position in the bird's-eye view map;
[0033] The target sub-building panoramic image of the panoramic map in the rendered three-dimensional model of the ancient building is determined according to the target sub-building identifier, and the target sub-building panoramic image is displayed.
[0034] In addition, to achieve the above-mentioned purpose, the present invention further provides a digital map reproduction system of ancient buildings, wherein the digital map reproduction system of ancient buildings comprises:
[0035] A multi-dimensional data acquisition module is used to acquire multi-dimensional data of a target ancient building, and aggregate the multi-dimensional data to obtain multi-dimensional data of the target ancient building;
[0036] A panoramic three-dimensional model building module is used to obtain the bird's-eye view data and the panoramic view data in the multi-dimensional data of the target ancient building, and to build a panoramic three-dimensional model of the ancient building according to the bird's-eye view data and the panoramic view data;
[0037] A three-dimensional model rendering module is used to render the panoramic three-dimensional model of the ancient building to obtain a rendered three-dimensional model of the ancient building;
[0038] The target panoramic image display module is used to determine the target panoramic image of the rendered ancient building three-dimensional model according to the ancient building viewing instruction when receiving the ancient building viewing instruction, and display the target panoramic image.
[0039] In the present invention, the multi-dimensional data of the target ancient building is obtained, and the multi-dimensional data is aggregated to obtain the multi-dimensional data of the target ancient building; the bird's-eye view data and the panoramic view data in the multi-dimensional data of the target ancient building are obtained, and a panoramic three-dimensional model of the ancient building is constructed according to the bird's-eye view data and the panoramic view data; the panoramic three-dimensional model of the ancient building is rendered to obtain a rendered three-dimensional model of the ancient building; when an ancient building viewing instruction is received, the target sub-building panoramic view of the rendered ancient building three-dimensional model is determined according to the ancient building viewing instruction, and the target sub-building panoramic view is displayed. The present invention obtains the multi-dimensional data of the ancient building, and constructs a bird's-eye view and a panoramic view according to the multi-dimensional data, and then performs three-dimensional modeling and rendering on the bird's-eye view and the panoramic view, so as to obtain the three-dimensional model of the ancient building. The modeled three-dimensional model of the ancient building will be displayed through the front end, which effectively improves the display effect of the ancient building. At the same time, it can also enable users to have a more real and intuitive browsing experience for the ancient building, and enhance the sense of interaction between the user and the ancient building. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flow chart of a preferred embodiment of the digital map reproduction method of ancient buildings of the present invention;
[0041] Figure 2 It is a schematic diagram of the overall structure implementation process of a preferred embodiment of the digital map reproduction method of ancient buildings of the present invention;
[0042] Figure 3It is a bird's-eye view schematic diagram of a preferred embodiment of the digital map reproduction method of ancient buildings of the present invention;
[0043] Figure 4 It is a schematic diagram of the homepage navigation of a preferred embodiment of the digital map reproduction method of ancient buildings of the present invention;
[0044] Figure 5 It is a schematic diagram of a first panoramic view of a preferred embodiment of the digital map reproduction method of ancient buildings of the present invention;
[0045] Figure 6 It is a schematic diagram of a second panoramic view of a preferred embodiment of the digital map reproduction method of ancient buildings of the present invention;
[0046] Figure 7 It is a structural diagram of a preferred embodiment of the digital map reproduction system of ancient buildings of the present invention;
[0047] Figure 8 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0049] With the development of digital technology, the display method of historical and cultural heritage has gradually changed from traditional two-dimensional images and text descriptions to more vivid and interactive experiential browsing. However, traditional display methods mostly rely on single-perspective map models, or simple three-dimensional modeling and panoramic image display. Although these methods can present the appearance structure of historical and cultural heritage to a certain extent, it is difficult to deeply integrate the historical background and intrinsic value of cultural heritage. This static and non-interactive experience cannot allow users to truly feel the unique charm of cultural heritage, which in turn affects users' comprehensive understanding and cognition of its cultural connotation and historical background. In addition, the browsing method of ancient buildings in the existing technology is often difficult to mobilize the user's sense of immersion and substitution, which makes the display effect of cultural heritage poor in digital applications and cannot achieve the purpose of improving cultural communication and education.
[0050] Another significant defect in the existing technology is that it lacks specialized design for the uniqueness of historical and cultural heritage and fails to make full use of the display method of combining multiple forms of maps. In the existing traditional technology applications, it is mainly developed and designed for the visualization of modern buildings and general geographic information, and rarely optimizes the historical value and artistic characteristics of cultural heritage. Most of these technologies are based on standardized and universal data processing methods, without considering the specific background, regional characteristics and historical and cultural stories behind cultural heritage. Especially in terms of display methods, the existing technology fails to innovatively combine two-dimensional plane maps and three-dimensional stereo maps, resulting in users being unable to obtain a comprehensive perception of cultural heritage from an overall perspective, nor can they experience the rich expression of details from a local perspective. Although a simple bird's-eye view can provide a certain degree of spatial layout cognition, it lacks an in-depth display of cultural details; and using a panoramic map alone is difficult to show the overall pattern of cultural heritage. Therefore, the existing technology that fails to combine these two map display forms is difficult to effectively enhance the immersive experience of cultural heritage, limits the user's interactive depth and sense of participation in the process of browsing cultural heritage, and directly affects the communication and attractiveness of cultural heritage in a digital environment.
[0051] To solve the above problems, the present invention provides a method for reproducing a digital map of an ancient building, by displaying the modeled panoramic view of the ancient building through the front end to achieve a more realistic and intuitive immersive browsing experience. The present invention utilizes front-end technologies such as Three.js and Vue.js, and generates a panoramic image with a highly realistic effect through highly optimized three-dimensional modeling and rendering. Through this combination of technologies, the present invention not only achieves the display effect of combining a bird's-eye view map with a panoramic map, but also enhances the user's sense of interaction with the cultural heritage, breaking through the limitations of the existing technology in the digital display of cultural heritage.
[0052] The digital map reproduction method of ancient buildings described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the digital map reproduction method of the ancient building comprises the following steps:
[0053] Step S10: Acquire multi-dimensional data of the target ancient building, and aggregate the multi-dimensional data to obtain the multi-dimensional data of the target ancient building, wherein the multi-dimensional data includes spatial multi-dimensional data and architectural reference data.
[0054] like Figure 2As shown, the present invention aims to achieve an immersive browsing experience of typical ancient buildings of historical and cultural heritage through efficient three-dimensional modeling and front-end display technology. First, for the three-dimensional modeling process of ancient buildings, it is necessary to conduct field investigations on the target ancient buildings and collect multi-dimensional data of the target ancient buildings. The acquisition of multi-dimensional data of the target ancient buildings includes two aspects, namely field investigations and reference literature research, and the collection of architectural results and historical data. By aggregating these data together and classifying them, multi-dimensional data of the target ancient buildings can be obtained.
[0055] Specifically, the target ancient building is determined, and spatial multi-dimensional data of the target ancient building is obtained, wherein the spatial multi-dimensional data includes building structure data, spatial layout data, and terrain feature data; the architectural reference data of the target ancient building is obtained, and the architectural reference data is aggregated with the spatial multi-dimensional data to obtain multi-dimensional data of the target ancient building, wherein the architectural reference data includes historical documents of the target ancient building and drawings of the target ancient building.
[0056] Field investigation and data collection for ancient buildings: First, a comprehensive field investigation of ancient buildings should be conducted to collect spatial multi-dimensional data such as the actual building structure, spatial layout, and terrain characteristics of the target ancient buildings. At the same time, combined with a large number of historical documents, architectural drawings, and related research materials (i.e., the architectural reference data in the present invention), the architectural style and historical background of the target ancient buildings are studied in depth to ensure the authenticity and accuracy of the digital model. The data collection and document reference work at this stage provides a solid foundation for subsequent modeling, which can ensure that the final digital panorama reproduces the original appearance of the ancient buildings.
[0057] Step S20, obtaining the bird's-eye view data and the panoramic view data in the multi-dimensional data of the target ancient building, and constructing a panoramic three-dimensional model of the ancient building according to the bird's-eye view data and the panoramic view data.
[0058] The present invention extracts relevant bird's-eye view data and panoramic view data from the collected multi-dimensional data of the target ancient building. Its purpose is to construct a bird's-eye view and a panoramic view of the ancient building, and then perform three-dimensional modeling on the bird's-eye view and the panoramic view to generate a three-dimensional model of the target ancient building.
[0059] Specifically, extract the bird's-eye view data from the multi-dimensional data of the target ancient building, and use the preset three-dimensional modeling software to perform three-dimensional modeling processing on the bird's-eye view data to obtain a bird's-eye view model; extract the panoramic view data from the multi-dimensional data of the target ancient building, and use the preset three-dimensional modeling software to perform three-dimensional modeling processing on the panoramic view data to obtain a panoramic view model;
[0060] For the construction of bird's-eye view and panoramic view: after obtaining detailed data and reference materials, build a bird's-eye view according to the bird's-eye view data, and use professional 3D modeling software (such as rhino, Lumion and Blender software) to model the bird's-eye view. Similarly, the modeling process of the panoramic view is similar to that of the bird's-eye view. Afterwards, according to the actual building size, structural layout and description in the literature of the target ancient building, gradually build a three-dimensional panoramic model with high authenticity and detail expression (that is, the panoramic three-dimensional model of the ancient building in the present invention). In the modeling process, pay attention to the depiction of architectural details, materials, and light and shadow effects to ensure that every detail conforms to its corresponding historical characteristics.
[0061] Setting first rendering parameters, and performing a first rendering process on the bird's-eye view model according to the first rendering parameters to obtain a rendered bird's-eye view model, wherein the first rendering parameters include panoramic light brightness, shooting position, shooting angle, and camera focal length; Setting second rendering parameters, and performing a second rendering process on the panoramic model according to the second rendering parameters to obtain a rendered panoramic model, wherein the second rendering parameters include a user visual position, a rendering light source, a rendering style, and an object rendering material;
[0062] It is understandable that the construction process and initial rendering process of the bird's-eye view and panoramic view models are as follows: 1. Model preparation: Use Grasshopper in Rhino software to build the ancient building model, classify it by material, assign it to the material, and then export it. Import the exported file into Lumion software, add terrain, rivers, plants and other construction scenes (among which, the model construction method used for the bird's-eye view and the panoramic view is the same). 2. Initial rendering of the bird's-eye view: Set the panoramic light, shooting position, shooting angle, camera focal length and other parameters for rendering. 3. Rendering of the panorama: Combined with VR scene design, determine the position on the floor plan map, set the character viewpoint position, rendering light source, stylization, object material and other parameters for rendering.
[0063] The multiple sub-buildings in the rendered bird's-eye view model and the rendered panoramic view model are divided into sub-building areas to obtain a building area identifier corresponding to each sub-building; the rendered bird's-eye view model is associated with the rendered panoramic view model according to the building area identifier to obtain a panoramic three-dimensional model of the ancient building.
[0064] like Figure 3As shown, after constructing the panoramic three-dimensional model of the ancient building, the present invention will divide the bird's-eye view map and the panoramic map in the panoramic three-dimensional model of the ancient building into sub-building areas, because the target ancient building is an overall area, which includes many sub-buildings. The reason why the present invention divides the bird's-eye view map and the panoramic map is to facilitate users to more intuitively understand the building distribution in the target ancient building. At the same time, by setting a corresponding building area logo for each sub-building, it is convenient for subsequent users to browse the target ancient building directly by clicking on the building area logo of the sub-building in the bird's-eye view and directly jump to the panoramic view corresponding to the sub-building. Therefore, through the combination of the bird's-eye view and the panoramic view, not only can the user obtain the overall structure of the target ancient building more intuitively, but also can view the panoramic view of the sub-buildings in the target ancient building by clicking on the jump, giving the user an immersive feeling.
[0065] Step S30: Rendering the panoramic three-dimensional model of the ancient building to obtain a rendered three-dimensional model of the ancient building.
[0066] In order to improve the display effect of ancient buildings in the browser, the present invention constructs a front-end display system through Three.js and Vue.js. Among them, Three.js, as a 3D graphics library based on JavaScript, can not only render and optimize the panoramic three-dimensional model of the ancient building, but also effectively present the complex three-dimensional model in the Web browser, providing users with a smooth interactive experience and visual perception.
[0067] Specifically, a three-dimensional scene is created, and the panoramic three-dimensional model of the ancient building is placed in the three-dimensional scene to obtain an initial three-dimensional panorama of the ancient building; the user viewing angle and the user viewing position are determined, camera parameters are set according to the user viewing angle and the user viewing position, and the three-dimensional panorama of the ancient building is optimized and adjusted according to the camera parameters to obtain the three-dimensional panorama of the ancient building; a renderer is used to re-render the three-dimensional panorama of the ancient building to obtain a rendered three-dimensional model of the ancient building.
[0068] The present invention relates to the construction and optimization of the front-end display system: Based on the generated panoramic model (i.e., the panoramic three-dimensional model of the ancient building in the present invention), the present invention adopts front-end technologies such as Three.js (Three.js is a JavaScript library that renders images through WebGL, which is equivalent to calling library functions to create scenes) and Vue.js to develop and display the system. As a three-dimensional graphics library, Three.js is responsible for rendering the constructed model to the Web browser in real time, providing high-performance 3D graphics calculations and dynamic interactive effects. Vue.js is used to build the front-end user interface. Through its componentized development model, it improves the response speed and operational flexibility of the system, allowing users to freely select functions in the panoramic view through simple and intuitive operations, and deeply explore every detail of the ancient building.
[0069] It can be understood that in order to realize the display of the panorama, the present invention adopts the following technical solutions: 1. Create a three-dimensional scene (Scene): The scene is a container for all objects in the entire 3D environment, which is equivalent to a virtual world, laying the foundation for subsequent graphics rendering. 2. Select the viewpoint and confirm the visual position angle (Camera): Set the camera parameters according to the user's observation angle and position to determine the viewing angle of web browsing. Further, the present invention uses a right-handed coordinate system to accurately locate the viewpoint to ensure the accuracy of the viewing angle. Among them, the right-handed coordinate system is a method in establishing the coordinate axis, and the positive direction of the xyz axis of the coordinate system can be determined according to the right-handed spiral. 3. Add objects for observation: Add object elements to the three-dimensional scene so that they can be observed through perspective projection. The present invention uses a perspective projection camera, and its visual effect is a conical projection, which can truly reproduce the visual experience in the real world, that is, the effect of objects being far away and large near. 4. Render the scene (Renderer): Render the constructed scene through the renderer to generate the final three-dimensional image effect (that is, the rendered three-dimensional model of ancient buildings in the present invention), providing users with a highly realistic immersive visual experience.
[0070] Step S40: When an ancient building viewing instruction is received, a target sub-building panoramic view of the rendered ancient building three-dimensional model is determined according to the ancient building viewing instruction, and the target sub-building panoramic view is displayed.
[0071] The present invention adopts Vue.js in the process of constructing the front-end display system, wherein Vue.js ensures the response speed and operation convenience of the entire display platform through its flexible component design, so that users can freely switch perspectives during browsing and explore every detail of the target ancient building. In addition, in the design of the front-end display system, the bird's-eye view map is combined with the panoramic map, and more than 20 nodes are set on the bird's-eye view webpage to jump to the corresponding panoramic map, providing a richer user experience with multi-level perspectives, so that users can feel the historical charm and cultural connotation of the ancient buildings in the local details while obtaining the overall layout.
[0072] Specifically, when an ancient building viewing instruction issued by a user is received, the method jumps to the bird's-eye map in the rendered three-dimensional model of the ancient building according to the ancient building viewing instruction; obtains the click position of the user in the bird's-eye map, and determines the target sub-building identifier corresponding to the click position in the bird's-eye map; determines the target sub-building panoramic view of the panoramic map in the rendered three-dimensional model of the ancient building according to the target sub-building identifier, and displays the target sub-building panoramic view.
[0073] In order to better display the front-end display system set in the present invention to demonstrate the three-dimensional panoramic map of classical architecture, the present invention selects the Grand View Garden in "Dream of Red Mansions" as a display case. First, enter the home page through the browser of the front-end display system. The home page has 3 parts, namely the main page, the introduction of famous attractions and the introduction of works.
[0074] like Figure 4 As shown, in order to enable users to easily find all the functions of the page, a navigation bar icon is set in the upper left corner of the page. Click it to see the six components of the entire website. Users can click on any navigation box to jump to the corresponding part, and click the close icon in the upper left corner to close the navigation bar. There is an "Enter Map" button in the center of the main page. Clicking this button will jump to the bird's-eye view of the Grand View Garden, making it convenient for users to directly browse the map of the Grand View Garden (that is, by clicking on a specific location in the bird's-eye view, users can jump to the corresponding building panorama in the panorama).
[0075] The famous scenic spot introduction section has 12 famous scenic spots, including pictures and introductions, which can give users a simple understanding of the main components of the Grand View Garden. When the user moves the mouse to the picture frame, an icon will appear. Clicking the icon will take you to the panoramic view of the corresponding scenic spot.
[0076] like Figure 3As shown in the figure, when the user enters the bird's-eye view of the Grand View Garden, in order to enable the user to clearly and intuitively understand the specific location of each building or scene in the Grand View Garden, the present invention marks the 20 main scenic spots of the Grand View Garden at the corresponding positions of the bird's-eye view based on literature research. After clicking the "Enter Map" button on the homepage, you can enter the bird's-eye view page of the Grand View Garden. Clicking any location can jump to the panoramic view of the corresponding scenic spot, such as Figure 5 He Ru Figure 6 As shown ( Figure 5 and Figure 6 The upper right corner of the image is the icon provided in the present invention, and you can jump to the panoramic image by clicking it).
[0077] On the bird's-eye view page of the Grand View Garden, click on any scene, or on the home page, click on the small map icon on any scenic spot in the introduction of famous attractions to enter the panoramic view of the corresponding scene. This is to allow users to see the specific location of the scene in the Grand View Garden more clearly and at any time.
[0078] The panoramic page has scene introduction icons and voice playback icons, which allow users to learn about the historical allusions and related introductions of the scene, so as to further understand the historical stories described in "Dream of Red Mansions". Click the voice playback icon to play the introduction audio of the scene; slide the mouse to the scene introduction icon to display the introduction information of the scene.
[0079] The user can drag the viewing angle by left-clicking and moving the mouse. Rolling the mouse axis forward can zoom in on the panorama, and rolling the mouse axis backward can zoom out on the panorama, allowing the user to experience the scene up close and personal. When the user slides the mouse to the icon, the name of the next scene to jump to will be displayed. Click the scene name to jump to the next scene.
[0080] It can be seen that the present invention uniquely uses Three.js for 3D rendering, Vue.js for building a responsive user interface, CSS (Cascading Style Sheets, a computer language used to express HTML (Hyper Text Markup Language) and other file styles for style design, JavaScript for implementing complex interactive logic, and uses sophisticated 3D modeling technology to truly restore ancient buildings. This comprehensive application technology solution can provide a variety of user interaction functions, such as scene switching, clicking icons to display scene introductions and play audio, small map viewing, etc., so that users can explore every detail in depth.
[0081] For 3D panorama + Three.js rendering + Vue.js interface: the present invention uses Blender to model the scene and Three.js to render, and uses Vue.js to build a responsive user interface, which can provide a 3D display system with strong realism and excellent user experience.
[0082] For Three.js rendering + Vue.js interaction design + JavaScript logic control: 3D rendering is performed through Three.js, user interaction design is implemented through Vue.js, and complex interaction logic control is implemented through JavaScript, so that the system has efficient rendering capabilities and rich interactive functions.
[0083] For 3D panorama + rich user interaction design: the present invention uses Blender to model the scene, and through diversified user interaction design (such as scene switching, clicking icons to display scene introduction and play audio, small map viewing, etc.), combined with performance optimization technology (such as code structure optimization, rendering logic optimization, etc.), provides an efficient, smooth and immersive 3D display experience.
[0084] Regarding comprehensive application technology + digital display of cultural heritage: the present invention combines Three.js, Vue.js, CSS and JavaScript technologies for digital display, providing an innovative cultural scene reproduction and interactive experience solution.
[0085] In addition, in addition to Three.js, the present invention can also use other WebGL (Web Graphics Library, a 3D drawing protocol framework or 3D rendering library (such as Babylon.js, PlayCanvas, etc.) to realize 3D scene creation and rendering. In addition to Vue.js, other front-end frameworks (such as React, Angular, etc.) can also be used to build user interfaces and realize user interaction. In addition, different technology stacks (such as Unity WebGL, Unreal Engine, etc.) can also be used to realize similar panoramic display systems; in terms of optimizing details, different detail expressions (such as using LOD technology for multi-level detail rendering, using Web Workers for parallel computing, etc.) may be used to improve system performance and user experience.
[0086] Furthermore, if Figure 7 As shown, based on the above-mentioned digital map reproduction method of ancient buildings, the present invention also provides a digital map reproduction system of ancient buildings, wherein the digital map reproduction system of ancient buildings comprises:
[0087] A multi-dimensional data acquisition module 51 is used to acquire multi-dimensional data of a target ancient building, and aggregate the multi-dimensional data to obtain multi-dimensional data of the target ancient building;
[0088] A panoramic three-dimensional model building module 52 is used to obtain the bird's-eye view data and the panoramic view data in the multi-dimensional data of the target ancient building, and to build a panoramic three-dimensional model of the ancient building according to the bird's-eye view data and the panoramic view data;
[0089] A three-dimensional model rendering module 53 is used to render the panoramic three-dimensional model of the ancient building to obtain a rendered three-dimensional model of the ancient building;
[0090] The target panoramic image display module 54 is used to determine the target panoramic image of the rendered ancient building three-dimensional model according to the ancient building viewing instruction when receiving the ancient building viewing instruction, and display the target panoramic image.
[0091] Furthermore, if Figure 8 As shown, based on the above-mentioned digital map reproduction method and system of ancient buildings, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 8 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0092] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal, etc. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a digital map reproduction program 40 of an ancient building, and the digital map reproduction program 40 of the ancient building can be executed by the processor 10, thereby realizing the digital map reproduction method of the ancient building in the present application.
[0093] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the digital map reproduction method of the ancient building.
[0094] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0095] In one embodiment, when the processor 10 executes the ancient building digital map reproduction program 40 in the memory 20, the steps of the ancient building digital map reproduction method are implemented.
[0096] In summary, the present invention provides a digital map reproduction method, system and terminal for ancient buildings, the method comprising: obtaining multi-dimensional data of a target ancient building, and performing aggregation processing on the multi-dimensional data to obtain the multi-dimensional data of the target ancient building; obtaining bird's-eye view data and panoramic view data in the multi-dimensional data of the target ancient building, and constructing a panoramic three-dimensional model of the ancient building according to the bird's-eye view data and the panoramic view data; rendering the panoramic three-dimensional model of the ancient building to obtain a rendered three-dimensional model of the ancient building; when an ancient building viewing instruction is received, determining the target sub-building panoramic view of the rendered ancient building three-dimensional model according to the ancient building viewing instruction, and displaying the target sub-building panoramic view. The present invention obtains the multi-dimensional data of the ancient building, and constructs a bird's-eye view and a panoramic view according to the multi-dimensional data, and then performs three-dimensional modeling and rendering on the bird's-eye view and the panoramic view, so as to obtain the three-dimensional model of the ancient building. The modeled three-dimensional model of the ancient building will be displayed through the front end, which effectively improves the display effect of the ancient building. At the same time, it can also enable users to have a more real and intuitive browsing experience for the ancient building, and enhance the sense of interaction between the user and the ancient building.
[0097] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0098] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0099] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for reproducing a digital map of an ancient building, characterized in that: The digital map reproduction method of the ancient building comprises: Acquire multi-dimensional data of the target ancient building, and aggregate the multi-dimensional data to obtain the multi-dimensional data of the target ancient building; Acquire bird's-eye view data and panoramic view data from the multi-dimensional data of the target ancient building, and construct a panoramic three-dimensional model of the ancient building according to the bird's-eye view data and the panoramic view data; Rendering the panoramic three-dimensional model of the ancient building to obtain a rendered three-dimensional model of the ancient building; When an ancient building viewing instruction is received, a target sub-building panoramic view of the rendered ancient building three-dimensional model is determined according to the ancient building viewing instruction, and the target sub-building panoramic view is displayed.
2. The method for reproducing the digital map of ancient buildings according to claim 1, characterized in that: The multi-dimensional data includes spatial multi-dimensional data and architectural reference data; The step of obtaining multi-dimensional data of the target ancient building and performing aggregation processing on the multi-dimensional data to obtain the multi-dimensional data of the target ancient building specifically includes: Determine a target ancient building, and obtain spatial multi-dimensional data of the target ancient building, wherein the spatial multi-dimensional data includes building structure data, spatial layout data, and terrain feature data; Acquire architectural reference data of the target ancient building, and aggregate the architectural reference data with the spatial multi-dimensional data to obtain multi-dimensional data of the target ancient building, wherein the architectural reference data includes historical documents of the target ancient building and drawings of the target ancient building.
3. The method for reproducing the digital map of ancient buildings according to claim 1, characterized in that: The step of acquiring the bird's-eye view data and the panoramic view data from the multi-dimensional data of the target ancient building, and constructing a panoramic three-dimensional model of the ancient building according to the bird's-eye view data and the panoramic view data, specifically includes: Extracting bird's-eye view data from the multi-dimensional data of the target ancient building, and performing three-dimensional modeling processing on the bird's-eye view data using a preset three-dimensional modeling software to obtain a bird's-eye view model; Extracting panoramic data from the multi-dimensional data of the target ancient building, and performing three-dimensional modeling processing on the panoramic data using the preset three-dimensional modeling software to obtain a panoramic model; The bird's-eye view model and the panoramic view model are initially rendered to obtain a panoramic three-dimensional model of the ancient building.
4. The method for reproducing the digital map of ancient buildings according to claim 3, characterized in that: The initial rendering process of the bird's-eye view model and the panoramic view model to obtain a panoramic three-dimensional model of the ancient building specifically includes: Setting first rendering parameters, and performing first rendering processing on the bird's-eye view model according to the first rendering parameters to obtain a rendered bird's-eye view model, wherein the first rendering parameters include panoramic light brightness, shooting position, shooting angle, and camera focal length; Setting second rendering parameters, and performing second rendering processing on the panoramic model according to the second rendering parameters to obtain a rendered panoramic model, wherein the second rendering parameters include a user visual position, a rendering light source, a rendering style, and an object rendering material; The rendered bird's-eye view model and the rendered panoramic view model are associated with each other to obtain a panoramic three-dimensional model of the ancient building.
5. The method for reproducing the digital map of ancient buildings according to claim 4, characterized in that: The step of associating the rendered bird's-eye view model with the rendered panoramic view model to obtain a panoramic three-dimensional model of the ancient building specifically includes: Dividing the plurality of sub-buildings in the rendered bird's-eye view model and the rendered panoramic view model into sub-building areas to obtain a building area identifier corresponding to each of the sub-buildings; The rendered bird's-eye view model is associated with the rendered panoramic view model according to the building area identifier to obtain a panoramic three-dimensional model of the ancient building.
6. The method for reproducing a digital map of an ancient building according to claim 1, characterized in that: The rendering process of the panoramic three-dimensional model of the ancient building to obtain the rendered three-dimensional model of the ancient building specifically includes: Creating a three-dimensional scene, and placing the three-dimensional model of the ancient building panorama in the three-dimensional scene to obtain an initial three-dimensional panorama of the ancient building; Determine a user viewing angle and a user viewing position, set camera parameters according to the user viewing angle and the user viewing position, and optimize and adjust the three-dimensional panoramic view of the ancient building according to the camera parameters to obtain the three-dimensional panoramic view of the ancient building; A renderer is used to re-render the three-dimensional panorama of the ancient building to obtain a rendered three-dimensional model of the ancient building.
7. The method for reproducing a digital map of an ancient building according to claim 1, characterized in that: When receiving the ancient building viewing instruction, determining the target sub-building panoramic view of the rendered ancient building three-dimensional model according to the ancient building viewing instruction, and displaying the target sub-building panoramic view, specifically includes: When receiving an ancient building viewing instruction issued by a user, jumping to the bird's-eye view map in the rendered ancient building three-dimensional model according to the ancient building viewing instruction; Acquire a click position in the bird's-eye view map clicked by a user, and determine a target sub-building identifier corresponding to the click position in the bird's-eye view map; The target sub-building panoramic image of the panoramic map in the rendered three-dimensional model of the ancient building is determined according to the target sub-building identifier, and the target sub-building panoramic image is displayed.
8. A digital map reproduction system for ancient buildings, characterized in that: The digital map reproduction system of the ancient building comprises: A multi-dimensional data acquisition module is used to acquire multi-dimensional data of a target ancient building, and aggregate the multi-dimensional data to obtain multi-dimensional data of the target ancient building; A panoramic three-dimensional model building module is used to obtain the bird's-eye view data and the panoramic view data in the multi-dimensional data of the target ancient building, and to build a panoramic three-dimensional model of the ancient building according to the bird's-eye view data and the panoramic view data; A three-dimensional model rendering module is used to render the panoramic three-dimensional model of the ancient building to obtain a rendered three-dimensional model of the ancient building; The target panoramic image display module is used to determine the target panoramic image of the rendered ancient building three-dimensional model according to the ancient building viewing instruction when receiving the ancient building viewing instruction, and display the target panoramic image.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a digital map reproduction program of ancient buildings stored in the memory and executable on the processor. When the digital map reproduction program of ancient buildings is executed by the processor, the steps of the digital map reproduction method of ancient buildings as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a digital map reproduction program for ancient buildings, and when the digital map reproduction program for ancient buildings is executed by a processor, the steps of the digital map reproduction method for ancient buildings as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method for quickly surveying and mapping historic building in high-accuracy non-contact mode
CN105627992A
Image fusion splicing method and system of fisheye camera, and electronic equipment
CN116757935A
Image display control system, image display control method, and image display control program
US20130063427A1