[vtkusers] rescaling glyphs.??

Rakesh Patil rakeshthp at in.com
Tue Feb 9 09:01:52 EST 2010


 oh ok... Objects position in my case is same as glyphActor>GetPosition() right?? I'm asking this because it is returning position as zero...Thanks Original message From:David Gobbi< david.gobbi at gmail.com >Date: 09 Feb 10 19:05:11Subject:Re: rescaling glyphs.??To: Rakesh Patil Let camera position be p1, which you can get from camera>GetPosition().Let object position be p2, i.e. the position of a glyph.The vector "v" is the p2  p1:v[0] = p2[0]  p1[0];v[1] = p2[1]  p1[1];v[2] = p2[2]  p1[2];That's all there is to it.On Tue, Feb 9, 2010 at 6:24 AM, Rakesh Patilwrote:> Hello sir,>> Thanks a lot for you guidance. Please pardon me if am going wrong at any> point.> I'm am still not clear with this point what you said>> "The depth is the dot product of the camera's directionofprojection with> the vector from the camera's position to the object's position.">> what exactly is a vector from the camera's position to object's position??>> Thanks 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100209/c834ebc1/attachment.htm>


More information about the vtkusers mailing list