Subject:
|
Re: pictures at tracker
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Wed, 5 Jun 2002 18:58:27 GMT
|
Viewed:
|
1234 times
|
| |
 | |
In lugnet.cad, Steve Bliss writes:
> In lugnet.cad, Don Heyse writes:
> > For now it sounds like you can work around it by skipping the -Q switch
> > for antialiased lines. The Pics won't be quite as pretty, but should
> > be the right color.
>
> OK, I'll do that.
Actually I think I've finally fixed this one.
I did some testing on ldraw.org and I think I fixed it by inserting
an extraneous glFlush() after all color changes. This really looks
like a bug in the old version of Mesa on ldraw.org. I did a quick
search for glFlush and Mesa and turned up this quote:
I found a work-around for your line clipping bug. Insert a glFlush()
call after glEnd(). Mesa tries to combine adjacent glBegin/glEnd
primitives to improve vertex throughput. You've uncovered a bug in
the combining/clipping code. By inserting glFlush() you'll force
the primitive to be drawn right away, rather than later.
This sounds a lot like the workaround I came up with for my similar
problem. However it also comes with this caveat:
If you're running on a variety of OpenGL implementations you may
want to avoid glFlush() for performance reasons.
I doubt this will be a performance problem when rendering offscreen,
but I wonder how it'll affect folks rendering to a remote X display.
I made it check specifically for Mesa versions less than 4, so the
fix shouldn't make the display any slower for Windows and Mac users.
Don
|
|
Message has 1 Reply:
Message is in Reply To:
77 Messages in This Thread:                                   
       
             
        
         
        
             
           
         
               
       
     
                
         
     
           
               
               
   
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|