Example 29 · Take it out of the browser範例 29 · 輸出與留存

Projector output投影輸出

An output window for a projector or a second screen, its four corners pinned to the wall, and a clean address for OBS and TouchDesigner.給投影機或第二個螢幕的輸出視窗,四個角釘到牆上的位置,還有給 OBS 和 TouchDesigner 用的乾淨網址。

Try these three things試試這三件事

  1. Press “Open output window”, drag the window onto the projector or a second screen, and press F in it (on one screen it stays a window).
  2. Press E in the output window and drag the four numbered corners: the picture bends to fit; G shows the test pattern bent the same way, and a reload keeps it.
  3. Press Space: the timeline fades the projector out over the last 8 seconds through output/main/brightness, the same param the console's slider moves.
  1. 按「Open output window」,把視窗拖到投影機或第二個螢幕上,在視窗裡按 F(只有一個螢幕時它就是一個視窗)。
  2. 在輸出視窗按 E,拖四個有編號的角:畫面會跟著彎過去。按 G 顯示一樣彎過去的測試圖,重新整理後還在。
  3. 按空白鍵:時間軸在最後 8 秒經過 output/main/brightness 把投影淡出,控台上的滑桿推的也是同一個參數。

No hardware needed. On-screen piano · QWERTY keys.不需要硬體。螢幕鋼琴、電腦鍵盤。

Read these lines讀這幾行

  • main.js:25–44 The world: rings in its canvas's own shape and a frame on its edge. It knows nothing about projectors.世界:照畫布形狀畫的圓環,邊上一圈框。它完全不知道投影機的事。
  • main.js:78 The timeline reaches the projector the way it reaches the rings: output/<name>/brightness is a param.時間軸推投影機的方式跟推圓環一樣:output/<name>/brightness 是一個參數。
  • main.js:107–110 The outputs, declared at load: one 16:9 projector, or with ?pair two halves of a 32:9 canvas.在載入時宣告輸出:一台 16:9 投影機,或加 ?pair 時一張 32:9 畫布的左右兩半。
  • main.js:116–123 The button: a browser opens a window only from a click, and .oav-operator keeps it off a clean output page.按鈕:瀏覽器只在點擊時才開視窗,.oav-operator 讓它不出現在乾淨的輸出頁上。

Next step下一步

In the docs: Projection and video out · Corner pin文件裡:投影與影像輸出、四角校正

Next on this route: 30 Tile dot →這條路線的下一個:30 跨螢幕圓點 → All examples所有範例