Jump to content

[SOLVED] Conversion of large image to array suitable for terrain


photo

Recommended Posts

Hi 

Ive used to the imagedds tool to convert a large image to a dds - is there a way to use this tool to carve this up into the array that is needed in the terrain node?

if not is there another tool with the SDK that will create the array (like the 'import' from node UI screen does)

 

Link to comment

Hi 'Bob'

Its no so much the heights that we want to set - weve already produced a TER file using the external terrain.exe function.

its adding the aerial photography as a texture to that terrain node.

 

I can do it through the UI by 'IMPORTing' a .PSD  for the diffuse/Normal/Holes, and that creates an array of the dds files.

 

Its that process iam trying to achieve programatically.

 

 

Thanks

Link to comment

Oh, I see, sorry for misinforming you. :)

 

If you want to go 'command line toolchain' way then it's possible to write simple usc script (https://developer.unigine.com/en/docs/1.0/tools/usc/) which will split input image and save the slices properly.

 

You can take a look at editor's terrain import functions to see how it's done. If you're using Unigine 2.0 then it's located in <data folder>/editor/editor_objects_terrain_import.h file.

Link to comment
×
×
  • Create New...