Giter Club home page Giter Club logo

Comments (2)

jstone-lucasfilm avatar jstone-lucasfilm commented on May 27, 2024 1

That's a good catch, @donmccurdy. But I should note that these are the original reference implementations of the MaterialX nodes in OSL, which were authored many years ago at SPI. The modern OSL code generator for MaterialX uses the following library instead:

https://github.com/materialx/MaterialX/tree/main/libraries/stdlib/genosl

And the implementation of ramp4 in MaterialX 1.38 is now a language-independent node graph:

https://github.com/materialx/MaterialX/blob/main/libraries/stdlib/stdlib_ng.mtlx#L853

This issue is a good reminder, though, that we've long been planning to remove these reference OSL definitions from the repository, replacing them with a script that invokes the OSL code generator to produce reference implementations of each node on demand. This would guarantee that the reference definitions stay in sync with the latest code generators, and would allow us to remove this older set of definitions from the repository.

I'd recommend that we keep this issue active until we follow through on that planned change, replacing the reference OSL definitions with their code-generated equivalents.

from materialx.

jstone-lucasfilm avatar jstone-lucasfilm commented on May 27, 2024

Thanks for this report, @donmccurdy, and the hardcoded reference OSL shaders have been replaced with code-generated equivalents in #820. For now, these code-generated reference shaders are uploaded as part of unit tests in GitHub Actions, and in the future we're planning to include them in MaterialX releases.

from materialx.

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.