Discussion:
Really odd thing.
Greg Haerr
2007-08-29 20:44:46 UTC
Permalink
: I tried using MWRBG(1,1,1) and not joy and also MWRGB(16,16,16); and no
: joy.I guess it will be the CVS version for me.

Strange. Make sure that yellow or white works with MWRGB(0,255,255)
and MWRGB(255,255,255) so we're debugging the correct problem.

Greg



:
: Greg Haerr wrote:
: > : I can not render text on top of an image.
: > : Okay here is the odd thing. I can render the text if it isn't black.
: > : Yellow and White work but not black.
: > : I am using Freetype1 to render the image.
: >
: > This is odd, but FT1 uses a GrCopyArea to draw the
: > characters, and in v0.91 and earlier, there was a
: > transparent draw bug with that version. Make sure
: > you're using the CVS version. For a quick workaround,
: > try setting your foreground color to RGB(1,0,0) or something
: > like that. Look at the GrCopyArea code in engine/font_freetype.c.
: >
: > Regards,
: >
: > Greg
: >
: >
: >
: >
:
: -----BEGIN PGP SIGNATURE-----
: Version: GnuPG v1.2.3-nr1 (Windows XP)
: Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
:
: iQEVAwUBRtXXTOLnn4qAcbUGAQL3vAgAiHvibNh6wzxk1vmPX2cI6hLR1DxPmOgY
: 53zOjnYJnUMMfAI4VVKlXo1spwy3JsNU1iBZNSdsza6Yj0YCXnrFEkeuJPq5f7vY
: SI2U9PJnEcw+ythXZKAE4qtDlI880u05YA26rQ011TCDNMN04hhG6UytyJXCTLAR
: 5eELTgnFe1wLk2w3i9fSVcR0HF+NAW60C7ND28W2N0KItSLpaet0XIBW09xUMBXH
: tPDiEDo2JydNF+glVkxjh/YK8A6hXrrXuzN4UWez2011kK0NlWABUje7znRGKlRv
: RBgHW2XGbg0S7qe9h6hLHxDR8c86g6+p4TsYvgF+Boh67vTJttRwgg==
: =KXbo
: -----END PGP SIGNATURE-----
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: nanogui-unsubscribe-***@public.gmane.org
: For additional commands, e-mail: nanogui-help-***@public.gmane.org
:
:
David Siebert
2007-08-29 20:30:04 UTC
Permalink
I tried using MWRBG(1,1,1) and not joy and also MWRGB(16,16,16); and no
joy.I guess it will be the CVS version for me.
Post by Greg Haerr
: I can not render text on top of an image.
: Okay here is the odd thing. I can render the text if it isn't black.
: Yellow and White work but not black.
: I am using Freetype1 to render the image.
This is odd, but FT1 uses a GrCopyArea to draw the
characters, and in v0.91 and earlier, there was a
transparent draw bug with that version. Make sure
you're using the CVS version. For a quick workaround,
try setting your foreground color to RGB(1,0,0) or something
like that. Look at the GrCopyArea code in engine/font_freetype.c.
Regards,
Greg
Greg Haerr
2007-09-01 01:34:20 UTC
Permalink
: Yes this is a good workaround for now. I got it down to 0,0,40 and it
: still worked.
: I render a simple image in this case it looks like burshed aluminum and
: then render some text. If the text is too close to black I get nothing.

What truecolor or palette mode are you running? This matters
as microwindows uses a closest-color algorithm in palette
mode (and averages less than 24bpp truecolor modes)
to come up with a different color.


: I am recompiling to use Freetype2 to see if that fixes the issue.

FT2 doesn't use the GrCopyArea I think so the results should
be different. Keep us posted.

Regards,

Greg
Greg Haerr
2007-08-29 19:29:24 UTC
Permalink
: I can not render text on top of an image.
: Okay here is the odd thing. I can render the text if it isn't black.
: Yellow and White work but not black.
: I am using Freetype1 to render the image.

This is odd, but FT1 uses a GrCopyArea to draw the
characters, and in v0.91 and earlier, there was a
transparent draw bug with that version. Make sure
you're using the CVS version. For a quick workaround,
try setting your foreground color to RGB(1,0,0) or something
like that. Look at the GrCopyArea code in engine/font_freetype.c.

Regards,

Greg
David Siebert
2007-08-29 14:03:20 UTC
Permalink
I can not render text on top of an image.
Okay here is the odd thing. I can render the text if it isn't black.
Yellow and White work but not black.
I am using Freetype1 to render the image.
David Siebert
2007-08-31 16:05:07 UTC
Permalink
Okay I got the CVS version and it didn't solve the issue.
I can get MWRGB(0,0,50) to render correctly.
So it isn't fixed in the CVS version or I made an error installing the
CVS version. Hey I am human so it is possible.

