sketchfably 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5402e303d258c83e36430697c15261c4a933b318
4
+ data.tar.gz: cb6d9a144ef997e2c6ecb620be718019819821d0
5
+ SHA512:
6
+ metadata.gz: 457dbf47d357ed79dae38de07444c1a852fd74b6280c68810b60b442b789258a3665b7c16734daf394c8c79f5e6833b9fd0fd0a17308ecce13e429d4a6b63ea2
7
+ data.tar.gz: c7f5ef15ab43afb581850e4d2ccf318e01bac05b90cca3dafcf53ea3d28e53daa87db0f14501b59fcf5333d6a72cdbc82c2e9cdcf2b857f00717ad51f009347b
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in sketchfably.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Matthew Vincent
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,36 @@
1
+ # Sketchfably
2
+
3
+ Sketchfably is a set up Rails helps to easily (and safely) embed Sketchfab models into records. Users can just paste the BBCode and Sketchfably will show it!
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'sketchfably'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install sketchfably
20
+
21
+ ## Usage
22
+
23
+ Find Sketchfab models by tag:
24
+ @models = Sketchfably.get_models_by_tag("myawesometag")
25
+
26
+ Display embed code:
27
+
28
+ model.html
29
+
30
+ ## Contributing
31
+
32
+ 1. Fork it ( https://github.com/[my-github-username]/sketchfably/fork )
33
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
34
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
35
+ 4. Push to the branch (`git push origin my-new-feature`)
36
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,36 @@
1
+ require File.dirname(__FILE__) + '/sketchfably/version'
2
+ require File.dirname(__FILE__) + '/sketchfably/sketchfab_model'
3
+
4
+ require 'net/http'
5
+ require 'uri'
6
+
7
+ module Sketchfably
8
+ def self.get_models_by_tag(tag)
9
+ uri = URI.parse("https://api.sketchfab.com/v2/models?tags_filter=#{tag}")
10
+ response = Net::HTTP.get_response(uri)
11
+ json_results = JSON.parse response.body
12
+ models = []
13
+ json_results["results"].map{|result| models << ::SketchfabModel.new(id: result["uid"], name: result["name"], username: result["user"]["username"])}
14
+ return models
15
+ end
16
+
17
+ def self.get_model_from_bbcode(bbcode)
18
+ ## [sketchfab]55ea0aed9bfd462593f006ea8c4aade0[/sketchfab]
19
+ #[url=https://sketchfab.com/models/55ea0aed9bfd462593f006ea8c4aade0]The Lion of Mosul[/url] by [url=https://sketchfab.com/neshmi]neshmi[/url] on [url=https://sketchfab.com]Sketchfab[/url]
20
+ bbcode.match(/\[sketchfab\](.*)\[\/sketchfab\]\s\[url.*\](.*)\[\/url\].*\[url.*\](.*)\[\/url\].*\[url.*\](.*)\[\/url\]/)
21
+ model = SketchfabModel.new(id: $1, name: $2, username: $3)
22
+ return model
23
+ end
24
+
25
+ def self.get_html_for_model(sketchfab_model:, width: 640, height: 480)
26
+ html = <<-eol
27
+ <iframe width="#{width}" height="#{height}" src="https://sketchfab.com/models/#{sketchfab_model.id}/embed" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>
28
+
29
+ <p style="font-size: 13px; font-weight: normal; margin: 5px; color: #4A4A4A;">
30
+ <a href="https://sketchfab.com/models/#{sketchfab_model.id}?utm_source=oembed&utm_medium=embed&utm_campaign=#{sketchfab_model.id}" target="_blank" style="font-weight: bold; color: #1CAAD9;">#{sketchfab_model.name}</a>
31
+ by <a href="https://sketchfab.com/neshmi?utm_source=oembed&utm_medium=embed&utm_campaign=#{sketchfab_model.id}" target="_blank" style="font-weight: bold; color: #1CAAD9;">#{sketchfab_model.username}</a>
32
+ on <a href="https://sketchfab.com?utm_source=oembed&utm_medium=embed&utm_campaign=#{sketchfab_model.id}" target="_blank" style="font-weight: bold; color: #1CAAD9;">Sketchfab</a>
33
+ </p>
34
+ eol
35
+ end
36
+ end
@@ -0,0 +1,12 @@
1
+ class SketchfabModel
2
+ attr_accessor :name, :username, :id
3
+ def initialize(name:, id:, username:)
4
+ @id = id
5
+ @name = name
6
+ @username = username
7
+ end
8
+
9
+ def html(height: 480, width: 640)
10
+ Sketchfably.get_html_for_model(sketchfab_model: self, height: height, width: width)
11
+ end
12
+ end
@@ -0,0 +1,3 @@
1
+ module Sketchfably
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'sketchfably/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "sketchfably"
8
+ spec.version = Sketchfably::VERSION
9
+ spec.authors = ["Matthew Vincent"]
10
+ spec.email = ["matt@averails.com"]
11
+ spec.summary = %q{Helpers for the Sketchfab API}
12
+ spec.description = %q{Helpers for the Sketchfab API}
13
+ spec.homepage = "https://github.com/neshmi/sketchfably"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "rspec-its"
25
+ spec.add_development_dependency "webmock"
26
+ end
@@ -0,0 +1,1089 @@
1
+ {
2
+ "count": 1,
3
+ "previous": null,
4
+ "next": null,
5
+ "results": [
6
+ {
7
+ "files": {
8
+ "wireframe": {
9
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/urls/55ea0aed9bfd462593f006ea8c4aade0/1426192670/wireframe.osgjs.gz",
10
+ "size": 0
11
+ },
12
+ "polygon": {
13
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/urls/55ea0aed9bfd462593f006ea8c4aade0/1426192670/file.osgjs.gz",
14
+ "size": 3676876
15
+ }
16
+ },
17
+ "uid": "55ea0aed9bfd462593f006ea8c4aade0",
18
+ "publishedAt": "2015-03-12T21:37:32",
19
+ "likeCount": 10,
20
+ "commentCount": "0",
21
+ "isDownloadAllowed": true,
22
+ "isDownloadable": true,
23
+ "staffpickedAt": "2015-03-16T14:32:27",
24
+ "isPrivate": false,
25
+ "embedUrl": "https://sketchfab.com/models/55ea0aed9bfd462593f006ea8c4aade0/embed",
26
+ "folders": [],
27
+ "sharing": {
28
+ "shortUrl": "https://skfb.ly/DtVq",
29
+ "user": {
30
+ "twitterUsername": "neshmi"
31
+ }
32
+ },
33
+ "description": "Partial reconstruction of a lion statue from the Museum of Mosul using crowd sourced photogrammetry. http://projectmosul.itn-dch.net",
34
+ "tags": [
35
+ "agisoft",
36
+ "photoscan",
37
+ "projectmosul"
38
+ ],
39
+ "viewerUrl": "https://sketchfab.com/models/55ea0aed9bfd462593f006ea8c4aade0",
40
+ "isProtected": false,
41
+ "vertexCount": 100438,
42
+ "user": {
43
+ "username": "neshmi",
44
+ "account": "biz",
45
+ "displayName": "neshmi",
46
+ "uid": "11f03937a0a64d48867d1b2e50cf4633",
47
+ "avatars": {
48
+ "images": [
49
+ {
50
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/avatars/52b4abf70f8b4f739d5a3e778ceb20a5/594b135384404a3caa3cafbb1ace2875.jpeg",
51
+ "width": 100,
52
+ "updatedAt": "2015-03-16T18:46:01",
53
+ "createdAt": "2015-03-16T18:46:01",
54
+ "height": 100
55
+ },
56
+ {
57
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/avatars/52b4abf70f8b4f739d5a3e778ceb20a5/35987fe037224ce990243eb093bd3c0c.jpeg",
58
+ "width": 90,
59
+ "updatedAt": "2015-03-16T18:46:02",
60
+ "createdAt": "2015-03-16T18:46:01",
61
+ "height": 90
62
+ },
63
+ {
64
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/avatars/52b4abf70f8b4f739d5a3e778ceb20a5/0eb74c7e67f9456587a8d1d442776641.jpeg",
65
+ "width": 48,
66
+ "updatedAt": "2015-03-16T18:46:02",
67
+ "createdAt": "2015-03-16T18:46:02",
68
+ "height": 48
69
+ },
70
+ {
71
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/avatars/52b4abf70f8b4f739d5a3e778ceb20a5/0d8691fed0ab4df7b178569158cdc5ed.jpeg",
72
+ "width": 32,
73
+ "updatedAt": "2015-03-16T18:46:02",
74
+ "createdAt": "2015-03-16T18:46:02",
75
+ "height": 32
76
+ }
77
+ ],
78
+ "updatedAt": "2015-03-16T18:46:00",
79
+ "uid": "52b4abf70f8b4f739d5a3e778ceb20a5",
80
+ "createdAt": "2015-03-16T18:46:00",
81
+ "name": "mvincent_bio.jpg"
82
+ },
83
+ "profileUrl": "https://sketchfab.com/neshmi"
84
+ },
85
+ "date": "2015-03-12T21:37:31",
86
+ "urlid": "55ea0aed9bfd462593f006ea8c4aade0",
87
+ "categories": [],
88
+ "thumbnails": {
89
+ "images": [
90
+ {
91
+ "uid": "5c3aaaee21ad4eadbef9c01df88f748f",
92
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/urls/55ea0aed9bfd462593f006ea8c4aade0/thumbnails/3be969e1188e4154bfb9313f2674c748/640.jpeg",
93
+ "height": 358,
94
+ "width": 640,
95
+ "updatedAt": "2015-03-17T13:14:44",
96
+ "createdAt": "2015-03-17T13:14:44"
97
+ },
98
+ {
99
+ "uid": "a31e7fc170f0404087dd21a7812df489",
100
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/urls/55ea0aed9bfd462593f006ea8c4aade0/thumbnails/3be969e1188e4154bfb9313f2674c748/448.jpeg",
101
+ "height": 251,
102
+ "width": 448,
103
+ "updatedAt": "2015-03-17T13:14:44",
104
+ "createdAt": "2015-03-17T13:14:44"
105
+ },
106
+ {
107
+ "uid": "17a93434e6cc4cdda26fa1572d2670af",
108
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/urls/55ea0aed9bfd462593f006ea8c4aade0/thumbnails/3be969e1188e4154bfb9313f2674c748/200x200.jpeg",
109
+ "height": 200,
110
+ "width": 200,
111
+ "updatedAt": "2015-03-17T13:14:44",
112
+ "createdAt": "2015-03-17T13:14:44"
113
+ },
114
+ {
115
+ "uid": "c26472b66f6a467398f53195c84a00dc",
116
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/urls/55ea0aed9bfd462593f006ea8c4aade0/thumbnails/3be969e1188e4154bfb9313f2674c748/100x100.jpeg",
117
+ "height": 100,
118
+ "width": 100,
119
+ "updatedAt": "2015-03-17T13:14:44",
120
+ "createdAt": "2015-03-17T13:14:44"
121
+ },
122
+ {
123
+ "uid": "872e952fef5f440bb3a01fd105a39046",
124
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/urls/55ea0aed9bfd462593f006ea8c4aade0/thumbnails/3be969e1188e4154bfb9313f2674c748/50x50.jpeg",
125
+ "height": 50,
126
+ "width": 50,
127
+ "updatedAt": "2015-03-17T13:14:44",
128
+ "createdAt": "2015-03-17T13:14:44"
129
+ },
130
+ {
131
+ "uid": "bf185701e87244a4967614c0a18141f4",
132
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/urls/55ea0aed9bfd462593f006ea8c4aade0/thumbnails/3be969e1188e4154bfb9313f2674c748/854.jpeg",
133
+ "height": 478,
134
+ "width": 854,
135
+ "updatedAt": "2015-03-17T13:14:45",
136
+ "createdAt": "2015-03-17T13:14:44"
137
+ },
138
+ {
139
+ "uid": "3a6983dfcbcc401c854bf4a6f718c700",
140
+ "url": "https://d35krx4ujqgbcr.cloudfront.net/urls/55ea0aed9bfd462593f006ea8c4aade0/thumbnails/3be969e1188e4154bfb9313f2674c748/1024.jpeg",
141
+ "height": 573,
142
+ "width": 1024,
143
+ "updatedAt": "2015-03-17T13:14:45",
144
+ "createdAt": "2015-03-17T13:14:45"
145
+ }
146
+ ],
147
+ "uid": "3be969e1188e4154bfb9313f2674c748",
148
+ "createdAt": "2015-03-17T13:14:44",
149
+ "updatedAt": "2015-03-17T13:14:44"
150
+ },
151
+ "viewCount": 9915,
152
+ "brandedAt": null,
153
+ "name": "The Lion of Mosul",
154
+ "license": {
155
+ "requirements": "Author must be credited. No commercial use.",
156
+ "uid": "bbfe3f7dbcdd4122b966b85b9786a989",
157
+ "url": "http://creativecommons.org/licenses/by-nc/4.0/",
158
+ "summary": "Share & adapt with credit, no commercial use",
159
+ "fullname": "Creative Commons Attribution-NonCommercial",
160
+ "label": "CC Attribution-NonCommercial"
161
+ },
162
+ "editorUrl": "https://sketchfab.com/models/55ea0aed9bfd462593f006ea8c4aade0/edit",
163
+ "faceCount": 198036,
164
+ "status": {
165
+ "processing": "SUCCEEDED"
166
+ },
167
+ "downloadCount": 15,
168
+ "options": {
169
+ "orientation": {
170
+ "axis": [
171
+ 1,
172
+ 0,
173
+ 0
174
+ ]
175
+ },
176
+ "wireframe": {
177
+ "color": "88888833",
178
+ "enable": false
179
+ },
180
+ "scene": {
181
+ "fov": 76,
182
+ "postProcess": {
183
+ "toneMapping": {
184
+ "saturation": 1.155,
185
+ "enable": true,
186
+ "brightness": 0,
187
+ "method": "default",
188
+ "contrast": 0,
189
+ "exposure": 1.1340000000000001
190
+ },
191
+ "enable": true,
192
+ "vignette": {
193
+ "lens": [
194
+ 0.8,
195
+ 0.25
196
+ ],
197
+ "enable": false
198
+ },
199
+ "chromaticAberration": {
200
+ "enable": false,
201
+ "factor": 0.05
202
+ },
203
+ "sharpen": {
204
+ "enable": true,
205
+ "factor": 1.352
206
+ },
207
+ "colorBalance": {
208
+ "high": [
209
+ 0,
210
+ 0,
211
+ 0
212
+ ],
213
+ "enable": false,
214
+ "low": [
215
+ 0,
216
+ 0,
217
+ 0
218
+ ],
219
+ "mid": [
220
+ 0,
221
+ 0,
222
+ 0
223
+ ]
224
+ },
225
+ "bloom": {
226
+ "threshold": 0,
227
+ "enable": false,
228
+ "radius": 0.7,
229
+ "factor": 0.5
230
+ }
231
+ }
232
+ },
233
+ "materials": {
234
+ "1eb9efe3-f96d-4abd-92c0-9a1bfd6aca1a": {
235
+ "channels": {
236
+ "Opacity": {
237
+ "color": [
238
+ 1,
239
+ 1,
240
+ 1
241
+ ],
242
+ "enable": true,
243
+ "type": "alphaBlend",
244
+ "factor": 1
245
+ },
246
+ "DiffuseColor": {
247
+ "enable": true,
248
+ "texture": {
249
+ "wrapS": "REPEAT",
250
+ "minFilter": "LINEAR_MIPMAP_LINEAR",
251
+ "wrapT": "REPEAT",
252
+ "textureTarget": "TEXTURE_2D",
253
+ "magFilter": "LINEAR",
254
+ "texCoordUnit": 0,
255
+ "internalFormat": "RGB",
256
+ "uid": "964122b994bb4982b01e965972d0c629"
257
+ },
258
+ "factor": 1
259
+ },
260
+ "EmitColor": {
261
+ "color": [
262
+ 1,
263
+ 1,
264
+ 1
265
+ ],
266
+ "enable": true,
267
+ "factor": 0
268
+ },
269
+ "AOPBR": {
270
+ "color": [
271
+ 1,
272
+ 1,
273
+ 1
274
+ ],
275
+ "occludeSpecular": false,
276
+ "enable": false,
277
+ "factor": 1
278
+ },
279
+ "NormalMap": {
280
+ "color": [
281
+ 1,
282
+ 1,
283
+ 1
284
+ ],
285
+ "flipY": false,
286
+ "enable": false,
287
+ "factor": 1
288
+ },
289
+ "DiffusePBR": {
290
+ "color": [
291
+ 1,
292
+ 1,
293
+ 1
294
+ ],
295
+ "enable": false,
296
+ "factor": 1
297
+ },
298
+ "SpecularColor": {
299
+ "color": [
300
+ 0,
301
+ 0,
302
+ 0
303
+ ],
304
+ "enable": true,
305
+ "factor": 0
306
+ },
307
+ "RoughnessPBR": {
308
+ "color": [
309
+ 1,
310
+ 1,
311
+ 1
312
+ ],
313
+ "enable": true,
314
+ "factor": 0.2
315
+ },
316
+ "DiffuseIntensity": {
317
+ "color": [
318
+ 1,
319
+ 1,
320
+ 1
321
+ ],
322
+ "enable": true,
323
+ "factor": 1
324
+ },
325
+ "SpecularHardness": {
326
+ "color": [
327
+ 1,
328
+ 1,
329
+ 1
330
+ ],
331
+ "enable": true,
332
+ "factor": 0
333
+ },
334
+ "AlbedoPBR": {
335
+ "color": [
336
+ 1,
337
+ 1,
338
+ 1
339
+ ],
340
+ "enable": true,
341
+ "factor": 1
342
+ },
343
+ "BumpMap": {
344
+ "color": [
345
+ 1,
346
+ 1,
347
+ 1
348
+ ],
349
+ "enable": false,
350
+ "factor": 1
351
+ },
352
+ "SpecularPBR": {
353
+ "color": [
354
+ 1,
355
+ 1,
356
+ 1
357
+ ],
358
+ "enable": false,
359
+ "factor": 0.05
360
+ },
361
+ "SpecularF0": {
362
+ "color": [
363
+ 1,
364
+ 1,
365
+ 1
366
+ ],
367
+ "enable": true,
368
+ "factor": 0.5
369
+ },
370
+ "MetalnessPBR": {
371
+ "color": [
372
+ 1,
373
+ 1,
374
+ 1
375
+ ],
376
+ "enable": true,
377
+ "factor": 0
378
+ },
379
+ "GlossinessPBR": {
380
+ "color": [
381
+ 1,
382
+ 1,
383
+ 1
384
+ ],
385
+ "enable": false,
386
+ "factor": 0.8
387
+ },
388
+ "CavityPBR": {
389
+ "color": [
390
+ 1,
391
+ 1,
392
+ 1
393
+ ],
394
+ "enable": false,
395
+ "factor": 1
396
+ }
397
+ },
398
+ "name": "material_1",
399
+ "shadeless": false,
400
+ "stateSetID": 2,
401
+ "version": 2,
402
+ "texCoordUnitList": [
403
+ 0
404
+ ],
405
+ "cullFace": "DISABLE",
406
+ "id": "1eb9efe3-f96d-4abd-92c0-9a1bfd6aca1a",
407
+ "reflection": 0.3
408
+ },
409
+ "cec8e4de-c731-4cca-8c5c-de3063b1d6af": {
410
+ "channels": {
411
+ "Opacity": {
412
+ "color": [
413
+ 1,
414
+ 1,
415
+ 1
416
+ ],
417
+ "enable": true,
418
+ "type": "alphaBlend",
419
+ "factor": 1
420
+ },
421
+ "DiffuseColor": {
422
+ "enable": true,
423
+ "texture": {
424
+ "wrapS": "REPEAT",
425
+ "minFilter": "LINEAR_MIPMAP_LINEAR",
426
+ "wrapT": "REPEAT",
427
+ "textureTarget": "TEXTURE_2D",
428
+ "magFilter": "LINEAR",
429
+ "texCoordUnit": 0,
430
+ "internalFormat": "RGB",
431
+ "uid": "bc2a59da5b01406abc5576ff9be63001"
432
+ },
433
+ "factor": 1
434
+ },
435
+ "EmitColor": {
436
+ "color": [
437
+ 1,
438
+ 1,
439
+ 1
440
+ ],
441
+ "enable": true,
442
+ "factor": 0
443
+ },
444
+ "AOPBR": {
445
+ "color": [
446
+ 1,
447
+ 1,
448
+ 1
449
+ ],
450
+ "occludeSpecular": false,
451
+ "enable": false,
452
+ "factor": 1
453
+ },
454
+ "NormalMap": {
455
+ "color": [
456
+ 1,
457
+ 1,
458
+ 1
459
+ ],
460
+ "flipY": false,
461
+ "enable": false,
462
+ "factor": 1
463
+ },
464
+ "DiffusePBR": {
465
+ "color": [
466
+ 1,
467
+ 1,
468
+ 1
469
+ ],
470
+ "enable": false,
471
+ "factor": 1
472
+ },
473
+ "SpecularColor": {
474
+ "color": [
475
+ 0,
476
+ 0,
477
+ 0
478
+ ],
479
+ "enable": true,
480
+ "factor": 0
481
+ },
482
+ "RoughnessPBR": {
483
+ "color": [
484
+ 1,
485
+ 1,
486
+ 1
487
+ ],
488
+ "enable": true,
489
+ "factor": 0.2
490
+ },
491
+ "DiffuseIntensity": {
492
+ "color": [
493
+ 1,
494
+ 1,
495
+ 1
496
+ ],
497
+ "enable": true,
498
+ "factor": 1
499
+ },
500
+ "SpecularHardness": {
501
+ "color": [
502
+ 1,
503
+ 1,
504
+ 1
505
+ ],
506
+ "enable": true,
507
+ "factor": 0
508
+ },
509
+ "AlbedoPBR": {
510
+ "color": [
511
+ 1,
512
+ 1,
513
+ 1
514
+ ],
515
+ "enable": true,
516
+ "factor": 1
517
+ },
518
+ "BumpMap": {
519
+ "color": [
520
+ 1,
521
+ 1,
522
+ 1
523
+ ],
524
+ "enable": false,
525
+ "factor": 1
526
+ },
527
+ "SpecularPBR": {
528
+ "color": [
529
+ 1,
530
+ 1,
531
+ 1
532
+ ],
533
+ "enable": false,
534
+ "factor": 0.05
535
+ },
536
+ "SpecularF0": {
537
+ "color": [
538
+ 1,
539
+ 1,
540
+ 1
541
+ ],
542
+ "enable": true,
543
+ "factor": 0.5
544
+ },
545
+ "MetalnessPBR": {
546
+ "color": [
547
+ 1,
548
+ 1,
549
+ 1
550
+ ],
551
+ "enable": true,
552
+ "factor": 0
553
+ },
554
+ "GlossinessPBR": {
555
+ "color": [
556
+ 1,
557
+ 1,
558
+ 1
559
+ ],
560
+ "enable": false,
561
+ "factor": 0.8
562
+ },
563
+ "CavityPBR": {
564
+ "color": [
565
+ 1,
566
+ 1,
567
+ 1
568
+ ],
569
+ "enable": false,
570
+ "factor": 1
571
+ }
572
+ },
573
+ "name": "material_3",
574
+ "shadeless": false,
575
+ "stateSetID": 4,
576
+ "version": 2,
577
+ "texCoordUnitList": [
578
+ 0
579
+ ],
580
+ "cullFace": "DISABLE",
581
+ "id": "cec8e4de-c731-4cca-8c5c-de3063b1d6af",
582
+ "reflection": 0.3
583
+ },
584
+ "d033840e-f720-49a4-b0b5-51ef9664a37d": {
585
+ "channels": {
586
+ "Opacity": {
587
+ "color": [
588
+ 1,
589
+ 1,
590
+ 1
591
+ ],
592
+ "enable": true,
593
+ "type": "alphaBlend",
594
+ "factor": 1
595
+ },
596
+ "DiffuseColor": {
597
+ "enable": true,
598
+ "texture": {
599
+ "wrapS": "REPEAT",
600
+ "minFilter": "LINEAR_MIPMAP_LINEAR",
601
+ "wrapT": "REPEAT",
602
+ "textureTarget": "TEXTURE_2D",
603
+ "magFilter": "LINEAR",
604
+ "texCoordUnit": 0,
605
+ "internalFormat": "RGB",
606
+ "uid": "19241ac33c7b41e99dbf0a752f4ac228"
607
+ },
608
+ "factor": 1
609
+ },
610
+ "EmitColor": {
611
+ "color": [
612
+ 1,
613
+ 1,
614
+ 1
615
+ ],
616
+ "enable": true,
617
+ "factor": 0
618
+ },
619
+ "AOPBR": {
620
+ "color": [
621
+ 1,
622
+ 1,
623
+ 1
624
+ ],
625
+ "occludeSpecular": false,
626
+ "enable": false,
627
+ "factor": 1
628
+ },
629
+ "NormalMap": {
630
+ "color": [
631
+ 1,
632
+ 1,
633
+ 1
634
+ ],
635
+ "flipY": false,
636
+ "enable": false,
637
+ "factor": 1
638
+ },
639
+ "DiffusePBR": {
640
+ "color": [
641
+ 1,
642
+ 1,
643
+ 1
644
+ ],
645
+ "enable": false,
646
+ "factor": 1
647
+ },
648
+ "SpecularColor": {
649
+ "color": [
650
+ 0,
651
+ 0,
652
+ 0
653
+ ],
654
+ "enable": true,
655
+ "factor": 0
656
+ },
657
+ "RoughnessPBR": {
658
+ "color": [
659
+ 1,
660
+ 1,
661
+ 1
662
+ ],
663
+ "enable": true,
664
+ "factor": 0.2
665
+ },
666
+ "DiffuseIntensity": {
667
+ "color": [
668
+ 1,
669
+ 1,
670
+ 1
671
+ ],
672
+ "enable": true,
673
+ "factor": 1
674
+ },
675
+ "SpecularHardness": {
676
+ "color": [
677
+ 1,
678
+ 1,
679
+ 1
680
+ ],
681
+ "enable": true,
682
+ "factor": 0
683
+ },
684
+ "AlbedoPBR": {
685
+ "color": [
686
+ 1,
687
+ 1,
688
+ 1
689
+ ],
690
+ "enable": true,
691
+ "factor": 1
692
+ },
693
+ "BumpMap": {
694
+ "color": [
695
+ 1,
696
+ 1,
697
+ 1
698
+ ],
699
+ "enable": false,
700
+ "factor": 1
701
+ },
702
+ "SpecularPBR": {
703
+ "color": [
704
+ 1,
705
+ 1,
706
+ 1
707
+ ],
708
+ "enable": false,
709
+ "factor": 0.05
710
+ },
711
+ "SpecularF0": {
712
+ "color": [
713
+ 1,
714
+ 1,
715
+ 1
716
+ ],
717
+ "enable": true,
718
+ "factor": 0.5
719
+ },
720
+ "MetalnessPBR": {
721
+ "color": [
722
+ 1,
723
+ 1,
724
+ 1
725
+ ],
726
+ "enable": true,
727
+ "factor": 0
728
+ },
729
+ "GlossinessPBR": {
730
+ "color": [
731
+ 1,
732
+ 1,
733
+ 1
734
+ ],
735
+ "enable": false,
736
+ "factor": 0.8
737
+ },
738
+ "CavityPBR": {
739
+ "color": [
740
+ 1,
741
+ 1,
742
+ 1
743
+ ],
744
+ "enable": false,
745
+ "factor": 1
746
+ }
747
+ },
748
+ "name": "material_2",
749
+ "shadeless": false,
750
+ "stateSetID": 3,
751
+ "version": 2,
752
+ "texCoordUnitList": [
753
+ 0
754
+ ],
755
+ "cullFace": "DISABLE",
756
+ "id": "d033840e-f720-49a4-b0b5-51ef9664a37d",
757
+ "reflection": 0.3
758
+ },
759
+ "b1a6305a-2faf-4fc1-9dc4-0a34db5acf95": {
760
+ "channels": {
761
+ "Opacity": {
762
+ "color": [
763
+ 1,
764
+ 1,
765
+ 1
766
+ ],
767
+ "enable": true,
768
+ "type": "alphaBlend",
769
+ "factor": 1
770
+ },
771
+ "DiffuseColor": {
772
+ "enable": true,
773
+ "texture": {
774
+ "wrapS": "REPEAT",
775
+ "minFilter": "LINEAR_MIPMAP_LINEAR",
776
+ "wrapT": "REPEAT",
777
+ "textureTarget": "TEXTURE_2D",
778
+ "magFilter": "LINEAR",
779
+ "texCoordUnit": 0,
780
+ "internalFormat": "RGB",
781
+ "uid": "fcdbed9846454ed08f552aae7c56b3b1"
782
+ },
783
+ "factor": 1
784
+ },
785
+ "EmitColor": {
786
+ "color": [
787
+ 1,
788
+ 1,
789
+ 1
790
+ ],
791
+ "enable": true,
792
+ "factor": 0
793
+ },
794
+ "AOPBR": {
795
+ "color": [
796
+ 1,
797
+ 1,
798
+ 1
799
+ ],
800
+ "occludeSpecular": false,
801
+ "enable": false,
802
+ "factor": 1
803
+ },
804
+ "NormalMap": {
805
+ "color": [
806
+ 1,
807
+ 1,
808
+ 1
809
+ ],
810
+ "flipY": false,
811
+ "enable": false,
812
+ "factor": 1
813
+ },
814
+ "DiffusePBR": {
815
+ "color": [
816
+ 1,
817
+ 1,
818
+ 1
819
+ ],
820
+ "enable": false,
821
+ "factor": 1
822
+ },
823
+ "SpecularColor": {
824
+ "color": [
825
+ 0,
826
+ 0,
827
+ 0
828
+ ],
829
+ "enable": true,
830
+ "factor": 0
831
+ },
832
+ "RoughnessPBR": {
833
+ "color": [
834
+ 1,
835
+ 1,
836
+ 1
837
+ ],
838
+ "enable": true,
839
+ "factor": 0.2
840
+ },
841
+ "DiffuseIntensity": {
842
+ "color": [
843
+ 1,
844
+ 1,
845
+ 1
846
+ ],
847
+ "enable": true,
848
+ "factor": 1
849
+ },
850
+ "SpecularHardness": {
851
+ "color": [
852
+ 1,
853
+ 1,
854
+ 1
855
+ ],
856
+ "enable": true,
857
+ "factor": 0
858
+ },
859
+ "AlbedoPBR": {
860
+ "color": [
861
+ 1,
862
+ 1,
863
+ 1
864
+ ],
865
+ "enable": true,
866
+ "factor": 1
867
+ },
868
+ "BumpMap": {
869
+ "color": [
870
+ 1,
871
+ 1,
872
+ 1
873
+ ],
874
+ "enable": false,
875
+ "factor": 1
876
+ },
877
+ "SpecularPBR": {
878
+ "color": [
879
+ 1,
880
+ 1,
881
+ 1
882
+ ],
883
+ "enable": false,
884
+ "factor": 0.05
885
+ },
886
+ "SpecularF0": {
887
+ "color": [
888
+ 1,
889
+ 1,
890
+ 1
891
+ ],
892
+ "enable": true,
893
+ "factor": 0.5
894
+ },
895
+ "MetalnessPBR": {
896
+ "color": [
897
+ 1,
898
+ 1,
899
+ 1
900
+ ],
901
+ "enable": true,
902
+ "factor": 0
903
+ },
904
+ "GlossinessPBR": {
905
+ "color": [
906
+ 1,
907
+ 1,
908
+ 1
909
+ ],
910
+ "enable": false,
911
+ "factor": 0.8
912
+ },
913
+ "CavityPBR": {
914
+ "color": [
915
+ 1,
916
+ 1,
917
+ 1
918
+ ],
919
+ "enable": false,
920
+ "factor": 1
921
+ }
922
+ },
923
+ "name": "material_0",
924
+ "shadeless": false,
925
+ "stateSetID": 1,
926
+ "version": 2,
927
+ "texCoordUnitList": [
928
+ 0
929
+ ],
930
+ "cullFace": "DISABLE",
931
+ "id": "b1a6305a-2faf-4fc1-9dc4-0a34db5acf95",
932
+ "reflection": 0.3
933
+ }
934
+ },
935
+ "environment": {
936
+ "backgroundExposure": 1,
937
+ "enable": false,
938
+ "uid": "e2aa1ab3582c4feab7371baf1e4cd734",
939
+ "backgroundEnable": true,
940
+ "blur": 0.07,
941
+ "rotation": 0,
942
+ "exposure": 1
943
+ },
944
+ "camera": {
945
+ "position": [
946
+ -0.8025679549510343,
947
+ 1.775358794771902,
948
+ 0.23333482057524063
949
+ ],
950
+ "target": [
951
+ -0.00941610336303711,
952
+ 3.0705305060711208,
953
+ -0.2033651769161231
954
+ ]
955
+ },
956
+ "lighting": {
957
+ "lights": [
958
+ {
959
+ "enable": true,
960
+ "angle": 45,
961
+ "matrix": [
962
+ -0.9815804500275482,
963
+ 0.1909922167095499,
964
+ -0.004668327333101102,
965
+ 0,
966
+ 0.13548347102422797,
967
+ 0.7131126062169096,
968
+ 0.6878332937084056,
969
+ 0,
970
+ 0.13469984856318096,
971
+ 0.6745312327912614,
972
+ -0.7258536813891331,
973
+ 0,
974
+ 0.1547732561811966,
975
+ 1.0255698956737085,
976
+ 2.185767439584035,
977
+ 1
978
+ ],
979
+ "color": [
980
+ 0.7806122448979592,
981
+ 0.7985214493960848,
982
+ 1
983
+ ],
984
+ "intensityGround": 1,
985
+ "attachedToCamera": true,
986
+ "falloff": 1.682612868289909,
987
+ "intensity": 0.96,
988
+ "type": "DIRECTION",
989
+ "hardness": 0.5,
990
+ "ground": [
991
+ 0.3,
992
+ 0.2,
993
+ 0.2
994
+ ]
995
+ },
996
+ {
997
+ "enable": true,
998
+ "angle": 45,
999
+ "matrix": [
1000
+ 0.7755211495104662,
1001
+ -0.0666602860002539,
1002
+ 0.6277924441503967,
1003
+ 0,
1004
+ 0.2690483737361956,
1005
+ 0.9344846523281437,
1006
+ -0.233133882464682,
1007
+ 0,
1008
+ -0.5711216326246741,
1009
+ 0.3497067926613838,
1010
+ 0.7426474533145686,
1011
+ 0,
1012
+ -0.705572009125014,
1013
+ 0.6296324290905655,
1014
+ 3.975763964219232,
1015
+ 1
1016
+ ],
1017
+ "color": [
1018
+ 1,
1019
+ 0.8783319450229073,
1020
+ 0.7091836734693877
1021
+ ],
1022
+ "intensityGround": 1,
1023
+ "attachedToCamera": true,
1024
+ "falloff": 1.682612868289909,
1025
+ "intensity": 1,
1026
+ "type": "DIRECTION",
1027
+ "hardness": 0.5,
1028
+ "ground": [
1029
+ 0.3,
1030
+ 0.2,
1031
+ 0.2
1032
+ ]
1033
+ },
1034
+ {
1035
+ "enable": true,
1036
+ "angle": 45,
1037
+ "matrix": [
1038
+ 0.6903299131022926,
1039
+ -0.7076363669144057,
1040
+ -0.15064986988498263,
1041
+ 0,
1042
+ -0.011089698239978026,
1043
+ 0.19785137301620165,
1044
+ -0.9801692980238416,
1045
+ 0,
1046
+ 0.7234097246160907,
1047
+ 0.6783108479272498,
1048
+ 0.12873524736872857,
1049
+ 0,
1050
+ 0.8723679568252299,
1051
+ 1.030176972779742,
1052
+ 3.2274494487552006,
1053
+ 1
1054
+ ],
1055
+ "color": [
1056
+ 0.423469387755102,
1057
+ 0.7352665556018328,
1058
+ 1
1059
+ ],
1060
+ "intensityGround": 0.06,
1061
+ "attachedToCamera": false,
1062
+ "falloff": 1.682612868289909,
1063
+ "intensity": 0.12,
1064
+ "type": "HEMI",
1065
+ "hardness": 0.5,
1066
+ "ground": [
1067
+ 0.9642857142857143,
1068
+ 0.6484128636877489,
1069
+ 0.2607507288629738
1070
+ ]
1071
+ }
1072
+ ],
1073
+ "enable": true
1074
+ },
1075
+ "background": {
1076
+ "enable": true,
1077
+ "uid": "51af6a870cce449eb75b0345feebaebb"
1078
+ },
1079
+ "updatedAt": "2015-03-17T13:14:43",
1080
+ "shading": {
1081
+ "type": "lit",
1082
+ "renderer": "classic"
1083
+ },
1084
+ "createdAt": "2015-03-12T21:37:32"
1085
+ }
1086
+ }
1087
+ ],
1088
+ "offset": 0
1089
+ }