But When the effect involves camera, it should be created once.
Now I've got a problem, when I "build" the effect on the application level, i get a reference count problem, probably m_pd3dDevice or effect not properly cleaned up, while i put this in the mesh class, won't it be inconsistent or redundant for each mesh to have a copy of the camera?
Notice it only succeeds to run to the end when the effect is created inside the mesh class not the application class
I've tried to create a global effect object to no avail, still got reference counting problem
What would I do?
Edited by lucky6969b, 12 August 2012 - 04:03 AM.