1
Python and Java API / New Split in Chunks script
« on: September 03, 2015, 11:21:40 PM »
Hello Community,
I modified the 'split in chunks.py' script and added two new features:
- now it is possible to split the region into X * Y * Z chunks instead of X * Y only.
- include a threshold (%) for overlaping the chunks regions
Background of modifying was that i use a low end 32bit PC with little RAM and wanted a high resolution model. Now i have an option to build X * Y * Z chunks and build a dense point cloud of about 2mio per chunk, generate mesh and put at maximum a 4096 pix texture on every part of the model per chunk.
This generates a very high resolution model with high resolution texture after merging the chunks into one model.
In the 'old' script merging results in a merged chunk without a model or cloud. I fixed it with aligning the chunks before. This aligning i added into script and after merging it works.
I put in the threshold option, because after merging the model, there were little gaps between the model parts.
Options:
The hardcoded options in the script are:
Aligning with camera matching
Quality = Medium & Filtering = Aggressive for dense point cloud generation
and
Surface = Arbitrary, Interpolation = Disabled & Face-Count = 0 for mesh building.
If you run the script from the custom menu there are two additional Spinboxes in the settings window.
The usual for X and Y splitting the third for Z splitting and the fourth for the threshold value in percentage.
I hope to help anyone with this modification.
Happy moddeling
PriNova
I modified the 'split in chunks.py' script and added two new features:
- now it is possible to split the region into X * Y * Z chunks instead of X * Y only.
- include a threshold (%) for overlaping the chunks regions
Background of modifying was that i use a low end 32bit PC with little RAM and wanted a high resolution model. Now i have an option to build X * Y * Z chunks and build a dense point cloud of about 2mio per chunk, generate mesh and put at maximum a 4096 pix texture on every part of the model per chunk.
This generates a very high resolution model with high resolution texture after merging the chunks into one model.
In the 'old' script merging results in a merged chunk without a model or cloud. I fixed it with aligning the chunks before. This aligning i added into script and after merging it works.
I put in the threshold option, because after merging the model, there were little gaps between the model parts.
Options:
The hardcoded options in the script are:
Aligning with camera matching
Quality = Medium & Filtering = Aggressive for dense point cloud generation
and
Surface = Arbitrary, Interpolation = Disabled & Face-Count = 0 for mesh building.
If you run the script from the custom menu there are two additional Spinboxes in the settings window.
The usual for X and Y splitting the third for Z splitting and the fourth for the threshold value in percentage.
I hope to help anyone with this modification.
Happy moddeling
PriNova