| Author |
Message
|
| takuhiro |
Posted: Fri May 21, 2010 7:05 am Post subject: Alpha mask export bug. |
|
|
Joined: 02 Dec 2009 Posts: 21
|
I try to export alpha mask.
The noise mixes when the alpha mask is exported as follows.
lpoImage->CopyTo( strAlphaMaskFilename.c_str(), C_IMG_TYPE_DDS, C_IMG_PIXEL_LUMINANCE ) ;
The noise appears in outer of data.
*****@
*****@
*****@
*****@
@=noise
Isn't this a bug? |
|
| Back to top |
|
 |
| ALicu |
Posted: Fri May 21, 2010 7:47 am Post subject: |
|
|
Joined: 12 Feb 2007 Posts: 974
|
Hi,
Is this happening only to DDS?
Can you try to use the RGBA format (DDS doens't support one channel, it will transform the image to RGBA in all cases and may cause other compression errors along the way):
lpoImage->CopyTo( strAlphaMaskFilename.c_str(), C_IMG_TYPE_DDS, C_IMG_PIXEL_RGBA) ;
You may also try to use CopyToEx which has DDS compression options.
We didn't have any problems with our image saving routines and no similar bug was reported. What I assume is happening here is that DDS compression is causing problems. I know for certain that if DDS channels contain different data (for example if you want to pack multiple masks in their channels) you get very ugly artifacts from DDS specific compression.
You can also send us the binary version of the plugin. We can debug it and see if the problems resides in your code, our SDK or the DDS compression code.
Best Regards,
Adrian L. |
|
| Back to top |
|
 |
| takuhiro |
Posted: Fri May 21, 2010 12:35 pm Post subject: |
|
|
Joined: 02 Dec 2009 Posts: 21
|
Thank you for the reply.
This problem seems to occur only by 512*512 AlphaMask.
Version of Grome is 02.00.36 64bit.
The problem did not occur by 256*256 alphaMask.
The result did not change though not the DDS file but the dump file was taken. |
|
| Back to top |
|
 |
| ALicu |
Posted: Fri May 21, 2010 12:38 pm Post subject: |
|
|
Joined: 12 Feb 2007 Posts: 974
|
Hi,
Is this happening on all masks of 512x512 or only on some particular mask you have? Can you send me a small sample map and the compiled (binary) plugin for be me to debug? You can compile and send them directly to my email (licu at quadsoftware.com) or, if it is too big, I can setup a FTP account for you.
Best Regards,
Adrian L. |
|
| Back to top |
|
 |
| takuhiro |
Posted: Tue May 25, 2010 12:56 am Post subject: |
|
|
Joined: 02 Dec 2009 Posts: 21
|
A similar problem occurred in the ExpTxt sample plugins.
I sent 'licu at quadsoftware.com' the image with which the mask was united by Photoshop. |
|
| Back to top |
|
 |
|
|