PnP TerrainCreator - Forum

The PnP TerrainCreator Forum
It is currently Mon Nov 20, 2017 3:06 pm

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Sat Dec 30, 2006 3:33 am 
Offline

Joined: Tue Sep 26, 2006 10:18 pm
Posts: 142
Location: Northern California
Ralf wrote:
I can confirm this beeing a bug in the main program's sector management. Should be no problem to fix it.

Did these problems get fixed?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 12:17 pm 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 892
Location: Braunschweig
It is fixed, and the next beta is almost ready. Just have to test a few things. I'll upload it within the next 3 days.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 1:32 am 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 892
Location: Braunschweig
OK, just uploaded a new beta, which should fix this problem.
You have to download the new SDK too in order to compile your PlugIn.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 07, 2007 6:37 am 
Offline

Joined: Tue Sep 26, 2006 10:18 pm
Posts: 142
Location: Northern California
I'm really busy right now, but will attempt to check it out soon.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 07, 2007 12:25 am 
Offline

Joined: Tue Sep 26, 2006 10:18 pm
Posts: 142
Location: Northern California
Should this sequence now work in the raw input plugin
in:
CPnPTCRAWHMapImportPlugIn::ReadSector()

1. close any open sectors:

Sector.Save(); // but first save the currently open sector.

// and any adjacent sectors.

CIPnPTCSector01* neighbor_sector_p = Sector.GetNeighbourSector(NB_TOPLEFT);
if(neighbor_sector_p) {neighbor_sector_p->Save();}
neighbor_sector_p = Sector.GetNeighbourSector(NB_TOP);
if(neighbor_sector_p) {neighbor_sector_p->Save();}
neighbor_sector_p = Sector.GetNeighbourSector(NB_TOPRIGHT);
if(neighbor_sector_p) {neighbor_sector_p->Save();}
neighbor_sector_p = Sector.GetNeighbourSector(NB_RIGHT);
if(neighbor_sector_p) {neighbor_sector_p->Save();}
neighbor_sector_p = Sector.GetNeighbourSector(NB_BOTTOMRIGHT);
if(neighbor_sector_p) {neighbor_sector_p->Save();}
neighbor_sector_p = Sector.GetNeighbourSector(NB_BOTTOM);
if(neighbor_sector_p) {neighbor_sector_p->Save();}
neighbor_sector_p = Sector.GetNeighbourSector(NB_BOTTOMLEFT);
if(neighbor_sector_p) {neighbor_sector_p->Save();}
neighbor_sector_p = Sector.GetNeighbourSector(NB_LEFT);
if(neighbor_sector_p) {neighbor_sector_p->Save();}

2. Iterate over all sectors: opening, setting the heightmap, and saving the sectors?

CIPnPTCSectorDefinition01* sector_def = Terrain.GetSectorDefinition(sector_x, sector_y);

CIPnPTCSector01* sector_det = sector_def->GetSectorDetail();

sector_det->SetHeight(x_pos, y_pos,raw_height*fFactor+fOffset);

ret = sector_det->Save();

Another question is: Does GetSectorDetail() open adjacent sectors?

Thanks...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 07, 2007 9:49 am 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 892
Location: Braunschweig
1. Yes, that would be the right way of doing it.
2. GetSectorDetail only openes the sector on which it was invoked. Call OpenSurroundingSectors on that sector object to open its surrounding sectors.

3. Don't experiment with whole terrain import any longer :) Just download the current beta of the program and the SDK.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 07, 2007 6:07 pm 
Offline

Joined: Tue Sep 26, 2006 10:18 pm
Posts: 142
Location: Northern California
Thanks for the answers.

I assume your answer 3 means the whole terrain import is in the beta.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 07, 2007 6:54 pm 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 892
Location: Braunschweig
right ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 23 posts ]  Go to page Previous  1, 2

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