gltf-viewer | glTF 2.0 Viewer written in Rust | 3D Animation library

 by   bwasty Rust Version: 0.4.1 License: Unlicense

kandi X-RAY | gltf-viewer Summary

kandi X-RAY | gltf-viewer Summary

gltf-viewer is a Rust library typically used in User Interface, 3D Animation applications. gltf-viewer has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

glTF 2.0 Viewer written in Rust
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

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

            kandi-Quality Quality

              gltf-viewer has 0 bugs and 0 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 Unlicense 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 available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gltf-viewer
            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

            You can download it from GitHub.
            Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            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/bwasty/gltf-viewer.git

          • CLI

            gh repo clone bwasty/gltf-viewer

          • sshUrl

            git@github.com:bwasty/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

            Explore Related Topics

            Consider Popular 3D Animation Libraries

            assimp

            by assimp

            angle

            by google

            s2geometry

            by google

            sverchok

            by nortikin

            rayshader

            by tylermorganwall

            Try Top Libraries by bwasty

            learn-opengl-rs

            by bwastyRust

            vulkan-tutorial-rs

            by bwastyRust

            gltf-loader-ts

            by bwastyTypeScript

            ewi

            by bwastyJavaScript