System and method for user interaction in complex web 3D scenes
11562549 · 2023-01-24
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
G16C20/30
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 module; and a three-dimensional (3D) model module, wherein the receiving module is configured to receive molecular data, the transmission module is configured to analyze the received molecular data and transmit the received molecular data to a first branch module and a second branch module at the same time, wherein the first branch module comprises a view layer unit configured to handle rendering on a browser and construct a 3D model, and present data generated by the first branch module on the browser, wherein the second branch module comprises a data layer unit configured to process 3D picking-related business logic, and establish a list of related model index information on atoms and covalent bonds in the molecular data; and the 3D model module is configured to establish a one-to-one correspondence between a color and the 3D model, and all 3D models that need to be picked up have a unique index in a data layer, wherein the unique index is a hexadecimal color without rendering on the browser; wherein the system comprises a processor and a memory comprising instructions executed by the processor; wherein the receiving module, the transmission module, and the 3D model module are executed by the processor.
2. A method for user interaction in complex web 3D scenes, comprising: analyzing molecular data after receiving the molecular data; transmitting the molecular data to two branch modules at the same time, the two branch modules comprising a first branch module and a second branch module, wherein the first branch module serves as a view layer, processing browser rendering and constructing a 3D model, and the data generated by the first branch module will finally be presented on a browser page; the second branch module serves 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 the molecular data; establishing corresponding simplified model data in an invisible 3D scene, and establishing a one-to-one correspondence between a color and the 3D model, all 3D models that need to be picked will have a unique index in the data layer, wherein the unique index is a hexadecimal color without rendering on the browser page.
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.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5) In
(6)
DESCRIPTION OF THE PREFERRED EMBODIMENT
(7) The preferred embodiments of this invention will be further described in detail below in conjunction with the accompanying drawings.
Embodiment 1
(8)
Embodiment 2
(9) As shown in
(10) 1×1×1: as shown in
(11) 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.
(12) The effect comparison (using the structure of aspirin for comparison test) is shown in Table 1:
(13) 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 1106 ms 897 ms expanding the program in a 1 × 1 × 1 lattice Execution time for 1841 ms 945 ms expanding the program in a 2 × 2 × 2 lattice Execution time for 3710 ms 1107 ms expanding 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
(14) 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.
(15) 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.