POV-Ray : Newsgroups : povray.binaries.images : Object Labels : Re: Object Labels Server Time
2 May 2024 15:22:22 EDT (-0400)
  Re: Object Labels  
From: Melody
Date: 21 Jan 2020 21:50:00
Message: <web.5e27b76b28c763ef9da690110@news.povray.org>
if u changed ydeg to zdeg,
auto tilt-correction for left-side display,
 might look something like this.

#macro drwtext()
  #local pnt = rotation(radians(camang/2.04),camup,cameye)*10+campos;
  #local rowh = camang * 0.0036;
  #declare FontSize = .8;
  #local s = array[4] {
    concat("Azimuth     ",str(360-rascension(cameye),0,2)),
    concat("Declination ",str(declination(cameye),0,2)),
    concat("CamAng      ",str(camang,0,1)),
    concat("Time     ",date("%H:%M:%S"))
  }
  #local strtn = 1; // start negative
  #local i = -strtn;
  #while (i < 3)
   #local d = (i*-0.5 - 0.5)*(camang/80);
   label(s[i+strtn],pnt,rowh * i,0,0,0,d)
   #local i = i+1;
  #end
#end


Post a reply to this message

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