How to use decal in PLSM2?

oscargee

16-06-2009 19:31:59

I found some comments in FrameListener.h. It says:
// In vertices2 you should have the Data needed for the decal...
// could create a custom renderable decal
// with those vertices and map with some material that has a DepthBias
// parameter Set.

Well, this is exactly what I want. I want to draw a road in terrian. I believe using decal is the best choice. I also found some code like "sceneMgr.createMovableObject(name, "PagingLandScapeMeshDecal", &params);" to create decal. But there's no more information for it. I couldn't figure out how to implement it in the sample code.

I want do a map tool which could draw texture in terrain. The map tool of PLSM2 is not working now because the old version CEGUI cannot work with OGRE1.6. Is there anybody who has the same problem?

Oscar