Curling simulation position functions

AI Thread Summary
The discussion revolves around creating a computer program to simulate the motion of curling rocks on a trapezoidal rink image. The user is struggling to accurately calculate pixel positions based on real rink dimensions, specifically the scaling factors for horizontal and vertical positions. They note that the horizontal scale increases as one moves from the back to the front of the rink, but the vertical scaling seems inconsistent. Attempts to derive a linear function for the scaling have led to incorrect total lengths, indicating a fundamental misunderstanding in the model. The user acknowledges the complexity of perspective projection and seeks clarity on how to properly represent the rink's dimensions in their simulation.
Delphi51
Homework Helper
Messages
3,406
Reaction score
11
The Canadian national men's curling competition (the Briar) is going on this weekend and I am motivated to write a computer program to simulate the motion of the rocks on the ice. I see on TV that the rectangular rink 14 by 126 feet appears to be trapezoidal on the screen, with the front about 7 times as wide as the far end:
curling1.jpg


I need functions to calculate the position on the trapezoid image in pixels when given the position in feet on the real rink. This strikes me as a fairly easy problem but I keep getting results that don't check out - I must have a fundamental misunderstanding. The horizontal part seems straighforward: clearly the scale of pixels per foot is larger as you move from back to front. It seems to me the vertical scale must be the same as the horizontal one at any position y down from the top or back of the trapezoidal image.
Curling2.jpg

The scale I get is x pixels divided by 7 feet = a(d-y)/(7d), a linear function of the y position. My first test was to integrate the scale times dy to get the total length of the rink in feet. That came out to 126 =Bd/a[ln(d+h) - ln(d)]
I could not choose constants a,b and c to make this equal to 126 feet!

Next, I tried putting in some numbers for the a,b,c constants to make the rink image look about right on the screen and doing a spreadsheet calculation of the scale and feet for each 10 pixels of the height in the image. When I total up the feet for the whole length, I get about 50 feet.
curling3.jpg

Changes to the constants for the image size and shape seem to make this total even less. Something is very wrong with my model, but what?
 
Last edited:
Physics news on Phys.org
Yikes, that is 3D complicated.
 
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...
Thread 'Variable mass system : water sprayed into a moving container'
Starting with the mass considerations #m(t)# is mass of water #M_{c}# mass of container and #M(t)# mass of total system $$M(t) = M_{C} + m(t)$$ $$\Rightarrow \frac{dM(t)}{dt} = \frac{dm(t)}{dt}$$ $$P_i = Mv + u \, dm$$ $$P_f = (M + dm)(v + dv)$$ $$\Delta P = M \, dv + (v - u) \, dm$$ $$F = \frac{dP}{dt} = M \frac{dv}{dt} + (v - u) \frac{dm}{dt}$$ $$F = u \frac{dm}{dt} = \rho A u^2$$ from conservation of momentum , the cannon recoils with the same force which it applies. $$\quad \frac{dm}{dt}...
Back
Top