Shaders to Bitmap and Bitmap save
-
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,
-
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 -
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!
-
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!