Code Monkey home page Code Monkey logo

Comments (5)

bghgary avatar bghgary commented on May 21, 2024 1

doesn't require any image processing (unpacking/repacking)

It's more than that. Unity doesn't multiply the colors against the texture where as glTF does. Unity doesn't support texture coordinate sets where as glTF does. I think we need to think about supporting both.

from unitygltf.

AurL avatar AurL commented on May 21, 2024

@sbtron I wonder what's the purpose of using a specific glTF shader instead of the Unity's Standard one ?
The only reason I have in mind is that it doesn't require any image processing (unpacking/repacking)
I guess it could fix this issue ?

Also, just to let you know, we are working on a "Design-time import of glTF 2.0 files" from this project and I guess it could be a good contribution, as we are facing and solving a few of the issues. I just don't know a lot yet about the rules and how our choices/solutions are ok with the rest of the plugin.

from unitygltf.

AurL avatar AurL commented on May 21, 2024

Ok thanks @bghgary . +1 for the texture coordinate sets (but colors are multiplied against texture if I'm right).
Anyway, yes it would makes sense to support both 👍

from unitygltf.

bghgary avatar bghgary commented on May 21, 2024

colors are multiplied against texture if I'm right

Sorry, yeah, it is multiplied if there is a color in addition to texture, but some properties don't behave this way. For example, metallic factor in glTF is not representable in Unity's standard material if metallic texture is also specified. Another example is for the spec-gloss extension where Unity expects only one of specular color or texture but not both.

from unitygltf.

stevenvergenz avatar stevenvergenz commented on May 21, 2024

This is done.

from unitygltf.

Related Issues (20)

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.