x


Pixel-to-meter camera

Basically, I want to ask the camera this: How many meters would a cube at X distance from the camera have to move in order for its position's WorldToScreenPoint to change by one pixel

Is that possible?

more ▼

asked Apr 27 '12 at 11:14 PM

Flynn gravatar image

Flynn
1.3k 15 21 40

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Cast a ray from the next pixel onto a plane based on the cubes position. You can use the point it intersects with to calculate the distance between its current position and the raycasted position.

more ▼

answered Apr 27 '12 at 11:43 PM

Statement gravatar image

Statement ♦♦
20.1k 35 70 175

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3008
x83
x69
x8

asked: Apr 27 '12 at 11:14 PM

Seen: 699 times

Last Updated: Apr 27 '12 at 11:43 PM