WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 03-06-2017, 07: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
Old 03-06-2017, 11:32 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,467
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
Old 03-10-2017, 09: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
Old 03-13-2017, 04:03 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,467
You could add multiple text objects to a panel and change them individually:

import viz
import vizinfo
import vizact


panel = vizinfo.InfoPanel('Message panel')
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

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 11:52 AM
Displaying a Subwindow in Oculus Rift DoeVenture Vizard 4 08-02-2016 06:57 AM
Oculus Rift Drift teklab Vizard 20 04-01-2016 08:57 AM
Multiple post-process effects with oculus rift lklab Vizard 2 03-13-2015 02:48 PM
Displaying screen text in 3D (Oculus Rift) pjayaram Vizard 2 05-27-2014 09:06 PM

All times are GMT -7. The time now is 12:05 PM.

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