Hello, and Happy New Year:

A few days ago I downloaded MesaLib-3.1.tar.gz and MesaDemos-3.1.tar.gz.
After the installation of the new libraries, I noticed the following
problems in one of my applications:

  - Text rendered with glBitmap is not depthcued
  - Lines rendered intermixed with text appear with wrong colour
  - Lines rendered intermixed with text are not properly antialiased

This happens only for simple (just lines and text) scenes. The program
runs fine under OpenGL on various SGI's, under OpenGL on Pentium II
under Windows 98 and NT, and on Pentium II under Mesa 3.0 and Mesa
3.1beta, Linux (RedHat 6.0, Kernel 2.2.15).

After a bit of debugging, I found out that the problem seems to be in
render_bitmap (bitmap.c): this function is called to render the text
bitmaps, with ctx->NewState==0, ctx->PB->primitive!=GL_BITMAP, hence nof
Fog (depthcue) in gl_flush_pb. This looked suspect to me, and I added
the following lines to bitmap.c,
line 77:

AW on pluto 96> diff bitmap.c.original bitmap.c
77a78,81
>    if (ctx->PB->primitive!=GL_BITMAP) {   /* A.W. 1.1.2000 */
>      gl_reduced_prim_change( ctx, GL_BITMAP );
>    }
> 

As far as I can see, this fixes the depthcue/antialias problems for
lines and text. Could you please let me know, if my analysis is correct.
If it isn't, I will try to provide you with a small demo-program which
illustrates the problem.

Mesa is great! I started using it ~1 year ago, and was able to port a
medium-complex application (molecular graphics, ~10,000 lines of code)
from OpenGL/SGI without changing a single line of code. And less bugs
than in the 'original' too. Keep up the good work.

Thanks, and Best Regards:

Armin Widmer, <[EMAIL PROTECTED]>


_______________________________________________
Mesa-bug maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-bug


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to