Publishers of technology books, eBooks, and videos for creative people

Home > Articles

This chapter is from the book

Compositing with Additional Elements

At this point in the project, you’ve imported and granted dynamic motion to the 3D model of the mosquito repellent cream product. Yet, it exists in a black void and could be more engaging for the viewer. You will now add some additional design elements, including an AI-generated background, some 3D text, and environmental lighting derived from HDRi panoramic imagery.

Generating Background Content with Adobe Firefly

Although you could use stock photography or commission artwork or a photograph as a background for your motion design, you have options for creating all sorts of assets through generative AI platforms.

Adobe Firefly is a new set of generative AI tools that you can access via https://firefly.adobe.com/. It is increasingly being integrated into traditional products like Photoshop, Illustrator, and Express.

Firefly has many advantages over its competitors. It has been ethically trained on a dataset of Adobe Stock materials along with openly licensed work and public domain content with expired copyright. Other generative AI services have been trained on content simply scraped from the open web, which is problematic because copyrighted materials are included in such a dataset. When using Firefly, this is not a concern.

Additionally, Adobe has declared that content generated through Firefly is commercially viable. You do not have to worry about whether someone is going to come after you and declare that you’ve stolen their work.

Let’s use Firefly to create a suitable background for your motion content.

  1. In your web browser, visit https://firefly.adobe.com/ and locate one of the Text To Image modules that are prominently displayed on the page.

  2. In the text prompt field, enter soft texture consisting of greens and oranges, very dark, painterly strokes, obscured by mist and click the Generate button f0237-01.jpg to have Firefly interpret your text prompt into a visual asset.

    Being as descriptive as possible with your text prompt is likely to achieve results that more closely match what you envision.

    The results appear, along with several additional options in the right column that you can tweak to improve or modify the visuals generated through the initial prompt. Since your After Effects composition is framed at a 16:9 resolution, you should tweak the Aspect Ratio value.

  3. Select Widescreen (16:9) in the Aspect Ratio drop-down.

    I also selected Photo for the Content Type and used Firefly Image 2 for the generative AI model.

    f0238-01.jpg

    Below these choices are even more ways of tweaking the resulting imagery.

  4. Select the following values to tweak the result:

    • Color and Tone: Warm Tone

      f0238-02.jpg
    • Lighting: Dramatic Light

    • Composition: Wide Angle

    These options generate a visual of a hot, muggy environment that’s prone to be inhabited by many mosquitoes.

    The Prompt area below the images reflects the choices made by adding tags alongside the original text prompt.

    You can remove these tags, if desired, by clicking the small x icon to the right of each tag.

    You can also adjust the initial text prompt from here to further refine the results being generated.

  5. Click Refresh f0239-01.jpg to the right of the text prompt to refresh the generated visuals based on your refinements.

    A new set of four images is generated.

  6. Click the image that most closely matches your vision to view it in greater detail.

  7. Select the More Options icon f0239-03.jpg in the upper right of the image to download the image to your computer for use in After Effects and other applications.

    The image asset downloads to your computer as a high-resolution JPEG.

    f0240-01.jpg

The image I produced measures 2688 pixels wide and 1536 pixels high. This is much larger than the After Effects composition that it was created for and should work well as a background element for the motion design.

Now that you have a suitable background image—thanks to Firefly—you can complete the After Effects composition.

Adding the Generated Background Image

Now that you have a suitable background asset, it is time to compose it in the motion design.

It will not be animated, but subtle panning or scaling might be appropriate, if desired.

  1. Drag the Firefly-generated JPEG from your system file browser into the Project panel, or choose File > Import > File from the application menu, to import it.

    f0240-02.jpg

    The imported image appears in the Project panel.

  2. Drag the imported image into the Timeline panel to add it as a layer. Be sure to drag it to the lowest point in the layer stack so that it appears behind the tube.

    Since the resolution of the image from Firefly is greater than that of your composition, you’ll need to make it a 3D-enabled layer and make some other adjustments.

  3. Click the 3D Layer toggle f0241-02.jpg to the right of the layer name, and set the following property values in the Properties panel or via the layer transform properties group in the timeline:

    f0241-03.jpg
    • Scale: 85%

    • Position: 640, 360, 1335 in.

    This ensures the background image is placed behind the tube in 3D space and that it is scaled appropriately.

The background image generated with Firefly integrates perfectly with the tube model from Substance 3D Stager. You really do get the feel of an oppressive, humid, mosquito-filled environment with this combination of assets!

You aren’t finished with this composition yet, though; you still need to add text content and adjust the lighting.

Creating 3D Text

You are approaching the completion of this project. The addition of a suitable background image has certainly helped create a fully formed composition in After Effects, but there is more to be done.

