Making a space strategy game focusing on commanding a large fleet, with 1000+ ships per side.(I'm new in XNA 3D...below is a test screenshot. The ships will be scaled down another 2-5 times) When a unit is too far away, it's not rendered anymore.(obviously...when people get killed, they die) are there any way (as fast as possible) to force XNA to render the model into a 1-pixel dot if it's too far/smaller than 1 pixel? (I'm thinking about dynamic scaling, but that will probably drag down the performance severely)
Problem is two-fold:
- Determine how many pixels the model will take when rendered
- Replace model with a dot
- Pick the cut-off distance by eye. So when the model is this big and this far - it should be replaced with a dot. I would make it a property of the ship.
- Render all models that are closer than their cutoff distance as usual. Do not render all models that are farther. Instead render dots (single pixels or sprites, whichever is simpler for you) in their places.
Hmm interesting but I'm not sure if that's the strategy I'd use.. what about using distance as a determining factor or have you looked into or considered camera culling? Something like this article.