细节展示放大镜特效

3D simulation system for traffic accidents

  • No:3-D Traffic Accident Simulation System
  • Quantity:

      Recommend

    I. Preface
    2. Introduction of Software Interface
    3. Importing the Documents of Traffic Accident Site Maps
    4. Generating 3D effects and viewing them in multiple directions
    V. View Tools and Graphics Tools
    6. Adding and modifying roles and scenarios
    7. Bloodstains, Scatters, Traces
    8. Generating Animation
    9. Output of Multimedia Files
    I. Preface
    Traffic accident scene three-dimensional simulation system is a software that uses virtual reality technology to reproduce traffic accidents. It adopts the leading technology in China and has completely independent intellectual property rights. This system is simple to operate and does not depend on the third-party graphics platform. Operators can complete scene, vehicle and character reproduction in 30 minutes after simple training, and generate AVI video files. It can simulate realistically to achieve dynamic effects. The software provides a large number of three-dimensional graphics libraries (including buildings, trees, car models, etc.) and can set various colors of lights. It can select suitable materials for different objects to map, in order to achieve realistic traffic accident scene virtual simulation effect. The software can be used in conjunction with the company's two-dimensional traffic accident scene drawing software to automatically complete the modeling of roads and vehicles, save operation time and improve ease of use. The system is suitable for the research and analysis of the causes of traffic accidents, the analysis and explanation of accident cases, the mediation of traffic accidents disputes, the warning and propaganda of the high-risk groups of traffic accidents (such as schools, driver training schools), etc. It is the main tool and powerful assistant of traffic management workers.
    Hardware environment configuration requires more than 1GB of memory in Microsoft Windows XP operating system and more than 20GB of hard disk 1024*768 resolution color display 128MB or more OpenGL graphics acceleration card.
    2. Introduction of Software Interface
    Double-click the icon of the three-dimensional traffic accident simulation system on the desktop to open the software.


    The software consists of Title bar, menu bar, toolbar, model bar (role, modification), layer bar (scene layer, role layer), operation area, view bar (two-dimensional view, top view, front view, left view, perspective view), animation editing area.
    Let's start with the menu bar.
    1. Menu Bar
    File: Click on the File menu and you will see the following picture:
    The menu bar shown in the following figure is editing, view, drawing, modification, environment, animation, settings and help. Chapter 9 of the "Output Media Document" is specifically introduced.
    2. Toolbar
    As shown in the following figure: by creating, opening, saving, copying, pasting, printing, generating 3D effects, revocation, repetition, View tools (translation, rotation, zoom), display grid (that is, displaying the ground grid), X axis, Y axis, Z axis, graphics tools (selection, translation, rotation, shrink-proof), deletion, help. In Chapter 5, the "View Tool", "Graphic Tool" and "X-axis, Y-axis and Z-axis" are introduced in detail.
    3. Model Bar
    The model bar includes three parts: role model, scene model and model modification. By switching the "Scene Layer" and "Role Layer" in the Layer Bar, the Model Bar automatically switches the role model and the scene model. Roles are motor vehicles, non-motor vehicles, human bodies, etc. Scenes are traffic facilities, public facilities, buildings, etc. Modification is to modify the names, components, colors, sizes and locations of the added roles and scenes. As shown in the following figure:
    4. Layer Bar and Editing Area
    The layer bar contains the role layer and the scene layer. The white area under the layer bar is the scene editing area and the role editing area. Select the scene layer. The next editing area is to switch to the scene editing area. The role layer is also the role editing area. To avoid operational errors caused by complex roles and scenes. As shown in the following figure:
    5. View Bar
    View bar is composed of two-dimensional view, top view, front view, left view and perspective view. It can be used to view editing area from different angles or to make animation from different angles. The following figure shows:
    6. Animation editing area
    Animation editing area can be used to edit animation, insert, delete and set key frames, edit the animation process and time. As shown in the following figure:
    3. Importing the Documents of Traffic Accident Site Maps
    To import the document of traffic accident scene map is to import two-dimensional document. Click on the "Import Two-Dimensional Files" button in the File menu, as shown in the following figure:
    The following dialog box appears:

    Select the pre-saved traffic accident scene map file and click "Open".


    4. Generating 3D effects and viewing them in multiple directions
    1. Generating 3D effects
    After importing a two-dimensional file, click on the toolbar icon to generate a 3D effect. As shown in the following figure:
    2. Multi-Directional Viewing
    Multi-directional viewing screen should be carried out in the view bar, which consists of two-dimensional view, top view, front view, left view and perspective view. Click on any view screen in the view bar and view the screen from different angles.
    (1) Two-dimensional view
    Click on the "Two-dimensional View" button, as shown in the following figure:
    (2) Top view
    Click on the "Top View" button, as shown in the following figure: (3) Front view
    Click on the "Front View" button, as shown in the following figure:
    (4) Left view
    Click on the "Left View" button, as shown in the following figure:
    (5) Perspective
    Click on the "Perspective" button, as shown in the following figure:
    V. View Tools and Graphics Tools
    1. View Tool
    View tools include view translation, view rotation and view zooming. As the name implies, the View Tool is an operation for viewing views.
    (1) translation
    Click on the translation tool in the toolbar, then drag the operation area with the mouse, the picture can move back and forth with the mouse. Take perspective as an example, as shown in the following figure: the picture from the original global picture, multi-action for the intelligent part of the vehicle.
    (2) Rotation
    Click on the rotation tool in the toolbar and drag the mouse in the operation area to rotate the screen up, down, left and right so as to clearly observe the part you want to see. Take perspective as an example, as shown in the following figure: the angle of view in the original perspective changes.

    (3) Scaling
    Click on the zoom tool in the toolbar, then drag the mouse up and down in the operation area, you can zoom in or down the screen, so as to view the screen from the whole to the part or from the part to the whole. Take the perspective as an example of enlargement, as shown in the following figure: after enlarging the picture, the truck head can be clearly observed.


    2. Graphic Tools
    Graphics tools include selecting graphics, translating graphics, rotating graphics and zooming graphics. As the name implies, graphics tools are used for the operation of graphics, and with X axis, Y axis, Z axis to use.
    (1) Choice
    Click on the Selection Tool in the toolbar, and then click on the object you want to select in the screen. Select the object in the scene, then click on the scene layer; select the object in the role, then click on the role layer. Take the selection of character objects as an example, as shown in the following figure: The selected object is surrounded by a white border.
    (2) translation
    Click on the translation tool in the toolbar. If you need to move around, around, up and down, you can choose the X, Y, Z axis arbitrarily, and then you can move the object according to the predetermined trajectory. Take the translation object on the X axis as an example, as shown in the following figure: the truck moves from its original position to another position.
    (3) Rotation
    Click on the rotation tool in the toolbar, as well as the translation tool, you can rotate the selected object arbitrarily with the X, Y, Z axis as the center axis. Take the X-axis revolving truck as an example, as shown in the following figure:
    Select the "role" layer, then select the "X axis", then click on the "rotation" tool, click on the pre-rotation object, and move the mouse to rotate the object. As shown in the figure below, the truck revolves around the X-axis.
    (4) Scaling
    Click on the zoom tool in the toolbar to zoom in and out of the X, Y and Z axes. Take the zoom-in truck on the X axle as an example, as shown in the following figure:

    Select the "role" layer, then select the "X axis", then click on the "zoom" tool, click on the pre-zoom object, and move the mouse to zoom the object. As shown in the figure below, the truck shrank on the X-axis.

    6. Adding and modifying roles and scenarios
    1. Addition
    (1) Adding roles
    When adding roles, we need to select the role layer, switch the model bar to the role model automatically, select the pre-added role model category, pop up the thumbnail drop-down menu, and intuitively select the pre-added model. Take adding a "two-car" as an example, as shown in the following figure:

    Select the "Role Layer". The left model bar automatically switches to the role model addition menu. Click on the "+" in front of the "Motor Vehicle". A drop-down menu appears. Similarly, click on "Car" and select "Car". The thumbnail will show different types of Cars. Select the pre-added objects and drag them to the operation area. You can add it. As shown in the following figure:

    (2) Replacement roles
    If two-dimensional files are imported and the imported roles do not conform to the reality, you can click on the roles, a drop-down menu appears, and select the appropriate roles in the menu.
    Take the replacement truck as an example, replace the original truck with a large truck, click on the "motor vehicle" and select the "large truck". A thumbnail of the large truck appears below. As shown in the following figure:

    The role of the selected large truck can be replaced by dragging it to the original truck position. As shown in the following figure:

    (3) Adding Scenarios
    When adding scenes, we need to select the scene layer, switch the model bar to the scene model automatically, select the category of pre-added scene model, pop up the thumbnail drop-down menu, and intuitively select the pre-added model. Take adding a "signal lamp" as an example, as shown in the following figure:

    Select "Scene Layer". The left model bar automatically switches to the Scene Model Addition Menu. Click on the "+" in front of "Traffic Facilities". A drop-down menu appears. Click on the "Signal Light" in the drop-down menu. Four types of signal lights will be displayed in the thumbnail. You can add them by selecting the pre-added object and dragging it to the operation area. 。 As shown in the following figure:

    2. Modifying roles
    Click on the Pre-Modified Object in the Role Layer, and click on Modification in the Model Modification Bar on the left. Take the modification of trucks as an example, as shown in the following figure:

    The drop-down menu of the modification bar shows: name, parts, color, size, location.
    (1) Name modification
    Click on "Name" and a modification dialog box appears below. You can enter the name of the pre-modification object in the dialog box. Click on "Show or not" to display the modified name above the object. As shown in the following figure:

    (2) Modify the color
    Click on the "color" to appear a drop-down menu to modify the color. It shows the name of the part where the object can modify the color. Select the name of the pre-modified part. The dialog box appears below. Click on the color dialog box to play the excellent version. You can choose the color in the color plate. Take the modification of the "body 2" color of a freight car as an example, as shown in the following figure:

    Select yellow and click OK to generate the following image effect:

    7. Bloodstains, Scatters, Traces
    1. Introducing blood stains and scattered objects
    Introduce a two-dimensional traffic accident scene drawing bloodstains and scattered objects, as shown in the following figure:

    Click on the tool to generate a 3D effect, as shown in the following figure:

    2. Import Traces
    Import a two-dimensional traffic accident scene map with traces, as shown in the following figure:

    Click on the tool to generate a 3D effect, as shown in the following figure:

    8. Generating Animation
    Animation editing area can be used to edit animation, insert, delete and set key frames, edit the animation process and time. As shown in the following figure:


    Example 1: Car collision (flame effect)
    Taking the top view of the collision of two vehicles as an example, this paper introduces how to generate animation and how to make the flame effect.

    Step 1: Enter 50 in the current frame dialog box (i.e. set the current frame to 50th frame). Assuming that the 50th frame collides, click "Insert Key Frame", select "Particle System" in "Role Model Bar" in "Model Bar", and drag it to the position where the car collides. As shown in the following figure:


    Step 2: Enter 0 in the current frame (that is, set the current frame to the starting frame), click "Insert the key frame" and then drag the two cars to the pre-collision state, as shown in the following figure:


    Step 3: Switch "Top View" to "Two-dimensional View", click "Drawing" in the menu bar, and then click "Drawing Trajectory Line" to draw the trajectory of car collision process, as shown in the following figure:


    Step 4: Switch the "two-dimensional view" to the "top view", select the car, click the key frame button, and a dialog box appears, as shown in the following figure:


    Step 5: In the name of the associated trajectory, select the name of the corresponding trajectory (trajectory 0); in the key point of the trajectory, select the "starting point"; select whether the car is visible (that is, whether the car is visible at the starting point), and then click to determine. Truck operation is the same as car operation.
    Step 6: At the same time, select the flame at the 0 key frame. In the key frame setting dialog box, cancel whether it is visible (that is, no flame in the absence of traffic accidents). As shown in the following figure:


    Step 7: Select the trace, and a dialog box will appear in the animation operation area.
    The start frame is the time period when the trajectory begins to appear, and the end frame
    That is to say, all the trajectories show the time period. As shown in the following figure:


    According to the example, the start frame is set to 20, the end frame is set to 50, and the input number is set to complete the production of this trace (each trace needs to be set).
    Step 8: This group of buttons, from left to right, are: start frame, previous frame, play, next frame, end frame. Click on the "Play" button to see the animation effect. You can also click the "Play" button in the front view, left view and perspective view to observe the animation in different traffic.
    Example 2: Traffic accidents caused by collisions between people and cars (character animation)
    Taking the top view of human-car collision as an example, this paper focuses on how to operate the character model in animation.
    Step 1: Import a two-dimensional traffic accident scene map with trucks, bloodstains and scattered objects to generate 3D effects. As shown in the following figure:


    Step 2: Add the human body in the role layer, click on the role model library, select the human body, drag to the screen, take perspective as an example to see the added character model more clearly, as shown in the following figure:


    Step 3: Switch "Top View" to "Two-dimensional View", click "Drawing" in the menu bar, and then click "Drawing Trajectory Line" to draw the trail line of the truck. As shown in the following figure:
    Step 4: Switch the view to the top view, and set the current frame to 50 (assuming that the frame collides in the 50th frame). Then click on the insert key frame to modify the location of the truck, the person, the bloodstain and the scattered object, respectively. When modifying the location of the truck, select the truck and click on the key frame. The dialog box appears as follows:


    Name of associated trajectory: trajectory 0; key point of trajectory: end point; visibility: visibility, and then click to determine. As shown in the following figure:

    Step 5: Go back to the top view, set the key frame to 0, and click Insert the key frame. Move the human body to the position before the impact; select the truck and click on the key frame, as shown in the following figure:


    Name of associated trajectory: trajectory 0; key point of trajectory: starting point; visibility: visibility, and then click to determine. As shown in the following figure:


    Step 6: Emphasize how to set human body, input 0 in the current frame, click on human body, insert key frame, character status: choose to stand. As shown in the following figure:


    Current frame input 1, click on the human body, character status selection: run, insert the key frame. As shown in the following figure: (Running state can be clearly seen in perspective)


    Step 7: Set the current frame to 51, that is, the human body state after impact, click on the human body, insert the key frame, and the human body state chooses to stand, and then adjust the human body to the state of the accident scene by means of rotating and moving tools combined with X, Y and Z axes. As shown in the following figure:


    Human body description:
    Standing state at frame 1 and 0, running state from frame 1 to frame 50, and falling state at frame 51, that is, the state of traffic accident scene map after traffic accident.
    2. If there is an error in inserting key frames in the human body setting step, you can click the delete key frame button and insert the key frames from the new settings.
    Step 8: Enter the current frame into 51, click on the bloodstain, insert the key frame, click on the settings of the key frame, pop-up window, as shown in the following figure:


    When the selection is visible or not, Click to confirm the effect as shown in the following figure: blood stains appear after the impact.


    Step 9: Input the current frame into 0, click on the bloodstain, insert the key frame, click on the settings of the key frame, pop-up window, as shown in the following figure:

    Whether the choice is invisible or not, Click To determine the effect as shown in the following figure: there is no blood on the ground before the impact.
    The production of scattered objects is the same as blood stains.
    Step 10: Click on the "Play" button to see the animation effect. You can also click the "Play" button in the front view, left view and perspective view to observe the animation in different traffic.
    9. Output of Multimedia Files
    If you click on the output multimedia file in the menu bar, a pop-up window will appear, as shown in the following figure:


    Enter the name of the file (e.g. traffic accident scene simulation), save the type in AVI format, click the save button, and a dialog box appears to select the video compression format, as shown in the following figure:


    After choosing the compression format, the multimedia file can be output.