Webpage 3D (three-dimensional) rendering and controlling method and device
A web and 3D technology, applied in the field of web 3D rendering and control methods and devices, can solve problems such as difficult front-end development and unsmooth 3D scene conversion, achieve smooth and efficient drawing, and reduce development difficulty.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] Such as figure 1The flow chart of the web page 3D rendering and control method provided by the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.
[0061] In step S101, a webpage 3D graphic interface is obtained through the DOM interface of the webpage canvas element.
[0062] In the embodiment of the present invention, the 3D graphic interface of the webpage is obtained through the DOM interface of the canvas element in the javascript of the webpage. Among them, the webpage 3D graphics interface is used to initialize the local window, set the device 3D rendering configuration, and realize 3D drawing by calling the OpenGL ES related interface.
[0063] In step S102, a local window and a local window controller are created, a drawing thread is created in the local window controller, and a drawing interval is set.
[0064] In the embodiment of the present invention, the local w...
Embodiment 2
[0074] Such as figure 2 Shown is that according to the state of the local window provided by the present invention, the drawing thread performs corresponding operations ( figure 1 The method flow chart of step S105) only shows the part related to the embodiment of the present invention for the convenience of description.
[0075] In step S201, obtain the state of the local window;
[0076] In step S202, it is judged whether the local window is in the state of destroying the local window, if yes, step S208 is executed, otherwise step S203 is executed;
[0077] In step S203, it is judged whether the local window is in the local window activation state, if yes, execute step S205, otherwise execute step S204.
[0078] In step S204, the drawing thread is suspended, and the drawing thread is run when the local window is restored to an active state.
[0079] In the embodiment of the present invention, when the local window is in an inactive state, in order to prevent the problem ...
Embodiment 3
[0088] In the embodiment of the present invention, a specific example of a device for realizing 3D rendering and control of web pages is provided, and its functional modules are as follows: image 3 shown.
[0089] In the embodiment of the present invention, the functional modules mainly include four major blocks, namely: web page 31, web engine 32, graphical user interface system 33 and OpenGL ES34. in:
[0090] The web page 31 is the process part of javascript calling the web page 3D graphic interface. It includes three modules, namely: a 3D interface preparation completion module 311 , a window change processing module 312 and a 3D scene drawing module 313 . Specifically:
[0091] The 3D interface preparation completion module 311 corresponds to the preparation completion event and is used for initializing the shader and the graphics data buffer area.
[0092] The window change processing module 312, corresponding to triggering the window change event, is used to call t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com