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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Shaders to Bitmap and Bitmap save

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 297 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 20/11/2006 at 20:53, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.2-10.0 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      I'll do the second first as it is more pressing.

      I need to save a PNG image file, but there is no option with the BaseBitmap for such a format. How would one go about this? Would I need to actually write my own exporter and then go pixel-by-pixel through the bitmap to save in this format?

      Hmmm, it may be possible to use libpng. Will have to see how it wants data formatted for save (at least zlib is already part of my plugin).

      ***

      On the former, is there a way to 'render' a material BaseChannel with shaders, etc. to a Bitmap for saving (format not related to previous query)? This would be basically 'baking' the channel into a bitmap form for use as a bitmap image elsewhere.

      Thank you very much,

      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/11/2006 at 04:12, xxxxxxxx wrote:

        Quote: I need to save a PNG image file, but there is no option with the BaseBitmap for such a format. How would one go about this? Would I need to actually write my own exporter and then go pixel-by-pixel through the bitmap to save in this format?
        >
        > * * *
        >
        >
        > Hmmm, it may be possible to use libpng. Will have to see how it wants data formatted for save (at least zlib is already part of my plugin).
        >
        > * * *

        Cinema handles PNG through Quicktime, it is not a Cinema native Format. So yes you would have to write your own exporter or use Quicktime or some other PNG library.

        > Quote: _On the former, is there a way to 'render' a material BaseChannel with shaders, etc. to a Bitmap for saving (format not related to previous query)? This would be basically 'baking' the channel into a bitmap form for use as a bitmap image elsewhere.
        >
        > * * *
        _


        Again I think you have to render the channel, probably through a dummy material.

        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 21/11/2006 at 14:22, xxxxxxxx wrote:

          There is also the possibility of saving the BaseBitmap as a PICT format. This can theoretically be converted to a Poser RSR file format (file that has same format as MacOS Resource file) by doing some header/footer manipulation with the file.

          The problem. The problem is that the PICT file saved by Cinema 4D is not 8BIM and this seems to be defeating its use in Poser (works in Cinema 4D with my plugin though because it can read PICT through QT). Is there any way to get Cinema 4D to save in this format, some setting on the bitmap or such?

          Thank you!

          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 23/11/2006 at 10:48, xxxxxxxx wrote:

            An update on the PICT to RSR. It is possible, just needed to stop listening to the guy who provided the RSR header and footer (91x91 pixel PICTS are not always the same byte size) and change the Resource Map offset and Resource Data length for the PICT being embedded. All works!

            A question on this: Again I think you have to render the channel, probably through a dummy material.

            When you say render, do you mean a real ' document' render or just a material render? And is a dummy material required, or is it so that only that channel gets rendered?

            Thank ye very much!

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