5

This is a diagram: https://i.stack.imgur.com/1RcAW.png

Look at the background carefully...

This background was made in compositing: http://www.filedropper.com/xtruder22

However, I wanted to know whether I could put a better background gradient from a .jpg or .png file? e.g.: http://www.shoutot.com/stockimage/black-gradient-background.jpg http://fc07.deviantart.net/fs71/f/2013/042/c/3/gradient_toshiba_background_by_daproba-d5uo24e.png

Many thanks

ideasman42
  • 47,387
  • 10
  • 141
  • 223
Turbo
  • 1,145
  • 4
  • 13
  • 30
  • I'll have a look at the answers tomorrow. – Turbo Dec 25 '13 at 21:28
  • Also you don't have to use an image to get a nice gradient, you can use a gradient texture or colour ramp in blender to generate nice gradients, either as a material on a plane as part of the render or as another render layer or scene to composite into the final. – sambler Dec 26 '13 at 14:53

2 Answers2

8

Another option is an Alpha over node:

enter image description here

  1. Add an Image node (ShiftA> Input > Image) and open your background image:

    enter image description here

  2. To crop or scale your background image to fit your render, add a Scale node (ShiftA> Distort > Scale).
    Set the Coordinate Space to Render Size, and set the scale type. If your background image is larger than the render, you probably want to crop it. (select Crop) However, if it is smaller and you want to scale it up, select Fit:

    enter image description here

  3. Connect the nodes as shown above.

gandalf3
  • 157,169
  • 58
  • 601
  • 1,133
6

Yes, you can do that with the mix node.

Use the Input > Image node to load in the background image, then use the Mix node with alpha to put it behind.

Node setup: enter image description here

Result:

enter image description here

CharlesL
  • 15,316
  • 7
  • 53
  • 88