Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Binary file modified docs/gallery/assets/light-link-studio-hero.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/gallery/assets/vse-gamma-cross-hero.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/gallery/contact-sheets/light-link-studio-contact-sheet.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/gallery/contact-sheets/vse-gamma-cross-contact-sheet.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions docs/gallery/light-link-studio/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ <h2>Source</h2>
cam = bpy.data.cameras.new(<span class="s">&quot;Cam&quot;</span>)
cam.lens = <span class="n">55.0</span>
cam_ob = bpy.data.objects.new(<span class="s">&quot;Cam&quot;</span>, cam)
cam_ob.location = (<span class="n">0.0</span>, -<span class="n">6.4</span>, <span class="n">1.35</span>)
cam_ob.location = (<span class="n">0.0</span>, -<span class="n">5.9</span>, <span class="n">1.32</span>)
cam_ob.rotation_euler = (math.radians(<span class="n">86</span>), <span class="n">0.0</span>, <span class="n">0.0</span>)
sc.collection.objects.link(cam_ob)
sc.camera = cam_ob
Expand Down Expand Up @@ -444,13 +444,17 @@ <h2>Source</h2>
pb.inputs[<span class="s">&quot;Base Color&quot;</span>].default_value = (<span class="n">0.42</span>, <span class="n">0.44</span>, <span class="n">0.48</span>, <span class="n">1.0</span>)
pb.inputs[<span class="s">&quot;Metallic&quot;</span>].default_value = <span class="n">0.2</span>
pb.inputs[<span class="s">&quot;Roughness&quot;</span>].default_value = <span class="n">0.6</span>
<span class="c"># faint self-glow: the LINKED plaque must read even in the decoy&#x27;s dark</span>
sock = pb.inputs.get(<span class="s">&quot;Emission Color&quot;</span>) <span class="k">or</span> pb.inputs[<span class="s">&quot;Emission&quot;</span>]
sock.default_value = (<span class="n">0.35</span>, <span class="n">0.37</span>, <span class="n">0.42</span>, <span class="n">1.0</span>)
pb.inputs[<span class="s">&quot;Emission Strength&quot;</span>].default_value = <span class="n">0.6</span>
cu = bpy.data.curves.new(<span class="s">&quot;Plaque&quot;</span>, <span class="s">&#x27;FONT&#x27;</span>)
cu.body = text
cu.align_x = <span class="s">&#x27;CENTER&#x27;</span>
cu.size = <span class="n">0.20</span>
cu.extrude = <span class="n">0.006</span>
ob = bpy.data.objects.new(<span class="s">&quot;Plaque&quot;</span>, cu)
ob.location = (x, -<span class="n">1.05</span>, <span class="n">0.01</span>)
ob.location = (x, -<span class="n">0.68</span>, <span class="n">0.01</span>)
ob.data.materials.append(pm)
sc.collection.objects.link(ob)

Expand Down
9 changes: 6 additions & 3 deletions docs/gallery/vse-gamma-cross/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ <h2>Source</h2>
<span class="k">try</span>:
bmesh.ops.create_cube(bm, size=<span class="n">1.0</span>,
matrix=__import__(<span class="s">&quot;mathutils&quot;</span>).Matrix.Diagonal(
(<span class="n">0.52</span>, <span class="n">0.10</span>, <span class="n">0.62</span>, <span class="n">1.0</span>)))
(<span class="n">0.56</span>, <span class="n">0.10</span>, <span class="n">0.66</span>, <span class="n">1.0</span>)))
bm.to_mesh(me)
<span class="k">finally</span>:
bm.free()
Expand Down Expand Up @@ -438,7 +438,7 @@ <h2>Source</h2>

<span class="c"># two rows: the authentic fade across the top, the naive mid below it,</span>
<span class="c"># framed — the gamma dip is the visible contrast</span>
xs = [(-<span class="n">2.50</span> + <span class="n">0.72</span> * i) <span class="k">for</span> i <span class="k">in</span> range(<span class="n">8</span>)]
xs = [(-<span class="n">2.17</span> + <span class="n">0.62</span> * i) <span class="k">for</span> i <span class="k">in</span> range(<span class="n">8</span>)]
<span class="k">for</span> (f, _t), x <span class="k">in</span> zip(SAMPLES, xs):
panel(<span class="s">f&quot;</span><span class="s">t</span>{_t}<span class="s">&quot;</span>, got[f], x, z=<span class="n">1.85</span>)
lerp_rgb = tuple(naive(<span class="n">0.5</span>, k) <span class="k">for</span> k <span class="k">in</span> range(<span class="n">3</span>))
Expand All @@ -451,6 +451,9 @@ <h2>Source</h2>
cb.inputs[<span class="s">&quot;Base Color&quot;</span>].default_value = (<span class="n">0.42</span>, <span class="n">0.44</span>, <span class="n">0.48</span>, <span class="n">1.0</span>)
cb.inputs[<span class="s">&quot;Metallic&quot;</span>].default_value = <span class="n">0.2</span>
cb.inputs[<span class="s">&quot;Roughness&quot;</span>].default_value = <span class="n">0.6</span>
sock = cb.inputs.get(<span class="s">&quot;Emission Color&quot;</span>) <span class="k">or</span> cb.inputs[<span class="s">&quot;Emission&quot;</span>]
sock.default_value = (<span class="n">0.35</span>, <span class="n">0.37</span>, <span class="n">0.42</span>, <span class="n">1.0</span>)
cb.inputs[<span class="s">&quot;Emission Strength&quot;</span>].default_value = <span class="n">0.6</span>

<span class="k">def</span> caption(text, x, z):
cu = bpy.data.curves.new(<span class="s">&quot;Caption&quot;</span>, <span class="s">&#x27;FONT&#x27;</span>)
Expand Down Expand Up @@ -548,7 +551,7 @@ <h2>Source</h2>
cam_data = bpy.data.cameras.new(<span class="s">&quot;Cam&quot;</span>)
cam_data.lens = <span class="n">50.0</span>
cam = bpy.data.objects.new(<span class="s">&quot;Cam&quot;</span>, cam_data)
cam.location = (<span class="n">0.2</span>, -<span class="n">8.2</span>, <span class="n">2.4</span>)
cam.location = (<span class="n">0.3</span>, -<span class="n">9.2</span>, <span class="n">2.5</span>)
scene.collection.objects.link(cam)
target = bpy.data.objects.new(<span class="s">&quot;Aim&quot;</span>, <span class="k">None</span>)
target.location = (<span class="n">0.15</span>, <span class="n">0.0</span>, <span class="n">1.35</span>)
Expand Down
8 changes: 6 additions & 2 deletions examples/light-link-studio/light_link_studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def build_studio(sc):
cam = bpy.data.cameras.new("Cam")
cam.lens = 55.0
cam_ob = bpy.data.objects.new("Cam", cam)
cam_ob.location = (0.0, -6.4, 1.35)
cam_ob.location = (0.0, -5.9, 1.32)
cam_ob.rotation_euler = (math.radians(86), 0.0, 0.0)
sc.collection.objects.link(cam_ob)
sc.camera = cam_ob
Expand Down Expand Up @@ -239,13 +239,17 @@ def plaque(sc, text, x):
pb.inputs["Base Color"].default_value = (0.42, 0.44, 0.48, 1.0)
pb.inputs["Metallic"].default_value = 0.2
pb.inputs["Roughness"].default_value = 0.6
# faint self-glow: the LINKED plaque must read even in the decoy's dark
sock = pb.inputs.get("Emission Color") or pb.inputs["Emission"]
sock.default_value = (0.35, 0.37, 0.42, 1.0)
pb.inputs["Emission Strength"].default_value = 0.6
cu = bpy.data.curves.new("Plaque", 'FONT')
cu.body = text
cu.align_x = 'CENTER'
cu.size = 0.20
cu.extrude = 0.006
ob = bpy.data.objects.new("Plaque", cu)
ob.location = (x, -1.05, 0.01)
ob.location = (x, -0.68, 0.01)
ob.data.materials.append(pm)
sc.collection.objects.link(ob)

Expand Down
Binary file modified examples/light-link-studio/preview.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/vse-gamma-cross/preview.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions examples/vse-gamma-cross/vse_gamma_cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def panel(name, rgb, x, z, hot=False):
try:
bmesh.ops.create_cube(bm, size=1.0,
matrix=__import__("mathutils").Matrix.Diagonal(
(0.52, 0.10, 0.62, 1.0)))
(0.56, 0.10, 0.66, 1.0)))
bm.to_mesh(me)
finally:
bm.free()
Expand Down Expand Up @@ -232,7 +232,7 @@ def panel(name, rgb, x, z, hot=False):

# two rows: the authentic fade across the top, the naive mid below it,
# framed — the gamma dip is the visible contrast
xs = [(-2.50 + 0.72 * i) for i in range(8)]
xs = [(-2.17 + 0.62 * i) for i in range(8)]
for (f, _t), x in zip(SAMPLES, xs):
panel(f"t{_t}", got[f], x, z=1.85)
lerp_rgb = tuple(naive(0.5, k) for k in range(3))
Expand All @@ -245,6 +245,9 @@ def panel(name, rgb, x, z, hot=False):
cb.inputs["Base Color"].default_value = (0.42, 0.44, 0.48, 1.0)
cb.inputs["Metallic"].default_value = 0.2
cb.inputs["Roughness"].default_value = 0.6
sock = cb.inputs.get("Emission Color") or cb.inputs["Emission"]
sock.default_value = (0.35, 0.37, 0.42, 1.0)
cb.inputs["Emission Strength"].default_value = 0.6

def caption(text, x, z):
cu = bpy.data.curves.new("Caption", 'FONT')
Expand Down Expand Up @@ -342,7 +345,7 @@ def light(name, loc, energy, size, col, rot):
cam_data = bpy.data.cameras.new("Cam")
cam_data.lens = 50.0
cam = bpy.data.objects.new("Cam", cam_data)
cam.location = (0.2, -8.2, 2.4)
cam.location = (0.3, -9.2, 2.5)
scene.collection.objects.link(cam)
target = bpy.data.objects.new("Aim", None)
target.location = (0.15, 0.0, 1.35)
Expand Down
Loading