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