Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    Sample material from another material

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 648 Views
    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.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 22/02/2009 at 13:46, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5/11 
      Platform:   Windows  ;   Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      hello all,
      in my plugin i have a my plugin material, iniside it i have some material link, and i would to use one of this in a conditional way.
      at shader level i can do this via shader->Sample(....), is there a way to sample complete material ?
      Thanks in advance
      franz

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 25/02/2009 at 07:06, xxxxxxxx wrote:

        Afaik you have to use the function of the BaeMaterial class.

        CalcSurface(VolumeData* sd)
        CalcTransparency(VolumeData* sd)
        CalcAlpha(VolumeData* sd)
        CalcVolumetric(VolumeData* sd)

        Unfortunatly I don't get it to work. I will have to ask the developers.

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 25/02/2009 at 07:42, xxxxxxxx wrote:

          hello Matthias,
          thanaks for reply, i'll try to use this function.
          Franz

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 05/03/2009 at 01:40, xxxxxxxx wrote:

            Hello,
            Any News form Developers ?
            Thanks
            Franz

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 19/03/2009 at 03:39, xxxxxxxx wrote:

              sorry for insistence, but i really need some help.
              any Help ?
              Franz

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 19/03/2009 at 03:53, xxxxxxxx wrote:

                The only thing I can say at the moment is that there is no straight forward method doing this. It involves the correct initializing of the shaders for rendering and you have to take care of InitRender() and FreeRender() which brings its own problems. You have to overload InitCalculation() and also have to call InitCalculation() of the shader you want to sample. All in all it involves several steps and precautions. I try to put an example together but I can't say when it will be ready.

                cheers,
                Matthias

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 20/03/2009 at 02:10, xxxxxxxx wrote:

                  Thanks For Reply,
                  an example will be very useful, but i understand you can make it when you have time to do 😉
                  i'll wait

                  Best
                  Franz

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