I am setting up a first-person-shooting scene, where I want to place a camera inside a pit on the ground.

Ideally, at a proper height from the pit bottom, the camera is expected to capture the pit wall in half of its view and outside world in the other half such that the camera peeks at the world from inside the pit.

However, I'm having a hard time achieving this, although I've physically placed the camera inside the pit.

By tuning focal length and near clipping (values of which are unconstrained and free to vary in my case), I get something like this

enter image description here

The pit appears in front of the camera.

How can I actually make the camera view be half pit wall and half the world, just as what our eyes see if we are squatting inside the pit?

My minimal working example Blender file:

  • $\begingroup$ See this: blender.stackexchange.com/questions/4946/… $\endgroup$ – tacofisher Jul 24 '17 at 23:04
  • $\begingroup$ Nevermind, the problem is that your pit is ridiculously small, increasing its size fixes the issue, is there any reason to make it so small? $\endgroup$ – tacofisher Jul 24 '17 at 23:10
  • $\begingroup$ @tacofisher Unfortunately I am not free to change the size of the pit, as I am given an elevation map and asked to make a "topographically accurate" scene... $\endgroup$ – Sibbs Gambling Jul 24 '17 at 23:33
  • $\begingroup$ Thanks a lot for the link. It's related to viewport, but I am asking about camera. $\endgroup$ – Sibbs Gambling Jul 24 '17 at 23:34

All you need to do is set your near clipping distance to 0

enter image description here

You should also consider changing the Unit Scale so that your objects are of reasonable relative size. I increased it from 0.001 to 5:

enter image description here

  • $\begingroup$ What happens if you change the scale for the scene, so that you are working in mm? $\endgroup$ – cegaton Jul 25 '17 at 2:23
  • $\begingroup$ @cegaton - Yes, you can change the unit scale. Maybe he changed it accidentally. Good call $\endgroup$ – bertmoog Jul 25 '17 at 2:33

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.