CN116863054A - Method, device, equipment and storage medium for generating three-dimensional visual scene - Google Patents
Method, device, equipment and storage medium for generating three-dimensional visual scene Download PDFInfo
- Publication number
- CN116863054A CN116863054A CN202310884215.3A CN202310884215A CN116863054A CN 116863054 A CN116863054 A CN 116863054A CN 202310884215 A CN202310884215 A CN 202310884215A CN 116863054 A CN116863054 A CN 116863054A
- Authority
- CN
- China
- Prior art keywords
- data
- dimensional
- dimensional visual
- visual
- screen panel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000000007 visual effect Effects 0.000 title claims abstract description 254
- 238000000034 method Methods 0.000 title claims abstract description 83
- 238000000547 structure data Methods 0.000 claims abstract description 91
- 230000000694 effects Effects 0.000 claims abstract description 20
- 238000012800 visualization Methods 0.000 claims description 53
- 238000009877 rendering Methods 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 description 14
- 238000004891 communication Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 9
- 230000006835 compression Effects 0.000 description 8
- 238000007906 compression Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 230000003068 static effect Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000013079 data visualisation Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000001747 exhibiting effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application provides a method, a device, equipment and a storage medium for generating a three-dimensional visual scene, wherein the method comprises the steps of formatting data in a three-dimensional visual screen panel to obtain three-dimensional visual model data and graphic structure data; binding the three-dimensional visual model data and the graphic structure data, generating a visual scene and displaying. By the method, the effect of efficiently storing and displaying the complex page elements of the three-dimensional visual screen panel can be achieved.
Description
Technical Field
The present application relates to the field of three-dimensional visual scene rendering, and in particular, to a method, apparatus, device, and storage medium for generating a three-dimensional visual scene.
Background
Currently, large screen panels are widely used in the fields of data visualization, smart cities, traffic monitoring, conference presentation, etc., and panel contents include complex pages formed by combining various data and elements. In the traditional storage and display method, a plurality of data and elements are generally stored in a database at the same time, and the stored plurality of data and elements are directly acquired to generate a visual scene during display.
The method has obvious disadvantages in the aspects of data storage and visual scene display efficiency, and can only generate the visual scene according to the stored data and elements, and has limitations.
Therefore, how to realize efficient storage and display of complex page elements of the three-dimensional visual screen panel is a technical problem to be solved.
Disclosure of Invention
The embodiment of the application aims to provide a method for generating a three-dimensional visual scene, and the technical scheme of the embodiment of the application can achieve the effect of efficiently storing and displaying complex page elements of a three-dimensional visual screen panel.
In a first aspect, an embodiment of the present application provides a method for generating a three-dimensional visual scene, including formatting data in a three-dimensional visual screen panel to obtain three-dimensional visual model data and graphic structure data; binding the three-dimensional visual model data and the graphic structure data, generating a visual scene and displaying.
In the embodiment of the application, the three-dimensional visual model data and the graphic structure data in the three-dimensional visual screen panel can be separated by formatting the data in the three-dimensional visual screen panel, and then the separated two data are bound to generate the visual scene, so that the effect of efficiently storing and displaying the complex page elements of the three-dimensional visual screen panel can be achieved.
In some embodiments, formatting data in a three-dimensional visualization screen panel to obtain three-dimensional visualization model data and graphics structure data includes: separating a three-dimensional visual model and page elements in the three-dimensional visual screen panel; and converting the three-dimensional visual model and the page element into three-dimensional visual model data and graphic structure data in a preset format.
In the embodiment of the application, through separating and format processing of the data in the three-dimensional visual screen panel, the independent storage and analysis of the follow-up three-dimensional visual model data and the graphic structure data can be convenient, and the effect of high-efficiency concurrent rendering and displaying at the same time can be realized.
In some embodiments, converting the three-dimensional visualization model and page elements into three-dimensional visualization model data and graphic structure data in a preset format includes: classifying the page elements according to the types of the page elements to obtain multiple types of page elements; respectively extracting attribute information of multiple types of page elements, wherein the attribute information comprises internal constitution and arrangement modes of the page elements; and respectively converting the three-dimensional visual model and the attribute information of the multi-class page elements into three-dimensional visual model data and graphic structure data.
In the embodiment of the application, the attribute information can be respectively extracted after the page elements are classified, and the three-dimensional visual model data and the graphic structure data are obtained through the conversion of the attribute information, so that the attribute information can be conveniently stored, rendered and displayed later.
In some embodiments, binding three-dimensional visualization model data and graphical structure data, generating and exposing a visualization scene, comprising: according to the requirements of a user, three-dimensional visual model data and one or more corresponding graphs are obtained from a database, and a target viewport selected by the user is determined; binding the three-dimensional visualization model data with one or more graphics; and taking the target visual port as a reference, and synchronously and asynchronously loading the three-dimensional visual model and one or more graphs in the three-dimensional visual screen panel to obtain a visual scene.
In the embodiment of the application, the viewport can be selected according to the user requirement, so that the visual scene of the user requirement is generated under the viewport, the viewing of the user can be facilitated, and the user experience is improved.
In some embodiments, after formatting the data in the three-dimensional visualization screen panel to obtain the three-dimensional visualization model data and the graphical structure data, further comprising: and respectively allocating a unique identifier to each data in the three-dimensional visual model data and the graphic structure data and respectively storing the unique identifiers in a database so as to obtain the three-dimensional visual model data or the graphic structure data through the unique identifiers when the visual scene is generated.
In the embodiment of the application, the unique identifier can be allocated to the model data, and when the visual model is generated, the three-dimensional visual model or the graphic structure data can be quickly searched through the unique identifier.
In some embodiments, after formatting the data in the three-dimensional visualization screen panel to obtain the three-dimensional visualization model data and the graphical structure data, further comprising: respectively storing the three-dimensional visual model and the graphic structure data in independent fields of a three-dimensional visual screen panel data table; and carrying out compression processing on the data in the three-dimensional visual screen panel data table according to the user requirement, and respectively storing the data in a database.
In the embodiment of the application, the three-dimensional visual model and the graphic structure data can be stored through the independent fields of the three-dimensional visual screen panel data table, and when the visual port selected by the user generates the visual scene, the independent three-dimensional visual model and the graphic structure data can be selected for binding, so that the visual scene required by the user is generated.
In some embodiments, after binding the three-dimensional visualization model data and the graphic structure data, generating and presenting the visualization scene, further comprises: and according to the requirements of the user, adjusting the rendering viewport, rendering parameters and animation effect of the visual scene, and generating the target visual scene again.
In the embodiment of the application, the visual port, the animation effect and the rendering parameters can be selected according to the requirements of the user, the visual scene meeting the requirements of the user is generated, and the use experience of the user is improved.
In a second aspect, an embodiment of the present application provides an apparatus for generating a three-dimensional visual scene, including:
the formatting module is used for formatting the data in the three-dimensional visual screen panel to obtain three-dimensional visual model data and graphic structure data;
the generation module is used for binding the three-dimensional visual model data and the graphic structure data, generating a visual scene and displaying the visual scene.
Optionally, the formatting module is specifically configured to:
separating a three-dimensional visual model and page elements in the three-dimensional visual screen panel;
and converting the three-dimensional visual model and the page element into three-dimensional visual model data and graphic structure data in a preset format.
Optionally, the formatting module is specifically configured to:
classifying the page elements according to the types of the page elements to obtain multiple types of page elements;
respectively extracting attribute information of multiple types of page elements, wherein the attribute information comprises internal constitution and arrangement modes of the page elements;
and respectively converting the three-dimensional visual model and the attribute information of the multi-class page elements into three-dimensional visual model data and graphic structure data.
Optionally, the generating module is specifically configured to:
according to the requirements of a user, three-dimensional visual model data and one or more corresponding graphs are obtained from a database, and a target viewport selected by the user is determined;
binding the three-dimensional visualization model data with one or more graphics;
and taking the target visual port as a reference, and synchronously and asynchronously loading the three-dimensional visual model and one or more graphs in the three-dimensional visual screen panel to obtain a visual scene.
Optionally, the apparatus further includes:
the first storage module is used for respectively distributing a unique identifier to each data in the three-dimensional visual model data and the graphic structure data and respectively storing the unique identifier in the database after the formatting module formats the data in the three-dimensional visual screen panel to obtain the three-dimensional visual model data and the graphic structure data, so that the three-dimensional visual model data or the graphic structure data can be acquired through the unique identifiers when a visual scene is generated.
Optionally, the apparatus further includes:
the second storage module is used for respectively storing the three-dimensional visual model and the graphic structure data in independent fields of a three-dimensional visual screen panel data table after the formatting module formats the data in the three-dimensional visual screen panel to obtain the three-dimensional visual model data and the graphic structure data;
and carrying out compression processing on the data in the three-dimensional visual screen panel data table according to the user requirement, and respectively storing the data in a database.
Optionally, the apparatus further includes:
the adjustment module is used for adjusting the rendering viewport, rendering parameters and animation effect of the visual scene according to the requirements of a user after the binding module binds the three-dimensional visual model data and the graphic structure data to generate the visual scene and displays the visual scene, and generating the target visual scene again.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing computer readable instructions which, when executed by the processor, perform the steps of the method as provided in the first aspect above.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method as provided in the first aspect above.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating a three-dimensional visual scene provided by an embodiment of the application;
FIG. 2 is a flow chart of an implementation method for generating a three-dimensional visual scene according to an embodiment of the present application;
FIG. 3 is a schematic block diagram of an apparatus for generating a three-dimensional visual scene according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus for generating a three-dimensional visual scene according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Some of the terms involved in the embodiments of the present application will be described first to facilitate understanding by those skilled in the art.
Terminal equipment: the mobile terminal, stationary terminal or portable terminal may be, for example, a mobile handset, a site, a unit, a device, a multimedia computer, a multimedia tablet, an internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communications system device, a personal navigation device, a personal digital assistant, an audio/video player, a digital camera/camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a game device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It is also contemplated that the terminal device can support any type of interface (e.g., wearable device) for the user, etc.
And (3) a server: the cloud server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, basic cloud computing services such as big data and artificial intelligent platforms and the like.
JSON (JavaScript Object Notation, JS object profile) is a lightweight data exchange format. It stores and presents data in a text format that is completely independent of the programming language based on a subset of ECMAScript (European Computer Manufacturers Association, js specification by the european computer institute). The compact and clear hierarchical structure makes JSON an ideal data exchange language. Is easy to read and write by people, is easy to analyze and generate by machines, and effectively improves the network transmission efficiency.
Three-dimensional visualization: is a tool for displaying and describing and understanding various geological phenomenon characteristics of underground and ground, and is widely applied to all fields of geology and geophysics. Three-dimensional visualization is a means of rendering and understanding models, a representation of the data volume, and not a simulation technique. The method can utilize a large amount of data, check the continuity of the data, identify the authenticity of the data, find and propose useful anomalies, provide a useful tool for analyzing, understanding and repeating the data, and play a bridge role for multidisciplinary communication collaboration.
The method is applied to the scene rendered by the three-dimensional visual scene, wherein the specific scene is a large-screen page element and a three-dimensional visual model which are separated, the two parts of data are stored and analyzed independently, and finally the visual scene is generated by binding.
Currently, large screen panels are widely used in the fields of data visualization, smart cities, traffic monitoring, conference presentation, etc., and panel contents include complex pages formed by combining various data and elements. In the traditional storage and display method, a plurality of data and elements are generally stored in a database at the same time, and the stored plurality of data and elements are directly acquired to generate a visual scene during display. The method has obvious disadvantages in the aspects of data storage and visual scene display efficiency, and can only generate the visual scene according to the stored data and elements, and has limitations.
According to the method, three-dimensional visual model data and graphic structure data are obtained by formatting data in a three-dimensional visual screen panel; binding the three-dimensional visual model data and the graphic structure data, generating a visual scene and displaying. By carrying out formatting processing on the data in the three-dimensional visual screen panel, the three-dimensional visual model data and the graphic structure data in the three-dimensional visual screen panel can be separated, then the separated two data are bound to generate a visual scene, and the effect of efficiently storing and displaying complex page elements of the three-dimensional visual screen panel can be achieved.
In the embodiment of the application, the execution body can generate three-dimensional visual scene equipment in the three-dimensional visual scene generation system, and in practical application, the three-dimensional visual scene equipment can be electronic equipment such as terminal equipment, a server and the like, and the three-dimensional visual scene equipment is not limited.
A method of generating a three-dimensional visual scene according to an embodiment of the present application is described in detail below with reference to fig. 1.
Referring to fig. 1, fig. 1 is a flowchart of a method for generating a three-dimensional visual scene according to an embodiment of the present application, where the method for generating a three-dimensional visual scene shown in fig. 1 includes:
step 110: and formatting the data in the three-dimensional visual screen panel to obtain three-dimensional visual model data and graphic structure data.
The three-dimensional visual screen panel can be a visual large screen of a city street, a visual large screen of traffic monitoring, a visual large screen when a conference is carried out, and the like. The data in the three-dimensional visualization screen panel includes page elements in the three-dimensional visualization screen panel and a three-dimensional visualization model, which may be a three-dimensional building model, a three-dimensional street model, a three-dimensional courtyard model, a three-dimensional indoor model, and the like. The page elements include charts, reports, tables, graphics, text boxes, pictures, etc. appearing in the screen panel, and the three-dimensional visualization model data includes data of each component in the three-dimensional visualization model, for example, data information of component positions, specifications, colors, etc. The graphic structure data includes real-time data, static elements and other data, and may further include attribute information of page elements, for example, element attributes such as font size of a header component, picture address of a picture component, and may further include information such as arrangement manner among page elements and position layout on a page.
In some embodiments of the present application, formatting data in a three-dimensional visualization screen panel to obtain three-dimensional visualization model data and graphic structure data includes: separating a three-dimensional visual model and page elements in the three-dimensional visual screen panel; and converting the three-dimensional visual model and the page element into three-dimensional visual model data and graphic structure data in a preset format.
In the process, the data in the three-dimensional visual screen panel is separated and processed in format, so that independent storage and analysis of the follow-up three-dimensional visual model data and graphic structure data can be facilitated, and the effect of high-efficiency concurrent rendering and displaying at the same time can be achieved.
The preset format may be JSON format or other formats, which is specifically set according to the user requirement.
In some embodiments of the present application, converting a three-dimensional visualization model and page elements into three-dimensional visualization model data and graphic structure data in a preset format includes: classifying the page elements according to the types of the page elements to obtain multiple types of page elements; respectively extracting attribute information of multiple types of page elements, wherein the attribute information comprises internal constitution and arrangement modes of the page elements; and respectively converting the three-dimensional visual model and the attribute information of the multi-class page elements into three-dimensional visual model data and graphic structure data.
In the process, the method and the device can respectively extract the attribute information after classifying the page elements, and obtain the three-dimensional visual model data and the graphic structure data through the conversion of the attribute information so as to facilitate the follow-up storage, rendering and display of the attribute information.
The page element types comprise charts, reports, tables, graphs, text boxes, pictures and the like. The internal composition of the page element comprises page display effect, page material and the like.
In some embodiments of the present application, after formatting the data in the three-dimensional visualization screen panel to obtain the three-dimensional visualization model data and the graphic structure data, the method further comprises: and respectively allocating a unique identifier to each data in the three-dimensional visual model data and the graphic structure data and respectively storing the unique identifiers in a database so as to obtain the three-dimensional visual model data or the graphic structure data through the unique identifiers when the visual scene is generated.
In the process, the application can allocate the unique identifier to the model data, and can quickly search the three-dimensional visual model or the graphic structure data through the unique identifier when the visual model is generated.
Wherein the unique identifier is used to tag the three-dimensional visualization model and the graphical structure data. During the storage process, each three-dimensional model data or graphic structure data is allocated with a unique identifier stored in a database so as to be quickly searched and acquired when the display is needed.
In some embodiments of the present application, after formatting the data in the three-dimensional visualization screen panel to obtain the three-dimensional visualization model data and the graphic structure data, the method further comprises: respectively storing the three-dimensional visual model and the graphic structure data in independent fields of a three-dimensional visual screen panel data table; and carrying out compression processing on the data in the three-dimensional visual screen panel data table according to the user requirement, and respectively storing the data in a database.
In the process, the three-dimensional visual model and the graphic structure data can be stored through the independent fields of the three-dimensional visual screen panel data table, and when the visual port selected by the user generates a visual scene, the independent three-dimensional visual model and the graphic structure data can be selected for binding, so that the visual scene required by the user is generated.
Wherein, the basic information of the large screen panel for visual display and the attribute information of the large screen panel can be respectively stored in the independent fields of the three-dimensional large screen panel data table in the database, and the data information to be processed is compressed by HPACK (compression algorithm) according to the requirement.
Step 120: binding the three-dimensional visual model data and the graphic structure data, generating a visual scene and displaying.
In one embodiment, the user may select all data in the visual model data, may select part of the data to bind, may select all data in the graphic structure data, may select part of the graphic structure data to bind, and may further render according to the selected three-dimensional visual model data and the graphic structure data to generate the visual scene.
In some embodiments of the present application, binding three-dimensional visualization model data and graphics structure data, generating and exposing a visualization scene, comprising: according to the requirements of a user, three-dimensional visual model data and one or more corresponding graphs are obtained from a database, and a target viewport selected by the user is determined; binding the three-dimensional visualization model data with one or more graphics; and taking the target visual port as a reference, and synchronously and asynchronously loading the three-dimensional visual model and one or more graphs in the three-dimensional visual screen panel to obtain a visual scene.
According to the visual port generation method and device, the visual port can be selected according to the user requirements, and then the visual scene of the user requirements is generated under the visual port, so that the visual port generation method and device can be convenient for the user to watch, and the user experience is improved.
The target view port represents the angle of a user watching the three-dimensional visual model, and different view ports are represented by different three-dimensional visual model angles displayed in the three-dimensional visual screen panel.
In some embodiments of the present application, after binding the three-dimensional visualization model data and the graphic structure data, generating and exhibiting the visualization scene, the method further includes: and according to the requirements of the user, adjusting the rendering viewport, rendering parameters and animation effect of the visual scene, and generating the target visual scene again.
In the process, the visual port, the animation effect and the rendering parameters can be selected according to the requirements of the user, the visual scene meeting the requirements of the user is generated, and the use experience of the user is improved.
Wherein the rendering parameters represent parameters of rendering the three-dimensional visualization model, parameters of rendering the graphic structure data, and the like. When the content display page of the large screen panel is displayed by using different view ports, rendering modes and animation effects in the scene, corresponding models or graphics are obtained from a database according to the needs and selections of a user and are displayed on the large screen panel, meanwhile, the three-dimensional visual model and large screen page elements are rendered simultaneously by processing the three-dimensional spatial layout and the animation effects of the models or graphics, the visual effect and the interactivity of the page are enhanced, when the user interacts with the page elements, corresponding processing programs are called according to the operation and feedback of the user, the data in the database are updated and processed, and the display result is updated in real time.
In the process shown in fig. 1, the method obtains three-dimensional visual model data and graphic structure data by formatting data in a three-dimensional visual screen panel; binding the three-dimensional visual model data and the graphic structure data, generating a visual scene and displaying. By carrying out formatting processing on the data in the three-dimensional visual screen panel, the three-dimensional visual model data and the graphic structure data in the three-dimensional visual screen panel can be separated, then the separated two data are bound to generate a visual scene, and the effect of efficiently storing and displaying complex page elements of the three-dimensional visual screen panel can be achieved.
The following describes in detail an implementation method for generating a three-dimensional visual scene according to an embodiment of the present application with reference to fig. 2.
Referring to fig. 2, fig. 2 is a flowchart of an implementation method for generating a three-dimensional visualized scene according to an embodiment of the present application, where the implementation method for generating a three-dimensional visualized scene shown in fig. 2 includes:
step 210: separating the three-dimensional model and the large screen page element.
Specific: the three-dimensional visual model in the three-dimensional visual large screen panel is separated from the large screen page elements, for example, the large screen panel of a command center of a smart city displays various real-time data and indexes of the city and the three-dimensional model display of the city. The panel is divided into a plurality of regions, each region being formed by combining real-time data and static elements. The number of elements in each region is different, the layout mode is also different, and corresponding attribute information needs to be contained. The three-dimensional model in the large screen and the real-time data and static element components on the large screen can be separated.
Step 220: and classifying the page elements and extracting structural information of the large screen panel.
Specific: the page elements are classified and attribute information of the page elements is extracted, for example, the page elements are classified from two types of real-time data and static elements, and internal attributes of the page elements are respectively extracted, wherein the internal attributes comprise element attributes such as font size of a title component, picture address of a picture component and the like, arrangement modes among the page elements, position layout on a page and the like.
Step 230: converted into a JSON format three-dimensional model data or graphic structure data.
Specific: three-dimensional model data, page elements, real-time data, static elements and attribute information are converted into data in JSON format.
Step 240: whether it is a complex page element.
Specific: judging whether the page element data is a complex page element, wherein the page element data can be judged according to the number or the type of the page elements, when the number or the type of the page elements reaches a preset number or a preset type, the page element data is considered to be the complex page element, when the page element data is judged to be the complex page element, the step 250 is entered, and when the page element data is judged not to be the complex page element, the step 260 is entered.
Step 250: the HPACK compression algorithm performs process compression.
Specific: and compressing the page element data and the three-dimensional model data through an HPACK compression algorithm to obtain compressed data.
Step 260: and storing independent fields in a database.
Specific: the compressed three-dimensional model data and the graphic structure data are respectively stored in independent fields of a three-dimensional large screen panel data table in a database, and unique identifiers are allocated.
Step 270: binding element data, attribute information and three-dimensional model data in a database.
Specific: when the element data and the attribute data of the large screen panel are bound with the three-dimensional model data, a visual scene can be formed.
Step 280: the visual scene is presented using different viewports, rendering modes and animation effects.
Specific: the dynamic display of the scene can be realized by using methods such as view port switching, rendering mode switching, animation effect switching and the like. Because the three-dimensional model and the page elements on the large screen panel are respectively stored in the database, the three-dimensional visualization model of the smart city and various real-time data and indexes can be synchronously and asynchronously loaded during page rendering.
In addition, the specific method and steps shown in fig. 2 may refer to the method shown in fig. 1, and will not be described in detail herein.
The method of generating a three-dimensional visual scene is described above by means of fig. 1, and the apparatus for generating a three-dimensional visual scene is described below in connection with fig. 3 to 4.
Referring to fig. 3, a schematic block diagram of an apparatus 300 for generating a three-dimensional visual scene according to an embodiment of the present application is shown, where the apparatus 300 may be a module, a program segment, or a code on an electronic device. The apparatus 300 corresponds to the embodiment of the method of fig. 1 described above, and is capable of performing the steps involved in the embodiment of the method of fig. 1. Specific functions of the apparatus 300 will be described below, and detailed descriptions thereof will be omitted herein as appropriate to avoid redundancy.
Optionally, the apparatus 300 includes:
a formatting module 310, configured to format data in the three-dimensional visualization screen panel to obtain three-dimensional visualization model data and graphic structure data;
the generating module 320 is configured to bind the three-dimensional visual model data and the graphic structure data, generate a visual scene, and display the visual scene.
Optionally, the formatting module is specifically configured to:
separating a three-dimensional visual model and page elements in the three-dimensional visual screen panel; and converting the three-dimensional visual model and the page element into three-dimensional visual model data and graphic structure data in a preset format.
Optionally, the formatting module is specifically configured to:
classifying the page elements according to the types of the page elements to obtain multiple types of page elements; respectively extracting attribute information of multiple types of page elements, wherein the attribute information comprises internal constitution and arrangement modes of the page elements; and respectively converting the three-dimensional visual model and the attribute information of the multi-class page elements into three-dimensional visual model data and graphic structure data.
Optionally, the generating module is specifically configured to:
according to the requirements of a user, three-dimensional visual model data and one or more corresponding graphs are obtained from a database, and a target viewport selected by the user is determined; binding the three-dimensional visualization model data with one or more graphics; and taking the target visual port as a reference, and synchronously and asynchronously loading the three-dimensional visual model and one or more graphs in the three-dimensional visual screen panel to obtain a visual scene.
Optionally, the apparatus further includes:
the first storage module is used for respectively distributing a unique identifier to each data in the three-dimensional visual model data and the graphic structure data and respectively storing the unique identifier in the database after the formatting module formats the data in the three-dimensional visual screen panel to obtain the three-dimensional visual model data and the graphic structure data, so that the three-dimensional visual model data or the graphic structure data can be acquired through the unique identifiers when a visual scene is generated.
Optionally, the apparatus further includes:
the second storage module is used for respectively storing the three-dimensional visual model and the graphic structure data in independent fields of a three-dimensional visual screen panel data table after the formatting module formats the data in the three-dimensional visual screen panel to obtain the three-dimensional visual model data and the graphic structure data; and carrying out compression processing on the data in the three-dimensional visual screen panel data table according to the user requirement, and respectively storing the data in a database.
Optionally, the apparatus further includes:
the adjustment module is used for adjusting the rendering viewport, rendering parameters and animation effect of the visual scene according to the requirements of a user after the binding module binds the three-dimensional visual model data and the graphic structure data to generate the visual scene and displays the visual scene, and generating the target visual scene again.
Referring to fig. 4, a schematic structural diagram of an apparatus for generating a three-dimensional visual scene according to an embodiment of the present application may include a memory 410 and a processor 420. Optionally, the apparatus may further include: a communication interface 430 and a communication bus 440. The apparatus corresponds to the embodiment of the method of fig. 1 described above, and is capable of performing the steps involved in the embodiment of the method of fig. 1, and specific functions of the apparatus may be found in the following description.
In particular, the memory 410 is used to store computer readable instructions.
The processor 420, which processes the readable instructions stored in the memory, is capable of performing the various steps in the method of fig. 1.
Communication interface 430 is used for signaling or data communication with other node devices. For example: for communication with a server or terminal, or with other device nodes, although embodiments of the application are not limited in this regard.
A communication bus 440 for enabling direct connection communication of the above-described components.
The communication interface 430 of the device in the embodiment of the present application is used for performing signaling or data communication with other node devices. The memory 410 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. Memory 410 may also optionally be at least one storage device located remotely from the aforementioned processor. The memory 410 has stored therein computer readable instructions which, when executed by the processor 420, perform the method process described above in fig. 1. Processor 420 may be used on apparatus 300 and to perform functions in the present application. By way of example, the processor 420 described above may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, and the embodiments of the application are not limited in this regard.
Embodiments of the present application also provide a readable storage medium, which when executed by a processor, performs a method process performed by an electronic device in the method embodiment shown in fig. 1.
It will be clear to those skilled in the art that, for convenience and brevity of description, reference may be made to the corresponding procedure in the foregoing method for the specific working procedure of the apparatus described above, and this will not be repeated here.
In summary, the embodiments of the present application provide a method, apparatus, device, and storage medium for generating a three-dimensional visual scene, where the method includes formatting data in a three-dimensional visual screen panel to obtain three-dimensional visual model data and graphic structure data; binding the three-dimensional visual model data and the graphic structure data, generating a visual scene and displaying. By the method, the effect of efficiently storing and displaying the complex page elements of the three-dimensional visual screen panel can be achieved.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. A method of generating a three-dimensional visual scene, comprising:
formatting data in a three-dimensional visual screen panel to obtain three-dimensional visual model data and graphic structure data;
binding the three-dimensional visual model data and the graphic structure data, generating a visual scene and displaying.
2. The method of claim 1, wherein formatting the data in the three-dimensional visualization screen panel to obtain three-dimensional visualization model data and graphical structure data comprises:
separating a three-dimensional visual model and page elements in the three-dimensional visual screen panel;
and converting the three-dimensional visual model and the page element into the three-dimensional visual model data and the graphic structure data in preset formats.
3. The method of claim 2, wherein the converting the three-dimensional visualization model and the page element into the three-dimensional visualization model data and the graphic structure data in a preset format comprises:
classifying the page elements according to the types of the page elements to obtain multi-class page elements;
respectively extracting attribute information of the multi-class page elements, wherein the attribute information comprises internal constitution and arrangement modes of the page elements;
and respectively converting the three-dimensional visual model and the attribute information of the multi-class page elements into the three-dimensional visual model data and the graphic structure data.
4. A method according to any of claims 1-3, wherein said binding said three-dimensional visualization model data and said graphical structure data, generating and presenting a visualization scene, comprises:
according to the requirements of a user, acquiring the three-dimensional visual model data and one or more corresponding graphs from a database, and determining a target viewport selected by the user;
binding the three-dimensional visualization model data and the one or more graphics;
and taking the target visual port as a reference, and synchronously and asynchronously loading the three-dimensional visual model and the one or more graphs in the three-dimensional visual screen panel to obtain the visual scene.
5. A method according to any of claims 1-3, wherein after said formatting the data in the three-dimensional visualization screen panel to obtain three-dimensional visualization model data and graphical structure data, the method further comprises:
and respectively allocating a unique identifier to each piece of three-dimensional visual model data and each piece of graphic structure data and respectively storing the unique identifiers in a database so as to acquire the three-dimensional visual model data or the graphic structure data through the unique identifiers when the visual scene is generated.
6. A method according to any of claims 1-3, wherein after said formatting the data in the three-dimensional visualization screen panel to obtain three-dimensional visualization model data and graphical structure data, the method further comprises:
storing the three-dimensional visual model and the graphic structure data in independent fields of a three-dimensional visual screen panel data table respectively;
and compressing the data in the three-dimensional visual screen panel data table according to the user requirement, and respectively storing the data in a database.
7. A method according to any of claims 1-3, wherein after said binding said three-dimensional visualization model data and said graphical structure data, generating a visualization scene and presenting, said method further comprises:
and according to the requirements of the user, adjusting the rendering viewport, rendering parameters and animation effect of the visual scene, and generating the target visual scene again.
8. An apparatus for generating a three-dimensional visual scene, comprising:
the formatting module is used for formatting the data in the three-dimensional visual screen panel to obtain three-dimensional visual model data and graphic structure data;
and the generation module is used for binding the three-dimensional visual model data and the graphic structure data, generating a visual scene and displaying the visual scene.
9. An electronic device, comprising:
a memory and a processor, the memory storing computer readable instructions that, when executed by the processor, perform the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, comprising:
computer program which, when run on a computer, causes the computer to perform the method according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310884215.3A CN116863054A (en) | 2023-07-18 | 2023-07-18 | Method, device, equipment and storage medium for generating three-dimensional visual scene |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310884215.3A CN116863054A (en) | 2023-07-18 | 2023-07-18 | Method, device, equipment and storage medium for generating three-dimensional visual scene |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116863054A true CN116863054A (en) | 2023-10-10 |
Family
ID=88218861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310884215.3A Pending CN116863054A (en) | 2023-07-18 | 2023-07-18 | Method, device, equipment and storage medium for generating three-dimensional visual scene |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116863054A (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09218885A (en) * | 1996-02-13 | 1997-08-19 | Sanyo Electric Co Ltd | Personal design system |
JP2002279443A (en) * | 2001-03-16 | 2002-09-27 | Minolta Co Ltd | Image reproducing device, tv broadcast system, image transmitter, and image data transmitting method |
US20030142106A1 (en) * | 2002-01-25 | 2003-07-31 | Xerox Corporation | Method and apparatus to convert bitmapped images for use in a structured text/graphics editor |
US20150033131A1 (en) * | 2013-07-29 | 2015-01-29 | Microsoft Corporation | Three dimensional conditional formatting |
US20160055659A1 (en) * | 2014-08-21 | 2016-02-25 | Microsoft Technology Licensing, Llc | Enhanced Recognition of Charted Data |
US20170278308A1 (en) * | 2016-03-23 | 2017-09-28 | Intel Corporation | Image modification and enhancement using 3-dimensional object model based recognition |
US20170315697A1 (en) * | 2016-04-27 | 2017-11-02 | Crestron Electronics, Inc. | Three-dimensional building management system visualization |
US20200210511A1 (en) * | 2019-01-02 | 2020-07-02 | Scraping Hub, LTD. | System and method for a web scraping tool and classification engine |
WO2020192463A1 (en) * | 2019-03-27 | 2020-10-01 | 阿里巴巴集团控股有限公司 | Display method and apparatus |
US20220124294A1 (en) * | 2019-02-15 | 2022-04-21 | Xliminal, Inc. | System and method for interactively rendering and displaying 3d objects |
US20220335243A1 (en) * | 2021-04-19 | 2022-10-20 | International Business Machines Corporation | Cognitive generation of html pages based on video content |
CN115857930A (en) * | 2022-12-12 | 2023-03-28 | 睿宇时空科技(重庆)股份有限公司 | Prototype rapid design method and system based on real-scene model |
CN115953264A (en) * | 2022-10-20 | 2023-04-11 | 中国能源建设集团江苏省电力设计院有限公司 | Screen cabinet model integrated design system and method based on three-dimensional modeling |
CN116385693A (en) * | 2023-04-11 | 2023-07-04 | 华电(福建)风电有限公司 | Offshore wind power visual display method, offshore wind power visual display system and computer-readable storage medium |
-
2023
- 2023-07-18 CN CN202310884215.3A patent/CN116863054A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09218885A (en) * | 1996-02-13 | 1997-08-19 | Sanyo Electric Co Ltd | Personal design system |
JP2002279443A (en) * | 2001-03-16 | 2002-09-27 | Minolta Co Ltd | Image reproducing device, tv broadcast system, image transmitter, and image data transmitting method |
US20030142106A1 (en) * | 2002-01-25 | 2003-07-31 | Xerox Corporation | Method and apparatus to convert bitmapped images for use in a structured text/graphics editor |
US20150033131A1 (en) * | 2013-07-29 | 2015-01-29 | Microsoft Corporation | Three dimensional conditional formatting |
US20160055659A1 (en) * | 2014-08-21 | 2016-02-25 | Microsoft Technology Licensing, Llc | Enhanced Recognition of Charted Data |
US20170278308A1 (en) * | 2016-03-23 | 2017-09-28 | Intel Corporation | Image modification and enhancement using 3-dimensional object model based recognition |
US20170315697A1 (en) * | 2016-04-27 | 2017-11-02 | Crestron Electronics, Inc. | Three-dimensional building management system visualization |
US20200210511A1 (en) * | 2019-01-02 | 2020-07-02 | Scraping Hub, LTD. | System and method for a web scraping tool and classification engine |
US20220124294A1 (en) * | 2019-02-15 | 2022-04-21 | Xliminal, Inc. | System and method for interactively rendering and displaying 3d objects |
WO2020192463A1 (en) * | 2019-03-27 | 2020-10-01 | 阿里巴巴集团控股有限公司 | Display method and apparatus |
US20220335243A1 (en) * | 2021-04-19 | 2022-10-20 | International Business Machines Corporation | Cognitive generation of html pages based on video content |
CN115953264A (en) * | 2022-10-20 | 2023-04-11 | 中国能源建设集团江苏省电力设计院有限公司 | Screen cabinet model integrated design system and method based on three-dimensional modeling |
CN115857930A (en) * | 2022-12-12 | 2023-03-28 | 睿宇时空科技(重庆)股份有限公司 | Prototype rapid design method and system based on real-scene model |
CN116385693A (en) * | 2023-04-11 | 2023-07-04 | 华电(福建)风电有限公司 | Offshore wind power visual display method, offshore wind power visual display system and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10055428B2 (en) | Spatially driven content presentation in a cellular environment | |
CN102063475B (en) | Webpage user terminal presenting method of three-dimensional model | |
CN107402985B (en) | Video special effect output control method and device and computer readable storage medium | |
CN107273079B (en) | Associated information display method, associated information map processing method, associated information display device, associated information map processing device, associated information map display medium, associated information map processing device and associated information map processing system | |
Abdelmonem et al. | Virtual platforms for heritage preservation in the Middle East: The case of Medieval Cairo | |
WO2021098310A1 (en) | Video generation method and device, and terminal and storage medium | |
CN110930220A (en) | Display method, display device, terminal equipment and medium | |
CN112637623A (en) | Live broadcast processing method and device and electronic equipment | |
KR101446112B1 (en) | Method and system for managing integration three dimension model | |
CN110389981B (en) | Data display method, device, electronic equipment and computer readable storage medium | |
CN103152429B (en) | Method with wall paste-up interdynamic cross-platform based on web and device | |
Cao | Development and design case function comparison of panoramic roaming system of virtual museum based on Pano2VR | |
CN106951405B (en) | Data processing method and device based on typesetting engine | |
KR102183363B1 (en) | Apparatus and Method for Searching Information using Augmented Reality and Mixed Reality | |
Fonseca et al. | Environmental impact assessment with multimedia spatial information systems | |
CN116863054A (en) | Method, device, equipment and storage medium for generating three-dimensional visual scene | |
Ruffaldi et al. | Design of information landscapes for cultural heritage content | |
Fonseca et al. | The Use of Multimedia Spatial Data Handling in Environmental Impact Assessment | |
KR20200068512A (en) | Portal service object system for providing custom VR contents and Drive method of the Same | |
CN115827803A (en) | Data display method and device, terminal equipment and storage medium | |
Boutsi et al. | 5DMETEORA framework: Management and web publishing of cultural heritage data | |
Lang et al. | Augmented reality apps for real estate | |
Köbben et al. | Maps and mash-ups: the national atlas and Google Earth in a geodata infrastructure | |
KR20140100078A (en) | Method and system for managing standard model of three dimension for augmented reality | |
Holliman et al. | Designing a Cloud-based 3D Visualization Engine for Smart Cities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |