WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-11-2013, 02:04 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If you just want to change the mouse cursor, then I would recommend using the viz.mouse.setCursor command. Here is some sample code:
Code:
import win32con
import win32gui

# Use Windows wait cursor
waitCursor = win32gui.LoadCursor(0,win32con.IDC_WAIT)
viz.mouse.setCursor(waitCursor)
If you want to overlay objects on top of all windows, then you can create a fullscreen sub-window with a higher draw order, and add the objects to that. Here is an example:
Code:
overlay = viz.addWindow(size=(1,1),pos=(0,1))
overlay.visible(False,viz.WORLD)
overlay.visible(False,viz.SCREEN)
overlay.drawOrder(100)
overlay.setClearMask(0)

tex = viz.addTexture('crosshair.png')
quad = viz.addTexQuad(parent=viz.ORTHO,scene=overlay,texture=tex,size=50)
viz.link(viz.Mouse,quad,srcFlag=viz.WINDOW_PIXELS)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
360 panorama image cube using as darts target and record the xy coordinates mshukun Vizard 2 03-14-2013 06:17 AM
3-D image in Powerwall using OpenGL c++ program blessonisaac Plug-in development 0 02-01-2012 09:22 AM
Render a black subwindow llqqff Vizard 3 03-30-2010 10:23 AM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 11:13 AM
View an image on the Fakespace HMD roman_suvorov Vizard 16 05-23-2008 07:51 AM


All times are GMT -7. The time now is 03:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC