Dennis Schridde wrote:
Am Samstag, 11. November 2006 18:40 schrieb Gerard Krol:
The clipping in src/bucket3d.c doesn't seem to work for me, as droids
and buildings disappear when they are not entirely off screen.
Anyone else has this problem?
Yes, this problem exists since long. It's just that nobody yet has bothered to fix it...
I hacked a *7 into the radius calculation and everything seems to work
fine, and I guess it is not a big problem nowadays when we draw 3 droids
and a building too much.
Why *7 ? Any specific reasons or found by trial and error?
What is FP12_MULTIPLIER ?
FP12_MULTIPLIER is (1<<12) but I don't have a clue what it stands for.
The 7 was just trial and error.

Someone with some experience with 3D viewports should write a new equation for the size of a circle on screen, and we can use that. For now I suggest adding it to the TODO list (or a to be created HACK list (on the Wiki?)) so we don't forget about it.

- Gerard

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to