Also when I downloaded the CVS version and edited the config I didn't
see any options in the config to compile it as thread safe and I didn't
see any options for anti-aliasing?

Thanks for your help.
Post by Greg Haerr
: I tried using MWRBG(1,1,1) and not joy and also MWRGB(16,16,16); and no
: joy.I guess it will be the CVS version for me.
Strange. Make sure that yellow or white works with MWRGB(0,255,255)
and MWRGB(255,255,255) so we're debugging the correct problem.
Greg
: > : I can not render text on top of an image.
: > : Okay here is the odd thing. I can render the text if it isn't black.
: > : Yellow and White work but not black.
: > : I am using Freetype1 to render the image.
: >
: > This is odd, but FT1 uses a GrCopyArea to draw the
: > characters, and in v0.91 and earlier, there was a
: > transparent draw bug with that version. Make sure
: > you're using the CVS version. For a quick workaround,
: > try setting your foreground color to RGB(1,0,0) or something
: > like that. Look at the GrCopyArea code in engine/font_freetype.c.
: >
: > Regards,
: >
: > Greg
: >
: >
: >
: >
: -----BEGIN PGP SIGNATURE-----
: Version: GnuPG v1.2.3-nr1 (Windows XP)
: Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
: iQEVAwUBRtXXTOLnn4qAcbUGAQL3vAgAiHvibNh6wzxk1vmPX2cI6hLR1DxPmOgY
: 53zOjnYJnUMMfAI4VVKlXo1spwy3JsNU1iBZNSdsza6Yj0YCXnrFEkeuJPq5f7vY
: SI2U9PJnEcw+ythXZKAE4qtDlI880u05YA26rQ011TCDNMN04hhG6UytyJXCTLAR
: 5eELTgnFe1wLk2w3i9fSVcR0HF+NAW60C7ND28W2N0KItSLpaet0XIBW09xUMBXH
: tPDiEDo2JydNF+glVkxjh/YK8A6hXrrXuzN4UWez2011kK0NlWABUje7znRGKlRv
: RBgHW2XGbg0S7qe9h6hLHxDR8c86g6+p4TsYvgF+Boh67vTJttRwgg==
: =KXbo
: -----END PGP SIGNATURE-----
: ---------------------------------------------------------------------
David Siebert
2007-08-31 21:01:05 UTC
Permalink
: Okay I got the CVS version and it didn't solve the issue.
: I can get MWRGB(0,0,50) to render correctly.
: So it isn't fixed in the CVS version
Do you have a sample program to show the error? The
demo programs display black OK with TT. Is it only
when the program displays on top of black or near-black?
Please describe exactly the bug where the text doesn't
display and I'll get it fixed. At least the RGB 0,0,50
is a workaround for now, right?
Yes this is a good workaround for now. I got it down to 0,0,40 and it
still worked.
I render a simple image in this case it looks like burshed aluminum and
then render some text. If the text is too close to black I get nothing.
I am recompiling to use Freetype2 to see if that fixes the issue.
The THREADSAFE=Y option should still be present, please
check that hasn't changed.
I didn't see that but will check. It is working fine so I might just be
too tired today to read well :)
IIRC the anti alias option may have moved out of the config
file and be part of the Freetype default, which is ON.
Can you explain in more detail?
If it is on then that is good enough for me. I looked good on my screen
but I am used to seeing that option in the config.
: Thanks for your help.
: > : I tried using MWRBG(1,1,1) and not joy and also MWRGB(16,16,16); and
no
: > : joy.I guess it will be the CVS version for me.
: >
: > Strange. Make sure that yellow or white works with MWRGB(0,255,255)
: > and MWRGB(255,255,255) so we're debugging the correct problem.
: >
: > Greg
: >
: >
: >
: > : > : I can not render text on top of an image.
: > : > : Okay here is the odd thing. I can render the text if it isn't
black.
: > : > : Yellow and White work but not black.
: > : > : I am using Freetype1 to render the image.
: > : >
: > : > This is odd, but FT1 uses a GrCopyArea to draw the
: > : > characters, and in v0.91 and earlier, there was a
: > : > transparent draw bug with that version. Make sure
: > : > you're using the CVS version. For a quick workaround,
: > : > try setting your foreground color to RGB(1,0,0) or something
: > : > like that. Look at the GrCopyArea code in engine/font_freetype.c.
: > : >
: > : > Regards,
: > : >
: > : > Greg
: > : >
: > : >
: > : >
: > : >
: > : -----BEGIN PGP SIGNATURE-----
: > : Version: GnuPG v1.2.3-nr1 (Windows XP)
: > : Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
: > : iQEVAwUBRtXXTOLnn4qAcbUGAQL3vAgAiHvibNh6wzxk1vmPX2cI6hLR1DxPmOgY
: > : 53zOjnYJnUMMfAI4VVKlXo1spwy3JsNU1iBZNSdsza6Yj0YCXnrFEkeuJPq5f7vY
: > : SI2U9PJnEcw+ythXZKAE4qtDlI880u05YA26rQ011TCDNMN04hhG6UytyJXCTLAR
: > : 5eELTgnFe1wLk2w3i9fSVcR0HF+NAW60C7ND28W2N0KItSLpaet0XIBW09xUMBXH
: > : tPDiEDo2JydNF+glVkxjh/YK8A6hXrrXuzN4UWez2011kK0NlWABUje7znRGKlRv
: > : RBgHW2XGbg0S7qe9h6hLHxDR8c86g6+p4TsYvgF+Boh67vTJttRwgg==
: > : =KXbo
: > : -----END PGP SIGNATURE-----
: > : ---------------------------------------------------------------------
: >
: >
Greg Haerr
2007-08-31 18:56:29 UTC
Permalink
: Okay I got the CVS version and it didn't solve the issue.
: I can get MWRGB(0,0,50) to render correctly.
: So it isn't fixed in the CVS version

