Skip to content

Commit 11d86ce

Browse files
- Updated packages
- Updated Lightsources - Started work on create-usd.js - Fixed specularColor in create-materialx.js
1 parent b2268a8 commit 11d86ce

File tree

7 files changed

+397
-150
lines changed

7 files changed

+397
-150
lines changed

README.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,47 @@
1-
# Physically Based
1+
# Physically Based API
22

33
A database of physically based values for CG artists.
44

5-
- [Materials](https://api.physicallybased.info/materials)
6-
- [Light sources](https://api.physicallybased.info/lightsources)
7-
- [Cameras](https://api.physicallybased.info/cameras)
8-
- Lenses (coming in v2)
9-
10-
Ideally, the data is to be consumed by DCC applications in the form of presets and plug-ins, or any other form that makes sense.
11-
You can browse the database at https://physicallybased.info
12-
135
<p align="center">
146
<picture>
157
<source media="(prefers-color-scheme: dark)" srcset="https://physicallybased.info/images/meta/database-dark.webp">
168
<img alt="Screenshot of the web implementation" src="https://physicallybased.info/images/meta/database.webp">
179
</picture>
1810
</p>
1911

20-
## API
12+
## Features
13+
14+
- Open Database: Access a curated collection of physically based material values
15+
- Lightweight: The entire dataset is optimized for quick loading and integration as presets
16+
- [materials.json](deploy/v2/materials.json) `191 KB`
17+
- [lightsources.json](deploy/v2/lightsources.json) `35 KB`
18+
- [cameras.json](deploy/v2/cameras.json) `222 KB`
19+
- [lenses.json](deploy/v2/lenses.json) (coming in v2)
20+
- API Access: Connect your tools to the API to get the latest updates from the database
21+
- Community-Driven: Contribute new materials or improve existing ones
22+
- Free License: All data is released under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/legalcode)
23+
24+
## Getting Started
2125

2226
Access the API and documentation at [https://api.physicallybased.info](https://api.physicallybased.info)
2327

24-
## Implementations
28+
### Implementations
29+
30+
Explore the database through these implementations:
2531

26-
- Web [https://physicallybased.info](https://physicallybased.info) by [AntonPalmqvist](https://github.com/AntonPalmqvist)
27-
- Web [https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/materialDatabase.html](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/materialDatabase.html) by [gkjohnson](https://github.com/gkjohnson)
28-
- Web [https://kwokcb.github.io/MaterialXLab/javascript/PhysicallyBasedMaterialX_out.html](https://kwokcb.github.io/MaterialXLab/javascript/PhysicallyBasedMaterialX_out.html) by [kwokcb](https://github.com/kwokcb)
32+
- Web [Physically Based](https://physicallybased.info) by [AntonPalmqvist](https://github.com/AntonPalmqvist)
33+
- Web [Three.js GPU Path Tracer](https://gkjohnson.github.io/three-gpu-pathtracer/example/bundle/materialDatabase.html) by [gkjohnson](https://github.com/gkjohnson)
34+
- Web [MaterialXLab](https://kwokcb.github.io/MaterialXLab/javascript/PhysicallyBasedMaterialX_out.html) by [kwokcb](https://github.com/kwokcb)
2935

30-
## Contribute
36+
### Contribute
3137

32-
Read about how to contribute here: [CONTRIBUTING.md](CONTRIBUTING.md)
38+
Contributions are welcome! Whether you want to add new entries, corrections, or suggestions, your help is appreciated. See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
3339

34-
## License
40+
### License
3541

3642
The database is made available under the [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/legalcode) license, which means you are free to use, modify, and distribute its content without any restrictions, even for commercial purposes.
3743

38-
Shader ball used for renders is from [ASWF USD WG](https://github.com/usd-wg/assets/tree/main/full_assets/StandardShaderBall) licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
44+
Shader ball used for renders is from [ASWF USD WG](https://github.com/usd-wg/assets/tree/main/full_assets/StandardShaderBall) and is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
3945

4046
<!-- ## Shader Ball
4147

deploy/lightsources.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,31 +63,31 @@
6363
"color": [1.0, 0.859, 0.778],
6464
"temperature": 5600,
6565
"angle": 65,
66-
"intensity": 61250
66+
"intensity": 78096
6767
},
6868
{
6969
"format": "15º Reflector",
7070
"color": [1.0, 0.859, 0.778],
7171
"temperature": 5600,
7272
"angle": 15,
73-
"intensity": 600000
73+
"intensity": 32671
7474
},
7575
{
7676
"format": "30º Reflector",
7777
"color": [1.0, 0.859, 0.778],
7878
"temperature": 5600,
7979
"angle": 30,
80-
"intensity": 250000
80+
"intensity": 56389
8181
},
8282
{
8383
"format": "45º Reflector",
8484
"color": [1.0, 0.859, 0.778],
8585
"temperature": 5600,
8686
"angle": 45,
87-
"intensity": 125000
87+
"intensity": 67377
8888
}
8989
],
90-
"unit": ["lx"],
90+
"unit": ["lm"],
9191
"type": ["spot"],
9292
"category": ["Artificial"],
9393
"description": "",
@@ -106,31 +106,31 @@
106106
"color": [1.0, 0.859, 0.778],
107107
"temperature": 5600,
108108
"angle": 70,
109-
"intensity": 76400
109+
"intensity": 117678
110110
},
111111
{
112112
"format": "15º Reflector",
113113
"color": [1.0, 0.859, 0.778],
114114
"temperature": 5600,
115115
"angle": 15,
116-
"intensity": 864900
116+
"intensity": 47095
117117
},
118118
{
119119
"format": "30º Reflector",
120120
"color": [1.0, 0.859, 0.778],
121121
"temperature": 5600,
122122
"angle": 30,
123-
"intensity": 376200
123+
"intensity": 84854
124124
},
125125
{
126126
"format": "45º Reflector",
127127
"color": [1.0, 0.859, 0.778],
128128
"temperature": 5600,
129129
"angle": 45,
130-
"intensity": 202500
130+
"intensity": 109150
131131
}
132132
],
133-
"unit": ["lx"],
133+
"unit": ["lm"],
134134
"type": ["spot"],
135135
"category": ["Artificial"],
136136
"description": "",
@@ -148,21 +148,21 @@
148148
{
149149
"format": "Flood",
150150
"angle": 60,
151-
"intensity": 41300
151+
"intensity": 43249
152152
},
153153
{
154154
"format": "Medium",
155155
"angle": 40,
156-
"intensity": 76100
156+
"intensity": 31671
157157
},
158158
{
159159
"format": "Spot",
160160
"angle": 15,
161-
"intensity": 405000
161+
"intensity": 22053
162162
}
163163
],
164164
"sourceSize": [11.5],
165-
"unit": ["lx"],
165+
"unit": ["lm"],
166166
"type": ["spot"],
167167
"category": ["Artificial"],
168168
"description": "",
@@ -580,7 +580,8 @@
580580
"https://en.wikipedia.org/wiki/Daylight",
581581
"http://stjarnhimlen.se/comp/radfaq.html#10",
582582
"https://nssdc.gsfc.nasa.gov/planetary/factsheet/sunfact.html",
583-
"https://www.physics.unlv.edu/~jeffery/astro/moon/sun_moon_angular.html"
583+
"https://www.physics.unlv.edu/~jeffery/astro/moon/sun_moon_angular.html",
584+
"https://jila.colorado.edu/~ajsh/colour/Tspectrum.html"
584585
]
585586
}
586587
]

deploy/v2/lightsources.json

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
],
9999
"temperature": 5600,
100100
"angle": 15,
101-
"intensity": 600000
101+
"intensity": 32671
102102
},
103103
{
104104
"format": "30º Reflector",
@@ -110,7 +110,7 @@
110110
],
111111
"temperature": 5600,
112112
"angle": 30,
113-
"intensity": 250000
113+
"intensity": 56389
114114
},
115115
{
116116
"format": "45º Reflector",
@@ -122,7 +122,7 @@
122122
],
123123
"temperature": 5600,
124124
"angle": 45,
125-
"intensity": 125000
125+
"intensity": 67377
126126
},
127127
{
128128
"format": "No Reflector",
@@ -134,10 +134,10 @@
134134
],
135135
"temperature": 5600,
136136
"angle": 65,
137-
"intensity": 61250
137+
"intensity": 78096
138138
}
139139
],
140-
"unit": ["lx"],
140+
"unit": ["lm"],
141141
"type": ["spot"],
142142
"category": ["Artificial"],
143143
"references": [
@@ -176,7 +176,7 @@
176176
],
177177
"temperature": 5600,
178178
"angle": 15,
179-
"intensity": 864900
179+
"intensity": 47095
180180
},
181181
{
182182
"format": "30º Reflector",
@@ -188,7 +188,7 @@
188188
],
189189
"temperature": 5600,
190190
"angle": 30,
191-
"intensity": 376200
191+
"intensity": 84854
192192
},
193193
{
194194
"format": "45º Reflector",
@@ -200,7 +200,7 @@
200200
],
201201
"temperature": 5600,
202202
"angle": 45,
203-
"intensity": 202500
203+
"intensity": 109150
204204
},
205205
{
206206
"format": "No Reflector",
@@ -212,10 +212,10 @@
212212
],
213213
"temperature": 5600,
214214
"angle": 70,
215-
"intensity": 76400
215+
"intensity": 117678
216216
}
217217
],
218-
"unit": ["lx"],
218+
"unit": ["lm"],
219219
"type": ["spot"],
220220
"category": ["Artificial"],
221221
"references": [
@@ -253,7 +253,7 @@
253253
],
254254
"temperature": 6000,
255255
"angle": 15,
256-
"intensity": 405000
256+
"intensity": 22053
257257
},
258258
{
259259
"format": "Medium",
@@ -265,7 +265,7 @@
265265
],
266266
"temperature": 6000,
267267
"angle": 40,
268-
"intensity": 76100
268+
"intensity": 31671
269269
},
270270
{
271271
"format": "Flood",
@@ -277,11 +277,11 @@
277277
],
278278
"temperature": 6000,
279279
"angle": 60,
280-
"intensity": 41300
280+
"intensity": 43249
281281
}
282282
],
283283
"sourceSize": [11.5],
284-
"unit": ["lx"],
284+
"unit": ["lm"],
285285
"type": ["spot"],
286286
"category": ["Artificial"],
287287
"references": [
@@ -1167,6 +1167,12 @@
11671167
"author": "Jeffery, D.",
11681168
"url": "https://www.physics.unlv.edu/~jeffery/astro/moon/sun_moon_angular.html",
11691169
"accessed": "2025-02-27"
1170+
},
1171+
{
1172+
"title": "What Colour Is The Sun",
1173+
"author": "Hamilton, A.",
1174+
"url": "https://jila.colorado.edu/~ajsh/colour/Tspectrum.html",
1175+
"accessed": "2025-08-23"
11701176
}
11711177
]
11721178
}

0 commit comments

Comments
 (0)