Path Camera falls off path
by Jordan Eyres · in Torque 3D Beginner · 06/08/2010 (9:08 pm) · 1 replies
Playing around with the path following camera.
Path camera seems to "fall" off the path after a certain number of nodes have been reached.
I believe it’s in the region of 48-50.
First noticed this after trying a path with a large amount of nodes. Have tested with smaller paths and albeit after a longer wait the same results are achieved.
Creating a debug build of the engine was no joy either. Fatal errors in the bitstream.cpp file rear their ugly head before the camera "falls" from the path.
Anyone else come across this problem and better yet, found a solution?
Path camera seems to "fall" off the path after a certain number of nodes have been reached.
I believe it’s in the region of 48-50.
First noticed this after trying a path with a large amount of nodes. Have tested with smaller paths and albeit after a longer wait the same results are achieved.
Creating a debug build of the engine was no joy either. Fatal errors in the bitstream.cpp file rear their ugly head before the camera "falls" from the path.
Anyone else come across this problem and better yet, found a solution?
About the author
Jordan Eyres
function LoopingCam::onNode(%this,%camera,%node) { if (%node >= %camera.path.getCount()) { %camera.reset(100); %camera.pushPath(%camera.path); } if (%node == %camera.loopNode) { %camera.pushPath(%camera.path); %camera.loopNode += %camera.path.getCount(); } }Still kills debug mode though... *shrug*