Jump to content
Hash, Inc. Forums

Trouble with fire tutorial (After Effects transparency)


dren0chill

Recommended Posts

hello,

i have a question on the fire tutorial.

rendering the smoke with a normal background everything runs fine

rendering the smoke without a background with an alphachannel in the first instance looks fine too

but as soon as i import the rendered clip (w alphachannel) into after effects the sprites show up with the pictureframe

i added some screenshots

appreciate your help

 

w background.tiff

w alphachannel.tiff

in after effects.tiff

in after effects.png

w alphachannel.png

w background.png

Link to comment
Share on other sites

  • Admin

I converted your Tiff images to PNG as Tiff isn't a browser friendly format and folks may not want to download to see the images.

 

I'll have to refresh my memory here but... if you can supply one of the original images/frames from your sequence put into After Effects that will help.

At a guess I'd say there is a setting you'll need to adjust in After Effects but there may be something you can do on A:M's side as well.

 

Added: Make sure you are rendering out of A:M with a format that will properly save the Alpha Channel.

I recommend TGA or EXR. PNG will usually work but is not as robust a format for use with compositing.

Formats to avoid (unless you plan to add a mask to act in the place of the Alpha Channel) include: BMP and JPG.

AVI doesn't store transparency and while the Quicktime format stores the alpha channel it's usually to use image sequences.

Link to comment
Share on other sites

  • Admin

Here's an example of A:M particles (the resulting images that is) working in other programs.

 

 

Note that I used Fusion to comp the particles because it takes awhile to open and setup After Effects (doing that now).

This test also uses the PNG format (as as means to get the animated gif with transparency) so PNG does work... I just don't recommend the format if use can be avoided in the early stages. As you can see the transparency is maintained all the way through the pipeline.

 

In this test, I rendered the particles out of A:M using the TGA format.

 

Click on image for animation.

animation.gif

Link to comment
Share on other sites

  • Hash Fellow

Just thinking out loud... is this the difference between "straight" and "Premultiplied" alpha channels at work here?

 

Could you post one of the targas you get out of A:M when you render with no background and WITH alpha channel?

 

(The Tiffs don't have any alpha channel)

Link to comment
Share on other sites

hello,

thanks a lot for your replies rodney and robcat2075. i tried it with the exr. same problem.

untitled0.exr

 

and here a screenshot of the smoke properties

smoke properties.png

 

the before posted picture with the white background is the one coming out from after effects. it shows apart from the smoke the whole picturelayer of the smokesprite

 

thanks

Link to comment
Share on other sites

  • Admin

its working but whats still funny:

as long as i do not import in after effects the rendered version with the old smoke.tga as an animation movie is smoother than with the smoke.tga with an alpha channel.

 

 

I didn't spend a lot of time creating the alpha channel... so it's mostly just there to test the theory.

If tweaked enough via opacity etc. it turns out pretty decent though but 'as is' the images have hard edges where the alpha channel whites/blacks meet.

Sorry about that!

 

Here's part of a test I have rendering out now that uses those two images:

smoke and fire.mp4

Link to comment
Share on other sites

  • Admin

I hadn't had a chance to download your last videos.

 

I must say that I don't see much of a difference between the two.

Perhaps I did something wrong on my end downloaded the same file...

I do note those unrendered pixels are showing up here and there in the smoke and I hope that is just a fluke.

 

I've attached a side by side comparison of the two.

 

But this is mostly neither here nor there.

The important thing being that you are getting the results you want!

 

 

comparison.mov

Link to comment
Share on other sites

  • Admin
That has an alpha channel that is way too sharp.

 

Reference my post above. That was just a quick conversion of the image to test the theory that it was the lack of alpha channel that was the culprit.

We (i.e. someone with a better eye for perfection than me) will have to create a better sprite image to go with modern day approach.

The modified image (with transparency) does work pretty well with proper opacity set in the Sprite material (at a guess I'd say somewhere in the 20-33% range).

Link to comment
Share on other sites

  • Hash Fellow

I'll note that there are three choose-able parameters to all of this that affect the outcome...

 

-whether the particle image used has a "straight" or "premultiplied" alpha channel

-whether A:M renders its frames with "straight" or "premultiplied" alpha channels

-whether After Effects interprets the frames as having "straight" or "premultiplied" alpha channels

 

That means there are 8 possible variations of the pipeline, only a few of which will give a proper result.

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.
Note: Your post will require moderator approval before it will be visible.

Guest
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...