On 12/29/07, Steven Clark <[EMAIL PROTECTED]> wrote:
> Hey Alex-
>
> I suppose this is more of an OpenGL question than a pyglet question...
>
> I was trying to make some text that was very small in world coordinates, so
> I pushed glScalef(0.01,0.01,0.01) before drawing the text.
> I was surprised to see that the color of the text change.
> Eventually I realized that it was probably due to the normals being scaled
> as well.
> So I did glEnable(GL_NORMALIZE) and the color was fixed.
>
> The question is, is there another way to draw very small text, without using
> glEnable(GL_NORMALIZE)?

Yes, create smaller vertices.  Either start with a smaller font, or
replace pyglet's text rendering methods with your own, that scale the
vertices rather then scaling the transformation matrix.

You could also disable lighting.

Alex.

>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" 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/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to