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