Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Xtravaganza: the Essential Sourcebook for Macromedia Xtras
DM Waves Effect
Slider Puzzle by J.R.D.R.
Tree View
ADO Xtra For MUS
Print a file with associated program
Countdown Timer
Emulator
Change Line Direction of a Shape Cast Member
QuickTime Silent Install
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail