6 techniques !

ahmadi

10-05-2009 13:15:03

Hi
How can i make 6 techniques in one material?
I very tried to do it with oFusion but im not success! what must i do?
Here is my material :

material LODMat
{
lod_distances 90
technique
{
scheme High
pass
{
ambient 1 1 1 1
diffuse 1 1 1 1
specular 1 1 1 1 10
emissive 1 1 1 1
}

}

technique
{
scheme Medium
lod_index 0
pass
{
ambient 1 0 0 1
diffuse 1 0 0 1
specular 1 0 0 1 10
emissive 0.5 0.5 0.5 0.5
}

}

technique
{
scheme Low
lod_index 0
pass
{
ambient 0 1 0 1
diffuse 0 1 0 1
specular 0 1 0 1 10
emissive 0.5 0.5 0.5 0.5
}

}

technique
{
lod_index 1
scheme Low
pass
{
ambient 1 0 1 1
diffuse 1 0 1 1
specular 1 0 1 1 10
emissive 0.5 0.5 0.5 0.5
}

}
technique
{
lod_index 1
scheme Medium
pass
{
ambient 0 1 1 1
diffuse 0 1 1 1
specular 0 1 1 1 10
emissive 0.5 0.5 0.5 0.5
}

}
technique
{
lod_index 1
scheme High
pass
{
ambient 1 1 0 1
diffuse 1 1 0 1
specular 1 1 0 1 10
emissive 0.5 0.5 0.5 0.5
}

}

}



Note : If you want know why i need 6 techniques, please see following link:
http://www.ogre3d.org/forums/viewtopic.php?f=2&t=49821

Thanks for any help.

Evak

10-05-2009 17:12:14

I never noticed but your right. You can only have 4 at the moment. I'm sure it's an easy fix for lioric since he updated the passes to 99 within a moments notice.

I know it's not the best answer but it's easy to add techniques in to the material file using a text editor. A bit of a nuisance but easily done until Ofusion gets an update. If your using CE and the technique thing is very important to you, you might try OgreMax. That supports a couple of dozen techniques but I find it quite annoying to use in that the material spits out too much extra unnecessary stuff with each pass.

at2142

10-05-2009 18:13:15

I detected that the problem is not only that oFusion don't support 6 techniques, Another problem is that oFusion don't support LOD over Scheme(or in other words, multi technique on one lod_index) !
For an example, you never can export following material with oFusion !


material LODMat
{
lod_distances 90
technique
{
lod_index 0
scheme High
pass
{
ambient 0 1 1 1
}

}

technique
{
lod_index 0
scheme Medium
pass
{
ambient 1 0 0 1
}

}

technique
{
lod_index 0
scheme Low
pass
{
ambient 0 0 0 1
}

}

technique
{
lod_index 1
pass
{
ambient 1 1 0 0
}

}

}



This mean that we have 2 problems, first is that we need more free techniques slots, second is that oFusion don't support unsequential "lod_index N", and when oFusion use LOD, N must be sequential and don't allow artist to keep 2 or more techniques for a lod_index.

Thanks for your attention.
M.AbdolAli