WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 10-01-2014, 09:10 AM
BSUGeek BSUGeek is offline
Join Date: Oct 2014
Posts: 23
Question Question: Detect change within a scene

Is it possible to detect when something changes within a scene? for example if your in the gallery environment and the viewpoint is pointed at the starry night picture could you receive a detection message on when an avatar walks into your viewpoint?

Help would be greatly appreciated.
Reply With Quote
Old 10-01-2014, 11:04 AM
chris2307 chris2307 is offline
Join Date: Nov 2013
Posts: 36
Can you check if the avatar is visible using the <window>.isCulled() function? This function takes in the name of the object and returns whether it is culled from the current viewing frustum. If the function returns 0, it's not culled so is visible. So maybe try this:

avatar = viz.addAvatar('AvatarYouAreUsing')
if(viz.MainWindow.isCulled(avatar) == 0):
    // Avatar is visible
Reply With Quote
Old 10-01-2014, 12:45 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
The vizproximity library is useful for detecting proximity between objects.
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
change a model between scenes? Darkmax Vizard 2 05-25-2010 04:14 PM
Copying Scene? Brett Lindberg Vizard 0 08-29-2009 12:56 AM
Change Viewpoint in different scenes lilio Vizard 1 08-28-2009 03:56 PM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 01:14 PM
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 11:15 AM

All times are GMT -7. The time now is 07:06 PM.

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