How object distance varies with distance(depth)?

  • Thread starter NANDHU001
  • Start date
In summary, the conversation discusses the calculation of object size with distance and the use of perspective in programming a 3D grid. It suggests using angles and trigonometry to determine the projected size of an object at a specific distance from the eye, and using transformations to project 3D coordinates onto a 2D plane for rendering. The conversation also mentions the possibility of clipping the image to avoid rendering objects with negative coordinates.
  • #1
NANDHU001
22
0
Suppose a rod measures 10 cm in length at a distance of 50 cm from my eyes, what will it's length be when it is pushed further by x cm ?(that is at a distance of 'x+50'cm from my eyes)

Please provide a mathematical expression with derivation involving:
rod length-a
distance-l
new distance-l' as variables.
 
Physics news on Phys.org
  • #2
Measured rod length is not a function of distance from your eyes.

Subtended angle is a function of distance from your eyes. But that's trigonometry, not physics. Draw a picture. Label the angles. Try to find a trig function that gives a ratio of the two things that you do know (rod length and distance) in terms of the thing that you don't know (subtended angle).

You may be able to simplify by considering the top half of the rod and the bottom half of the rod separately.
 
  • #3
Is it correct to say l'=(10/(50+x))*50
 
  • #4
Suppose I look at a series of steps as shown in the attached file.




k is the horizontal shift per step and h the vertical shift per step.
-> points to the vertical plane along which steps are projected perspectively.

Then is the height of 'n'th step h'=(h*k)/(n*k)=h/n.
 

Attachments

  • steps.bmp
    83.2 KB · Views: 423
Last edited:
  • #5
NANDHU001 said:
Is it correct to say l'=(10/(50+x))*50

It appears that you are trying to ask about perspective.

One way of dealing with perspective is to think in terms of angles. That is the approach that I was taking. The angle at which a point at a distance x and height h is seen will be given by arctan ( h / x ).

This corresponds to putting a transparent sphere around the eye, projecting sight lines onto the sphere and measuring the angle where sight line passes through the sphere. This technique is good for doing physics (we call it "polar coordinates) but not very good for painting pictures -- paper is not spherical.

Another way of dealing with perspective is to project the sight lines down to an imaginary flat pane of glass through which you are looking at a scene. The points where the sight lines hit the pane are the points where you would put paint on paper to faithfully reproduce the scene. This is the approach that you are taking.

With this understanding...

Yes: If a rod is 10 cm tall when it is right at a pane of glass 50 cm away from the eye then the projection of this rod on the pane will be 10 * 50 / ( 50 + x ) cm tall when it is moved to 50 + x cm away from the eye.

Yes: If h is the projected height of the first step as seen from 1 distance unit away then h/n will be the projected height of the n'th step as seen from n distance units away.
 
  • #6
Thanks, I am actually trying to program a 3d grid. And I wanted to know how to space the grid lines for a particular angle as input to mimic a 3d effect.
Can you please attach a bmp image showing the ray diagrams to illustrate the change in object size with distance taking into account the position of eye.
 
  • #7
Any links to online info are also welcome.
 
  • #8
NANDHU001 said:
Thanks, I am actually trying to program a 3d grid. And I wanted to know how to space the grid lines for a particular angle as input to mimic a 3d effect.
Can you please attach a bmp image showing the ray diagrams to illustrate the change in object size with distance taking into account the position of eye.

If you are trying to program it then what you are probably after is a transformation.

Given a 3-d coordinate value (x,y,z), find the projection of that coordinate on a given plane.

For convenience, take the origin of your coordinate system to be at the eye and take the projection with respect to the x=1 plane.

Then the projection of (x,y,z) on the plane is simply (1, y/x, z/x) and you will want to display a pixel at (y/x, z/x).

If you want to render a 3-d line segment, then find the projections of the end points and fill in the 2-d line segment between those points.


You may want to clip the image and not try to render any image element for which x < 0.
 

1. What is the relationship between object distance and depth?

The relationship between object distance and depth can be described by the laws of refraction. As the object moves further away from the observer, the depth of the object increases. This is because the light rays from the object travel through a greater thickness of the medium, causing them to bend more.

2. How does the distance of the object affect the depth perception?

The distance of the object plays a crucial role in depth perception. As the object moves closer to the observer, the depth perception increases. This is because the object appears larger and more detailed, providing more visual cues for depth perception.

3. Does the medium through which light travels affect the object distance and depth relationship?

Yes, the medium through which light travels can affect the object distance and depth relationship. For example, in a denser medium, such as water, light travels slower and bends more, causing objects to appear closer and deeper than they actually are.

4. How does the angle of incidence affect the object distance and depth relationship?

The angle of incidence, or the angle at which light rays hit the surface of a medium, also affects the object distance and depth relationship. As the angle of incidence increases, the light rays bend more, causing the object to appear closer and deeper.

5. Can the relationship between object distance and depth be calculated?

Yes, the relationship between object distance and depth can be calculated using the laws of refraction and the properties of the medium through which light travels. By knowing the refractive index of the medium and the angle of incidence, the depth of an object can be determined using trigonometric equations.

Similar threads

  • Introductory Physics Homework Help
Replies
2
Views
747
  • Introductory Physics Homework Help
Replies
4
Views
664
  • Introductory Physics Homework Help
Replies
3
Views
841
  • Introductory Physics Homework Help
Replies
7
Views
1K
  • Introductory Physics Homework Help
Replies
15
Views
1K
  • Introductory Physics Homework Help
Replies
9
Views
149
  • Introductory Physics Homework Help
2
Replies
35
Views
3K
  • Introductory Physics Homework Help
Replies
31
Views
3K
  • Introductory Physics Homework Help
Replies
1
Views
1K
  • Introductory Physics Homework Help
Replies
9
Views
870
Back
Top