SYSTEM AND METHOD FOR USER INTERACTION IN COMPLEX WEB 3D SCENES
20210375063 · 2021-12-02
Assignee
Inventors
- Fei Han (Guangdong, CN)
- Yan Wang (Guangdong, CN)
- Jian Ma (Guangdong, CN)
- Lipeng Lai (Guangdong, CN)
- Shuhao Wen (Guangdong, CN)
Cpc classification
G06T2219/2012
PHYSICS
G16C20/30
PHYSICS
G06T19/20
PHYSICS
International classification
G06T19/20
PHYSICS
Abstract
This disclosure provides a system and method for user interaction in complex web 3D scenes, including a receiving module, a transmission module and a 3D model module. The receiving module receives molecular data. The transmission module analyzes the received molecular data and then enters the two branch modules at the same time. The branch modules include: a view layer unit: processing browser rendering and 3D model construction, the data generated by the branch will finally be presented on the browser page; a data layer unit: processing 3D picking-related business logic, and establishing a list of related model index information for atoms and covalent bonds in molecular data. The 3D model module: establishes a one-to-one correspondence between color and 3D model. This invention simplifies the display model of the molecule for the picking of web 3D molecular visualization and reduces the computational cost of the model data on the rendering.
Claims
1. A system for user interaction in complex web 3D scenes, comprising: a receiving module; a transmission modules; and a 3D model module, wherein the receiving module receives molecular data, the transmission module analyzes the received molecular data and transmitting the molecular data to two branch modules at the same time, wherein the branch modules comprise: a view layer unit: handling rendering on a browser and constructing a 3D model of the molecular data, and presenting the data generated by this branch on the browser; and a data layer unit: processing 3D picking-related business logic, and establishing a list of related model index information on atoms and covalent bonds in the molecular data; and the 3D model module establishes a one-to-one correspondence between a color and the 3D model, and all the 3D models that need to be picked up have a unique index in a data layer.
2. A method for the system for user interaction in complex web 3D scenes according to claim 1, comprising the following steps: step A: analyzing the molecular data after receiving the molecular data; step B: then the molecular data entering two branch modules at the same time, comprising a first branch module and a second branch module, wherein the first branch module serves as the view layer, processing browser rendering and constructing the 3D model, and the data generated by the branch will finally be presented on the browser page; step C: the second branch module being used as the data layer for processing 3D pickup-related business logic, and establishing a list of related model index information on atoms and covalent bonds in molecular data; Step D: establishing corresponding simplified model data in an invisible 3D scene, and establishing a one-to-one correspondence between color and the 3D model, wherein all 3D models that need to be picked will have a unique index in the data layer.
3. The method according to claim 2, wherein the index is a hexadecimal color, which ranges from #000001 to #FFFFFE that marks a total of 16*16*16*16*16*16-2 units without rendering on the browser page.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0023]
[0024]
[0025]
[0026]
[0027] In
[0028]
DESCRIPTION OF THE PREFERRED EMBODIMENT
[0029] The preferred embodiments of this invention will be further described in detail below in conjunction with the accompanying drawings.
Embodiment 1
[0030]
Embodiment 2
[0031] As shown in
[0032] 1×1×1: as shown in
[0033] Description: 3×3×3 lattice expansion is to expand in the three directions of oa, ob, and oc. A single lattice expands into a cube composed of 3×3×3=27 lattices, and 2×2×2 lattice expands into a cube with 8 single lattices.
[0034] The effect comparison (using the structure of aspirin for comparison test) is shown in Table 1:
TABLE-US-00001 TABLE 1 Molecular visualization Optimized molecular ray method model visualization model picking scheme picking scheme Comparison item (Ball-and-stick model) (Stick-shaped model) Non-stacked unit program 880 ms 778 ms execution time in a single lattice Execution time for expanding 1106 ms 897 ms the program in a 1 × 1 × 1 lattice Execution time for expanding 1841 ms 945 ms the program in a 2 × 2 × 2 lattice Execution time for expanding 3710 ms 1107 ms the program in a 3 × 3 × 3 lattice Rendering frame rate in a 59.9 fps 59.9 fps 1 × 1 × 1 lattice Rendering frame rate in a 59.9 fps 59.9 fps 2 × 2 × 2 lattice Rendering frame rate in a 33 fps 59.9 fps 3 × 3 × 3 lattice
[0035] Description: 3×3×3 lattice expansion is to expand in the three directions of oa, ob, and oc. A single lattice expands into a cube composed of 3×3×3=27 lattices, and 2×2×2 lattice expands into a cube with 8 single lattices.
[0036] The above content is a further detailed description of this invention in combination with specific preferred embodiments, and it cannot be considered that the specific implementation of this invention is limited to these descriptions. For the ordinary technical staff in the technical field of this invention, a number of simple deductions or substitutions can be made without departing from the concept of this invention, which should be regarded as falling within the protection scope of this invention.