Page 2 of 2
Re: Question on animation textures
Posted: Tue Oct 27, 2015 10:11 am
by Isaac
minmay wrote:Isaac, if you only want differing colours, why are you messing with a bunch of hacks and different materials when you could just use one greyscale texture and ModelComponent:setEmissiveColor()?
Lack of familiarity of course.
*That's a welcome tip... I was looking at it as a general thing, but it's true that this problem seems crystal specific. Do you know of a way to animate the fade? (I'm wondering if the emission brightness can be animated in the onDrawGui hook.)
It does wash it out though:
Turning on ambientOcclusion does restore (add) some faked shadows, that raises the contrast back up a bit.
Aha! Negative color values restore the highlights, that and a more contrasted diffuse image improve it greatly. Low enough negative values can also make it black; so I think it can be animated to fade when used.
Re: Question on animation textures
Posted: Tue Oct 27, 2015 11:10 am
by minmay
You fade emissive colours by changing them every frame. It's what StonePhilosopherControllerComponent does for the glowing eyes.
Don't do anything like that in onDrawGui! That hook isn't called when the normal GUI is disabled, such as when the party is free-looking. Use TimerComponents or onUpdate hooks for every-frame stuff.
As for washed out colours, you're using values that are too extreme. Keep in mind that CrystalComponent adds some blue tinge itself, and that negative values are supported. Also, you may want different emissive colours for when the crystal is charged or not (you can easily check whether it's charged by checking whether the CrystalComponent is enabled, and keep track of the fade in/out part with a TimerComponent).
Also, I've looked into it and while there are many ways to change the material of a healing crystal, the CrystalComponent's special effects only apply to the healing_crystal material. You won't get the blue tinge, brightness/sparkliness and fading in/out with any other material. So you probably want to stick with healing_crystal.
Re: Question on animation textures
Posted: Tue Oct 27, 2015 11:50 am
by Isaac
minmay wrote: That hook isn't called when the normal GUI is disabled, such as when the party is free-looking.
This I've seen in action. I have a rising platform script that I will alter to use the Timer.
Thanks for the advice minmay.