[vtkusers] Stereo in VTK

anast.jm at pg.com anast.jm at pg.com
Wed Jun 25 11:40:46 EDT 2003


Kevin, Here's a short tcl script to demo stereo. Note you can use 
different types of stereo...I've used CrystalEyes glasses and Red/Blue 
with this script....comment/uncomment the method you want to try. When the 
script is run hitting the 3 key toggles stereo on and off...hope this 
helps....john

package require vtk
package require vtkinteraction

# create a rendering window and renderer
vtkRenderer ren1
vtkRenderWindow renWin
    renWin AddRenderer ren1
    renWin StereoCapableWindowOn
    renWin SetStereoTypeToRedBlue
    #renWin SetStereoTypeToCrystalEyes
    renWin StereoRenderOn 
 
vtkRenderWindowInteractor iren
    iren SetRenderWindow renWin

# create an actor and give it cone geometry
vtkConeSource cone
  cone SetResolution 8
vtkPolyDataMapper coneMapper
  coneMapper SetInput [cone GetOutput]
vtkActor coneActor
  coneActor SetMapper coneMapper

# assign our actor to the renderer
ren1 AddActor coneActor

# enable user interface interactor
iren SetUserMethod {wm deiconify .vtkInteract}
iren Initialize

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





Internet Mail Message
Received from host:     public.kitware.com [24.97.130.19]



Kevin <eagleinshadow at yahoo.co.uk>
Sent by: vtkusers-admin at vtk.org
06/25/2003 11:14 AM

 
        To:     VTK Maillist <vtkusers at vtk.org>
        cc:     (bcc: John Anast-JM/PGI)
        Subject:        [vtkusers] Stereo in VTK


Hello everyone,
 
Can anyone tell me does VTK support Stereo? If yes, can you please briefly 
tell me how to do that?
 
Thanks
Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030625/c44846af/attachment.htm>


More information about the vtkusers mailing list