PnP TerrainCreator - Forum

The PnP TerrainCreator Forum
It is currently Fri Nov 24, 2017 3:36 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Terrain export xml in one file
PostPosted: Mon Feb 01, 2010 10:46 pm 
Offline
User avatar

Joined: Mon Dec 22, 2008 8:24 pm
Posts: 64
Location: Denmark
I'd like to have the sector xml in one file, which makes it easier for me to parse - maybe like this:

Coverage maps:
Code:
<terrain name="name" sectors="numberofsectors" otherinfo>
   <coveragemaps sector_x="0" sector_y="0" patch_x="0" patch_y="0">
      <coveragemap alphamap_texture="gras_00000_00000_000.PNG">
         <alphamap detail_texture="gras.jpg" />
      </coveragemap>
      <coveragemap alphamap_texture="ground01_00000_00000_000.PNG">
         <alphamap detail_texture="ground01.jpg" />
      </coveragemap>
      <coveragemap alphamap_texture="schlamm_getrocknet2_00000_00000_000.PNG">
         <alphamap detail_texture="schlamm_getrocknet2.jpg" />
      </coveragemap>
      <coveragemap alphamap_texture="moos2_00000_00000_000.PNG">
         <alphamap detail_texture="moos2.jpg" />
      </coveragemap>
   </coveragemaps>
   <coveragemaps sector_x="0" sector_y="1" patch_x="0" patch_y="0">
      <coveragemap alphamap_texture="gras_00000_00000_000.PNG">
         <alphamap detail_texture="gras.jpg" />
      </coveragemap>
      <coveragemap alphamap_texture="ground01_00000_00000_000.PNG">
         <alphamap detail_texture="ground01.jpg" />
      </coveragemap>
      <coveragemap alphamap_texture="schlamm_getrocknet2_00000_00000_000.PNG">
         <alphamap detail_texture="schlamm_getrocknet2.jpg" />
      </coveragemap>
      <coveragemap alphamap_texture="moos2_00000_00000_000.PNG">
         <alphamap detail_texture="moos2.jpg" />
      </coveragemap>
   </coveragemaps>
</terrain>


Likewise for the scene exporter:
Code:
<terrain name="name" sectors="numberofsectors" otherinfo>
    <sector sector_x="0" sector_y="0" patch_x="0" patch_y="0">
        <nodes>
            <node placementType="object">
                <position x="153.356003" y="1909.586548" z="928.283020" />
                <quaternion qw="1.000000" qx="0.000000" qy="-0.000000" qz="0.000000" />
                <scale x="10.000000" y="10.000000" z="10.000000" />
                <entity name="arc_UnbHaus_01" meshfile="arc_UnbHaus_01.mesh" />
            </node>
        </nodes>
    </sector>
</terrain>


That would simplify things a lot. :)

_________________
/* when invited to a free lunch, you should not complain about the quality of the caviar */


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron