Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Sampling Redshift Materials

    Cinema 4D SDK
    2024 c++ macos
    2
    3
    510
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      d_schmidt
      last edited by

      Hello, I've just started to dive into Redshift materials and I was wondering if there is a way to sample them like a Standard material?

      I've had some success with Standard materials with using BaseShader::Sample() and BaseChannel::Sample() to get the values of specific shaders at given positions. I can't find a similar way to sample a Redshift material.

      Dan

      i_mazlovI 1 Reply Last reply Reply Quote 0
      • i_mazlovI
        i_mazlov @d_schmidt
        last edited by

        Hi Dan,

        Unfortunatelly there's no similar functionality you can use to achieve the same result.

        The closest opportunity for you could be using the ExchangeMapper, which is able to map some material type (Redshift in your case) to some portbundle material representation (e.g. portbundle viewport).

        Please note, that using the exchange mapper implies lossy conversion, meaning that the output material representation can (and will) be lacking some initial information as there's normally no 1-to-1 mapping between different material types. Another point to mention is that the exchange mapper produces material attributes or/and textures, rather than doing any material sampling.

        Cheers,
        Ilia

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 1
        • D
          d_schmidt
          last edited by

          Hi Ilia,

          At this point this seems a bit over my head, but it seems to be what I need, thanks!

          Dan

          1 Reply Last reply Reply Quote 0
          • First post
            Last post