Page 1 of 1

shut off shadow of specific unit

Posted: 27 Nov 2016, 12:40
by daryl
Hi all,
as object, there is a command that hide the shadow of a specific unit?

I need to do some 3d arrows indicating the objectives in a mission... but I would like hide their shadows...
is this possible??

Re: shut off shadow of specific unit

Posted: 27 Nov 2016, 16:16
by jK
yes

Re: shut off shadow of specific unit

Posted: 27 Nov 2016, 16:44
by Kloot

Re: shut off shadow of specific unit

Posted: 27 Nov 2016, 19:05
by FLOZi
Seems to me like for your situation you would be better off making the arrows a purely visual element (i.e. rendering with gl.unitShape) rather than hiding the shadow of an actual unit.

Re: shut off shadow of specific unit

Posted: 27 Nov 2016, 19:43
by PicassoCT
Yes, but that is a easy solution only to advanced programers..

Re: shut off shadow of specific unit

Posted: 28 Nov 2016, 01:02
by hokomoko
This is a classic "easy but difficult" vs. "difficult but easy" solution.
When you make arrow units is really easy to get them to show, but then you have to remove their shadows, to make sure you can't collide with them, that they're not selectable/attackable, that they don't require LoS to be seen etc. All is possible, but requires work and time.
When you draw arrows directly, getting then to show is harder, but when you're done, you're really done.

Re: shut off shadow of specific unit

Posted: 28 Nov 2016, 12:45
by PicassoCT
What if you want even the behaviour of a unit?

I tryied to have my taczones as a OpenGl Shape once, but then the hack of having invisible units was to comfy..

Today its biting me, as i have to filter all effect gadgets for these units :(