Projecting two cameras on one viewport and alternative solutions
1 Attachment(s)
Hello,
I would like to make something similar to this in Vizard: https://vimeo.com/23607848 Here are the solutions that I thought of and did not succeed to implement with Vizard: Solution 1: I wanted to create - an orthographic camera which is fixed and looks at the array of disks (and the disks only render to that camera) - a perspective camera which navigates in a 3d scene (and that 3d scene would only render to that camera) - a window/viewport that shows what both cameras render (with the orthographic camera layer on top) That is basically the set up I was using when using openGL to program video games where I had to render a GUI on top of a 3D scene. Unfortunately, I did not find how to make two camera projecting to the same viewport/window in Vizard. Solution 2: I tried to render the camera 1 on a plane and then attach the plane to camera 2. However, doing that the plane is opaque where there is no disks [i.e. it renders the background color], so that we don't see through it. Thus to make this solution works I would need the background color to be transparent. Solution 3: I tried to use only one perspective camera and attached the group of disks to it, but I don't find an easy way for the disk to always face and stay in front of the camera. I tried to the functions: Do you think there is an easy solution to my problem? I attached the code that I am using to set this up. The main file is: playgrounds/playground_attached.py Thank you very much for your help, -- Geoffrey Megardon |
All times are GMT -7. The time now is 11:21 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC