How to register entity factory PagingLandScapeMeshDecal?

oscargee

16-06-2009 14:10:48

Hello,

I'm trying to make the following code work.

MovableObject* createDecal(SceneManager &sceneMgr, const String &name,
const String &materialName, const Vector2 &size)
{
NameValuePairList params;
params["materialName"] = materialName;
params["width"] = StringConverter::toString(size.x);
params["height"] = StringConverter::toString(size.y);
params["sceneMgrInstance"] = sceneMgr.getName();

// Not sure if PagingLandScapeMeshDecal is correct, but even just adding a
// unique name gave me same results.
return sceneMgr.createMovableObject(name, "PagingLandScapeMeshDecal", &params);
}

But it says PagingLandScapeMeshDecal wasn't existing. Does anybody know how to solve it?

Thank you,

Oscar

oscargee

16-06-2009 19:21:01

Solved.

I didn't run the application under bin/debug folder. So didn't read configure file properly.