As you can see from the main page, Niko has just released Irrlicht 1.2
Thanks to all the svn users who provided patches, bug reports, fixes, test cases and general feedback.. you know who you are
If there's any really serious bugs we've missed, please report them asap and we'll see about getting a 1.2.1 release together
Awesome, right.But this is not school and no, you don't have to write it fifty times to prove it.
An even version number in the opensource community means a stable, mainly bugfixed release. Downloading right now, testing during the weekend. Changelog sounds promising. Thanks Niko and contributors.
That's great but I'm affraid the 1.2.1 is going to be necessary, because as I can see, multi texture still does not work with GLSL, and the Smooth flag is enabled (whereas it seems to be unstable).
PS : Is it just a compiled version of the SVN or was something more added ?
I downloaded it and recompile my game with the new version. Positive: the modelloader for .x and .b3d work like it should. But it seems that any setting of ambient light is ignored. I cant get it to work. Does anybody have any ideas?
Last edited by Lynxeye on Thu Nov 30, 2006 7:04 pm, edited 1 time in total.
Lynxeye wrote:The changes.txt says there is an ambient light set method in the scene manager called setAmbientLight, but I cant find it there!
Hm, you are right, somehow it disappeared from the ISceneManager interface again. It's in the CSceneManager implementation, but slipped away before the release again. Sorry. As workaround - if you don't want to add the method to the interface and recompile the engine - you can use the ISceneNode::deserializeAttributes() method from the Root scene node to set the ambient light.
void ISceneManager_setAmbientLight(scene::ISceneManager* smgr, IFileSystem* files, video::SColor color)
{
io::IAttributes* a = files->createEmptyAttributes();
// get the current attributes
scene::ISceneNode* self = smgr->getRootSceneNode();
self->serializeAttributes(a);
// set the color attribute
a->setAttribute("AmbientLight", color);
self->deserializeAttributes(a);
// destroy attributes
a->drop();
}
void ISceneManager_setAmbientLight(scene::ISceneManager* smgr, IFileSystem* files, video::SColor color)
{
io::IAttributes* a = files->createEmptyAttributes();
// get the current attributes
scene::ISceneNode* self = smgr->getRootSceneNode();
self->serializeAttributes(a);
// set the color attribute
a->setAttribute("AmbientLight", color);
self->deserializeAttributes(a);
// destroy attributes
a->drop();
}
What do i put for IFileSystem* files?
You can have all the power in the world but if you have no one to follow you what good is the power?