Giter VIP home page Giter VIP logo

blender-r3f-websockets-demo's Introduction

Blender / R3F / Websockets Demo

Working demo of rendering text strings through Blender, compressing the resulting model and sending it to a Vite/R3F project to be displayed. The whole thing is orechestrated via a simple websockets server.

NOTE : This was created for a project that required transcription be baked in, so if you want to skip the Whisper part entirely and just update the text files another way the project will still work fine.

Works with Blender 4.0.2 on MacOS.

Installation

  1. Run npm install in both the site and server folders.

  2. Install Whisper Stream on your system.

  3. Update the PATHS object in server/blenderToSite.js to fit your system. (Paths must be absolute.)

Initializing a Session

  1. Start server :
cd server
node server.js
  1. In a new terminal pane, start site :
cd site
yarn dev # `npm run dev` should also work here if you aren't using yarn.
  1. In a third terminal pane, begin transcription :
whisper-stream -s 0.5 -p2 'tee -a /absolute/path/to/transcript.txt' # Internet required

NOTE : Site will be blank until the first update to generator/text/transcription.txt.

Gotchyas

  • Your blend files must be saved in Object Mode.

Todo

  • Get transcription running locally.

blender-r3f-websockets-demo's People

Contributors

laffan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.