Do you have a sample program to show the error? The
demo programs display black OK with TT. Is it only
when the program displays on top of black or near-black?
Please describe exactly the bug where the text doesn't
display and I'll get it fixed. At least the RGB 0,0,50
is a workaround for now, right?


: Also when I downloaded the CVS version and edited the config I didn't
: see any options in the config to compile it as thread safe and I didn't
: see any options for anti-aliasing?

The THREADSAFE=Y option should still be present, please
check that hasn't changed.

IIRC the anti alias option may have moved out of the config
file and be part of the Freetype default, which is ON.
Can you explain in more detail?

Regards,

Greg





:
: Thanks for your help.
:
: Greg Haerr wrote:
: > : I tried using MWRBG(1,1,1) and not joy and also MWRGB(16,16,16); and
no
: > : joy.I guess it will be the CVS version for me.
: >
: > Strange. Make sure that yellow or white works with MWRGB(0,255,255)
: > and MWRGB(255,255,255) so we're debugging the correct problem.
: >
: > Greg
: >
: >
: >
: > :
: > : Greg Haerr wrote:
: > : > : I can not render text on top of an image.
: > : > : Okay here is the odd thing. I can render the text if it isn't
black.
: > : > : Yellow and White work but not black.
: > : > : I am using Freetype1 to render the image.
: > : >
: > : > This is odd, but FT1 uses a GrCopyArea to draw the
: > : > characters, and in v0.91 and earlier, there was a
: > : > transparent draw bug with that version. Make sure
: > : > you're using the CVS version. For a quick workaround,
: > : > try setting your foreground color to RGB(1,0,0) or something
: > : > like that. Look at the GrCopyArea code in engine/font_freetype.c.
: > : >
: > : > Regards,
: > : >
: > : > Greg
: > : >
: > : >
: > : >
: > : >
: > :
: > : -----BEGIN PGP SIGNATURE-----
: > : Version: GnuPG v1.2.3-nr1 (Windows XP)
: > : Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
: > :
: > : iQEVAwUBRtXXTOLnn4qAcbUGAQL3vAgAiHvibNh6wzxk1vmPX2cI6hLR1DxPmOgY
: > : 53zOjnYJnUMMfAI4VVKlXo1spwy3JsNU1iBZNSdsza6Yj0YCXnrFEkeuJPq5f7vY
: > : SI2U9PJnEcw+ythXZKAE4qtDlI880u05YA26rQ011TCDNMN04hhG6UytyJXCTLAR
: > : 5eELTgnFe1wLk2w3i9fSVcR0HF+NAW60C7ND28W2N0KItSLpaet0XIBW09xUMBXH
: > : tPDiEDo2JydNF+glVkxjh/YK8A6hXrrXuzN4UWez2011kK0NlWABUje7znRGKlRv
: > : RBgHW2XGbg0S7qe9h6hLHxDR8c86g6+p4TsYvgF+Boh67vTJttRwgg==
: > : =KXbo
: > : -----END PGP SIGNATURE-----
: > :
: > : ---------------------------------------------------------------------
: > : To unsubscribe, e-mail: nanogui-unsubscribe-***@public.gmane.org
: > : For additional commands, e-mail: nanogui-help-***@public.gmane.org
: > :
: > :
: >
: >
:
:

Loading...