7
$\begingroup$

I am trying to change the floor covering using a picture. How can I define the floor?  I

$\endgroup$
1
  • 1
    $\begingroup$ I'm not sure what you mean by "define the floor as background". Please add more information to your question about what you're trying to do. $\endgroup$ Commented Mar 9, 2018 at 0:45

2 Answers 2

16
$\begingroup$

For Blender 2.8x use fSpy

(For blender versions 2.7x or older read the instructions at the bottom of this post.)

fSpy is an Open source still image camera matching app that sets the parameters of the Blender camera and optionally sets the camera background image.

Download the app (https://github.com/stuffmatic/fSpy/releases) and run it.

Open the picture within fSpy

enter image description here

Move the red and green lines and place them along lines that would be parallel in the real world, but that on the picture converge to a vanishing point.

Additionally set also the placement for the origin and grid (and if you know the distance between two points you can enter that as well).

enter image description here

In this case the tiles on the floor are perfect to set the lines, but for other images, all that matters is that the lines are on the same plane and are parallel in the real world, like walls, windows, ceilings, roads, etc. On the left side of the interface you can set what color line corresponds with what axis for the 3D envirionment. X and Y will be for horizontal lines and Z for vertical

enter image description here

Save the fspy project.

Download the fspy Addon for blender (https://github.com/stuffmatic/fSpy-Blender)

Open Blender 2.8, install and enable the fspy addon.

enter image description here

(detailed instructions on how to install the addon here)

Import the fspy project into blender.

enter image description here

A new camera will be created along with a camera background image.

enter image description here

Now you have a scene that matches that of the photograph, so that you can recreate the geometry and add whatever you want.

Start reconstructing the geometry.

enter image description here

enter image description here

You can choose to unwrap UVs Using Project from view, to place some of the original textures from the photograph.

From there on, you can create whatever materials you want and composite them on top of the original image.

Why settle with a boring old rug when you can have your own indoor soccer field?

enter image description here

For version 2.79

Use version 1.0.2 of the fSpy addon.

For older versions of blender use Blam Add-on!

NOTE: Blam is no longer mantained

To use Blam.

  • Download, install and enable the addon.

Load the image in the Movie Clip Editor.

Use the grease pencil to draw a series of lines following elements that would be parallel in the real world. Use a different layer of grease pencil for lines going in different directions.

enter image description here

enter image description here

In the Misc. tab. Set the camera calibration to use 2 vanishing points.

Determine the axis for each of the grease pencil layers.

Activate Set Background Image and click on Calibrate active camera

enter image description here

In the 3D viewport the camera lens will change to use the estimated focal length and will be placed using a matching perspective as the original image. The project render size will also change to match the dimensions of the original image.

Load the original image to be used as background and start reconstructing the geometry

Graphics Provided by Vecteezy.com

$\endgroup$
5
  • $\begingroup$ Did you mean football field? ;) Greetings from Europe, homeland for this sport ;) $\endgroup$
    – cgslav
    Commented Mar 9, 2018 at 18:18
  • $\begingroup$ @LukeD depends on which country. In the US, a football field would be something different, for a sport played by dudes with helmets and causing each other concussions while they chase an elliptical ball. $\endgroup$
    – user1853
    Commented Mar 9, 2018 at 18:30
  • $\begingroup$ I know, I was referring to history, origin of the sport, etymology (ball kicked by foot - football) and fact that most countries around the world is using football (or derivatives) instead of soccer: i.imgur.com/2GHdRDg.jpg ;) $\endgroup$
    – cgslav
    Commented Mar 9, 2018 at 18:36
  • 1
    $\begingroup$ @cegaton Where are the goals? At least one. Also: John Cleese about Football $\endgroup$ Commented Mar 9, 2018 at 18:51
  • $\begingroup$ now I just feel its missing some advertisements on the back wall. lol $\endgroup$
    – icYou520
    Commented Mar 9, 2018 at 23:15
0
$\begingroup$

You could try using the photo as a texture on a plane. There's an addon "Images as planes" that does this for you. Another one is to use the viewport background images (N-panel, scroll down to "background images", "Add Image"). Those are only visible in orthogonal preset views (i.e. front/back/left/right/top/bottom or Numpad 1-3-7) Use numpad 5 to tobggle pesrppective to orthogonal) or the camera perspective view (Numpad 0)

Hope this helps.

Edit: This won't give you just the floor, you'd have to cut the floor into a separate image yourself.

$\endgroup$
0

You must log in to answer this question.

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