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

    Retrieving Texture Bitmap

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 253 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 16/01/2005 at 11:25, xxxxxxxx wrote:

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

      ---------
      I'm here:

      ch = ((TextureTag * ) tag)->GetMaterial()->GetChannel(CHANNEL_COLOR);
      

      When i do

                     cont = ch->GetData();  
                     name = cont.GetString(BASECHANNEL_TEXTURE);  
        
                     GePrint("Color texture name: " + name);
      

      i get the correct texture name so it's alright.

      But now i have to get the texture bitmap. I tried
      ch->GetBitmap() and i got NULL pointer. So i tried ch->GetShader()->InitRender() before with a InitRenderStruct created by me and nothing again.
      And tried

      ch->GetShader()->GetBitmap()
      

      after

      ch->GetShader()->InitRender()
      

      and nothing 😕

      First: when a texture image lies on the PluginShader?
      Second: plz, help me, i can't make it work 😕

      thx!!

      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 17/01/2005 at 19:11, xxxxxxxx wrote:

        hi, anybody?

        I know the answer of my question is simple, so please help me...

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