Page 1 of 1

[NDS] Backgrounds without transparency [Solved]

Posted: Sun Mar 14, 2010 5:33 pm
by RyouArashi
How can I tell grit to create a background image without transparency (i.e. without using palette color 0) ?

When converting the image
Image
using the options (.grit file)

Code: Select all

-ftb -fh!
-g -gt -gB8 -gT FF00FF
-m -mRtf -mLs
-p
i get transparent areas on the background (no$gba, using extended palettes, red color = backdrop):
Image

installed.ini

Re: [NDS] Backgrounds without transparency

Posted: Sun Mar 14, 2010 7:05 pm
by vuurrobin
from: http://www.coranac.com/man/grit/html/grit.htm
-gT!
No transparent pixels / set the alpha-bit of the pixels. Only has effect for NDS bitmaps.
so change '-gT FF00FF' to '-gT!'. that should do it.

Re: [NDS] Backgrounds without transparency

Posted: Sun Mar 14, 2010 7:25 pm
by RyouArashi
I tried -gT!, but it only seems to work with -gb set, not -gt:

Code: Select all

ERROR: Option mismatch: Can't map true-color bitmaps.
I got it working in the end, though.
Adding

Code: Select all

-pT 255
did the trick.

Solved.