WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-01-2014, 09:10 AM
BSUGeek BSUGeek is offline
Member
 
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
  #2  
Old 10-01-2014, 11:04 AM
chris2307 chris2307 is offline
Member
 
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:

Code:
avatar = viz.addAvatar('AvatarYouAreUsing')
if(viz.MainWindow.isCulled(avatar) == 0):
    // Avatar is visible
Reply With Quote
  #3  
Old 10-01-2014, 12:45 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,462
The vizproximity library is useful for detecting proximity between objects.
Reply With Quote
Reply

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:04 AM.


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