Jump to content

Fading a texture on a model


Recommended Posts

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?

Link to comment
Share on other sites

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.


Link to comment
Share on other sites

@Skipper 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.

Link to comment
Share on other sites

  • 3 months later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...