Giter VIP home page Giter VIP logo

unityobjloader's People

Contributors

wccrawford avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

asmboom

unityobjloader's Issues

Asynchronous Importer and run-time Loader for Unity

Thank you for sharing your project (thanks also to the other contributors).

I'm writing here because I started a similar project (AsImpL) and I hope that someone, like you or everyone else interested in my work, will use, test and maybe improve what I have done (any contribution or feedback is welcome).

I found your project and other OBJ loaders very useful, but I decided to create my own project because I need to:

  • load models in an asynchronous way (without "freezing" the scene during loading)
  • load more models concurrently
  • show the loading progress on a UI
  • import the loaded models as assets into Unity projects
  • prepare the loader to be extended with different file formats

These requirements to me seemed to be enough to start a new different project, instead of applying changes one of the available OBJ loaders.

I also worked on materials importing to improve the appearance of my 3D models:

  • bump map
    • bump map is converted into a normal map
    • computation of normal maps and tangents
  • specular map
    • specular map is converted to glossness map (metallic texture)
  • reflection map
    • reflection map is replaced with the ambient reflection
      (skybox or reflection probes, if available)
  • opacity map
    • diffuse and opacity maps are blended together in the albedo texture
  • flag to use an Unlit shader for materials with the lighting rendered to the diffuse texture
    Some options are available for vertices pre-scaling and vertical axis conversion.

On GitHub you can find my project: AsImpL.
I tried to clearly mark contributions both in the source code and in the documentation. If you notice that something is missing please let me know and provide the needed information (authors, links, etc.), I will update my project as soon as possible.

image

Culture dependent parsing

If you use this with non-English culture settings the number parsing does not work as expected.
Change all float.Parse(str) into float.Parse(str, CultureInfo.InvariantCulture.NumberFormat); to make it work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.