Although the tooltip tells you what you are about to select,
there isn't a good visual indication in the viewport. This widget
was written to fix that (it also highlights features).
P.S. It onlys works with SVN code, so I won't post it yet...
Pre-Selection Highlighting
Moderator: Moderators
http://spring.clan-sy.com/phpbb/viewtop ... ing#176683
That screenshot comes from a version that uses color inversion,
face windings do not apply as culling is not enabled.
That screenshot comes from a version that uses color inversion,
face windings do not apply as culling is not enabled.
- Ling_Lover
- Posts: 100
- Joined: 26 Sep 2006, 11:50
- Ling_Lover
- Posts: 100
- Joined: 26 Sep 2006, 11:50
Yes, that's possible. The first version that I posted in #lua in the lobby
actually used red/green/yellow for enemy/ally/feature. I just played with
a different setup using gl.LogicOp(GL.SET) and color masks that seems
to be better for highlighting then plain tinting. Using the following:
red: enemy
green: ally
cyan: my unit
yellow: feature
A silhouette approach might be cooler, but I have others priorities at
the moment. The main thing that I wanted to demo with this widget is
the ability to draw a unit exactly the same way as the engine does for
a given frame.
actually used red/green/yellow for enemy/ally/feature. I just played with
a different setup using gl.LogicOp(GL.SET) and color masks that seems
to be better for highlighting then plain tinting. Using the following:
red: enemy
green: ally
cyan: my unit
yellow: feature
A silhouette approach might be cooler, but I have others priorities at
the moment. The main thing that I wanted to demo with this widget is
the ability to draw a unit exactly the same way as the engine does for
a given frame.
So we can make those move path thingies the templar from SC have? Or the trail from castlevania games?trepan wrote:A silhouette approach might be cooler, but I have others priorities at
the moment. The main thing that I wanted to demo with this widget is
the ability to draw a unit exactly the same way as the engine does for
a given frame.