#1
|
|||
|
|||
view in view
Hi all,
I would like to program an augmented reality HUD. I added an object, e.g. an arrow, to my world, but I want it to be only visible, if it is in a specific area of my view. My idea is to add this "ar" objects to an other scene and show this scene in a specific area in my view. I tried this with a subwindow, but i couldn't set the view of the subwindow to show the exact same view like the area that is covered by the subwindow. Is there perhaps an other way to solve this issue? Thanks in advance. |
#2
|
|||
|
|||
Can you explain further what you mean by a 'specific area of the view'?
|
#3
|
|||
|
|||
I think about a rectangle with normalized size [0.2,0.2] and its centre in the middle of the view. The “ar” object should be visible if it is inside this rectangle, otherwise it should be invisible.
|
#4
|
|||
|
|||
Use the window.pickRect command to determine which objects are within a rectangular area of the window. Then turn the object's visibility on or off.
|
#5
|
|||
|
|||
Thank you for your help. Unfortunately, I forgot to note that I want to use this augmented reality HUD in a “Cave Manual Configuration”. Could I use world coordinates to set the position of this rectangle? I want this rectangle to move if the “headtracker” detects movement. So, if I turn my head it should be able to move in the world and thereby be always in the middle of my view (via glasses). I did this already with objects and texquads.
|
#6
|
|||
|
|||
You could try calculating the intersection point on the screen where the user is looking based on their position and orientation and the screen placement. Normalize the coordinates of the intersection point that is in meters using the screen dimensions. Then calculate the rectangle bounds from the normalized results and pass that to the pickRect command.
|
#7
|
|||
|
|||
The window.pickRect command will return all nodes that either fully or partially appear within the area, but I only want the nodes that are fully within this area. Is there a command for this issue?
|
Tags |
multiple, scene, view, viewpoint |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
animation path problem - coordinates not resetting | jelly | Vizard | 7 | 04-26-2016 10:45 AM |
View | nlfrnassimi | Vizard | 0 | 03-17-2009 02:01 AM |
View | nlfrnassimi | Vizard | 4 | 03-12-2009 05:25 AM |
problem with stereo mode | shivanangel | Vizard | 3 | 10-17-2006 09:58 AM |
keeping a 3d object in front of the view | tavaksai | Vizard | 1 | 07-07-2004 09:33 AM |