Giter Site home page Giter Site logo

0xfloyd / 3dnouns Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 3.0 95.16 MB

3D Nouns is a web application used for the customization of Noun avatars, funded under NounsDAO Proposal 2

Home Page: https://3DNouns.xyz

HTML 0.85% CSS 20.45% JavaScript 78.70%

3dnouns's Introduction

Nouns

3D Nouns is a web application used for the customization of Noun avatars in 3D. It was created by @0xFloyd and @CoralOrca and funded by NounsDAO under Proposal 2 on September 6, 2021.

Technology

3D Nouns is built using React-three-fiber, a React renderer for three.js.

To get Noun avatar data by ID, 3D Nouns uses Apollo, a GraphQL client, to fetch data. Nouns chain data is retrieved from the Nouns Subgraph.

Gotchas

React cannot consume context from a foreign provider. This prevents the use of global state libraries like redux and zustand inside r3f.

From @0xca0a (r3f creator):

At the moment React context can not be readily used between two renderers, this is due to a problem within React. You can't use redux, tailwind, styled-components, or any foreign context in fiber ootb

https://docs.pmnd.rs/react-three-fiber/advanced/gotchas

Update: A community solution emerged after the development of this project was finished, but keeping this here to explain engineering decisions made at the time. https://twitter.com/0xca0a/status/1573064826339094528

Usage

To use locally, clone the repository, install dependencies, run using CRA's live development server, and navigate to localhost:3000 in your browser:

yarn install
yarn run start

License

The project is licensed under the MIT License.

Nouns

3dnouns's People

Contributors

0xfloyd avatar coralorca avatar

Stargazers

 avatar  avatar  avatar  avatar  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.