Re: [osg-users] Problems with keyboard events

2014-04-29 Thread alvaro ginestar rodriguez
thanks, it works ;D Date: Tue, 29 Apr 2014 12:34:42 +0200 From: trajce.nikolov.n...@gmail.com To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Problems with keyboard events Hi Alvaro, your update callback is expecting PositionAttitudeTransform, so make circulo() function to

Re: [osg-users] Problems with keyboard events

2014-04-29 Thread Trajce Nikolov NICK
Hi Alvaro, your update callback is expecting PositionAttitudeTransform*, so make circulo() function to return it. Something like* sphere->getOrCreateStateSet()->setAttribute(rojo); PositionAttitudeTransform* pat = new PositionAttitudeTransform; pat->addChild(sphere); return pat; I think with th

[osg-users] Problems with keyboard events

2014-04-29 Thread alvaro ginestar rodriguez
Hi i'm learning OSG and i have some problems with keyboard events. I want move a sphere with the keyboard. I´m following OSG tutorial Handling Keyboard Input to Update a Callback: http://trac.openscenegraph.org/projects/osg/wiki/Support/Tutorials/BasicKeyboardInputAnd i don´t know why it dosen´