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

    BaseDraw::SetTransparency bug?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 283 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 27/03/2005 at 04:23, xxxxxxxx wrote:

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

      ---------
      Hi,

      BaseDraw::SetTransparency doesn't seem to work correctly.

      This docs say
      void SetTransparency(LONG trans)
      Sets the transparency value for following polygons. The range is 0 to 255, where 255 is 100% transparent.

      But this is not the case.
      Infact I can't seem to set the opacity value, I can only turn it on and off

      For example:

        
      bd->SetTransparency(0) // Fully opaque  
      bd->SetTransparency(255) // Does not 100% transparent (it's roughly 50%)  
      bd->SetTransparency(1) // Does the same as 255  
      

      Infact, 1 to 255 produces the same outcome.

      Am I doing something wrong here?

      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 27/03/2005 at 10:18, xxxxxxxx wrote:

        no, it´s a bug. Same for me in my rulerTools. I already reported this to MAXON.

        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 28/03/2005 at 01:22, xxxxxxxx wrote:

          Try negative values, these are used to do true transparency (if the ogl supports it), afaik the postive values set the dither.
          btw, transparency should be working otherwise you would notice it throughout CINEMA, e.g. highlighting!

          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 28/03/2005 at 08:15, xxxxxxxx wrote:

            Great! That works. Should be added to the docs though.

            thx

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