Coder Social home page Coder Social logo

sheldongg / infinite-art-gallery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nowaythisworks/infinite-art-gallery

0.0 0.0 0.0 2.02 MB

3D Infinite Art Gallery! This pulls from Reddit's r/Art and creates a procedural infinite art gallery from random (sfw-only) posts.

Home Page: https://gallery.nowaythis.works

JavaScript 98.62% CSS 0.42% HTML 0.96%

infinite-art-gallery's Introduction

Infinite-Art-Gallery

3D Infinite Procedurally-Generated Art Gallery! This pulls from Reddit's r/Art and creates a procedural infinite art gallery from random (sfw-only) posts.

Rendered entirely with THREE.JS in the browser. (May) require a server couterpart to host and filter posts from the Reddit, Harvard Art Museum, and Met APIs.

How It Works

  • First, a world is created (using a ceiling and a floor tile) using a Minecraft-style chunk system. This way, the world will traverse (mostly) infinitely no matter what direction you move in.
  • Then, we use a middleman server to send random images from Reddit's art-related subreddits to the client. This can be intensive and the server is prone to crashing when there are too many people, so if there's any better solutions please contribute or post in the issues tab :))
  • We generate the images randomly 30 meters in front of the player. There is a 10% chance every second for an image to generate, and once it is generated, there is a mandated cooldown of 10 5 seconds.

TODO

  • Proper Crediting - right now, the server will etch the artist's name onto the image file. This is both hard to read and computationally intensive (and possibly a licensing violation in some cases?), so maybe a plaque with the author and title could be better. Unfortunately, Reddit's API is prone to many (many) issues and we can't just direct-link the image without the middleman server. Done!
  • VR Support. Some nice people online told me this would work really well in VR. Lucky I have a rift lying around to test the idea with!
  • Walls. Add some excitement to walking! Place art in frames on walls, above plaques with information about them. Done!
  • Server rewrite. Currently it's very slow and running on a machine less powerful than a raspberry pi, haha. Done!
  • 3D Art: Sculptures section! Single-colored 3d models in their own exhibits.
  • Art Submissions. Maybe people could manually submit their own art?
  • Classical Art. The Harvard Art Museum and The Met offer open-sourced APIs for serving classical images. This kind of goes against the point of the project though, which is to showcase art made by people like you and me - not classical artists. This one needs some discussion!
  • Mobile Phone Support!!!!!!! (figure out how to do controls on a phone) Done! This one was really hard. Thanks to @mese79's repo for help.
  • Firefox Support Done!
  • Mouse Direction Reversal Done!

front board and tutorial walls and art

infinite-art-gallery's People

Contributors

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