Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
models [2020/10/02 12:17] – [Exporting a model] adminmodels [2020/11/04 14:49] – [Loading a model from file into an existing TGorillaModel instance] admin
Line 14: Line 14:
 ===== Supported file formats ===== ===== Supported file formats =====
  
-Currently it is allowed to use the following file-formats: G3D, DAE, OBJ, STL, FBX, X3D, glTF (modified: 2020-05-01)+Currently it is allowed to use the following file-formats: G3D, DAE, OBJ, STL, FBX, X3D, glTF (modified: 2020-10-02)
  
 ^ Format      ^ MeshData       ^ Materials          ^ Animations  ^ Export ^ ^ Format      ^ MeshData       ^ Materials          ^ Animations  ^ Export ^
-| G3D             | ✔                        | <color #00FF00></color>                         <color #00FF00></color>                      <color #00FF00></color>           | +| G3D             | ✔                        | ✔                        | ✔                    | ✔           | 
-| DAE             <color #00FF00></color>                         | <color #00FF00></color>                         <color #00FF00></color>                      <color #FF0000></color>           | +| DAE             | ✔                         | ✔                        | ✔                      | ✘           | 
-| OBJ             <color #00FF00></color>                          <color #00FF00></color>                        <color #FF0000></color>                      <color #FF0000></color>           | +| OBJ              | ✔                          | ✔                        | ✘                      | ✘           | 
-| STL              | <color #00FF00></color>                          <color #FF0000></color>                        <color #FF0000></color>                      <color #00FF00></color>           +| STL              | ✔                          |✘                        | ✘                      | ✔          
-| FBX             <color #00FF00></color>                          <color #00FF00></color>                        <color #FF0000></color>                      <color #FF0000></color>           | +| FBX             | ✔                          | ✔                        | ✘                     | ✘           | 
-| X3D             <color #00FF00></color>                          <color #00FF00></color>                        <color #00FF00></color>                      <color #FF0000></color>           | +| X3D             | ✔                          | ✔                        | ✔                      | ✘           | 
-| glTF             <color #00FF00></color>                          <color #00FF00></color>                        <color #FF0000></color>                      <color #FF0000></color>           +| glTF             |✔                          |✔                       | ✘                      | ✘          
-| Babylon             <color #00FF00></color>                          <color #00FF00></color>                        <color #FF0000></color>                      <color #FF0000></color>           | +| Babylon             | ✔                          |✔                        | ✘                      | ✘           | 
-| Sketchfab             <color #00FF00></color>                          <color #00FF00></color>                        <color #FF0000></color>                      <color #FF0000></color>           |+| Sketchfab             | ✔                          | ✔                       | ✘                      | ✘          |
 ===== Loading a new model from file at runtime ===== ===== Loading a new model from file at runtime =====
  
Line 39: Line 39:
   Gorilla.FBX.Loader,   Gorilla.FBX.Loader,
   Gorilla.GLTF.Loader,   Gorilla.GLTF.Loader,
 +  Gorilla.Babylon.Loader,
   Gorilla.Model;   Gorilla.Model;
  
Line 70: Line 71:
   Gorilla.FBX.Loader,   Gorilla.FBX.Loader,
   Gorilla.GLTF.Loader,   Gorilla.GLTF.Loader,
 +  Gorilla.Babylon.Loader,
   Gorilla.Model;   Gorilla.Model;
  
Line 92: Line 94:
   * Gorilla.FBX.Loader   * Gorilla.FBX.Loader
   * Gorilla.GLTF.Loader   * Gorilla.GLTF.Loader
 +  * Gorilla.Babylon.Loader
 +  * Gorilla.Sketchfab.Loader (uses glTF format)
   * Gorilla.X3D.Loader   * Gorilla.X3D.Loader
   * Gorilla.X3DZ.Loader   * Gorilla.X3DZ.Loader
Line 104: Line 108:
 Since 0.8.2.1675 we provide a Sketchfab plugin directly by using our loading mechanism. Since 0.8.2.1675 we provide a Sketchfab plugin directly by using our loading mechanism.
 Before implementation you'll need to ensure you've got a valid Sketchfab account with username and password. Before implementation you'll need to ensure you've got a valid Sketchfab account with username and password.
 +
 +https://sketchfab.com/
  
 **Remarks:** You'll also need a new clientid and clientsecret for your application. **Remarks:** You'll also need a new clientid and clientsecret for your application.
Line 137: Line 143:
 </file> </file>
  
 +The plugin will automatically download a zip-archive with a glTF file to your preferred folder ("ExtractDirectory"). On successful download it extracts this data
 +and tries to load the contained model.
 +Before requesting Sketchfab, the loader checks the ExtractDirectory for an already existing download of UID.
 +If a zip and gltf file already exists it will directly load it, instead of downloading again.
  
 +You have to take care yourself in case a previous download is invalid or decprecated.
  
 ===== Exporting a model ===== ===== Exporting a model =====