Git Product home page Git Product logo

Comments (8)

deltakosh avatar deltakosh commented on August 17, 2024 1

We could add a non serializable property to the babylon material and hold a reference to the max material there

from exporters.

Selmar avatar Selmar commented on August 17, 2024

I have created a draft here.

from exporters.

deltakosh avatar deltakosh commented on August 17, 2024

Looks really good to me!

from exporters.

Selmar avatar Selmar commented on August 17, 2024

I will continue with this, then. I had some problems with the draft as-is, I will update it next week.

There are some additional problems I face right now when building an actual material exporter, which will require some changes to the exporter code. Most of these are related to the fact a lot of functionality is not available outside the BabylonExporter class, like logging and texture building.

I have one question: at this point, it is not so easy to export a glTF material with this, as the MaxMaterial information is not available once we get to the gltf exporter. The intermediate materials are (currently) not suitable to store this data, as we have more data than is defined in the existing babylon materials. We have also planned a glTF material extension.
However, the 3dsMax material information is not available when we get to the glTF exporter. Do you have any ideas on how to refactor this, if you even want that? If not, I'll figure something out for our purposes eventually.

from exporters.

Selmar avatar Selmar commented on August 17, 2024

I've implemented this for the glTF exporter pipeline and am successfully using it. There is no doubt it is incomplete, but it is functional.

The babylon version is still a draft and I won't have time to develop that part.

Do you want me to submit a pull request, or keep it where it is for now?

from exporters.

deltakosh avatar deltakosh commented on August 17, 2024

If it is incomplete I would prefer not merging it because we will need to maintain it

from exporters.

Selmar avatar Selmar commented on August 17, 2024

Right, that makes sense.

From what I can tell, the only missing feature at this point is being able to combine different textures into the correct layouts (e.g. putting metal and roughness together in one texture, might the material have them separate). I'm not sure if I will need it.

from exporters.

deltakosh avatar deltakosh commented on August 17, 2024

Closing for now

from exporters.

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.