Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Adding SheenCloth asset #266

Merged
merged 15 commits into from Dec 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion 2.0/README.md
Expand Up @@ -68,7 +68,8 @@

| Model | Screenshot | Description |
|--------------------------------------------------------|-------------------------------------------------------|-------------|
| [ToyCar](ToyCar) | ![](ToyCar/screenshot/screenshot.jpg) | Features PBR extensions for transmission, clearcoat, and sheen.|
| [Sheen Cloth](SheenCloth) | ![](SheenCloth/screenshot/screenshot.jpg) | Sheen cloth sample.|
| [Toy Car](ToyCar) | ![](ToyCar/screenshot/screenshot.jpg) | Features PBR extensions for transmission, clearcoat, and sheen.|


## Feature Test Models
Expand Down
21 changes: 21 additions & 0 deletions 2.0/SheenCloth/README.md
@@ -0,0 +1,21 @@
# Sheen Cloth

### Screenshot

![screenshot](screenshot/sheen_technicalFabric_side.jpg)

### Specifications
The mesh of this asset was created with a cloth simulation in Maya and then subdivided to smooth out the geometry in the folds of the cloth. The frequency of the folds is tied to the resolution of the source mesh, so the mesh in this asset is very heavy to account for more folds as well as a smooth mesh.

To account for this, the material uses tiled textures to reduce the overall size of the texture files. The textures are 256 x 256 pixels and are tiled 30 times in U and V using the KHR_texture_transform extension. The other extension in the file is KHR_materials_sheen to allow for a sheen texture to be used on the model.

The texture for the technical fabric was created in Substance Designer with a base color texture, packed ORM texture, normal texture, and sheen texture with sheen color in the RGB channels and sheen roughness in alpha. The image below shows the channels of the sheen texture with the left half of the image displaying the sheen color in the RGB channels and the right displaying the sheen roughness in the alpha channel.

![screenshot](screenshot/sheenTextureSample.jpg)

### License Information

Donated by Microsoft for glTF testing

[![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png)](http://creativecommons.org/publicdomain/zero/1.0/)
To the extent possible under law, Microsoft has waived all copyright and related or neighboring rights to this asset.
Binary file added 2.0/SheenCloth/glTF/SheenCloth.bin
Binary file not shown.
252 changes: 252 additions & 0 deletions 2.0/SheenCloth/glTF/SheenCloth.gltf
@@ -0,0 +1,252 @@
{
"asset": {
"version": "2.0",
"generator": "babylon.js glTF exporter for Maya 2018 v20200617.6 with custom modifications for sheen"
},
"extensionsUsed": [
"KHR_texture_transform",
"KHR_materials_sheen"
],
"extensionsRequired": [
"KHR_texture_transform"
],
"scene": 0,
"scenes": [
{
"nodes": [
0
]
}
],
"nodes": [
{
"mesh": 0,
"name": "SheenCloth_mesh"
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 1,
"TANGENT": 2,
"NORMAL": 3,
"TEXCOORD_0": 4
},
"indices": 0,
"material": 0
}
],
"name": "SheenCloth_mesh"
}
],
"accessors": [
{
"bufferView": 0,
"componentType": 5123,
"count": 345600,
"type": "SCALAR",
"name": "accessorIndices"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 58081,
"max": [
0.0447657481,
0.0404023454,
0.022842247
],
"min": [
-0.02736334,
9.99381155E-05,
-0.04848177
],
"type": "VEC3",
"name": "accessorPositions"
},
{
"bufferView": 2,
"componentType": 5126,
"count": 58081,
"type": "VEC4",
"name": "accessorTangents"
},
{
"bufferView": 1,
"byteOffset": 696972,
"componentType": 5126,
"count": 58081,
"type": "VEC3",
"name": "accessorNormals"
},
{
"bufferView": 3,
"componentType": 5126,
"count": 58081,
"type": "VEC2",
"name": "accessorUVs"
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 691200,
"name": "bufferViewScalar"
},
{
"buffer": 0,
"byteOffset": 691200,
"byteLength": 1393944,
"byteStride": 12,
"name": "bufferViewFloatVec3"
},
{
"buffer": 0,
"byteOffset": 2085144,
"byteLength": 929296,
"byteStride": 16,
"name": "bufferViewFloatVec4"
},
{
"buffer": 0,
"byteOffset": 3014440,
"byteLength": 464648,
"byteStride": 8,
"name": "bufferViewFloatVec2"
}
],
"buffers": [
{
"uri": "SheenCloth.bin",
"byteLength": 3479088
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 2,
"extensions": {
"KHR_texture_transform": {
"scale": [
30.0,
-30.0
]
}
}
},
"metallicRoughnessTexture": {
"index": 1,
"extensions": {
"KHR_texture_transform": {
"scale": [
30.0,
-30.0
]
}
}
}
},
"normalTexture": {
"index": 0,
"extensions": {
"KHR_texture_transform": {
"scale": [
30.0,
-30.0
]
}
}
},
"occlusionTexture": {
"index": 1,
"extensions": {
"KHR_texture_transform": {
"scale": [
30.0,
-30.0
]
}
}
},
"extensions": {
"KHR_materials_sheen": {
"sheenColorFactor": [
1.0,
1.0,
1.0
],
"sheenRoughnessFactor": 1.0,
"sheenColorTexture": {
"index": 3,
"extensions": {
"KHR_texture_transform": {
"scale": [
30.0,
-30.0
]
}
}
},
"sheenRoughnessTexture": {
"index": 3,
"extensions": {
"KHR_texture_transform": {
"scale": [
30.0,
-30.0
]
}
}
}
}
},
"doubleSided": true,
"name": "SheenClothMat"
}
],
"textures": [
{
"sampler": 0,
"source": 0,
"name": "technicalFabricSmall_normal_256.png"
},
{
"sampler": 0,
"source": 1,
"name": "technicalFabricSmall_orm_256.png"
},
{
"sampler": 0,
"source": 2,
"name": "technicalFabricSmall_basecolor_256.png"
},
{
"sampler": 0,
"source": 3,
"name": "technicalFabricSmall_sheen_256.png"
}
],
"images": [
{
"uri": "technicalFabricSmall_normal_256.png"
},
{
"uri": "technicalFabricSmall_orm_256.png"
},
{
"uri": "technicalFabricSmall_basecolor_256.png"
},
{
"uri": "technicalFabricSmall_sheen_256.png"
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9987
}
]
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.0/SheenCloth/screenshot/screenshot.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.0/SheenCloth/screenshot/sheenTextureSample.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions 2.0/model-index.json
Expand Up @@ -396,6 +396,13 @@
"glTF": "SciFiHelmet.gltf"
}
},
{
"name": "SheenCloth",
"screenshot": "screenshot/screenshot.jpg",
"variants": {
"glTF": "SheenCloth.gltf"
}
},
{
"name": "SimpleMeshes",
"screenshot": "screenshot/screenshot.png",
Expand Down