![]() |
#1
|
|||
|
|||
ORTHO image over subwindow
How can I have a image displaying on the viz.ORTHO layer over a subwindow?
I want to display a mouse cursor image on both the mainscreen ORTHO and the subwindow (addWindow) ORTHO |
#2
|
|||
|
|||
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) 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) |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
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 07:17 AM |
3-D image in Powerwall using OpenGL c++ program | blessonisaac | Plug-in development | 0 | 02-01-2012 10:22 AM |
Render a black subwindow | llqqff | Vizard | 3 | 03-30-2010 11:23 AM |
Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 12:13 PM |
View an image on the Fakespace HMD | roman_suvorov | Vizard | 16 | 05-23-2008 08:51 AM |