On Sun, Feb 8, 2009 at 4:20 AM, Rayene Ben Rayana
<[email protected]> wrote:
> Ok, I've got it. I'll explain the trick in case someone encounters the same
> problem :
>
> 1. I had to call gluOrtho2D with scale = sc1 (sc1 depends on the zoom) and
> then call gluLookAt with x,y
> 2. draw the map
> 3. call gluOrtho2D with a fix  scale sc2 (does not depend on the zoom)
> 4 call gluLookAt again with coords = x*(sc2/sc1) , y*(sc2/sc1) , instead of
> x,y
> 5. draw the pictures and the labels.
>
> Now, when I zoom in and out,  the map is scaled but the labels keep the same
> size ;)

I'm not sure I understand how that works -- but well done if it does!
I look forward to seeing it in action (and dissecting it ;-) ).

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