Page 1 of 1

Make revolving mouse cursor

Posted: Mon Dec 11, 2006 16:28
by Vetal_28
Hello!

How I can make a revolving mouse cursor?
I have an .avi clip, whitch this revolving mouse cursor.

Thanks for help in advanced :!:

Posted: Mon Dec 11, 2006 16:49
by Pompei2
AFAIK, there is no support for animations on CEGUI. I tryed long time to get videos (avi, mpg and so one) to work with openGL and CEGUi but never suceeded. If you get it to work, plz tell me how :)

Posted: Mon Dec 11, 2006 17:21
by Rackle
Have a look at this Wiki entry from the Ogre site: http://www.ogre3d.org/wiki/index.php/CEGUIBuildDialog

Basically you use the 'render to texture' feature of the rendering module (Ogre) to create a changing image. Then you'd use that image as the source for the mouse cursor.

Posted: Tue Dec 12, 2006 18:46
by Vetal_28
Pompei2 wrote:If you get it to work, plz tell me how :)

OK, :wink:

Rackle wrote: Have a look at this Wiki entry from the Ogre site:

This is an empty page, or I am looking the worng page? http://www.ogre3d.org/wiki/index.php/Ogre_Wiki:About
Rackle wrote: Then you'd use that image as the source for the mouse curso


I don't find, how I can change an image for the mouse cursor. May you show it?

I have one more problem:
I want to do moving StaticImage and StaticText, and when I in cycle after pause change it's coordinates, they don't move. They appear at last coorditate, ignorring pause. Do you wan't why?

Posted: Tue Dec 12, 2006 20:28
by Rackle
Your link is not the same as mine. Try again...

And no, it will not be a simple cut-and-paste solution. The code presented creates a Cegui imageset from memory, and uses Ogre to paint/draw onto that imageset. The principle should be adaptable to a Cegui cursor image.