<br>Hello sir.<br><br>Thanks a lot for your kindness.. Now its bot clear to me and I'm sure i'll come out with the result.<br><br>Thanks for your guidance.. Thanks a lot.<br><br>Regards<br>Rakesh Patil<br><blockquote><br>---------- Original message ----------<br>From:David Gobbi&lt; david.gobbi@gmail.com &gt;<br>Date: 09 Feb 10 19:52:32<br>Subject:  Re: rescaling glyphs.??<br>To: Rakesh Patil <rakeshthp@in.com><br><br>Hi Rakesh,<br><br>This will have to be the last email that I answer in this discussion.<br><br>Since every glyph is at a different position, you will have to do the<br>computation for every glyph.<br><br>The result of the dot product is the depth.  Once you have the depth,<br>you must compute the scale factor.  Here's a hint: the scale factor<br>will be proportional to 1/depth.<br><br>Good luck.<br><br>   David<br><br><br>On Tue, Feb 9, 2010 at 7:13 AM, Rakesh Patil <rakeshthp@in.com> wrote:<br>&gt; hello sir,<br>&gt;<br>&gt; Now suppose, i have to show glyphs 
 at following positions:<br>&gt;<br>&gt; 78.23564 8.28372 -5<br>&gt; 78.32127 8.32736 -10<br>&gt; 78.34723 8.42864 50<br>&gt; ...<br>&gt; 80.23574 9.37256 1800<br>&gt;<br>&gt; then, for each point i need to calculate the difference and get the dot<br>&gt; product with projection direction??<br>&gt;<br>&gt; is the result of these dot products the scale factor??<br>&gt; Coz in that code i didnt find and depth parameter.. only position is there..<br>&gt; Am i correct??<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt; ---------- Original message ----------<br>&gt; From:David Gobbi&lt; david.gobbi@gmail.com &gt;<br>&gt; Date: 09 Feb 10 19:05:11<br>&gt; Subject: Re: rescaling glyphs.??<br>&gt; To: Rakesh Patil<br>&gt;<br>&gt; Let camera position be p1, which you can get from camera-&gt;GetPosition().<br>&gt;<br>&gt; Let object position be p2, i.e. the position of a glyph.<br>&gt;<br>&gt; The vector "v" is the p2 - p1:<br>&gt; v[0] = p2[0] - p1[0];<br>&gt; v[1] = p2[1] - p1[1];<br>&gt; v[2] =
  p2[2] - p1[2];<br>&gt;<br>&gt; That's all there is to it.<br>&gt;<br>&gt;<br>&gt;<br>&gt; On Tue, Feb 9, 2010 at 6:24 AM, Rakesh Patil wrote:<br>&gt;&gt; Hello sir,<br>&gt;&gt;<br>&gt;&gt; Thanks a lot for you guidance. Please pardon me if am going wrong at any<br>&gt;&gt; point.<br>&gt;&gt; I'm am still not clear with this point what you said<br>&gt;&gt;<br>&gt;&gt; "The depth is the dot product of the camera's direction-of-projection with<br>&gt;&gt; the vector from the camera's position to the object's position."<br>&gt;&gt;<br>&gt;&gt; what exactly is a vector from the camera's position to object's position??<br>&gt;&gt;<br>&gt;&gt; Thanks<br>&gt;<br></rakeshthp@in.com></rakeshthp@in.com></blockquote>