WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 03-01-2012, 04:40 PM
FMG FMG is offline
Join Date: Mar 2012
Posts: 1
Set a window's position according to viz.WORLD?

Is it possible to take the window (from viz.addWindow) away from viz.SCREEN and apply to viz.WORLD instead? I would like to position the view in the world as though it was a texQuad rather than relative to the screen. (Something like Portal.)
Reply With Quote
Old 03-23-2012, 02:57 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
You can use a render node to render the scene to a texture and then apply that texture to any object in the world. Here is a simple example:
import viz
import vizact

# Add environment
gallery = viz.add('gallery.osgb')

# Add spinning logo
logo = viz.add('logo.ive',pos=(0,0,4))

# Create render texture
tex = viz.addRenderTexture()

# Create render node
cam = viz.addRenderNode()
cam.setPosition([0.0, 5.87440, 9.62242])

# Apply render texture to gallery painting
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
joystick position nmohandes Vizard 2 01-16-2012 10:03 AM
Dynamic Position and Radius of Sphere hotshotiguana Vizard 1 03-23-2011 12:53 PM
Translate view from sensor position to lens position? Kaminski Vizard 4 03-09-2011 10:36 AM
default start position erchrastil Vizard 2 06-23-2008 08:15 AM
Avatar always returns in initial position pattie Vizard 2 08-31-2006 08:15 PM

All times are GMT -7. The time now is 01:51 AM.

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