obj2gltf | Convert OBJ assets to glTF | iOS library

 by   CesiumGS JavaScript Version: 3.1.5 License: Apache-2.0

kandi X-RAY | obj2gltf Summary

kandi X-RAY | obj2gltf Summary

obj2gltf is a JavaScript library typically used in Mobile, iOS, Three.js applications. obj2gltf has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can install using 'npm i obj2gltf' or download it from GitHub, npm.

Convert OBJ assets to glTF 2.0.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              obj2gltf has a medium active ecosystem.
              It has 1489 star(s) with 292 fork(s). There are 60 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 52 open issues and 105 have been closed. On average issues are closed in 66 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of obj2gltf is 3.1.5

            kandi-Quality Quality

              obj2gltf has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              obj2gltf is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              obj2gltf releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed obj2gltf and discovered the below as its top functions. This is intended to give you an instant insight into obj2gltf implemented functionality, and help decide if they suit your requirements.
            • Loads an object into a vertex .
            • Loads a translation file .
            • Creates a Uniform texture from the metallic parameters .
            • Creates a new glossiness texture .
            • Create a glTF from obj data .
            • Convert obj to obj .
            • Creates a new ambient image texture .
            • parse a Line object
            • Creates a magical material object
            • Add a face to the world
            Get all kandi verified functions for this library.

            obj2gltf Key Features

            No Key Features are available at this moment for obj2gltf.

            obj2gltf Examples and Code Snippets

            No Code Snippets are available at this moment for obj2gltf.

            Community Discussions

            QUESTION

            How can I get textures with alpha on 3D models working in A-Frame?
            Asked 2019-Jan-10 at 01:11

            I made a 3d model with a .png texture that has an alpha channel. The texture does not render correctly in A-Frame. I created the model in Autodesk Maya and exported the model as .OBJ. Then, I used obj2gltf to convert from .obj to .gltf format. The transparency does not appear correctly in A-Frame. There are some rendering problems with the model as shown in the images.

            The model renders incorrectly in all the browsers I tested it in: Chrome, Firefox and Safari (iOS). When exporting from obj2gltf, the model does not show any transparency when used without --checkTransparency. It does not work if it is called from or inline. I also imported the model into Blender and then exported as .gtlf using the blender gltf exporter, and A-Frame failed to recognize the transparency at all. The model does not appear correctly if loaded as an .OBJ with tags either.

            https://i.imgur.com/HbFoBBb.png This is how it shows up in A-Frame

            https://i.imgur.com/1zk3uVl.png This is what the model looks like in Maya, and how it should appear.

            ...

            ANSWER

            Answered 2019-Jan-10 at 01:11

            Transparency seems to be working here, your problem seems to be the classic opengl sorting order + transparency + depth Buffer. Some leaves on the front render first than others, so back leaves don't render because there's something in front of them already. The optimal way of rendering all leaves would be pre sorting by distance to camera all leaves before rendering, but this is usually unfeasible when loading external models.

            I'd recommend you to try activating side:double and depthTest: false in A-Frame's material. Also, use an obj model instead of a gltf, so you can use the material component with it (you cannot use material component with gltf models).

            depthTest will do the trick, although it may render over other stuff in your scene. Try to find the best alternative..

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install obj2gltf

            Install Node.js if you don't already have it, and then:.
            To run ESLint on the entire codebase, run:.

            Support

            To generate the documentation:. The documentation will be placed in the doc folder.
            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/CesiumGS/obj2gltf.git

          • CLI

            gh repo clone CesiumGS/obj2gltf

          • sshUrl

            git@github.com:CesiumGS/obj2gltf.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 iOS Libraries

            swift

            by apple

            ionic-framework

            by ionic-team

            awesome-ios

            by vsouza

            fastlane

            by fastlane

            glide

            by bumptech

            Try Top Libraries by CesiumGS

            cesium

            by CesiumGSJavaScript

            gltf-pipeline

            by CesiumGSJavaScript

            cesium-unreal

            by CesiumGSC++

            3d-tiles-validator

            by CesiumGSTypeScript

            webglreport

            by CesiumGSJavaScript