Skip to content

Commit

Permalink
Fix bug with RGBA channel not showing if background color was not spe…
Browse files Browse the repository at this point in the history
…cified entirely
  • Loading branch information
oarriaga committed Nov 5, 2020
1 parent 5f55336 commit 657137c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/discovery_of_latent_keypoints/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def __init__(self, filepath, viewport_size=(128, 128), y_fov=3.14159 / 4.0,
distance=0.3, light=5.0, top_only=True, scale=10.0, roll=None,
shift=None):

super(DualView, self).__init__()
self._build_scene(filepath, viewport_size, light, y_fov)
self.distance, self.roll = distance, roll
self.top_only, self.shift, self.scale = top_only, shift, scale
Expand All @@ -39,7 +38,7 @@ def __init__(self, filepath, viewport_size=(128, 128), y_fov=3.14159 / 4.0,
self.epsilon = 0.01

def _build_scene(self, path, size, light, y_fov):
self.scene = Scene(bg_color=[0, 0, 0])
self.scene = Scene(bg_color=[0, 0, 0, 0])
self.light = self.scene.add(DirectionalLight([1.0, 1.0, 1.0], light))
self.camera = self.scene.add(
PerspectiveCamera(y_fov, aspectRatio=np.divide(*size)))
Expand Down

0 comments on commit 657137c

Please sign in to comment.