WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 02-28-2012, 09:26 AM
nabrahamson nabrahamson is offline
Join Date: Sep 2011
Posts: 36
setHUD example

I am working on an application that having a HUD would be a useful feature. Is there an existing example of how to set up and draw to a renderNode object that has been set up as a HUD? I have briefly searched the online articles and the examples provided with Vizard 4, but I haven't come across anything useful yet.
Reply With Quote
Old 02-28-2012, 11:09 AM
nabrahamson nabrahamson is offline
Join Date: Sep 2011
Posts: 36
It may also be possible that this is not what I want to do.

Alternatively, I would like to Draw another 3D object on the fly in the center of a new scene. Render that scene to a texture, and display that texture on a quad that is drawn orthographically.
Reply With Quote
Old 03-01-2012, 09:43 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
You can use a sub window to render an arbitrary scene on top of the main window. Here is an example script that shows how. Let me know if I misunderstood your question.
import viz
import vizact

# Render model to main window

# Create sub window
window = viz.addWindow()

# Uncomment this line to have a transparent background

# Create view/scene for sub window
view = viz.addView()
scene = viz.addScene()

# Add model to sub window
model = viz.add('beachball.osgb',scene=scene)
Reply With Quote
Old 03-09-2012, 08:34 AM
nabrahamson nabrahamson is offline
Join Date: Sep 2011
Posts: 36
I think this is what I'm looking for. Thank you.
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

All times are GMT -7. The time now is 06:46 AM.

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