WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-06-2017, 06:47 PM
cmitchel cmitchel is offline
Registered User
 
Join Date: Mar 2017
Posts: 2
Displaying vizinfo messages on Oculus Rift

I set up a system a while ago with several messages. Some are toggled on / off when certain keys are pressed and others change their content when certain keys are pressed.
The messages are displayed using vizinfo.add('').
I now want these same messages to be shown on my Oculus Rift display (it doesn't matter if they are still on the monitor or not) but I can't find a good way to change the window these messages are displayed in. I also tried to create a canvas but this doesn't seem to work either.
Things do display if I do vizinfo.InfoPanel but I would rather leave it as is with the vizinfo.add('') if at all possible.

Any advice would be much appreciated about how to display messages created using vizinfo.add() onto the Oculus Rift.

Thanks in advance!
Reply With Quote
  #2  
Old 03-06-2017, 10:32 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Objects rendered to the screen will not appear in the Oculus. The GUI canvas makes it possible to render GUI elements and some GUI containers in the world but fixed to the viewpoint. The vizinfo.InfoPanel works with the canvas, while the older vizinfo.add() object does not.
Reply With Quote
  #3  
Old 03-10-2017, 08:14 AM
cmitchel cmitchel is offline
Registered User
 
Join Date: Mar 2017
Posts: 2
Thanks Jeff - that works for adding one message to the canvas. But I am trying to add multiple messages to the screen independently (toggling on / off at different times and changing text depending on user key strokes). I was wondering if you had any advice about how to do this? Thanks again!
Reply With Quote
  #4  
Old 03-13-2017, 03:03 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could add multiple text objects to a panel and change them individually:

Code:
import viz
import vizinfo
import vizact

viz.go()

panel = vizinfo.InfoPanel('Message panel')
panel.addSeparator()
text1 = panel.addItem(viz.addText('message 1'))
text2 = panel.addItem(viz.addText('message 2'))
text3 = panel.addItem(viz.addText('message 3'))

vizact.onkeydown(' ',text2.message,'new message')
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Oculus Rift + Vizard help required sukhpreet Vizard 1 01-03-2017 10:52 AM
Displaying a Subwindow in Oculus Rift DoeVenture Vizard 4 08-02-2016 05:57 AM
Oculus Rift Drift teklab Vizard 20 04-01-2016 07:57 AM
Multiple post-process effects with oculus rift lklab Vizard 2 03-13-2015 01:48 PM
Displaying screen text in 3D (Oculus Rift) pjayaram Vizard 2 05-27-2014 08:06 PM


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


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