.NET API
Texture3DApi
Image-driven 3D texture on a surface (the ArtisanTexture3D tool).
from ArtisanPlugin.Scripting import Texture3DApi
See also the guide, Accessories › Texture 3D, and the Python package, ra.texture_3d.
Methods
| Method | |
|---|---|
Create | texturePath optional image file (grayscale heightmap); omitted = the default texture. |
Create
Guid Texture3DApi.Create(
Guid surfaceId,
string texturePath = null,
int u = 0,
int v = 0,
double height = 0,
double rotation = 0)
texturePath optional image file (grayscale heightmap); omitted = the default texture. Defaults: 1x1 repeats, relief height 0.6, resolution 0.5. Returns the id of the textured object.
| Parameter | Type | Default |
|---|---|---|
surfaceId | Guid | required |
texturePath | string | null |
u | int | 0 |
v | int | 0 |
height | double | 0 |
rotation | double | 0 |
Returns Guid.