WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-22-2010, 09:19 AM
kopper kopper is offline
Member
 
Join Date: Apr 2010
Posts: 18
Thanks, Masaki, for your reply.

I used the code you sent and it indeed worked to have the HUD to display correctly in the HMD.

However, when I try to add an image, instead of a text to the hud, it does not display, if I set parent to viz.ORTHO. The way I have it working in mono is the following:

Code:
	crosshair = viz.addTexQuad(viz.SCREEN,texture=viz.add('crosshair.png'))
	crosshair.setPosition([0.5,0.5,0])
When I try to add the image with viz.ORTHO as parent, like this:

Code:
	crosshair = viz.addTexQuad(viz.ORTHO,texture=viz.add('crosshair.png'))
	w = int(viz.getOption('viz.monitor.width'))
	h = int(viz.getOption('viz.monitor.height'))
	crosshair.setPosition([0.5*w,0.5*h,0])
nothing shows on the screen.

Could you point me how I can do the equivalent to the example you sent before, but with an image, instead of text?

Thanks a lot!

Regis
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


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


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