glitch3d 0.2.2.6 → 0.2.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7868c484686bc50595abbf027cc494d1219f8469
4
- data.tar.gz: 3cedc59d39b7eeb4667fa786e45621089e2897c3
3
+ metadata.gz: c728e6526c24904a35317b0b53ea4e6edc54cb78
4
+ data.tar.gz: fce915d3e30f8d5c2fe7f32cc441d03ed3792985
5
5
  SHA512:
6
- metadata.gz: f1b3e77e1adb9f7bbbf34e84703f00c736a9f2a945ba8b1405f7bff630d16e5f680c330bc15f6f4e62f75499d42cdf150380640eb3e52848099ab4bbb1d721e5
7
- data.tar.gz: 96304f191ac1b70089237ff4beb99d1fde0a904ef64003f5335e6fb41efba0fc1e54a012c8742e81720f3d64688df1c2ebc978a23d7b25cc5dd8cbb4aabff5ee
6
+ metadata.gz: 2dcfe4d9123fd8e277f02d6348dc789c0b2aba7a28fd5d2a9db33e534cb4a9f1f79645afaea140458075e08189b267b251a82627daaec7c03332d0e5f42c1256
7
+ data.tar.gz: 7c19874443b22b8897b953edb5a46f3c84828f2c43a4f12610f3259123ec706ae5186cc1ef83334ef3a02cfed49482607e674651671333484201cb63a955a758
Binary file
@@ -9,7 +9,7 @@ DISPLACEMENT_AMPLITUDE = random.uniform(0.02, 0.1)
9
9
  REPLACE_TARGET = str(random.uniform(0, 9))
10
10
  REPLACEMENT = str(random.uniform(0, 9))
11
11
  ORIGIN = (0,0,2)
12
- NUMBER_OF_FRAMES = 200
12
+ NUMBER_OF_FRAMES = 100
13
13
  SCATTER_INTENSITY = 0.015
14
14
  ABSORPTION_INTENSITY = 0.25
15
15
  DISPLAY_SCALE = (2, 2, 2)
@@ -341,9 +341,10 @@ def add_ocean(spatial_size, resolution):
341
341
  make_object_gradient_fabulous(ocean, rand_color(), rand_color())
342
342
  mix_nodes(ocean.data.materials[0], ocean.data.materials[0].node_tree.nodes['Diffuse BSDF'], ocean.data.materials[0].node_tree.nodes['Glossy BSDF'])
343
343
  shadow = clone(ocean)
344
- shadow.location.x += 3
344
+ shadow.location.x += 2
345
+ shadow.location.y += 1
345
346
  wireframize(shadow)
346
- shadow.name = 'ocean'
347
+ shadow.name = 'shadow'
347
348
  ocean.name = 'ocean'
348
349
  return [ocean, shadow]
349
350
 
@@ -100,8 +100,9 @@ if animate:
100
100
  for frame in range(0, NUMBER_OF_FRAMES):
101
101
  bpy.context.scene.frame_set(frame)
102
102
  animation_routine(frame - 1)
103
- for ob in context.scene.objects:
104
- ob.keyframe_insert(data_path="location", index=-1)
103
+ for obj in context.scene.objects:
104
+ obj.keyframe_insert(data_path="rotation_euler", index=-1)
105
+ obj.keyframe_insert(data_path="location", index=-1)
105
106
  bpy.ops.screen.frame_jump(end=False)
106
107
  shoot(output_name(index, model_path))
107
108
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Glitch3d
3
- VERSION = '0.2.2.6'
3
+ VERSION = '0.2.2.8'
4
4
  end
data/lib/glitch3d.rb CHANGED
@@ -28,6 +28,7 @@ module Glitch3d
28
28
  # @param String source_file, 3d model file to take as input
29
29
  # @param Hash args, parameters { 'stuff' => 'shit' }
30
30
  def process_model(source_file, args = nil)
31
+ raise 'Make sure Blender is correctly installed' if BLENDER_EXECUTABLE_PATH.nil?
31
32
  source_file = random_fixture if source_file.nil?
32
33
  args = Hash[ARGV.join(' ').scan(/--?([^=\s]+)(?:=(\S+))?/)] if args.nil?
33
34
  return clean_model(source_file) if args['clean']
@@ -171,6 +172,6 @@ module Glitch3d
171
172
  '-a',
172
173
  initial_args['animate'].capitalize
173
174
  ]
174
- raise 'Make sure Blender is correctly installed' unless system(*args)
175
+ system(*args)
175
176
  end
176
177
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glitch3d
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2.6
4
+ version: 0.2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - pskl
@@ -103,6 +103,7 @@ files:
103
103
  - fixtures/textures/grid.jpg
104
104
  - fixtures/textures/kago.jpg
105
105
  - fixtures/textures/kawai.jpg
106
+ - fixtures/textures/rug.jpg
106
107
  - fixtures/textures/spiral.jpg
107
108
  - fixtures/textures/vapor.jpg
108
109
  - glitch3d.gemspec