[skip all navigation]

Show only shadows

Creator: payne
Time: Aug 19 2010, 5:18 pm

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

[Avatar]
Addicted to SEN Games -Add more!-
offlinecontact
Rank: Veteran
Is there a way to make only the shadow of a unit appear, and not his actor?

Top

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

[Avatar]
Piss just got 20% cooler
offlinecontact
Rank: Regular
I don't have the editor, but try to mess with the cloaking properties?

Or maybe even air units..

BEWARE!
I'm watching you.. (signature image) .. as you Pee
Top

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

[Avatar]
Addicted to SEN Games -Add more!-
offlinecontact
Rank: Veteran
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.

Top

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

[Avatar]
offlinecontact
Rank: Regular
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).

Top

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

[Avatar]
Being a Coder gives ya tons of P-Views!
offlinecontact
Rank: Veteran
I think you could simply remove the model of the actual unit, not sure though.

(user posted image)
Top

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

[Avatar]
offlinecontact
Rank: Member
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.

Top

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

[Avatar]
offlinecontact
Rank: Regular
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)

Top

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

[Avatar]
offlinecontact
Rank: Member
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.

Top

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

[Avatar]
Addicted to SEN Games -Add more!-
offlinecontact
Rank: Veteran
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

Top

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

[Avatar]
offlinecontact
Rank: Regular
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.

Top

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

[Avatar]
↑ STUDENT DRIVER ↑
offlinecontact
Rank: Regular
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.


░░░▒▒▒▓▓▓▓███▀▀░▄▄▄▄▄▄░▀▀███▓▓▓▓▒▒▒░░░
░░▒▒▒▓▓▓████░▄██████████▄░████▓▓▓▒▒▒░░
░▒▒▒▓▓▓████▐▀▀▀█████▀▀▀▀██▌████▓▓▓▒▒▒░
░▒▒▓▓▓████▐░██░░███▌██░░░██░████▓▓▓▒▒░
▒▒▒▓▓▓███▌▐░██▌░███▌███▌░██▌▐███▓▓▓▒▒▒
▒▒▓▓▓████▌██▄▄▄▄████▄▄▄▄▄███▐████▓▓▓▒▒
▒▒▓▓▓████▌██▀▀▀▀▀▀▀▀▀▀▀▀▀███▐████▓▓▓▒▒
▒▒▓▓▓████▌███▌▓▒▓▒▓▒▓▒▒▒▌███▐████▓▓▓▒▒
▒▒▒▓▓▓███▌▐██▌▒▓▒▓▒▒▒▒▒▒▌██▌▐███▓▓▓▒▒▒
░▒▒▓▓▓████░███▐▒▓▒█████▌███░████▓▓▓▒▒░
░▒▒▒▓▓▓████░▀██▄▀▀▀▀▀▀▄██▀░████▓▓▓▒▒▒░
░░▒▒▒▓▓▓████▄░▀▀██████▀▀░▄████▓▓▓▒▒▒░░
░░░▒▒▒▓▓▓▓█████▄▄▄▄▄▄▄▄█████▓▓▓▓▒▒▒░░░
Top

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

[Avatar]
Addicted to SEN Games -Add more!-
offlinecontact
Rank: Veteran
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? :(

Top

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

[Avatar]
↑ STUDENT DRIVER ↑
offlinecontact
Rank: Regular
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?


░░░▒▒▒▓▓▓▓███▀▀░▄▄▄▄▄▄░▀▀███▓▓▓▓▒▒▒░░░
░░▒▒▒▓▓▓████░▄██████████▄░████▓▓▓▒▒▒░░
░▒▒▒▓▓▓████▐▀▀▀█████▀▀▀▀██▌████▓▓▓▒▒▒░
░▒▒▓▓▓████▐░██░░███▌██░░░██░████▓▓▓▒▒░
▒▒▒▓▓▓███▌▐░██▌░███▌███▌░██▌▐███▓▓▓▒▒▒
▒▒▓▓▓████▌██▄▄▄▄████▄▄▄▄▄███▐████▓▓▓▒▒
▒▒▓▓▓████▌██▀▀▀▀▀▀▀▀▀▀▀▀▀███▐████▓▓▓▒▒
▒▒▓▓▓████▌███▌▓▒▓▒▓▒▓▒▒▒▌███▐████▓▓▓▒▒
▒▒▒▓▓▓███▌▐██▌▒▓▒▓▒▒▒▒▒▒▌██▌▐███▓▓▓▒▒▒
░▒▒▓▓▓████░███▐▒▓▒█████▌███░████▓▓▓▒▒░
░▒▒▒▓▓▓████░▀██▄▀▀▀▀▀▀▄██▀░████▓▓▓▒▒▒░
░░▒▒▒▓▓▓████▄░▀▀██████▀▀░▄████▓▓▓▒▒▒░░
░░░▒▒▒▓▓▓▓█████▄▄▄▄▄▄▄▄█████▓▓▓▓▒▒▒░░░
Top

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

[Avatar]
offlinecontact
Rank: Regular
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.

Top

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

[Avatar]
Addicted to SEN Games -Add more!-
offlinecontact
Rank: Veteran
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:

Top

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

[Avatar]
offlinecontact
Rank: Member
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.

Top

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

[Avatar]
offlinecontact
Rank: Regular
Quote from payne
Any chance you could write a wiki?

It is done

Top

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

[Avatar]
Addicted to SEN Games -Add more!-
offlinecontact
Rank: Veteran
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

Top

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

[Avatar]
offlinecontact
Rank: Member
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:

Top

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

[Avatar]
offlinecontact
Rank: Regular
Actor creation occurs after unit birth. You can check this, looking at the units already created their UnitBirth actually creates the actor.

Top
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)


[11:54 pm]
SmE(Raitaki -- Jack, 2nd rep done
[11:46 pm]
[11:39 pm]
lil-Inferno -- I kid, I kid. The enemy of my enemy is my friend.
[11:38 pm]
SmE(Raitaki -- k.
[11:37 pm]
lil-Inferno -- 18 MINERAL BOUNTY ON RAITAKI. LUL.
[11:20 pm]
SmE(Raitaki -- And Aristo lemme kill you for siggie :kame:
[11:20 pm]
SmE(Raitaki -- Yep, but over time, not for just 2 reps tho :P
Please log in to shout.