'Create a simple primitive, apply a default shader and create a texture projection
NewScene , false
CreatePrim "Sphere", "MeshSurface", "MySphere"
ApplyShader
BlendInPresets "Fractal", , , True, True
CreateProjection "MySphere", siTxtUV, siTxtDefaultSpherical, "Texture_Support", "Texture_Projection"
SetInstanceDataValue , "MySphere.Material.Phong.ambient_blend.Fractal.tspace_id", "Texture_Projection"
'Find the first polygon mesh child object of the scene root
set obj = activesceneroot.children.find(siPolyMeshType)
'Toggle the visibility of the texture support
ToggleVisibilityOfTextureUVDomains obj
|