Error configuring batched geometry transitions [ignore]

klumhru

04-12-2008 00:21:29

Hi hi

I'm having problems loading BatchPages. It tells me there is a problem with shaders, but there are none being loaded.

materials:


material TEX_Oak_Bark_01
{
technique
{
pass
{
ambient 0.588235 0.588235 0.588235
diffuse 0.588235 0.588235 0.588235
specular 0 0 0 10
emissive 0 0 0

texture_unit
{
texture tex_dif_oak_bark_01.png alpha
}
}
}
}


material TEX_Oak_Leaf_01
{
technique
{
pass
{
ambient 0.588235 0.588235 0.588235
diffuse 0.588235 0.588235 0.588235
specular 0 0 0 10
emissive 0 0 0

scene_blend alpha_blend
alpha_rejection greater 128

cull_hardware none
cull_software none

texture_unit
{
texture tex_dif_oak_leaves_01.png alpha
}
}
}
}


I'm a bit stumped hehe.

Here is the code:

mPages.push_back(mPage = new PagedGeometry(mCam, 50));
mPage->addDetailLevel<BatchPage>(150, 30);
mPage->addDetailLevel<ImpostorPage>(300, 50);
TreeLoader3D *trees = new TreeLoader3D(mPage, TBounds(0, 0, 2048, 2048));
mPage->setPageLoader(trees);
Entity *tree = mSceneMgr->createEntity("Tree01", "TRE_Oak_01.mesh");
randomPopulate(tree, trees, 1000);


By the by, this happens when I use the examples in the svn too.

EDIT: Was just a stupid error on my part; I wasn't loading CGProgramManager from a previous thingy.