POV-Ray : Newsgroups : povray.general : Making labels that don't rotate while object does : Re: Making labels that don't rotate while object does Server Time
8 Aug 2024 14:19:09 EDT (-0400)
  Re: Making labels that don't rotate while object does  
From: ingo
Date: 27 Nov 2000 16:02:13
Message: <Xns8FF9E64A9seed7@povray.org>
David Mathog wrote:

>......
>Then I try to put labels into the frame so that they are stable in the 
>viewed frame.

If it helps, here's a bit by John VanSickle, couldn't find the original so 
copied it from a scene.


////// this part by John van Sickle
#local CamL= <0,1.6,-5>; //where the camera's location is
#local CamE= <0,0,0>;   //where the camera's look_at is
#local CamZ= 2;         //the amount of camera zoom you want

#local CamD= vnormalize(CamE-CamL);
#local CamR= vnormalize(vcross(y,CamD));
#local CamU= vnormalize(vcross(CamD,CamR));

text { ttf "arial.ttf","Your Text",0.01,0
   texture { pigment {rgb 12} }
   scale .1
   translate < 0.3,-0.45, CamZ>
   matrix < CamR.x, CamR.y, CamR.z,
            CamU.x, CamU.y, CamU.z,
            CamD.x, CamD.y, CamD.z,
            CamL.x, CamL.y, CamL.z >
}

camera {
   location CamL
   up CamU
   right CamR*4/3
   direction CamD*CamZ
}        
///////


Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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