3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: question  (Read 461 times)

« on: December 04, 2013, 02:24:49 PM »
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?
« Reply #1 on: December 04, 2013, 02:29:42 PM »
i think iBoundingSphereFrustumCheckSet() is what your looking for Heat... take a look at the Scripting Reference for a more complete explanation...

--Mike
« Reply #2 on: March 08, 2014, 03:18:39 PM »
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?
I believe what your referencing to is Level of detail. and yes it is possible.
Code: [Select]
//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.
I be trippin!
« Reply #3 on: April 25, 2014, 06:58:34 AM »
To improve framerate

1. You can uncheck the 'visible at start' for some objects like skinmesh.
2. You can reduce camera's visibility distance.
3. Remove unwanted scripts.
4. You can uncheck the 'Display Geometry' for some objects like rigidbody.
5. Reduce 'frequency' of particles.
6. Remove unwanted 2d objects like textprint, valueprint, etc.
--Sam
Pages: [1]