PnP TerrainCreator - Forum

The PnP TerrainCreator Forum
It is currently Sun Sep 24, 2017 5:46 pm

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: Terrain directory path
PostPosted: Wed Aug 20, 2008 5:51 pm 
Offline

Joined: Wed Aug 20, 2008 5:19 pm
Posts: 9
Location: Seoul, Korea
How can I know the directory path of my terrain project when exporting terrain meshes or objects?

I'm trying to export static objects' mesh data to a scene file(Gamebryo NIF file) while exporting the terrain sectors but the SDK doesn't tell me where the model files are in.

Is there any ways please?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 21, 2008 8:58 am 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 891
Location: Braunschweig
Welcome,

I could add a GetPath() method to the terrain interface class to achieve this. Will be available with the next update in a couple of days, no problem.

However, with that update an alternative method to achieve this will also be available too. The idea behind this is the following. The object manager might not necessarily use files located in the OBJECTS folder as data source. Depending on the implementation of the object manager, the objects might be stored in a database or a web share or somthing. So it is in general not save for an exporter to simply get the objects from the file system below the terrain project. That's why I added a Save method to the object manager. So the object manager can save the objects to disk if needed. The way this works is the following: The export plugin iterates through all objects and lets the object manager save the objects to the desired target location in the desired format (including format conversion). This is already implemented and working and will be available in a couple of days too.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 22, 2008 7:11 am 
Offline

Joined: Wed Aug 20, 2008 5:19 pm
Posts: 9
Location: Seoul, Korea
Hello Ralf, :)

Nice solution to my problem. I will use the GetPath() method with the next update.

And using that new object manager I think target export directories restructured based on game data packging rules can be made.

Thanks for your ideas.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 25, 2008 10:06 pm 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 891
Location: Braunschweig
The update is now available. The method is CIPnPTCTerrain01::GetProjectPath().


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 26, 2008 9:41 pm 
Offline

Joined: Thu Apr 07, 2005 12:57 am
Posts: 70
Location: Lake Wylie, SC
This is a very nice addition. I have needed this before also.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 27, 2008 6:08 am 
Offline

Joined: Wed Aug 20, 2008 5:19 pm
Posts: 9
Location: Seoul, Korea
Very welcom the update.

I made a scene export plugin for my game project with the new update.
Terrain scenes are loaded successfully to Gamebroy engine.
Thanks a lot. :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 27, 2008 6:55 am 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 891
Location: Braunschweig
Great,

are you using standard Gambryo file formats, which other Gamebryo users could use as well? Or are you using own formats?

Is there a chance that you could share (parts of) your PlugIn?

Thanks
Ralf


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2008 3:53 am 
Offline

Joined: Wed Aug 20, 2008 5:19 pm
Posts: 9
Location: Seoul, Korea
I e-mailed you the plugin code files I wrote.

Making the plugin was not so difficult because there were good sample plugins you've made. I just combined three plugins into one; Heightmap to OBJ-File Export (PnPTC), Object placements to XML Export (PnPTC) and Max Plugin for Gamebryo.

For now the plugin simply exports terrain meshes and static objects to a standard Gamebryo NIF file. I used .obj files for viewing the static objects and NIF files for attaching those to a scene graph of Gamebryo.

Thanks for great TC creation, Ralf.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 05, 2008 8:53 am 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 891
Location: Braunschweig
Great, thank you very much.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

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