|
 |
On 08/09/2014 18:02, Simon wrote:
> hello,
>
> I want to get every 3D coordinate corresponding to 2D target image.
>
> For example, (50, 50) is a point on an 2D target image, it's on an object in a
> image.
> I want to get the 3D coordinate of this point, say(1, -0.8, 0.7).
>
> Is it possible to get the 3D coordinate through altering the source code??
>
> I asked this question before
>
(http://news.povray.org/povray.programming/thread/<web.51d243a492d8f63ce6ccd8f40%40news.povray.org>/),
> but I found TracePixel::CreateCameraRay just get the ray not the corresponding
> 3D coordinate.
>
>
> Thanks.^_^
>
Looks at megapov, postprocessing option
> http://megapov.inetart.net/manual-1.2.1/megapov0121.html#post_processing
You want the intersection coordinates: f_output_ipoint_x(x,y),
f_output_ipoint_y(x,y), and f_output_ipoint_z(x,y).
Read carefully how to activate and use it.
(the x,y above are in 0 to 1 range, so you need to divide by the width
and height)
--
IQ of crossposters with FU: 100 / (number of groups)
IQ of crossposters without FU: 100 / (1 + number of groups)
IQ of multiposters: 100 / ( (number of groups) * (number of groups))
Post a reply to this message
|
 |