Ok, getting closer and closer... My program now produces this:
Code:
<?xml version="1.0"?>
<Spline Closed="True">
<Anchor ID="0">
<Position x="-20,000" y="0,000" z="-20,000"/>
<Tangent x="15,000" y="0,000" z="-15,000"/>
<Upvector x="0,000" y="0,000" z="1,000"/>
</Anchor>
<Anchor ID="1">
<Position x="30,000" y="-3,000" z="-25,000"/>
<Tangent x="15,000" y="0,000" z="5,000"/>
<Upvector x="0,000" y="0,000" z="1,000"/>
</Anchor>
etc....
</Spline>
Working with XML in Lazarus is suprisingly easy.
Update: Almost done with this project. Loading/Saving splines is now possible. I only have to work out the "upvector" thingy and then I can release it.
Bookmarks