different way of colouring radar shots

Place all meeting requests / announcements here...
Post Reply
Posts: 3
Joined: Thu Dec 25, 2008 11:38 pm

different way of colouring radar shots

Post by Kolorciuk » Sat Jul 09, 2011 4:16 pm

Now, the shots on radar, when are higher or lower then our tanks high, they get less visible. They simply fade out. You don't know whether shot is higher or lower then your tank.
I wanted to make it somehow clearly visible on the radar, where ,compared to my tanks high, is the bullet. I decided to not only fade out the bullet, but also to change bullets colour. I have written a very small patch, that makes bullets change their colour with height.
I maked changes only in file src/bzflag/RadarRenderer.cxx
The file is for bz 2.0.16. But in 2.4.0 there's the same file, with similar code, my code should be added in the same place
I commented original code, so if you want go back to the old code, simply uncomment it.
You can change the colors of the bullets, the speed of color change and others. I described everythink in comments in my code,
I upload two files: radar screenshot after applying my code, and a patch file with diff output.

bzflag compiled from sources
OS: pld linux kernel: x86_64
sry for my bad english

[The extension patch has been deactivated and can no longer be displayed.]

radar screenshot
(302.3 KiB) Not downloaded yet

User avatar
Staff Sergeant
Staff Sergeant
Posts: 5187
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks

Re: different way of colouring radar shots

Post by JeffM » Sat Jul 09, 2011 4:48 pm

please submit patches to the sourceforge patch tracker.

Post Reply