Camera information inconsistent

Nicholas Yue yue at cwr.uwa.edu.au
Tue Aug 17 05:03:40 EDT 1999


Hi

	I was trying to set up a camera view using values I obtain in a "proc"
call.

	I find that the values printed did not reproduce the same figure.

	Any idea ?


[SNIP]

set cam1 [ren1 GetActiveCamera]
	$cam1 SetViewUp -0.220679 -0.502572 0.835896 
	$cam1 SetFocalPoint 0.179291 0.277351 -0.0254646 
	$cam1 SetPosition 0.796565 0.948705 0.541141 
	$cam1 SetViewAngle 45

[SNIP]

eval plane SetExtent 0 0 0 32 0 160
renWin Render

# prevent the tk window from showing up then start the event loop
wm withdraw .

proc Pick {cam1} {
    puts [$cam1 GetViewUp]
    puts [$cam1 GetFocalPoint]
    puts [$cam1 GetPosition]
    puts [$cam1 GetViewAngle]
}

iren SetEndPickMethod  {Pick $cam1}

Cheers
-- 
Nicholas Yue                    | RenderMan. (tm)
yue at cwr.uwa.edu.au              | Rendered Once, Showcased Everywhere
(C)
http://www.cwr.uwa.edu.au/~yue  | +61 08 9380-1897 (Office)
The Centre for Water Research   | +61 08 9380-1015 (Fax)


-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list