www.quadsoftware.com
FAQ  FAQ   Search  Search   Memberlist  Memberlist   Usergroups  Usergroups
Register  ::  Log in Log in to check your private messages


Post new topic  Reply to topic
 Alpha mask export bug. « View previous topic :: View next topic » 
Author Message
takuhiro
PostPosted: Fri May 21, 2010 7:05 am    Post subject: Alpha mask export bug. Reply with quote



Joined: 02 Dec 2009
Posts: 29

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
View user's profile Send private message
ALicu
PostPosted: Fri May 21, 2010 7:47 am    Post subject: Reply with quote



Joined: 12 Feb 2007
Posts: 1326

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
View user's profile Send private message
takuhiro
PostPosted: Fri May 21, 2010 12:35 pm    Post subject: Reply with quote



Joined: 02 Dec 2009
Posts: 29

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
View user's profile Send private message
ALicu
PostPosted: Fri May 21, 2010 12:38 pm    Post subject: Reply with quote



Joined: 12 Feb 2007
Posts: 1326

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
View user's profile Send private message
takuhiro
PostPosted: Tue May 25, 2010 12:56 am    Post subject: Reply with quote



Joined: 02 Dec 2009
Posts: 29

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Based on a template by Dustin Baccetti
Powered by phpBB © 2001, 2005 phpBB Group