Git Product home page Git Product logo

Comments (4)

sebastienblor avatar sebastienblor commented on June 1, 2024 2

Good point about the metadata, it will be cleaner indeed. Just a detail, we don't want to specify a relative path in the metadata, but just a boolean flag to let arnold deal with the search path as it usually does (through the global attribute options.texture_search_path)

from arnold-usd.

autodesk-oss-arnold-bot avatar autodesk-oss-arnold-bot commented on June 1, 2024

Issue synced internally to ARNOLD-14818

from arnold-usd.

BigRoy avatar BigRoy commented on June 1, 2024

How about storing this as metadata on the asset paths' attributes? I believe MaterialX for example does that in Houdini Solaris to specify the colorspace of a particular filepath being loaded. It's not a separate attribute but instead becomes metadata of the asset path.

As a quick example, see this screenshot:
image

Which looks e.g. like this in the usda file:

...
        def Shader "mtlximage1"
        {
            uniform token info:id = "ND_image_color3"
            asset inputs:file = @/path/to/my/file.exr@ (
                colorSpace = "ACES - ACEScg"
            )
            color3f outputs:out
        }
...

As such, we could e.g have attribute metadata like:

            asset inputs:file = @/path/to/my/file.exr@ (
                arnold_relative_path = "/path/to/search/path"
            )

Potentially we could have a special string value that could indicate using a 'global' search path as opposed to needing to author a search path per attribute - if that's something we'd ever need.

from arnold-usd.

BigRoy avatar BigRoy commented on June 1, 2024

but just a boolean flag to let arnold deal with the search path as it usually does (through the global attribute options.texture_search_path)

Great, even better!

What I like about the metadata is that you can set it per attribute, instead of per prim.

from arnold-usd.

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.