Effects with CEGUI

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

masch
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Wed Mar 18, 2009 15:37

Re: Effects with CEGUI

Postby masch » Wed May 06, 2009 10:24

mmm... I cannot determinate the error from the log, maybe you can email me your sample7 and I will check it if you want.(the.masch____****____****__gmail.com)

Salu2...
masch...

nooby
Not too shy to talk
Not too shy to talk
Posts: 36
Joined: Tue Apr 14, 2009 14:39

Re: Effects with CEGUI

Postby nooby » Fri May 08, 2009 13:52

Ok thanks! :D
But for now I merged code in sample_demo7 .cpp and .h files to avoid issues.
But I have an other (I know...again!) problem!

As said before I try to display video on a CEGUI window. To achieve that I took example from NeHe tutorial Lesson35.
Everythink work fine until I create texture by loading frame from memory!
An exception occured!

Here my code to do this:

Code: Select all

   Texture* videoFrame;
   *videoFrame   = System::getSingleton().getRenderer()->createTexture();

   videoFrame->loadFromMemory(imgVid, Size(256,256), CEGUI::Texture::PF_RGB);

   // Destroy previous ImageSet use to display video
   ImagesetManager::getSingleton().destroyImageset("videoFrame");

   // Update video
   ImagesetManager::getSingleton().createImageset("videoFrame",(*videoFrame));
   
   Window* img = WindowManager::getSingleton().getWindow("Demo7/Window4Video/ZoneVideo");

   img->setProperty("Image", "set:videoFrame image:full_image");


imgVid is mu bmp image converting by:

Code: Select all

DrawDibDraw (hdd, hdc, 0, 0, 256, 256, lpbi, pdata, 0, 0, width, height, 0);

as write in NeHe tutorial!

Maybe someone can help me?
Thank you!

nooby
Not too shy to talk
Not too shy to talk
Posts: 36
Joined: Tue Apr 14, 2009 14:39

Re: Effects with CEGUI

Postby nooby » Thu May 14, 2009 10:29

Hi! Some news some ones that matter lol!

Video works with vfw (altough displaying surface is cut and video is upside down, maybe fixable with "iluFlipImage();").
With FFMPEG it still does not work but I think it is due to video convertion (using sws_scale).

Code used to display video:

Code: Select all

ImagesetManager::getSingleton().getImageset("videoFrame")->getTexture()->loadFromMemory(imgVid,width, height, CEGUI::Texture::PF_RGB);
Window* img = WindowManager::getSingleton().getWindow("Demo7/Window4Video/ZoneVideo");
img->setProperty("Image", "set:videoFrame image:full_image");

C U!

nooby
Not too shy to talk
Not too shy to talk
Posts: 36
Joined: Tue Apr 14, 2009 14:39

Re: Effects with CEGUI

Postby nooby » Sun May 17, 2009 16:43

Hello! Just a little up for this issue not fixed yet! :D
Thank you!

nooby wrote:Oki thanks! :D
But type of setPosition is not the same with RenderingWindow class (float) and Window class(UDim). To get float data I try:

Code: Select all

Window win->getPosition().d_x.asAbsolute(1.0f);
but It seams that it is not the same reference than RenderingWindow ::getPosition() method.
Since I use float datas in my trajectory calculation function I need float!

Can you help me please?
Thank you!

marsh>> sorry I edit instead of quote but it still ok for share you what I have done!

nooby
Not too shy to talk
Not too shy to talk
Posts: 36
Joined: Tue Apr 14, 2009 14:39

Re: Effects with CEGUI

Postby nooby » Mon May 18, 2009 10:23

I think there is a bug of rendering (or maybe configuration missing):
When I run trunk's demo7 under VC++2005 express with OpenGL, window renders white.
With DirectX it renders fine. I had to install Microsoft SDK so I installed Window Server 2008.
I saw on an older topic that some had a problem close so maybe you can help me!
Thanks :wink: !

nooby
Not too shy to talk
Not too shy to talk
Posts: 36
Joined: Tue Apr 14, 2009 14:39

Re: Effects with CEGUI

Postby nooby » Mon Jun 08, 2009 15:25

Hello!

I want to achieve a translation with a window like you can make in this example (sorry it is in french but translation french translation is...translation! :D ):
http://www-evasion.imag.fr/Membres/Antoine.Bouthors/teaching/opengl/opengl3.html (translation section).

The window turn on a O-center and OM-beam circle thank to this(with openGL):

Code: Select all

glTranslated(cos(a),0,sin(a));


So I try to do the same with this code:

Code: Select all

window.setPivot(CEGUI::Vector3(cos(valPivot),0,sin(valPivot)));

in the "realiseGeometry" method of a CEGUI::RenderEffect subclass.
Of course I update valPivot in the update method.

Of course it would be too easy to work!
Maybe someone could help me please?


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests