VideoCAD

Example 21  Creating animated model of monitor

Hide Navigation Pane

Example 21  Creating animated model of monitor

Previous topic Next topic No directory for this topic Expand/collapse all hidden text  

Example 21  Creating animated model of monitor

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

 

This example shows how to create an animated model of monitor as *.html file. This model may contain up to 100 animated images from different cameras. Each image has its own settings (frame rate, resolution, etc.). Obtained html file can be viewed by any Internet browser, edited with any text editor, etc.

 

See an example of animated monitor (file size about 4 Mb).

 

Order of work

 

       1. Construct 3D model of the scene, place and adjust cameras

 

Place the 3D models at the expected locations of moving objects. See Example and Example.

 

       2. Specify velocity vectors for the moving 3D models according to expected speeds and directions of moving objects

 

double click on the 3D model to switch it to editing state;
on the appeared Current construction parameter panel type a nonzero velocity value (in meter(foot) per second) into the Speed box.

 

You can edit the velocity vector of 3D model in editing state by moving its terminus.

 

Bring the cursor to the terminus of the velocity vector, click the left mouse button and drag the terminus. At the same time the speed value and direction of movement is being edited simultaneously. Click for the second time to specify new velocity and finish editing.

 

If 3D model is selected then length of the velocity vector equals to the distance in meters (feet) which the 3D model passes per second (crimson arrow).

If 3D model is in the normal state, the length of the velocity vector equals to the distance which the 3D model passes for the period between successive frames of the active camera (black arrow).

 

       3. Adjust animation of the cameras which should have animated images

 

3.1 Activate one of those cameras, which should have animated images.

3.2 Open the 3D Video by clicking on the 3D Video button on the Tool bar of the Graphics window. Right click on the 3D Video to open the Image parameter panel.

3.3 Choose the Camera tab. Uncheck the According to the camera parameters box if it is checked. Adjust the Frame rate.

3.4 Select all cameras, which should have animated images. Check the To selected cameras box. Click on the Save button.

3.5 Switch to the View tab. Check the Animation box. Set the Number of frames = 3 or more.

3.6 Select all cameras, which should have animated images. Check the Save to selected cameras box. Click on the Save button.

 

 

After several seconds in the 3D Video the animated image will be shown. The image with the specified frame rate will contain moving with the specified velocities 3D models.

 

We have set the same number of frames in the animated images and the frame rate  for all selected cameras simultaneously. You can set individual values for each camera, not checking the To selected cameras box before clicking the Save button and repeat adjusting for each camera separately.

 

To save animated image on this step,  see: Save as animated *.gif.

 

       4. Connect the cameras to the Monitor

 

4.1 Open the Monitor window by clicking on the Monitor window button on the Tool bar of the Graphics window.

4.2 Click on the Edit button on the Tool bar of the opened Monitor window.

4.3 Select on the layout cameras which should be displayed on the Monitor.

 

You can select cameras with static and animated images mixed.

 

4.4 Then click on a cell of the Monitor starting from which these cameras should  be displayed on the Monitor.

 

After some time the 3D Video will appear, in which static images from these cameras will be simulated. Then these images will appear in the cells of the Monitor, starting from the clicked cell.

 

See more details of work with Monitor: Work with Monitors.

 

       5. Switch Monitor window to the animation mode

Click the Animation button on the Tool bar of the Monitor window.

 

The 3D Video will appear again, but this time it will generate animated images for your monitor.

 

Generation of animated images takes much longer, it is a complex multi-threaded resource-intensive operation. Be patient, do not touch the mouse and keyboard, do not interfere the program, otherwise an errors are possible.

 

       6. Save the animated Monitor to HTML file

 

For this click on the monitor window Main menu> Image> Export to *.html.

 

It is recommended to save the *.html file to a separate directory. The resulting "file" includes the actual HTML file with links to images and the image files in animated GIF and PNG formats. The images are stored with the resolution and other parameters of the corresponding cameras.

 

 

See an example of animated monitor (file size about 4 Mb).

 

See also: PDF Report

External link: "The principles of CCTV design in VideoCAD. Part 5. Video surveillance of moving objects"(*.pdf)