Sampleframework fails with IrrlichtRenderer

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

Elekhyr
Just popping in
Just popping in
Posts: 2
Joined: Fri Jul 08, 2016 12:23

Sampleframework fails with IrrlichtRenderer

Postby Elekhyr » Fri Jul 08, 2016 12:46

Hi !
First of all sorry for my english mistakes :).

I followed https://www.youtube.com/watch?v=VaD-MQJLtWk (CEGUI 0.8.2 - From Source To Binaries with MSVC++ 2010) to build cegui 0.87 and it worked, but when I launch the SampleFramework with IrrlichtRenderer it crashes (it's ok with opengl).

I tried to identify the problem and I found that it happens at SpaceBackground.jpg loading at
Texture* res = sys->getImageCodec().load(texFile, this);

And the exception is
CEGUI::FileIOException in function 'class CEGUI::Texture *__thiscall CEGUI::IrrlichtImageCodec::load(const class CEGUI::RawDataContainer &,class CEGUI::Texture *)' (Z:\cegui-0.8.7\cegui\src\RendererModules\Irrlicht\ImageCodec.cpp:58) : Irrlicht failed to create irr::video::IImage from file data.

It sounds very weird because the DriveIcons.png or BackgroundSampleBrowser.jpg loading works fine.

The only difference I see between SpaceBackground.jpg and the others is its size, the image is bigger. (I don't think it's a memory problem, i've 8gb of RAM)

Can you help me to resolve this issue ?
Thanks !

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Sampleframework fails with IrrlichtRenderer

Postby YaronCT » Fri Jul 08, 2016 12:58

@Elekhyr: Irrlicht version?

Elekhyr
Just popping in
Just popping in
Posts: 2
Joined: Fri Jul 08, 2016 12:23

Re: Sampleframework fails with IrrlichtRenderer

Postby Elekhyr » Fri Jul 08, 2016 13:12

YaronCT wrote:@Elekhyr: Irrlicht version?

1.8.3

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Sampleframework fails with IrrlichtRenderer

Postby YaronCT » Fri Jul 08, 2016 16:22

@Elekhyr: Since the Irrlicht renderer isn't popular it hasn't been tested by the cegui team recently, so it's no wonder if it doesn't work. I'll give it a look.

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Sampleframework fails with IrrlichtRenderer

Postby lucebac » Fri Jul 08, 2016 20:34

I investigated this some weeks ago and you need to disable these specific samples. The Irrlicht internal image codec cannot parse some of the image files and therefore fails loading the sample.

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Sampleframework fails with IrrlichtRenderer

Postby YaronCT » Sat Jul 09, 2016 00:16

@lucebac: That can't b our formal solution. Either it's fixed inside Irrlicht or we make the samples use another image codec. I'm still investigating.

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Sampleframework fails with IrrlichtRenderer

Postby YaronCT » Sun Jul 10, 2016 16:38

@Elekhyr: Indeed there's a bug in Irrlicht - it fails to identify jpeg files correctly from their signature. I'll submit a patch to Irrlicht. Till then I can send u a patch I've made if you're interested.

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Sampleframework fails with IrrlichtRenderer

Postby YaronCT » Sun Jul 10, 2016 16:44

@Elekhyr: Note, though, that the Irrlicht renderer still doesn't work perfectly - I still need to investigate, but that will prolly take more time.

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Sampleframework fails with IrrlichtRenderer

Postby YaronCT » Thu Jul 21, 2016 22:32

I've submitted a patch to Irrlicht, which after some changes was merged. So any1 having the same problem - plz just use the latest revision from Irrlicht 1.8 branch and u should b good.

grokko
Just popping in
Just popping in
Posts: 2
Joined: Wed Jan 17, 2018 22:16

Re: Sampleframework fails with IrrlichtRenderer

Postby grokko » Wed Jan 17, 2018 22:29

Hi,
I've had the same Irrlicht loading problem too...Can I write a cegui set with opengl 3 and insert it in Irrlicht?

Michael

grokko
Just popping in
Just popping in
Posts: 2
Joined: Wed Jan 17, 2018 22:16

Re: Sampleframework fails with IrrlichtRenderer

Postby grokko » Thu Jan 18, 2018 03:06

Hi,
An interesting problem...the examples framework for cegui-0.8.7 with Irrlicht as renderer seems to work with
Irrlicht 1.7.3 libIrrlicht.dll and not with Irrlicht 1.8.4.

Does anyone know if 1.8.4 bugs are on the table with cegui-1.0.0 and/or with Irrlicht 2.0.0 for the future.

Thanks,
Michael

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Sampleframework fails with IrrlichtRenderer

Postby Ident » Thu Jan 18, 2018 21:35

This is not part of our immediate plans since we have much more important things to do and our time is very limited, since we all are employed because we need to make money to survive ;)

If you want to add this support it would be greatly appreciated and I will review all your code if you want if you add them as pull request.
CrazyEddie: "I don't like GUIs"

manhnt
Just popping in
Just popping in
Posts: 13
Joined: Thu Oct 26, 2017 01:52

Re: Sampleframework fails with IrrlichtRenderer

Postby manhnt » Thu Jan 25, 2018 10:01

I think you can skip the sample and go straight to your code because it is working for me without issues (both Linux on Windows).
Check out my engine here: http://irrlicht.sourceforge.net/forum/v ... =6&t=52165


Return to “Help”

Who is online

Users browsing this forum: No registered users and 30 guests