Fading a texture on a model

Materials, textures, lighting, postfx
5 posts Page 1 of 1
Posts: 20
Joined: Fri Apr 24, 2015 3:25 pm
by Skipper » Mon Nov 06, 2017 6:30 pm
We are looking at playing an animation in a loop, but at the end of the loop the animation pauses and the model fades out and simultaneously fades back in at the start point of the loop. How do we get the model to fade with transparency instead of the fizzle-fade type effect that you get when switching between LODs?
Posts: 1568
Joined: Sun Feb 08, 2015 1:51 am
by Duion » Mon Nov 06, 2017 10:00 pm
I don't know of any game or engine that has a method for it, most just use the pop in without any fade.
Jason Campbell
Posts: 356
Joined: Fri Feb 13, 2015 2:51 am
by Jason Campbell » Tue Nov 07, 2017 3:04 am
Check out this post:

How to make a variable that affects alpha?

It involves engine changes but it appears that he added alpha as a variable, so you could literally add a little alpha, in increments, until it fades then remove alpha.

the code is in his own reply to the thread.
Site Admin
Posts: 444
Joined: Tue Feb 03, 2015 7:25 pm
by LukasPJ » Tue Nov 07, 2017 8:03 pm
User avatar
the issue lies in the way Torque3D (and most modern engines) render models. The way it is rendered doesn't support transparent objects.

Therefore, in order to have transparent objects, we have to render those objects in another, more simple, way called Forward Rendering. So if you truly want a transparency effect, then you either have to forward render that particular object or fake it somehow.

This is why T3D employs the fizzle-fade technique, and why it isn't just a simple thing to implement.
Posts: 66
Joined: Fri Jan 26, 2018 9:12 pm
by Code_Man » Mon Feb 12, 2018 1:37 pm
Not sure if this is the right topic, but i would like a similar features in material animations.

Just like the scrolling of textures works, i would like a material to become less and more transparent.

Not a big deal if its not straightforward to do, then id just live without it, but consider it something for the wishlist or whatever.
5 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests