Staredit Network > Forums > SC2 Assistance > Topic: Show only shadows
Show only shadows
Aug 19 2010, 5:18 pm
By: payne  

Aug 19 2010, 5:18 pm payne Post #1

:payne:

Is there a way to make only the shadow of a unit appear, and not his actor?



None.

Aug 19 2010, 5:47 pm UnholyUrine Post #2



I don't have the editor, but try to mess with the cloaking properties?

Or maybe even air units..



None.

Aug 19 2010, 6:38 pm payne Post #3

:payne:

I created a Buff Behaviour that cloaks.
After that, I found out I could simply modify the units' Flags to set them as cloaked.
Both ways work very well to cloak, but none shows the shadow...
And if I could remove that cloaked effect that alters the terrain, it'd be cool too.



None.

Aug 19 2010, 7:21 pm Temp Post #4



If you want a unit with only a shadow you can use actor events to do it. Create a new event for the actor you want. Set the event to Actor Creation and set the message to set opacity. Change the opacity to something very small (0.01).



None.

Aug 19 2010, 7:22 pm Devourer Post #5

Hello

I think you could simply remove the model of the actual unit, not sure though.



Please report errors in the Staredit.Network forum.

Aug 19 2010, 7:25 pm shmeeps Post #6



Quote from Temp
If you want a unit with only a shadow you can use actor events to do it. Create a new event for the actor you want. Set the event to Actor Creation and set the message to set opacity. Change the opacity to something very small (0.01).
Yeah, this will work, the smallest setting is .0001. You'll get a couple weird effects on some models (I think it may still try to not draw the shadow when the model is in front of it), but you won't see it if you aren't looking for it.



None.

Aug 19 2010, 7:28 pm Temp Post #7



Quote from shmeeps
Quote from Temp
If you want a unit with only a shadow you can use actor events to do it. Create a new event for the actor you want. Set the event to Actor Creation and set the message to set opacity. Change the opacity to something very small (0.01).
Yeah, this will work, the smallest setting is .0001. You'll get a couple weird effects on some models (I think it may still try to not draw the shadow when the model is in front of it), but you won't see it if you aren't looking for it.

I haven't noticed any weird things. Maybe it depends on what your in game settings are?

The best solution would be to make a custom model that is a shadow (so that even people playing on the lowest settings can see it)



None.

Aug 19 2010, 7:33 pm shmeeps Post #8



I tried it with a marine, but I only noticed a bit of distortion at the feed, where normally the shadow would meet the unit.

Edit: It's when you click above the unit and it runs over where the arrows show up on the ground, you can see the outline of the unit against it. That's what I was seeing.



None.

Aug 19 2010, 7:34 pm payne Post #9

:payne:

Quote from Devourer
I think you could simply remove the model of the actual unit, not sure though.
Isn't the shadow based on the model itself?
Quote from Temp
The best solution would be to make a custom model that is a shadow (so that even people playing on the lowest settings can see it)
How can I extract shadow's model? :S



None.

Aug 19 2010, 7:36 pm Temp Post #10



Quote from payne
How can I extract shadow's model? :S

You can't :/. There is no shadow model you would need to create your own. Thats why it wasn't my first suggestion, it is not very practical for everyone.



None.

Aug 20 2010, 4:27 am DavidJCobb Post #11



I don't know if SCII uses raytracing or realistic/dynamic shadows, but if it does and you use a shadow model, you'd need to either guarantee that the light will always come from one direction relative to the unit... or settle for a plain, late-90s-console-game-style circular shadow. I think.



None.

Aug 20 2010, 6:23 am payne Post #12

:payne:

The point of the game I wanted to create was to guess the unit that was moving around based on its shadow.
I guess I'll have to scrap the whole idea? :(



None.

Aug 20 2010, 7:15 am DavidJCobb Post #13



I wonder if it might be possible to use a texture or shader on the model that renders as invisible but still casts shadows... Have you tried looking into altering the model's textures?



None.

Aug 20 2010, 7:41 am Temp Post #14



This will still work with the opacity suggestion I gave earlier. It will not work for people with low graphics settings, shadows are rendered differently for people on this setting.



None.

Aug 20 2010, 6:01 pm payne Post #15

:payne:

Quote from Temp
If you want a unit with only a shadow you can use actor events to do it. Create a new event for the actor you want. Set the event to Actor Creation and set the message to set opacity. Change the opacity to something very small (0.01).
I already sense my inability at achieving such a thing.
Any chance you could write a wiki?
http://www.staredit.net/w2/index.php?title=Show_only_the_shadow_of_units&action=edit&redlink=1 :awesome:



None.

Aug 20 2010, 6:21 pm shmeeps Post #16



It's pretty simple, go do Modules->Data->Actors, and find the actor for the unit you want. In my case I found Marine. Then look under the events (Event - Events+ in table view mode). Right click the box, hit add event. Change the event MSG Type to Unit Birth, and the action MSG Type to Set Opacity. The just change the value in the second box to .0001.



None.

Aug 20 2010, 6:26 pm Temp Post #17



Quote from payne
Any chance you could write a wiki?

It is done



None.

Aug 20 2010, 6:51 pm payne Post #18

:payne:

Just wondering: what happens when opacity is set to 0? ;o
And what if the guy is at low? He still see the whole unit or what? :O

Temps says to use Msg Type "Actor Creation" while shmeeps says to use "Unit Birth". Who's right? :P

And thanks for the wiki! <3



None.

Aug 20 2010, 7:17 pm shmeeps Post #19



If it is set to 0, neither the unit nor the shadow will render. It's essentially the same as using the No Draw flag, but you can still select and order the unit, which I believe you can't if you just use the No Draw Flag.

As far as actor creation vs unit birth, unit birth is whenever the actor is attached to a newly created unit (I believe), whereas actor creation is when the actor itself is created. They both work, but Unit Birth would work if you just used the actor without attaching it to the unit. I think. :ermm:



None.

Aug 20 2010, 10:36 pm Temp Post #20



Actor creation occurs after unit birth. You can check this, looking at the units already created their UnitBirth actually creates the actor.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
Please log in to shout.


Members Online: Roy, Vrael, Dem0n, NudeRaider