WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-13-2008, 12:24 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Add the cursor objects to the viz.ORTHO layer. Each window has its own viz.ORTHO layer, which is similar to viz.SCREEN, except that position values are in pixel units, instead of normalized units. Here is some sample code:
Code:
#Add a pointer to the screen
cursor = viz.add('arrow.tif')
size = cursor.getSize()
pointer1 = viz.addTexQuad(parent=viz.ORTHO,scene=window1,texture=cursor,scale=size)
pointer2 = viz.addTexQuad(parent=viz.ORTHO,scene=window2,texture=cursor,scale=size)
When updating the position of the pointers from the wiimote, just multiply the wiimote position by the (width,height) of the window.
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
How to show different objects on different windows from the same scene Joran Vizard 3 07-14-2014 04:07 PM
Picking in multiple windows FalconNL Vizard 1 07-02-2007 10:45 AM
windows 64 bit asimbh Vizard 2 05-21-2007 06:55 PM
known windows firewall issue mspusch Vizard 0 06-01-2006 10:47 AM
Windows within windows VAmanda Vizard 5 10-31-2005 01:16 AM


All times are GMT -7. The time now is 11:35 AM.


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