Use sketchup as the nebula2 Scenario Editor
-- Kaikai
Very short introduction
============
As a fast modeling software, sketchup is easy to learn, easy to use, simple and efficient. Perfect for art and level designers.
Component component
====================
To edit a scenario, you must convert the models you need to use into components, and then drag and drop the components into the scenario to display the combinations. Unlike the component model actually used in games, a component model can be simplified or even symbolic.
Concept
Component Definition
Component Content
Component instance component instance
Reference of a component in a scenario, including location, direction, scaling, and alias
Rules
1. The component must have a file name to be exported. (Note that this rule can be removed and can be imported only after being exported)
2. For component instances, you can customize the component name. Right-click the component instance and select entity info. In the displayed entity info window, enter the name field.
The custom component name is usedProgramIdentify the logical meaning of a component. For example, multiple traffic light component instances can be defined as trafficlighta, trafficlightb, and trafficlightc.
Additional configuration file
==================< br> in order to grant more functions to the component, more information is required to differentiate the nature of components. Use an additional configuration file to save this information
concept
unique name
component-defined file name, such as box. SKP
Custom component name
indicates the component logic name. For details, see component-rule-2
output Path
relative path, different Component types correspond to different root paths
placement type transform
consists of the positions, rotation, and scale (scale) PRs abbreviations, such as P, R, S, PR, PS, RS, PRS
type
differentiate the names of component usage methods, which can be graphics, triggers, collision, namedpos and other
graphics
scene elements. The components are any mesh model and can be translated, rotated, scaled, or stretched (PRS ).
triggers
trigger. The component is a cube body that can be translated, rotated, scaled, or stretched (PRS ).
collision
scene physical collision model. components are any mesh model and can be translated, rotated (PR), but cannot be scaled/stretched (s ). (ODE does not support Geom scaling/stretching)
it can also be a Unit Cube/unit ball/unit capsule body (two units of half sphere are connected on both sides of the unit cylinder ), it can be translated, rotated, scaled, or stretched. (Scale/stretch by using the built-in geometric parameters of ODE) the sphere can only be scaled, not stretched; the capsule can only be scaled, not stretched, but part of the cylinder can be stretched.
namedpos
logical coordinates of the birth point spawnpos and the target point exitpos. Translation and rotation (PR) are supported ).
rule
1 the configuration file information of the graphics component includes: unique name, name, path, transform, and type. Type is differentiated.
Export Process
==========
1. SKP with components-(exported using the sketchup plug-in included in this project)-> Map File
2. Map File + xml configuration file-(map2xml conversion)-> scenario XML file
3. Use Case XML file-(read by nsketchupmaploader)-> Use Case Mangalore