loadScene changed in 1.7.2 ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
smashly
Posts: 2
Joined: Tue Oct 19, 2010 6:33 am

loadScene changed in 1.7.2 ?

Post by smashly »

Hi,
I'm currently using C::B 10.05 with MingW gcc compiler (came bundled with C::B), DirectX90c.DevPak for DX8 & 9 includes and libs) in WinXP SP3.
Edit: The way I compile is:
load Irrlicht-gcc.cbp into C::B
In C::B go to Project -> Build Properties
Select platform -> Windows
Project build options -> select W32 - Relrase - fast math
#defines tab and add IRR_COMPILE_WITH_DX9_DEV_PACK
Linker Settings tab and add d3dx9
Search Directories tab and add the path to dx8 and dx9 includes folder
Linker tab and add dx8 and dx9 lib directories
Edit IrrCompileConfig.h to use DX8 and DX9
Hit Build...
Everything compiles fine with no errors (but many warnings) using either Irrlicht 1.7.1 or 1.7.2 sdk, all sweet :)

Using the 15.LoadIrrFile example I've noticed that 1.7.2 Irrlicht seems to have changed in the way that loadScene() doesn't load the particleSystem from media\example.irr with the gcc compiled 1.7.2 irrlicht.dll not mater what render mode I select.

When using 1.7.1 gcc compiled irrlicht.dll the particleSystem would be loaded when using DX8 or DX9 , but not when using OpenGL.

Everything else I've run so far works well enough in 1.7.2.
The 1.7.2 W32-VS irrlicht.dll works the same as 1.7.1 gcc irrlicht.dll with the same 15.LoadIrrFile example. particle system loads under DX8 or DX9, but not OpenGL

Is there something I'm missing in 1.7.2 when I compile it with gcc ?

cheers
Last edited by smashly on Tue Nov 23, 2010 11:19 am, edited 1 time in total.
Brainsaw
Posts: 1242
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

I read the changes of Irrlicht 1.7.2, and I think that something in (de)serialization of the particle system was changed. Maybe that's the source of the problem.

Btw: if you need a particle system with more options (and a clone method) check out my AdvancedParticleSystem in the code snippets forum (also comes with a plugin for IrrEdit 1.5).
Image
Dustbin::Games on the web: https://www.dustbin-online.de/
CuteAlien
Admin
Posts: 9950
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

The only change I see was that several emitters and affectors which had not been created at all in 1.7.1 are now created in 1.7.2.
The loading of scenenodes also isn't affected by the selected renderer to my knowledge.

@Brainsaw: Yeah, I did already notice that. I hope you don't complain if I'll add your stuff back into the engine (as soon as I find time for it - there's a few more open bugs right now).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
smashly
Posts: 2
Joined: Tue Oct 19, 2010 6:33 am

Post by smashly »

Hi and thank you for the input.
The loading of scenenodes also isn't affected by the selected renderer to my knowledge.

It's easy to test what I'm saying in regards to selecting a render mode even without compiling anything.
irrlicht-1.7.1\bin\Win32-VisualStudio\15.LoadIrrFile.exe
or
irrlicht-1.7.2\bin\Win32-VisualStudio\15.LoadIrrFile.exe
Run either choosing OpenGL and particleSystem isn't loaded
Now run it using DX8.1 or DX9 and you get particleSystem loaded

In the case of gcc compiling irrlicht.dll is the the only option if you want to see what I'm refering to. (since the GCC 15.LoadIrrFile example isn't compiled in irrlicht-1.7.1 and gcc irrlicht.dll in either build doesn't have DX added.

But in irrlicht-1.7.2 without compiling you can at least see that OpenGL in the gcc version doesn't load the particleSystem either.

If you compile irrlicht-1.7.2 with gcc adding DX and run 15.LoadIrrFile example, same thing no particles loaded in the scene no matter what render mode is selected.

If you compile irrlicht-1.7.1 with gcc adding DX and run 15.LoadIrrFile example using DX8 or DX9 the particleSystem loads, but using OpenGL the particleSystem isn't loaded.


As I said I still think it's something I'm missing or doing wrong as I'm fresh off the bus when it comes to c++ and compiling

Cheers
CuteAlien
Admin
Posts: 9950
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Ok, I figured the bug out, although it is independent of the renderer (can't really imagine why it worked for you with some renderers now).

Problem was that I added serialization for a few variables which had been missing that. But the xml doesn't yet contain those values as it is written with an older Irrlicht. For now I added some test now that it sets values it doesn't find back to default settings.

It's changed now in the svn 1.7 releases branch.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply