From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Thompson, David" Newsgroups: gmane.lisp.guile.user Subject: Re: [EXT] Use Chickadee to render animation to file? Date: Fri, 27 May 2022 16:10:07 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11494"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: Jack Hill Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri May 27 22:38:33 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nugjB-0002qt-HQ for guile-user@m.gmane-mx.org; Fri, 27 May 2022 22:38:33 +0200 Original-Received: from localhost ([::1]:41238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nugjA-0004wf-F5 for guile-user@m.gmane-mx.org; Fri, 27 May 2022 16:38:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nugI9-0004UE-SG for guile-user@gnu.org; Fri, 27 May 2022 16:10:38 -0400 Original-Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:45706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nugHt-000511-Au for guile-user@gnu.org; Fri, 27 May 2022 16:10:37 -0400 Original-Received: by mail-ed1-x52b.google.com with SMTP id er5so6670261edb.12 for ; Fri, 27 May 2022 13:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=worcester-edu.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OlPMntxLOSYWZuxYD8OX4hUpTepNTIcKDdQM6s+AfVM=; b=FpChj39iO0bkgw9aCx6iG9/Fbrqz6rOSaJV7OFnMODu9BNE4ljKtdT5VK1Rnxiji2+ CLj9d0wHULhzmK7fnIFzxxZ/+/sWG/CPbfhwX50Ni54IR8vyz0rGcZfM8I19qv0nA/tN vKDQ5gkHg+q3uGJzrrte+Iy2SAWjF9pKw0rEOiTRJbr7k42KxS5WKhSXyhpU+5tZXAyJ CfD1PyEgLNcMc/nJXtSabcFgxadkK2ZYFk0yvLPHNN6F674rRx/B02I4yO8vcNQodhFk VjJb2CfEUtS9Ds7quvx+Gvsbfj3VdLhE0MDXW6rgufSxhhOIJe9m9l7kz8xQiiCgOHk1 /3tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OlPMntxLOSYWZuxYD8OX4hUpTepNTIcKDdQM6s+AfVM=; b=YodHyS8GxOyJm+JqrnIIJLb/vxRxUMNYoR/x/8BjqP+o/7ltaWdOHcDV3MEokDMKr3 gJo9SCzfHKWmIesMQPgWX+BUp3f37UQn7e4Svkd8CyR6CGgJvsqAZLf+gR9yHo4EabwX rAsLWsjJN4St4ozU+6A3j+lHrnKWuhwjYDMSGZ8IQrv6qQs64arTFMEgcU5OT9MmHrco Qq27X6gLN29JymMDlAMTQmoDRdAYYsaxerqUFtl32xKvG7d6d55U9jh28+F68CAWTTco IVYWQqMv26R+gLVlc7XSJfXZaVM0RJ2vy0FwjBtr0aBWrjZdjefw7/GfQVRwQgH0853Q /kyA== X-Gm-Message-State: AOAM532TBFx9VBT+NlNUV47Un7Nzhfk8VfL+ufGXSbkYFtMFXIghlECC /vTlEU+q9RyPDBJ7pQ8QPBhT7CokBx4o1hd3lj3Fmk5hhzHHJA== X-Google-Smtp-Source: ABdhPJxswJf7mM71QbltjeZS4XTVSGurwNFWlt5lVc17KrWa+ZSJtF/vkrw+Wj8uQHTkob/l3CsLzfR4V4JjU6cNv78= X-Received: by 2002:a05:6402:847:b0:42d:91ed:82f3 with SMTP id b7-20020a056402084700b0042d91ed82f3mr795403edz.416.1653682218549; Fri, 27 May 2022 13:10:18 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=dthompson2@worcester.edu; helo=mail-ed1-x52b.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18279 Archived-At: Hi Jack, This is an interesting use case! It's certainly possible, but would require some work. It would probably look something like this: Render the scene to a framebuffer texture, copy the pixel data from the GPU, and pipe it to a video encoder. Chickadee's texture API doesn't yet provide any procedures that allow you to access the raw pixel data, so that would need to be added first. It would be a little clunky because you'd have to wait for the animation to finish in real time since it's not a real animation tool but it would work. Feel free to give it a shot and let us know how it goes! - Dave On Fri, May 27, 2022 at 12:39 PM Jack Hill wrote: > Hi Guilers! > > I've been experimenting with David Thompson's Chickadee=E2=81=B0. I'm rea= lly > enjoying using agendas and scripts to create animations. My problem is (a= t > least right now) I don't want to create an interactive game-like thing. > Instead, I'm creating a deterministic animation. I'd like to start out > with some Guile code and end up with a video file. > > What I hope to do is to program the animation using all the nice features > of Chickadee, but instead of displaying it on a screen, output the frames > that would be drawn to files. Does this seem possible? How would I go > about it? > > 0: https://dthompson.us/projects/chickadee.html > > Best, > Jack >