View Single Post
  #3  
Old 01-05-2017, 01:02 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could use a custom texture for the cursor. The following code hides the mouse cursor and adds a crosshair:

Code:
#Disable mouse navigation and hide cursor
viz.mouse.setOverride(True)
viz.mouse.setVisible(False)

#Add a crosshair that is linked to the mouse
crosshair = viz.addTexQuad(viz.ORTHO, texture=viz.add('crosshair.png'), size=64)
viz.link( viz.Mouse , crosshair, srcFlag=viz.WINDOW_PIXELS )
Reply With Quote