Jump to content

[SOLVED] ImageAtlas via UNIGINE script


photo

Recommended Posts

Posted

Engine c++ source contains framework class ImageAtlas for texture atlas creation. It would be very helpful to have this functionality exposed via UNIGINE script as this is a quiet common optimisation task during world init or pre-processing.

Posted

What exactly this class do? Makes atlas from given textures? Or even modifies UVs of given meshes?

Posted

It builds the atlas image and provides an UV mapping for each stored image, so texture UV's of meshes using the original image can be modified by the user accordingly

Posted
It builds the atlas image and provides an UV mapping for each stored image, so texture UV's of meshes using the original image can be modified by the user accordingly

 

This is indeed very usefull.

Posted

This UnigineScript-based atlas generator will be available in the next SDK.

Unigine::Atlas class produces absolutely same packing as an internal ImageAtlas c++ class.

Moreover ObjectMesh and ObjectMeshSkinned nodes will have ability to surface merging and vertex/index buffer modification at run-time.

 

atlas.png

atlas.zip

Posted

Excellent ! Just as an idea: name ImageAtlas might be little bit more expressive

×
×
  • Create New...