作者:禮龍
声明:转发本文,请联系作者授权
#usda 1.0
(
upAxis = "Y"
)
def Xform “simpleMesh” (
kind = "component"
)
{
def Mesh "cube" // 属性定义
{
point3f[] points = [(0,0,0), (1,0,0), (1,1,0), (0,1,0)] // simpleMesh/cube.normals
normal3f[] normals = [(0,0,1)] (
interpolation = "uniform" )
...
}
}
Prims
def Xform “simpleMesh”
{
def Mesh "cube"
{
}
}
Properties(属性)
point3f[] points = [(0,0,0), (1,0,0), (1,1,0), (0,1,0)]
normal3f[] normals = [(0,0,1)]
...
MetaData(元数据)
(
upAxis = "Y"
)
(
kind = "component"
)
(
interpolation = "uniform"
)
Object Access Through Paths (通过路径访问对象)
def Mesh “cube” ==> simpleMesh/cube
normal3f[] normals = [(0,0,1)] ==> /simpleMesh/cube.normals
def Mesh "Tetrahedron"
{
point3f[] points = [(-1,-1,1), (-1,1,-1), (1,-1,-1), (1,1,1)]
int[] faceVertexCounts = [3, 3, 3, 3]
int[] faceVertexIndices = [1,2,0, 3,2,1, 3,0,2, 3,1,0]
normal3f[] normals = [(-0.58,-0.58,-0.58), (0.58,0.58,-0.58),
(0.58,-0.58,0.58), (-0.58,0.58,0.58)] (
interpolation = "uniform"
)
float2[] primvars:st = [(0.75,0.43),(0.5,0.87),(0.25,0.43),
(1,0.87),(0,0.87),(0.5,0)] (
interpolation = "faceVarying"
)
int[] primvars:st:indices = [0,1,2, 3,1,0, 4,2,1, 5,0,2]
uniform token subdivisionScheme = "none"
}
point3f[] points = [(-1,-1,1), (-1,1,-1), (1,-1,-1), (1,1,1)]
int[] faceVertexCounts = [3, 3, 3, 3]
int[] faceVertexIndices = [1,2,0, 3,2,1, 3,0,2, 3,1,0]
normal3f[] normals = [(-0.58,-0.58,-0.58), (0.58,0.58,-0.58), (0.58,-0.58,0.58), (-0.58,0.58,0.58)] (
interpolation = “uniform” // per-face attribute
)
float2[] primvars:st = [(0.75,0.43),(0.5,0.87),(0.25,0.43),(1,0.87),(0,0.87),(0.5,0)] (
interpolation = “faceVarying” // per-face per-vertex attribute
)
int[] primvars:st:indices = [0,1,2, 3,1,0, 4,2,1, 5,0,2]
物理材料描述
diffuseColor = (1,1,1)
normal = normals.png
occlusion = occlusion.png
金属材质
diffuseColor = (1,1,1)
normal = normals.png
occlusion = occlusion.png
metallic = 1
镜面粗糙度
diffuseColor = (1,1,1)
normal = normals.png
occlusion = occlusion.png
metallic = 1
roughness = roughness.png
样例
diffuseColor = diffuse.png
normal = normals.png
occlusion = occlusion.png
metallic = metallic.png
roughness = roughness.png