Spinning OpenGL.Tk graphics

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Peuser

    Spinning OpenGL.Tk graphics

    Python's OpenGL.Tk binding makes simple 3D drawing a snap! The default mouse
    keys for panning and sizing is left and right, for rotation it seems to be
    the middle key which is on just very few people's mouse nowadays.

    Of course I tried obvious and not so obvious shift/alt/contrl/mouse
    combinations- without any success.
    Is there a work-around? The docu for the binding is somewhat obscure and one
    has to guess a lot ;-) I haven't figured out yet how to use AutoSpin ....
    I am using Windows2000

    Thanks for suggestions and may be hints to more detailed documentation.

    Michael


  • Michael Peuser

    #2
    Re: Spinning OpenGL.Tk graphics

    Maybe I found a work-around:

    o = Opengl()

    o.bind('<B1-Motion>', o.tkTranslate)
    o.bind('<Button-3>', o.StartRotate)
    o.bind('<B3-Motion>', o.tkRotate)
    o.bind('<Shift-Button-1>', o.tkRecordMouse )
    o.bind('<Shift-B1-Motion>', o.tkScale)

    This was taken (but modified) from the OglSurface/Frame example - that demo
    didn't run however before I changed
    some glVertex3f to glVertex3fv .....

    Michael
    ------------
    "Michael Peuser" <[email protected] > schrieb im Newsbeitrag
    news:bfitk2$ule [email protected]...[color=blue]
    > Python's OpenGL.Tk binding makes simple 3D drawing a snap! The default[/color]
    mouse[color=blue]
    > keys for panning and sizing is left and right, for rotation it seems to[/color]
    be[color=blue]
    > the middle key which is on just very few people's mouse nowadays.
    >
    > Of course I tried obvious and not so obvious shift/alt/contrl/mouse
    > combinations- without any success.
    > Is there a work-around? The docu for the binding is somewhat obscure and[/color]
    one[color=blue]
    > has to guess a lot ;-) I haven't figured out yet how to use AutoSpin ....
    > I am using Windows2000
    >
    > Thanks for suggestions and may be hints to more detailed documentation.
    >
    > Michael
    >
    >[/color]


    Comment

    Working...