How to show different objects on different windows from the same scene
Hello,
I have two windows. On on each window I want to show different objects on the viz.SCREEN, but the rest of the scene must be the same. What is the best way to do that? Greetings, Joran. |
There are two ways to go about this.
1) Each window has its own orthographic HUD. The window HUD is slightly different than the SCREEN because the coordinates are in actual pixel units, not normalized 0 to 1. Here is a sample script that adds a different text object to each windows HUD: Code:
import viz Code:
import viz |
Hi farshizzo,
I was able to copy your code to produce two different scenes that share the data, but cannot not use viz.add for anything other than text. For example, if I try: #Add ball to scene 2 screen ball = viz.add('white_ball.wrl',parent=viz.SCREEN,scene=2 ) the ball does not appear in the window. How can I add different types of nodes? |
Try scaling the ball by a large value such as 1000. You can also add it to the ortho layer:
Code:
ball = viz.add('white_ball.wrl',parent=viz.ORTHO, scene=2) |
All times are GMT -7. The time now is 06:31 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC