5
$\begingroup$

This is a diagram: https://i.sstatic.net/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

$\endgroup$
2
  • $\begingroup$ I'll have a look at the answers tomorrow. $\endgroup$
    – Turbo
    Commented Dec 25, 2013 at 21:28
  • $\begingroup$ 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. $\endgroup$
    – sambler
    Commented Dec 26, 2013 at 14:53

2 Answers 2

6
$\begingroup$

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

$\endgroup$
1
  • $\begingroup$ I couldn't do gandalf3's method. So I chose yours. $\endgroup$
    – Turbo
    Commented Dec 26, 2013 at 5:24
8
$\begingroup$

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.

$\endgroup$
7
  • 1
    $\begingroup$ Wondering what version of Blender you're using. Our version 2.69 does not have so many menu items as in your snapshots! $\endgroup$
    – Developer
    Commented Dec 26, 2013 at 3:03
  • $\begingroup$ I couldn't do your method. Thanks a lot anyway, I upvoted your answer. $\endgroup$
    – Turbo
    Commented Dec 26, 2013 at 5:25
  • $\begingroup$ @Developer I'm using 2.69 too.. Are your sure you were using composite nodes? $\endgroup$
    – gandalf3
    Commented Dec 26, 2013 at 7:02
  • $\begingroup$ Well, not. Now we can find them :) Thanks. Compositing. $\endgroup$
    – Developer
    Commented Dec 26, 2013 at 8:10
  • $\begingroup$ @gandalf3 You used Alpha over node when CharlesL used Mix. Which is better? Thanks $\endgroup$
    – Turbo
    Commented Dec 26, 2013 at 10:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .