[Vrmlengine-main] Question on Moving the Camera Around for a Set Interval
Game engine supporting many 3D/2D formats and graphic effects
Brought to you by:
kambi
|
From: Shawn H. <sha...@gm...> - 2009-03-20 00:45:51
|
Hi, I am trying to modify the View3DScene code to add a new menu pic that allows me to move the camera position around for a set interval and take a screen shot along the way, like a controlled walking movement. I want to be able to automatically collect data from various VRML models and use them for analysis later. I created a new procedure "GenerateScreenshots" and in it I have the increment CameraPos[0], [1], and [2] and then I am trying to do: SceneAnimation.Scenes[0].ViewerChanged(CameraPos, CameraDir, CameraUp); Glw.EventResize; Glw.PostRedisplay; thinking that it would change the camera's position but it isn't. I am getting the screenshots but the camera doesn't move. Am I mssing a call to a procedure that updates the screen? I'm sorry to ask but I have been fiddling around with this for a while now and I didn't see any examples that showed me how to do this. Thank you, Shawn |