Method for quickly loading scene model
The invention discloses a method for quickly loading a scene model. The method comprises the following steps: S1, acquiring a complete address of the model; s2, according to the complete address, searching whether the model is cached in a global LRU cache; s3, separating the complete address into a...
Gespeichert in:
Hauptverfasser: | , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method for quickly loading a scene model. The method comprises the following steps: S1, acquiring a complete address of the model; s2, according to the complete address, searching whether the model is cached in a global LRU cache; s3, separating the complete address into a URL (Uniform Resource Locator) address and updating time, and searching whether a model is stored in the IndexedDB or not according to the URL address; s4, an HTTP request is initiated according to the URL address of the model, and whether the model is cached in a browser cache or not is searched; s5, the server returns model data, and the model is downloaded to a local memory and cached; s6, transmitting the model data to an analyzer, and converting the model data into renderable three-dimensional object data; s7, generating Mesh object data, generating a rendering object from the Mesh object data, and adding the rendering object into a rendering queue; according to the method, the global LRU cache provided by the |
---|