On Aug 23, 8:23 am, claudio canepa <[email protected]> wrote:
> On Sat, Aug 22, 2009 at 8:31 PM, jaber <[email protected]> wrote:
>
> > Thanks.
> > Anyway how do I smooth out the line?
> > I added these after self.transform():
>
> > glEnable (GL_LINE_SMOOTH)
> > glHint(GL_LINE_SMOOTH_HINT, GL_NICEST)
> > glEnable(GL_BLEND)
> > glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
>
> > and it didnt work.
>
> All hints are not mandatory for the drivers; by example in my machine
> GL_NICEST renders the same that GL_DONT_CARE
> And I think drivers don't care so much for lines.
> anyway, increasing a little the width helps.
> I attach three samples,
> line_no_smooth.png -> no special state set for lines
> line_smooth_nicest.png -> what you pasted followed by glLineWidth (1.5)
> line_smooth.png -> what you pasted followed by glLineWidth (1.5) and
> replacing GL_NICEST with GL_DONT_CARE
>
> I don't see differences between the last two.
> Another thing to try would be to use multisampling, you can look in the
> pyglet
> tests/window the file WINDOW_MULTISAMPLE.py
>
> As an alternative, you can replace a line with a thin rectangle
>
> --
> claudio
>
> line_no_smooth.png
> < 1KViewDownload
>
> line_smooth.png
> < 1KViewDownload
>
> line_smooth_nicest.png
> < 1KViewDownload
Can you post some codes? Still can't do it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---