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...
Effects with CEGUI
Moderators: CEGUI MVP, CEGUI Team
Re: Effects with CEGUI
Ok thanks!
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:
imgVid is mu bmp image converting by:
as write in NeHe tutorial!
Maybe someone can help me?
Thank you!
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!
Re: Effects with CEGUI
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:
C U!
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!
Re: Effects with CEGUI
Hello! Just a little up for this issue not fixed yet!
Thank you!
Thank you!
nooby wrote:Oki thanks!
But type of setPosition is not the same with RenderingWindow class (float) and Window class(UDim). To get float data I try:but It seams that it is not the same reference than RenderingWindow ::getPosition() method.Code: Select all
Window win->getPosition().d_x.asAbsolute(1.0f);
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!
Re: Effects with CEGUI
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 !
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 !
Re: Effects with CEGUI
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! ):
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):
So I try to do the same with this code:
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?
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! ):
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?
Who is online
Users browsing this forum: No registered users and 13 guests