Alex Holkner a écrit :
> 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.
>   

I would be very interested too.
Rayene, are you also interested to implement dnd features or stick to a
map oriented project?
i am actually looking for a simple way to implement a 2d zui interface
to display pictures, some kind of zoomable contact sheet.
i have been using tkzinc which is quite great especially for geometrical
transformations (see
http://www.tkzinc.org/Documentation/refman-3.3.4/index.html ) but i am
very curious to know how one could implement it with pyglet.

best regards,
vincent



--~--~---------~--~----~------------~-------~--~----~
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