POV-Ray : Newsgroups : povray.binaries.images : Object Labels : Re: Object Labels Server Time
25 Apr 2024 15:24:49 EDT (-0400)
  Re: Object Labels  
From: Melody
Date: 19 Jan 2020 05:15:01
Message: <web.5e242b2b28c763ef9da690110@news.povray.org>
As for 3D point to screen xy, you'll need a few things.
POV's Perspective Matrix
InvertMatrix function
CameraMatrix 4x4

inv cam to world matrix, subv(pnt-campos)
pop world matrix

if (point[2] > 0) pop perspective matrix
which returns xy;

That's your camera.

> 0 because u dont have eyes in the back of your head.

if < 0, do nothing, move-on to the next pnt/star/object.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.