You will now add text that implores the viewer to purchase the product before summer strikes and the mosquitoes are out in full force.

  1. Choose the Text tool f0243-01.jpg from the tools at the top of the interface, and click in the top left of the Composition panel to create a new text object.

  2. Type Buy Before Summer! for the text content.

    f0243-02.jpg
  3. In the Properties panel, set the following values:

    • Position: 55 for x and 125 for y

    • Typeface: Arial Black

    • Text size: 72px

    • Text fill color: #FFE972 (light yellow)

    • Use the alignment options in the paragraph properties to left-align the text.

    The text appears across the background image. Since similar colors are present in the image and the text, some of the text is difficult to read.

    You can remedy this in several ways, but here you will use the Advanced 3D renderer to transform your text to native 3D.

  4. In the timeline, click the Enable 3D Layer toggle f0244-01.jpg for the newly created text layer.

    The text object now includes additional 3D properties, thanks to the Advanced 3D renderer.

  5. To provide a more 3D appearance to the text, open the layer properties and then the Geometry Options and Material Options property groups.

    These property groups are available because the text is a 3D layer. Additional properties are available in the Transform property group, similar to what you saw in Chapter 5.

  6. Change Bevel Style to Angular and adjust the Extrusion Depth value to 10.

    f0244-02.jpg

With these changes made to the text properties, a visible bevel surrounds the edges of each character, greatly improving readability.

With the text element created and transformed to a 3D object, the only thing left to do with this object is transition it into view through a small bit of animation.

Animating 3D Text

The text message should appear only after the animation of the 3D tube has completed. Right now, the text is always present across the entire composition. You will now prepare the text for animation and use standard keyframing techniques to perform a small transition.

  1. Using the Selection tool f0245-01.jpg, right-click the text in the Composition panel, and align the anchor point to the visual center of the text by choosing Transform > Center Anchor Point in Layer Content from the context menu.

    This causes properties such as Scale and Rotate to align to the center of the text instead of to the left edge, which was the original placement of the anchor point.

  2. Move the playhead to the 5-second mark, at 0:00:05:00, and open the Transform properties group.

  3. Enable the Stopwatch toggle f0245-03.jpg for the Scale and Opacity properties.

    You will use these properties to design a short fade-in transition where the text scales up a small amount.

  4. Move the playhead a bit to the right, to 0:00:05:13, and click the Insert Keyframe button f0245-04.jpg to the left of the Scale and Opacity properties.

    This duplicates the previous keyframes for both properties, which ensures these properties retain their current values at the end of the transition.

  5. Leave the keyframe values at 0:00:05:13 at 100% and click the Go to Previous Keyframe button f0245-05.jpg to the left of either property to return to the keyframes at 0:00:05:00.

  6. Adjust Scale to 66% and Opacity to 0%.

    These changes make the text initially transparent and 66% smaller.

    Now let’s finish the motion off with a bit of easing.

    f0246-01.jpg
    f0246-02.jpg
  7. Select all four keyframes by dragging a selection rectangle around them in the timeline.

    The keyframes are highlighted with a blue outline.

  8. Choose Animation > Keyframe Assistant > Easy Ease from the application menu.

    The diamond-shaped keyframes transform into small hourglass shapes, indicating that an ease has been applied.

  9. Play back the full composition to view the results of your work.

All the animation is now complete, but there are still a few items left to examine before you close out this project.

Applying an HDRi Image as an Environmental Light

The Advanced 3D rendering engine allows for a new type of lighting, based on HDRi photography.

Included in the files for this chapter is an image named rainforest_trail_8k.hdr.

This is an HDRi file that has been downloaded from HDRI-HAVEN, although you can use any HDRi photo that you like, of course. The image file is a high-resolution, equirectangular 360° photo taken in a rainforest environment. This is perfect for your mosquito composition.

You will now create a new environment light and use the HDRi image for its source. You will first get the HDRi file into the existing composition so that you can use it.

  1. Choose File > Import > File from the application menu and select the .hdr file. Alternatively, drag the file into the Project panel from your system file browser.

  2. Click Open.

  3. Drag the .hdr file from the Project panel to the bottom of the layer stack in the timeline.

    Since the image is going to be used as a source for the light you will create, it doesn’t need to be visible to the viewer in any way. Placing it at the very bottom of the layer stack completely obscures it from view.

  4. Select the top layer in the composition layer stack—this should be the text layer—and then choose Layer > New > Light from the application menu.

    The Light Settings dialog box appears, allowing you to make choices about what sort of light to create and its specific properties.

  5. In the Light Settings dialog box, choose Environment from the Light Type menu and click OK.

    f0247-02.jpg

    A new light named Environment Light 1 is created and added as a new layer at the top of the layer stack.

  6. Open the layer properties and then the Light Options group.

  7. Click the Source dropdown and select the HDRi image layer.

    f0247-03.jpg

    Because After Effects is aware that this layer contains HDRi data, it is presented as a source option for use in this light. Non-HDRi images will not appear in this drop-down.

    The composition takes on a look that is much more overcast—as though beneath a vast jungle environment and potentially filled with mosquitoes.

    Although the environment light has the intended effect on the look of the composition, you can add additional light to bring focus directly onto the centerpiece.

  8. Select the topmost layer in the layer stack and choose Layer > New > Light from the application menu.

    The Light Settings dialog box appears.

  9. In the Light Settings dialog box, choose Point for the Light Type and enter #F45922 (bright orange) for the Color.

    f0248-02.jpg
  10. Click OK.

    A new point light is added to the composition, making the lighting more intense across the cream tube.

    If desired, you can adjust the position of the point light and other properties to achieve the exact look you want.

With the lighting taken care of, your 3D-motion design is complete.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020