2
$\begingroup$

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

$\endgroup$
  • 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$ – Ray Mairlot Mar 9 '18 at 0:45
7
$\begingroup$

For version 2.79 and older use Blam Add-on!

NOTE: Blam is no longer mantained and has been replaced by Fspy: https://fspy.io/, but there is no importer for blender 2.79 or previous versions.

For information to use Fspy in 2.8 read the bottom of this answer.

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.

    Wow indeed, so much wizardry!

    Now comes the hard work:

    Load the original image to be used as background.

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

Graphics Provided by Vecteezy.com


To use FSPY with 2.8

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.

Dowload the app and run it.

Open the picture within Fspy

enter image description here

Move the red and green lines and place them along lines that are parallel (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, ceilings, roads, etc).

Additionally set also the placement for the origin and grid.

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

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.

$\endgroup$
  • $\begingroup$ Did you mean football field? ;) Greetings from Europe, homeland for this sport ;) $\endgroup$ – cgslav Mar 9 '18 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$ – cegaton Mar 9 '18 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 Mar 9 '18 at 18:36
  • 1
    $\begingroup$ @cegaton Where are the goals? At least one. Also: John Cleese about Football $\endgroup$ – Haunt_House Mar 9 '18 at 18:51
  • $\begingroup$ now I just feel its missing some advertisements on the back wall. lol $\endgroup$ – icYou520 Mar 9 '18 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$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.