#1
|
|||
|
|||
Callback if object has been seen
Hi,
I want to be able to fire some actions when the viewpoint "sees" an object. I mean, i make an object and when enters into the viewpoint, i display a text. I've only seen ways to do it when the viewpoint collides with an object, or the user picks it. is it possible to do it ? Could you lead me to some reference i could work on. I read "Viewpoints & Windows" with no help thanks |
#2
|
|||
|
|||
The only way I can think of, is to create thin walls at the edges of the viewpoint (and just out of view, or invisible), update these walls with the mainview, and check for collisions with these walls.
|
#3
|
|||
|
|||
Try viz.MainWindow.isCulled(node) to check if it is in the visible range or not. It will however not check if if is occluded or not.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to render a texture of the transparent object and then blur it | whj | Vizard | 1 | 09-25-2012 04:15 PM |
AMD graphics hardware seems not to preload object | sleiN13 | Vizard | 2 | 03-20-2012 07:08 AM |
Remove link and have object drop/collide? | cgibb | Vizard | 6 | 03-02-2010 05:18 PM |
retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 05:26 AM |
rotate to object | jargon | Vizard | 1 | 08-08-2005 01:20 PM |