gltf-viewer | Web Component to display glTF models | Canvas library

 by   AVGP JavaScript Version: Current License: MIT

kandi X-RAY | gltf-viewer Summary

kandi X-RAY | gltf-viewer Summary

gltf-viewer is a JavaScript library typically used in User Interface, Canvas, Three.js, WebGL applications. gltf-viewer has no vulnerabilities, it has a Permissive License and it has low support. However gltf-viewer has 45 bugs. You can download it from GitHub.

Web Component to display glTF models
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              gltf-viewer has a low active ecosystem.
              It has 46 star(s) with 10 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 2 have been closed. On average issues are closed in 2 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of gltf-viewer is current.

            kandi-Quality Quality

              gltf-viewer has 45 bugs (0 blocker, 0 critical, 45 major, 0 minor) and 8 code smells.

            kandi-Security Security

              gltf-viewer has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              gltf-viewer code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              gltf-viewer is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              gltf-viewer releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              gltf-viewer saves you 97 person hours of effort in developing the same functionality from scratch.
              It has 18478 lines of code, 0 functions and 149 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed gltf-viewer and discovered the below as its top functions. This is intended to give you an instant insight into gltf-viewer implemented functionality, and help decide if they suit your requirements.
            • Imports a given context into an object .
            • Extends PBRMaterialExtensionExtension for PBRSpec .
            • Recursive comparison function .
            • format the value into an object
            • Queue task queue .
            • Determines whether or not a test function .
            • growf - container
            • generate a string representation of a holder
            • Initialize clock .
            • Debounce a function .
            Get all kandi verified functions for this library.

            gltf-viewer Key Features

            No Key Features are available at this moment for gltf-viewer.

            gltf-viewer Examples and Code Snippets

            No Code Snippets are available at this moment for gltf-viewer.

            Community Discussions

            QUESTION

            Three js, MeshStandardMaterial looks yellow
            Asked 2022-Mar-24 at 09:22

            Hi i am loading a GLTF model in my scene. But the model looks too yellow i assume this has to do with the material. But i have no clue what is causing it, it is not the model itself since if i check it on donmccurdy's gltf viewer it looks perfect.

            See a reference below:
            GLTF Viewer:

            And this is how the same model looks in my scene:

            I have added an environment map to the scene this fixed may things but not the yellowness.. See current code below:

            ...

            ANSWER

            Answered 2022-Mar-24 at 09:22

            Using GLTFLoader requires a sRGB workflow which is not configured in your app. Add the following line and see if it fixes the color issue:

            Source https://stackoverflow.com/questions/71595427

            QUESTION

            Android: How to load a GLTF or GLB file from remote URL in filament
            Asked 2022-Feb-24 at 20:21

            I'm trying to load a remote asset (.glb or .gltf) into the ModelViewer in filament. The Google Filament sample-gltf-viewer shows a RemoteServer object but I'm not seeing how I can load a remote asset from a URL (e.g. https://github.com/kelvinwatson/glb-files/raw/main/DamagedHelmet.glb)

            I've tried the below but I get "Unable to parse glb file".

            The code for RemoteServer doesn't indicate where we can pass a URL.

            ...

            ANSWER

            Answered 2022-Feb-24 at 20:21

            Issue has been resolved. The issue was that I wasn't fully downloading the file, and that the modelViewer.loadModelGlb needed to be called on the main thread.

            Here is the working code:

            Source https://stackoverflow.com/questions/71245871

            QUESTION

            Android: Google Filament GLTF/GLB model not displayed
            Asked 2021-May-14 at 04:28

            My issue is that I'm trying to make a SurfaceView display a 3D model that's just a small part of the whole application layout. The layout includes multiple views for displaying other data; however, as soon as I create the ModelViewer the SurfaceView vanishes. When I use version 1.9.9 of Filament the layout is displayed, but heavily pixelated and seems to make other layout elements disappear. With v1.7.0 the other elements don't dissapear, but nothing is displayed.

            I'm using the following version in Gradle file:

            ...

            ANSWER

            Answered 2021-Apr-28 at 19:30

            I fixed this a while back by making a copy of the ModelViewer class and making a custom ModelViewer3D class with a new constructor, which was a nice solution, because it gives you more control over the options than you would normally with the given ModelViewer.

            The uiHelper isOpaque field needed to be set to false to fix the above issue, and for a transparent background of the surface view the renderer needed to reset the clear options (which I made a separate function for, shown below).

            Source https://stackoverflow.com/questions/65818150

            QUESTION

            Three.js models are in bad quality
            Asked 2021-Jan-30 at 02:21

            I created an angular project with three.js, but when I load 3d models, they have a bad quality.

            When I load this same models on this website : https://gltf-viewer.donmccurdy.com/ they are perfect, in a great quality. I don't understand why. I tried to copy some of the open source code of this website, but this doesn't change anything :

            I tried to load in gltf with that :

            ...

            ANSWER

            Answered 2021-Jan-30 at 02:21

            The viewer you linked to adds lights where as the code you posted for your own viewer does not

            Here's the code from the viewer

            https://github.com/donmccurdy/three-gltf-viewer/blob/master/src/viewer.js#L412

            MIT LICENSE

            Source https://stackoverflow.com/questions/65962260

            QUESTION

            Javascript Three.Js GLTF Loading Is Very Slow Compared To Other GLTF Viewers
            Asked 2020-Jul-15 at 11:28

            Hello I'm trying to implement a 3D Model Viewer using Three.Js however I have a problem with the loading times and I don't know where the problem might be.

            As an example I'm trying to upload this model here (download link): https://opensplit.com/gltf/assets/PromoModel.glb

            You can test it In this gltf Viewer here for example: https://gltf-viewer.donmccurdy.com/

            It will basically pops up after only a few seconds.

            However you can see how ridiculously long it takes on my website: https://opensplit.com/ The same model takes now more than two minutes to load.. this cannot be correct, why is it so slow?

            Here is my code:

            ...

            ANSWER

            Answered 2020-Jul-09 at 10:52

            QUESTION

            gltf file renders incorrectly in aframe
            Asked 2020-Jan-24 at 22:22

            Can anyone help me debug a glTF file? It looks ok in Don McCurdy's glTF viewer at https://gltf-viewer.donmccurdy.com/ (though it's pretty different from how it looks in Blender) but most of its pieces are missing when I use aframe to look at it: https://sgouros.com/scorpii/index1.html. The model is at https://sgouros.com/scorpii/data/scorpii3.glb

            ...

            ANSWER

            Answered 2020-Jan-24 at 22:22

            This is happening because the transparent nodes of the model in most cases should have disabled writing to the depth buffer by their material.

            Citing the Khronos wiki(or citing Don McCurdy citing the wiki):

            The standard method for dealing with translucent objects ... involves disabling writes to the depth buffer and sorting transparent objects and/or polygons based on distance to the camera.

            So you could just traverse the mesh and disable depthWrite for transparent objects:

            Source https://stackoverflow.com/questions/59852899

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install gltf-viewer

            The component can be installed via Bower:.
            The easiest way to get going is to install the polymer-cli:.

            Support

            The component supports both glTF 1.0 and glTF 2.0 models.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/AVGP/gltf-viewer.git

          • CLI

            gh repo clone AVGP/gltf-viewer

          • sshUrl

            git@github.com:AVGP/gltf-viewer.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link