Exporting lines

CaseyB

02-10-2006 19:45:51

I need to draw a box around an area, so at first I tried using a rectangle, but that didn't get exported, then I used a line and that did get exported, but there were 16 points, where I only drew 4. So my questions are, why didn't the rectangle export and why are the 4x the number of points in the line?

Lioric

02-10-2006 22:19:26

1. I will review why rectangle was not exported.

2. Because Ogre supports only "simple splines" (Catmull-Rom type) and you are using a bezier line.

In Catmull-Rom splines, the tangets are auto generated, while in bezier you can define a pair of tangents for the point.

If you create the spline segments as "Smooth", then those will be exported as created (the same number of points), but any "Bezier" point will be interpolated to create a similar segment (this will produce more points).

But as tangents are auto generated, in Ogre a rectangle might result in a rounded rectangle, that is why more points are added to compensate for this.