I'm getting some weird flickering when moving a 3D Mesh.
I have a warrior type object containg 3 animated meshes, 1 for long distance away from the camera (low pol), 1 for medium distance (average detail) and the other close up (high detail). The idea being I hide 2 and show 1 depending on distance from the camera. This works fine when I move the camera but when I try to move the warrior, I get a strange flichering effect when it's changing from low-to med, or med to high pol etc. (All meshes, hidden and showing are moved at the same time.)
The flickering entails showing the warrior in a very old location for one frame only then back to the correct postion, for the next frame. This only appears to happen when swapping meshes (ie hidding one and showing another) while moving.
If I remove the distance calculation, ie showing one mesh continually, it doesn't happen. It appears Showentity might be showing the mesh in the wrong location for the first frame??????
It's not screen tearing, ie flip false, as I've removed that.
Any hints? I've checked and re-checked my code but cannot find anything wrong.
I have a warrior type object containg 3 animated meshes, 1 for long distance away from the camera (low pol), 1 for medium distance (average detail) and the other close up (high detail). The idea being I hide 2 and show 1 depending on distance from the camera. This works fine when I move the camera but when I try to move the warrior, I get a strange flichering effect when it's changing from low-to med, or med to high pol etc. (All meshes, hidden and showing are moved at the same time.)
The flickering entails showing the warrior in a very old location for one frame only then back to the correct postion, for the next frame. This only appears to happen when swapping meshes (ie hidding one and showing another) while moving.
If I remove the distance calculation, ie showing one mesh continually, it doesn't happen. It appears Showentity might be showing the mesh in the wrong location for the first frame??????
It's not screen tearing, ie flip false, as I've removed that.
Any hints? I've checked and re-checked my code but cannot find anything wrong.