OsSetTerrainTextures

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
|function_syntax= osSetTerrainTextures(list textureKeys, integer types)
 
|function_syntax= osSetTerrainTextures(list textureKeys, integer types)
 
|description=
 
|description=
Regions store two sets of textures or materials:
+
Opensimulator regions store two sets of textures or materials:
 
* a set of texture keys for legacy viewers and map
 
* a set of texture keys for legacy viewers and map
 
* a set of keys of textures or pbr materials for new viewers.<br>
 
* a set of keys of textures or pbr materials for new viewers.<br>

Revision as of 17:59, 5 May 2025

osSetTerrainTextures(list textureKeys, integer types)
Opensimulator regions store two sets of textures or materials:
  • a set of texture keys for legacy viewers and map
  • a set of keys of textures or pbr materials for new viewers.

so this function sets terrain:

  • textures for legacy viewers and map if types == 0 or 2
  • textures for new viewers if types == 1 or 2
  • PBR materials for new viewers if types == 1

The list textureKeys must contain keys or names of 4 textures or 4 pbr materials. They must be of the same type due to viewers restrictions.
This define the textures or materials the viewer will use to draw the terrain texture
They are ordered from low to high terrain height level, as on viewers World -> Region Details -> Terrain menu tab.
If a entry is a name, then the material or texture must be present on the prim inventory.
If a entry is a empty string, then that level is unchanged.

Threat Level High
Permissions ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Notes
This function was added in 0.9.3.1
Personal tools
General
About This Wiki