Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Go to net page button/frame
ScreenCapture
Scale the screen
Set Reveal Method-Alphamania
Rosetta Xtra
Pan QTVR Sprite
3 State Button
China Multimedia Union
XCursor xtra
cXtraComboBox
 

 

 

Behavior 3D Watcher

Added on 1/31/2000

 

Compatibilities:
D7 D8 Mac PC Script Shockwave

This item has not yet been rated

Author: DaveCole

Keeps track of whether the model has changed from frame to frame. Requires Dave"s 3D engine The newest version and full example files are always available at http://www.dubbus.com/devnull

-- 3DWatcher v7.1 - Keeps track of whether or not the ModelView matrix has changed from frame to frame.

global DWatcher, DWatcher_newChange, mModelView, mProjection
property mLastMatrix, mLastP

on new me
  add the actorlist, me
  mLastMatrix = []
  DWatcher_newChange = 1
  return me
end

on stepFrame me
  if mLastMatrix <> mModelView OR mLastP <> mProjection then
    mLastMatrix = mModelView
    mLastP = mProjection
    DWatcher_newChange = 1
  else
    DWatcher_newChange = 0
  end if
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail