WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
  #1  
Old 03-25-2008, 10:19 AM
Elittdogg Elittdogg is offline
Member
 
Join Date: Aug 2007
Posts: 77
Question "Laser Pointer"

I need to mimic a laser pointer attached to the head that will move with the viewpoint. So let's say a person were tracing through a maze with their head and had to reach certain landmarks; I need to be able to mimic a laser pointer (i.e. like a red dot) that would follow/be linked to the head movement.

Unfortunately, I have absolutely no idea whatsoever how to do this/go about this. Can anyone help??

I'm using a flock of birds tracking system (I don't know if that's important or not) but I think that if I know how to do the laser pointer aspect I can latch it on to the movement data generated from the Birds.

Any ideas???
Reply With Quote
  #2  
Old 03-25-2008, 01:01 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If you want something similar to a crosshair in the center of the screen, then you can just add a quad with a red dot texture to the screen.
Code:
import viz
viz.go()

tex = viz.add('dot.png')

quad = viz.add(viz.TEXQUAD,viz.SCREEN)
quad.texture(tex)
quad.translate(0.5,0.5,0)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -7. The time now is 08:41 AM.


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