PnP TerrainCreator - Forum

The PnP TerrainCreator Forum
It is currently Sat Sep 23, 2017 5:43 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Ogre scene exporter (meshfile and z coord)
PostPosted: Wed Apr 28, 2010 2:26 am 
Offline

Joined: Wed Apr 28, 2010 1:04 am
Posts: 1
I noticed that for trees etc the 'meshFile' attribute under entity is exported as 'meshfile' (lower case 'f') and 'name' attribute is the same for all nodes (under Entity) which is a problem as I need a unique name for each. Is there a way around this other than changing the XML parser? Another question is, when I do the export on a terrain with 1 vertex defined as more than 1 meter, the placement of trees etc is offset (only along the Z axis) by the actual terrain width (e.g. 1024) multiplied by the meters factor more than the default of 1 meters (e.g. If terrain is created with 10 meters per vertex in the editor, offset in ogre=(10-1)*1024). So for the trees etc and the terrain to be in the same frame of reference, I have to either shift the whole terrain in the -ve direction or shift all the objects in +ve direction, by that offset. Is there a way around this within the TerrainCreator? Currently I'm hardcoding the solution for both upon parsing and reading the XML.

Edit: Corrected the remark on Z axis. I realize after seeing the entire terrain at once that the relative orientation is right, just the offset is not.


Top
 Profile  
 
 Post subject: Re: Ogre scene exporter (meshfile and z coord)
PostPosted: Mon May 03, 2010 9:23 pm 
Offline
User avatar

Joined: Mon Dec 22, 2008 8:24 pm
Posts: 64
Location: Denmark
Probably related to this:
viewtopic.php?f=6&t=901

_________________
/* 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  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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