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
    • Register
    • Login

    Sample shader from dialog?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 520 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 17/04/2005 at 07:11, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.1 
      Platform:   Windows  ; Mac  ;  
      Language(s) :     C++  ;

      ---------
      Hi,

      is there a way to sample a PluginShader from within a dialog? What possibilities are there? I would like to avoid rendering a scene for this. But I need to get a bitmap at the end.

      Thanks
      Katachi

      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 21/04/2005 at 13:31, xxxxxxxx wrote:

        Rendering a scene with a dummy polygon sounds like the simples way. But I guess it should be possible using InitRender() and Sample() as well.

        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 21/04/2005 at 13:35, xxxxxxxx wrote:

          Thanks. Sample requires a channelData struct, where can I get this to pass to the function?

          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 21/04/2005 at 13:44, xxxxxxxx wrote:

            You will have to allocate an empty ChannelData and then fake the values. Either you set the VolumeData to NULL and hope the shader manages without it, or you will have to allocate an empty VolumeData as well and fill in fake values there as well.

            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 21/04/2005 at 13:48, xxxxxxxx wrote:

              Ah I see. Ok, well, that´s a bit too unsafe for what I need, so I guess rendering the scene is my way.

              Thanks

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