Hi, i'm using a set of object tiles that after composed in world editor, are my terrain.
I've created my own class for this, since i need to override some aspects of it. I'm extending Game.Static.
My problem is that when drawing (drawPrepare), when character walks in the world, some tiles are not rendered in certain positions... this occurs even if i don't check if object is inside frustum, so i was expecting that they were always drawn...
I'm using like this:
Code:
UInt drawPrepare()
{
MaterialLock=material(); mesh->draw(_matrix_scaled);
MaterialLock=NULL;
return 0;
}
Any ideas of what i'm doing wrong?
Also, even with Frustum check (if(Frustum(mesh->box, _matrix_scaled))), these objects should be drawn since they are in Frustum, but they disappear in some positions...
Thanks!