Is it possible to make the objects not seen from the point of view of the camera, to not exist to help the framerate?
Is that what an Imposter is used for?
Is that what an Imposter is used for?
The 3DRad community can be found at classdev.net.
Is it possible to make the objects not seen from the point of view of the camera, to not exist to help the framerate?I believe what your referencing to is Level of detail. and yes it is possible.
Is that what an Imposter is used for?
//LOD system manager for the SkinMesh object.
//Usage:
//See SkinMesh help file for details on how to make frame
//based animation sequences for the skinmesh.
//Make reduced-poly versions of the skinmesh model
//and save them as animation frames (001_mesh.x, 002_mesh.x etc)
//to the SkinMesh's data folder.
//Link this cript to the camera and to the SkinMesh object.
//In the script below make sure that OBJ_0 is the camera and OBJ_3
//is the SkinMesh to LOD-manage.
int DistanceThreshold = 30; //maximum lod distance, in meters
int LODMeshesCount = 10; //number of LOD meshes
void Main()
{
Vector3 cameraLocation;
Vector3 meshLocation;
float distance;
iObjectLocation(OBJ_0,cameraLocation);
iObjectLocation(OBJ_3,meshLocation);
distance = iVectorLength(meshLocation - cameraLocation);
OUT_3 = iFloatInterpolate(distance,0,DistanceThreshold,0,LODMeshesCount-1,true);
}
just modify this LOD script so it will use the cameras orientation and and I hide the skinmesh and there you go.