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 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions 2.0/SheenCloth/README.md
Original file line number Diff line number Diff line change
@@ -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.
253 changes: 253 additions & 0 deletions 2.0/SheenCloth/glTF/SheenCloth.gltf
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
{
"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",
"KHR_materials_sheen"
],
"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
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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
Loading
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.