Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benjitrosch/chatGL

GLSL shader generator using GPT-3 🤖🎨
https://github.com/benjitrosch/chatGL

chatgpt generative-art glsl gpt-3 gpt-3-5-turbo gpt3-turbo graphics shaders webgl

Last synced: about 1 month ago
JSON representation

GLSL shader generator using GPT-3 🤖🎨

Awesome Lists containing this project

README

        

# chatGL

GLSL fragment shader generator using `gpt-3.5-turbo` wrapped in a fast Vanilla Typescript + Vite frontend.

> NOTE: The prompts are meant to produce interesting pseudo-random generative art using fragment shaders, not to build anything precise. You're just as well off using a totally random prompt as you are a guided one.

## Quick Start

1. Generate an openAI API key - https://platform.openai.com/account/api-keys
2. Create an `.env` file and put your key in `OPENAI_API_KEY`
3. Run `npm run build` to build the frontend and `npm start` to start the server
4. Visit http://localhost:6006

\- or -

1. Visit https://chatgl.ai

![Apr-21-2023 19-54-07 (1)](https://user-images.githubusercontent.com/64439681/233750420-b63738db-67a3-47c3-b727-b9a923841a26.gif)

## Acknowledgements

* [Harley Turan](https://twitter.com/hturan/status/1638230938080485376) using GPT-4 for MIDI-controllable shaders
* [Jordan Scales](https://github.com/jdan/deepdive) using the [EventSource browser API](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) to stream AI response
* [Ben Follington](https://github.com/bfollington/) for inspiring the user interface
---

### License

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/benjitrosch/chatGL/blob/main/LICENSE) file for details.