[vtkusers] Using Crystal Eyes with VTK

anast.jm at pg.com anast.jm at pg.com
Wed Aug 14 14:35:57 EDT 2002


Walter, this is a real simple cone example. To be sure everything is working in
vtk first you can use the RedBlue stereo to see the stereo effect without any
special hardware, then switch to Crystal Eyes to check that out. I have not
tried SE lately but should work....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]                                                 
                                                                


From: Walter Herrera <walter at lncc.br>@public.kitware.com on 08/14/2002 03:23 PM
NST
                                                                                          
     Walter Herrera <walter at lncc.br>           To:   vtkusers at public.kitware.com          
                 @public.kitware.com           Cc:    (bcc: John Anast-JM/PGI)            
                                       Subject:      [vtkusers] Using Crystal Eyes with   
                                            VTK                                           
                            Sent by:                                                      
   vtkusers-admin at public.kitware.com                                                      
                 08/14/2002 02:53 PM                                                      
                                                                                          
                                                                                          





Hi,

I am trying to use VTK with my Crystal Eyes Shutter Glasses but I can´t
find any usefull "working" code.  Does anyone have an example?

Thanks

Walter





_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <
http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers






More information about the vtkusers mailing list