Attack area visualization widget
Moderator: Moderators
Attack area visualization widget
Here is attack area visualization widget. Currently its work only for cannons and direct fire towers. It's damned slow, so currently it can be used only to place towers. When you build tower, press meta key to see, where your tower can fire.
There are some ugly maths, may be you guys can help to improve that. Also may be to do something with square - made them more smooth.
Any help would be appreciate.
P.S.
This is continue of this topic
- Attachments
-
- gui_attack_area.lua
- (18.17 KiB) Downloaded 43 times
-
- AttackRange2.jpg
- (222.19 KiB) Downloaded 6 times
Re: Attack area visualization widget
What is that interface you have? It looks very nice. Especially the build menu.
- danil_kalina
- Posts: 505
- Joined: 08 Feb 2010, 22:21
Re: Attack area visualization widget
Can Lua calculate some stuf in other thread and return result by callback when it is done ?
Re: Attack area visualization widget
Strange I always worked on the related engine code & visualization for ages now. And just a few days ago commited the most important changes. So 92.0 will be able to show a bad attack cursor for positions static defense cannot hit.
I also experimented with the attack range circle, to switch from the estimation function to the 100% correct TryTarget function. But it's damn slow. So won't come with 92.0 yet. Your visualization is great btw :D
I also experimented with the attack range circle, to switch from the estimation function to the 100% correct TryTarget function. But it's damn slow. So won't come with 92.0 yet. Your visualization is great btw :D
Re: Attack area visualization widget
Thx, JK. Waiting for 92 version then :)
-
- Posts: 933
- Joined: 27 Feb 2006, 02:04
Re: Attack area visualization widget
Could you break it out into multiple threads? Seems like it should be able to be parallelized pretty easily since the results of each calculation don't depend on each other.
Re: Attack area visualization widget
Who uses OMP more and more across the whole engine?
Also mt'ing just gives a n-speedup, but the code is like ~100x too slow to be usable, so you need more than threading
Also mt'ing just gives a n-speedup, but the code is like ~100x too slow to be usable, so you need more than threading
Re: Attack area visualization widget
I made a similar widget, mine only works on 94.0+ though
http://www.mediafire.com/?6b2r5rxfu5brhw5
Similar work using new 94.0 TryTarget functions. Was not aware of this when I made it.
Pics:
http://i253.photobucket.com/albums/hh47 ... n00006.png
http://www.mediafire.com/?6b2r5rxfu5brhw5
Similar work using new 94.0 TryTarget functions. Was not aware of this when I made it.
Pics:
http://i253.photobucket.com/albums/hh47 ... n00006.png
Last edited by jseah on 03 Jul 2013, 04:08, edited 3 times in total.
- PepeAmpere
- Posts: 589
- Joined: 03 Jun 2010, 01:28
Re: Attack area visualization widget
Maybe you should specify, that YOUR widget works only with spring 94+, not a1983's work. Otherwise it can cause missunderstandingjseah wrote:ONLY WORKS ON SPRING 94.0+
Re: Attack area visualization widget
Agreed, I have edited my post.PepeAmpere wrote:Maybe you should specify, that YOUR widget works only with spring 94+, not a1983's work. Otherwise it can cause missunderstandingjseah wrote:ONLY WORKS ON SPRING 94.0+