SC2Mapster Forums

Development > Data

Opacity & Shadow on Attachments

  • 6 posts
    #1 Nov 12, 2012 at 06:49 UTC - 0 likes

    I made a unit that has a couple attachments. When I send an opacity change to the main unit actor through events (i.c. set opactiy....) the main unit and attachments both change to the same opacity, but the shadow of the attachment is normal and dark while the main shadow has faded due to the opactiy. This makes the unit look weird....

    I've tried playing with the inherit properties etc.... I've tried turning off the core model shadows (low quality blobs I mean, though I'm not using low visual settings). I've tried playing with about every field I could that would impact it. I've sent change opacity events in the attachment actors....

    ummm.....

    I've tried a lot of things, all of which seem to not work.

    Does anyone have any insight on how to control opacity change of both the actor model & shadow?

    (I changed another units opacity and both the main unit and attachment unit shadows are dark, while the models have faded, how can i fade or control the fade of the shadows in relation to opacity change?)

    What I'm wanting is to change the opacity to fade for both the visual actor units and shadows simultaneously.

    Hope you can help!

    Last edited Nov 12, 2012 by ezbeats

    If life's a bitch, better make everyday your wife!!

    #2 Nov 12, 2012 at 21:10 UTC - 0 likes

    Under the Properties: Inherited Properties field the Cast Shadow and Opacity flags should do it. Make sure all the attachments have those enabled.

    Last edited Nov 12, 2012 by DrSuperEvil
    #3 Nov 12, 2012 at 21:28 UTC - 0 likes

    @DrSuperEvil: Go

    I did that. Ive messed with this thing then after 20 mins I move on and come back to it. I tried playing with it again today, and it seems its the model itself from what i can tell. The model that the shadow is not changing with opacity is "infestedterranspawnmissile" (basic green egg thingy). I swapped it out with just the model with the main unit model and they all followed the opacity.

    So I used the same actor and attachments etc... I only changed the model "Art: Model blahblahblah" under the model tab. So without changing any variable / settings the shadows opacity works with some models and not with others.

    This makes me wonder if its something like the emissive layers etc... (one of those obscure model texture layers etc...)

    Alas I'm no good with custom model editing, heck I can hardly manage to get a texture to swap in game let alone pull a model out, edit it properly and put it back in....

    If any model gurus are out there I imagine this is a problem best explained by one of you at this point. I thought this was data, but Ill make this post in the model forum as well.

    Thanks for the reply (ive played with all those "cast shadow" inherit properties etc... settings on every tab I could find originally....)

    #4 Nov 12, 2012 at 22:26 UTC - 0 likes

    Further info ascertained;

    I play with my graphics on ULTRA. Cause I'm like that. I like to make maps pretty. Ultra is the only setting that allows for transparent shadows. Anything with less than ultra shadow settings will show a straight dark shadow for everything all the time, or the blob for low quality. These settings work as they are intended, at least for my purposes.

    Further info; When shadow settings are on ultra, and if i attach the same unit model to itself, the shadows transparency works correctly, (from my post above I had trialed and used identical models as attachements, so its not JUST that model, its ANYTHING OTHER than the base actor model it seems) but if the attachment is another type of model, the shadow always stays dark and doesn't fade with the base actor units opactiy / base unit shadow opacity.

    So, it's not a modeling thing / texture thing. Maybe im thinking my attachment doesnt have a host field or something set up appropriately to link the shadow opacity????

    Heres what im using;

    Main actor; UNIT - GENERICUNITBASE for brutalisk actor in the events i use a 'actor created - create actor BLAHBLAH"

    the attachment is set up as a MODEL MODELANIMATIONSTYLECONTINUOUS for attachment w/ hostsiteoperations ->attach BLAHBLAH

    Dr Supergood, its gonna take one of the attachment / editor gurus to understand this one, as i think its a problem rarely noticed / occuring as opacity with attachments on ultra shadow settings are not something people use in every map.

    In the meantime ill just stick to high graphic settings unless I can figure it out. Not a bad thing i spose, most people on bnet probably have it on high or medium anyways as the sloppy maps make so much lag. The lighting sure does look nice on ultra settings though.... :(

    #5 Nov 13, 2012 at 00:19 UTC - 0 likes

    Tried the Art: Shadow Radius field of the Models data type?

    #6 Nov 13, 2012 at 01:44 UTC - 0 likes

    @DrSuperEvil: Go

    yeah, though I'm not trying to change the size of the shadow or make it appear / dissappear, just to alter the opacity. But i hear ya, when in doubt, change a field... hah

  • 6 posts

You must login to post a comment. Don't have an account? Register to get one!