It allows to export in *.irr in LightmapMaker. Then there's a loader the author provided with a nice working example compiled.
And AGAIN this is outdated and doesn't work with current Irrlicht.
When compiling his example code under C::B 8.02 I'm getting this :
(there was also the famous error with the eventreceiver but since I've seen it 100 times already I corrected it)D:\Game Studio\irrlicht-1.4\projects\LMM_test\LMMLoader.h||In constructor `irr::scene::CLMMLoader::Surface::Surface()':|
D:\Game Studio\irrlicht-1.4\projects\LMM_test\LMMLoader.h|99|warning: converting of negative value `-0x000000001' to `irr::u32'|
D:\Game Studio\irrlicht-1.4\projects\LMM_test\LMMLoader.h||In member function `void irr::scene::CLMMLoader::Surface::PrintOut()':|
D:\Game Studio\irrlicht-1.4\projects\LMM_test\LMMLoader.h|137|error: name lookup of `j' changed for new ISO `for' scoping|
D:\Game Studio\irrlicht-1.4\projects\LMM_test\LMMLoader.h|129|error: using obsolete binding at `j'|
D:\Game Studio\irrlicht-1.4\projects\LMM_test\itest.cpp||In function `int main(int, char**)':|
D:\Game Studio\irrlicht-1.4\projects\LMM_test\itest.cpp|73|error: cannot allocate an object of type `irr::scene::CLMMLoader'|
D:\Game Studio\irrlicht-1.4\projects\LMM_test\itest.cpp|73|error: because the following virtual functions are abstract:|
D:\Game Studio\irrlicht-1.4\include\IMeshLoader.h|34|error: virtual bool irr::scene::IMeshLoader::isALoadableFileExtension(const irr::c8*) const|
||=== Build finished: 5 errors, 1 warnings ===|
the obsolete binding was this :
Code: Select all
for (j=0;j<verts.size();j++)
{
printf("vert %d\n",j);
verts[j].PrintOut();
}
but I have no clue about the other error, in LMMLoader.h it's this :for (int j=0;j<verts.size();j++)
{
printf("vert %d\n",j);
verts[j].PrintOut();
}
Code: Select all
class CLMMLoader : public IMeshLoader
{
public:
//! constructor
CLMMLoader(video::IVideoDriver* driver);
//! destructor
virtual ~CLMMLoader();
//! returns true if the file maybe is able to be loaded by this class
//! based on the file extension (e.g. ".cob")
virtual bool isALoadableFileExtension(const c8* fileName);
//! creates/loads an animated mesh from the file.
//! \return Pointer to the created mesh. Returns 0 if loading failed.
//! If you no longer need the mesh, you should call IAnimatedMesh::drop().
//! See IUnknown::drop() for more information.
virtual IAnimatedMesh* createMesh(irr::io::IReadFile* file);
Code: Select all
class IMeshLoader : public virtual IReferenceCounted
{
public:
//! destructor
virtual ~IMeshLoader() {}
//! Returns true if the file maybe is able to be loaded by this class.
/** This decision should be based only on the file extension (e.g. ".cob") */
virtual bool isALoadableFileExtension(const c8* fileName) const = 0;
//! Creates/loads an animated mesh from the file.
/** \return Pointer to the created mesh. Returns 0 if loading failed.
If you no longer need the mesh, you should call IAnimatedMesh::drop().
See IReferenceCounted::drop() for more information. */
virtual IAnimatedMesh* createMesh(io::IReadFile* file) = 0;
};
} // end namespace scene
} // end namespace irr
Code: Select all
scene::CLMMLoader* lLoader = new scene::CLMMLoader(driver);
Is anyone actually using Lightmapmaker with irrlicht or is everyone using Blitz3D ?